UNPKG

lingo3d

Version:

Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor

19 lines 689 B
import Appendable from "./core/Appendable"; import createObjectWithoutTemplate from "../api/serializer/createObjectWithoutTemplate"; import { templateSet } from "../collections/typeGuards"; export default class Template extends Appendable { constructor() { super(); this.$disableSelection = true; templateSet.add(this); } set source(type) { const target = typeof type === "string" ? createObjectWithoutTemplate(type) : type; target.dispose(); this.children = target.children; this._name = target.name; this._id = target.id; Object.setPrototypeOf(this, target); } } //# sourceMappingURL=Template.js.map