UNPKG

@infinite-canvas-tutorial/webcomponents

Version:
10 lines 597 B
import { Camera, Canvas, component, PreStartUp, SetupDevice, system, } from '@infinite-canvas-tutorial/ecs'; import { DownloadScreenshotSystem, InitCanvasSystem, ZoomLevelSystem, } from '../systems'; import { Container } from '../components'; export const UIPlugin = () => { component(Container); system((s) => s.after(PreStartUp).before(ZoomLevelSystem).beforeWritersOf(Canvas))(InitCanvasSystem); system((s) => s.inAnyOrderWithWritersOf(Camera).after(SetupDevice))(ZoomLevelSystem); system((s) => s.before(PreStartUp))(DownloadScreenshotSystem); }; //# sourceMappingURL=UI.js.map