UNPKG

@polygonjs/polygonjs

Version:

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

13 lines (12 loc) 453 B
"use strict"; import { ObjectNamedFunction2 } from "./_Base"; import { getOrCreateObjectAttributeRef } from "../../core/reactivity/ObjectAttributeReactivityCreateRef"; export class getObjectAttributePrevious extends ObjectNamedFunction2 { static type() { return "getObjectAttributePrevious"; } func(object3D, attribName, type) { const _ref = getOrCreateObjectAttributeRef(object3D, attribName, type); return _ref.previous.value; } }