UNPKG

@realsee/dnalogel

Version:
30 lines (29 loc) 1.18 kB
var w = Object.defineProperty; var h = (i, o, r) => o in i ? w(i, o, { enumerable: !0, configurable: !0, writable: !0, value: r }) : i[o] = r; var s = (i, o, r) => (h(i, typeof o != "symbol" ? o + "" : o, r), r); import { MoveHelperAbstract as A } from "../Base/BaseHelper.js"; import { ArrowGroup as e } from "./Objects/ArrowGroup.js"; import { AXES_THREE_COLOR as t } from "../Constants/color.js"; import "three"; import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js"; class m extends A { constructor(r) { super(r); s(this, "xArrow", new e({ direction: "x", color: t.X })); s(this, "yArrow", new e({ direction: "y", color: t.Y })); s(this, "zArrow", new e({ direction: "z", color: t.Z })); this.add(this.xArrow), this.add(this.yArrow), this.add(this.zArrow); } show() { super.show(), this.xArrow.visible = !0, this.yArrow.visible = !0, this.zArrow.visible = !0; } showDraggingHelper(r) { this.xArrow.visible = r.includes("x"), this.yArrow.visible = r.includes("y"), this.zArrow.visible = r.includes("z"); } dispose() { this.remove(this.xArrow, this.yArrow, this.zArrow), super.dispose(); } } export { m as MoveHelper };