UNPKG

piling.js

Version:

A WebGL-based Library for Visual Piling/Stacking

15 lines (12 loc) 282 B
import { assign } from '@flekschas/utils'; const withDestroy = (displayObject) => (self) => assign(self, { destroy() { displayObject.destroy({ baseTexture: true, children: true, texture: true, }); }, }); export default withDestroy;