mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-14 07:47:29 +08:00
SelectionModel fixed
This commit is contained in:
@@ -314,7 +314,7 @@ export default class UEBlueprint extends HTMLElement {
|
||||
}
|
||||
|
||||
getScale() {
|
||||
return parseFloat(getComputedStyle(this.gridElement).getPropertyValue('--ueb-grid-scale'))
|
||||
return parseFloat(getComputedStyle(this.gridElement).getPropertyValue('--ueb-scale'))
|
||||
}
|
||||
|
||||
compensateTranslation(position) {
|
||||
@@ -360,7 +360,12 @@ export default class UEBlueprint extends HTMLElement {
|
||||
* @param {...UEBlueprintObject} blueprintNodes
|
||||
*/
|
||||
addNode(...blueprintNodes) {
|
||||
[...blueprintNodes].reduce((s, e) => s.push(e), this.nodes)
|
||||
[...blueprintNodes].reduce(
|
||||
(s, e) => {
|
||||
s.push(e)
|
||||
return s
|
||||
},
|
||||
this.nodes)
|
||||
if (this.nodesContainerElement) {
|
||||
this.nodesContainerElement.append(...blueprintNodes)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user