SelectModel fixed

This commit is contained in:
barsdeveloper
2021-09-30 17:37:26 +02:00
parent d3ce39ae68
commit 01c3147baa
6 changed files with 262 additions and 210 deletions

View File

@@ -1,3 +1,4 @@
import Utility from "./Utility.js"
import UEBlueprintDragScroll from "./UEBlueprintDragScroll.js"
import UEBlueprintSelect from "./UEBlueprintSelect.js"
import SelectionModel from "./SelectionModel.js"
@@ -44,10 +45,6 @@ export default class UEBlueprint extends HTMLElement {
this.querySelector('[data-nodes]').append(...this.nodes)
}
static clamp(val, min, max) {
return Math.min(Math.max(val, min), max)
}
constructor() {
super()
/** @type {UEBlueprintObject[]}" */
@@ -293,7 +290,7 @@ export default class UEBlueprint extends HTMLElement {
}
setZoom(zoom, center) {
zoom = this.constructor.clamp(zoom, -12, 0)
zoom = Utility.clamp(zoom, -12, 0)
if (zoom == this.zoom) {
return
}