mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-17 19:03:27 +08:00
SelectModel fixed
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user