UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

30 lines (29 loc) 663 B
"use strict"; import { BaseCopyStamp } from "../../utils/BaseCopyStamp"; export class SopCopyStamp extends BaseCopyStamp { reset() { super.reset(); this.setPoint(void 0); } setPoint(point) { const oldPoint = this._point; this._point = point; if (oldPoint != this._point) { this.setDirty(); this.removeDirtyState(); } } value(attribName) { if (this._point) { if (attribName) { return this._point.attribValue(attribName); } else { return this._point.index(); } } else { if (attribName == null || attribName == "i") { return this._globalIndex; } } } }