fix
This commit is contained in:
1 parent
a7986bad39
commit
951a97540d
2 files changed
+7
-2
No files matched your search
@@ -88,7 +88,6 @@ function newFloatingObject() {
|
||||
let forcedFocusCounter = 0
|
||||
|
||||
const ON_FOCUS_RADIUS_FACTOR = 6
|
||||
const ANIMATION_STEPS = 4
|
||||
|
||||
return thisObject
|
||||
|
||||
@@ -531,6 +530,8 @@ function newFloatingObject() {
|
||||
|
||||
function thisObjectPhysics() {
|
||||
|
||||
const ANIMATION_STEPS = canvas.floatingSpace.settings.node.animationSteps
|
||||
|
||||
imageSizePhysics()
|
||||
fontSizePhysics()
|
||||
radiusPhysics()
|
||||
|
||||
@@ -92,13 +92,14 @@ function newFloatingSpace() {
|
||||
distancePercentage: 100,
|
||||
radiusPercentage: 100,
|
||||
massPercentage: 100,
|
||||
animationSteps: 2,
|
||||
menuItem: {
|
||||
widthPercentage: 100,
|
||||
heightPercentage: 100,
|
||||
radiusPercentage: 100
|
||||
}
|
||||
},
|
||||
physics: true
|
||||
physics: true,
|
||||
}
|
||||
|
||||
return thisObject
|
||||
@@ -507,6 +508,9 @@ function newFloatingSpace() {
|
||||
if (configSettings.node.massPercentage !== undefined) {
|
||||
thisObject.settings.node.massPercentage = configSettings.node.massPercentage
|
||||
}
|
||||
if (configSettings.node.animationSteps !== undefined) {
|
||||
thisObject.settings.node.animationSteps = configSettings.node.animationSteps
|
||||
}
|
||||
if (configSettings.node.menuItem !== undefined) {
|
||||
if (configSettings.node.menuItem.widthPercentage !== undefined) {
|
||||
thisObject.settings.node.menuItem.widthPercentage = configSettings.node.menuItem.widthPercentage
|
||||
|
||||
Reference in new issue
Block a user