Comparing version 1.0.6 to 1.0.7
@@ -181,3 +181,3 @@ import React from 'react'; | ||
this.active_brick_needs_removing = offset.x < -this.froggy_offset.x + this.toolbox_ref.current.clientWidth; | ||
let need_update = false; | ||
let needs_update = false; | ||
const closest = this.inserting_candidates.reduce((m, i) => { | ||
@@ -232,3 +232,3 @@ const current = this.brick_id_to_data[i]; | ||
brick_data.ui.offset.y = 0; | ||
need_update = true; | ||
needs_update = true; | ||
} | ||
@@ -243,3 +243,3 @@ } | ||
} | ||
need_update = true; | ||
needs_update = true; | ||
} | ||
@@ -258,5 +258,6 @@ } | ||
} | ||
need_update = true; | ||
this.root_bricks.sort((a, b) => a.ui.offset.x - b.ui.offset.x); | ||
needs_update = true; | ||
} | ||
if (need_update) { | ||
if (needs_update) { | ||
this.update(() => { | ||
@@ -579,3 +580,4 @@ this.inserting_candidates.forEach(i => { | ||
onChange: (value) => { | ||
brick.ui.value = value; | ||
brick.ui.value = brick.output === BrickOutput.string ? value : (brick.output === BrickOutput.number ? | ||
(parseFloat(value) || 0) : value); | ||
workspace.root_bricks_on_change(); | ||
@@ -582,0 +584,0 @@ }, |
{ | ||
"name": "froggy", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
162194
50
3603