Pinning implementation complete

This commit is contained in:
Luis Fernando Molina committed 2019-05-13 18:08:35 +02:00
1 parent 21c22bf4a5
commit c5e6d55fc0
4 files changed
+172 -32

No files matched your search

+2 -1
View File
@@ -19,7 +19,7 @@ function newFloatingObject () {
rawMass: 0, // This is the mass value without zoom.
rawRadius: 0, // This is the radius of this floating object without zoom.
targetRadius: 0, // This is the target radius of the floating object with zoom applied. It should be animated until reaching this value.
isPinned: undefined,
isPinned: false,
pinToggle: pinToggle,
physics: physics,
initializeMass: initializeMass,
@@ -104,6 +104,7 @@ function newFloatingObject () {
} else {
thisObject.isPinned = false
}
return thisObject.isPinned
}
function physics () {