archgine 1.0.78 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/animations/animation-action.d.ts +1 -0
- package/lib/animations/animation-action.d.ts.map +1 -0
- package/lib/animations/animation-clip.d.ts +1 -0
- package/lib/animations/animation-clip.d.ts.map +1 -0
- package/lib/animations/animation-mixer.d.ts +3 -1
- package/lib/animations/animation-mixer.d.ts.map +1 -0
- package/lib/animations/animation-utils.d.ts +1 -0
- package/lib/animations/animation-utils.d.ts.map +1 -0
- package/lib/animations/keyframe-track.d.ts +1 -0
- package/lib/animations/keyframe-track.d.ts.map +1 -0
- package/lib/animations/property-binding.d.ts +1 -0
- package/lib/animations/property-binding.d.ts.map +1 -0
- package/lib/animations/property-mixer.d.ts +1 -0
- package/lib/animations/property-mixer.d.ts.map +1 -0
- package/lib/animations/tracks/boolean-keyframe-track.d.ts +1 -0
- package/lib/animations/tracks/boolean-keyframe-track.d.ts.map +1 -0
- package/lib/animations/tracks/color-keyframe-track.d.ts +1 -0
- package/lib/animations/tracks/color-keyframe-track.d.ts.map +1 -0
- package/lib/animations/tracks/number-keyframe-track.d.ts +1 -0
- package/lib/animations/tracks/number-keyframe-track.d.ts.map +1 -0
- package/lib/animations/tracks/string-keyframe-track.d.ts +1 -0
- package/lib/animations/tracks/string-keyframe-track.d.ts.map +1 -0
- package/lib/animations/tracks/vector1-keyframe-track.d.ts +1 -0
- package/lib/animations/tracks/vector1-keyframe-track.d.ts.map +1 -0
- package/lib/animations/tracks/vector2-keyframe-track.d.ts +1 -0
- package/lib/animations/tracks/vector2-keyframe-track.d.ts.map +1 -0
- package/lib/applications/app2-offscreen.d.ts +92 -0
- package/lib/applications/app2-offscreen.d.ts.map +1 -0
- package/lib/applications/app2.d.ts +111 -0
- package/lib/applications/app2.d.ts.map +1 -0
- package/lib/applications/app3-director.d.ts +18 -0
- package/lib/applications/app3-director.d.ts.map +1 -0
- package/lib/applications/app3-offscreen.d.ts +27 -0
- package/lib/applications/app3-offscreen.d.ts.map +1 -0
- package/lib/applications/app3.d.ts +59 -0
- package/lib/applications/app3.d.ts.map +1 -0
- package/lib/controls/drag-controller.d.ts +1 -0
- package/lib/controls/drag-controller.d.ts.map +1 -0
- package/lib/controls/el-proxy-hammer.d.ts +32 -0
- package/lib/controls/el-proxy-hammer.d.ts.map +1 -0
- package/lib/controls/el-proxy.d.ts +54 -0
- package/lib/controls/el-proxy.d.ts.map +1 -0
- package/lib/controls/handler.d.ts +63 -0
- package/lib/controls/handler.d.ts.map +1 -0
- package/lib/controls/orbit-controller.d.ts +2 -0
- package/lib/controls/orbit-controller.d.ts.map +1 -0
- package/lib/controls/orbit-controls.d.ts +3 -2
- package/lib/controls/orbit-controls.d.ts.map +1 -0
- package/lib/controls/orbit-controls2.d.ts +162 -0
- package/lib/controls/orbit-controls2.d.ts.map +1 -0
- package/lib/core/camera2.d.ts +3 -2
- package/lib/core/camera2.d.ts.map +1 -0
- package/lib/core/clock.d.ts +1 -0
- package/lib/core/clock.d.ts.map +1 -0
- package/lib/core/event-dispatcher.d.ts +1 -0
- package/lib/core/event-dispatcher.d.ts.map +1 -0
- package/lib/core/global.d.ts +92 -1
- package/lib/core/global.d.ts.map +1 -0
- package/lib/{objects → core}/group2.d.ts +2 -1
- package/lib/core/group2.d.ts.map +1 -0
- package/lib/core/lights3.d.ts +11 -0
- package/lib/core/lights3.d.ts.map +1 -0
- package/lib/core/monitor.d.ts +1 -0
- package/lib/core/monitor.d.ts.map +1 -0
- package/lib/core/object2.d.ts +6 -3
- package/lib/core/object2.d.ts.map +1 -0
- package/lib/core/queue.d.ts +1 -0
- package/lib/core/queue.d.ts.map +1 -0
- package/lib/core/ray-caster.d.ts +7 -1
- package/lib/core/ray-caster.d.ts.map +1 -0
- package/lib/core/texture.d.ts +20 -0
- package/lib/core/texture.d.ts.map +1 -0
- package/lib/core/tic.d.ts +3 -1
- package/lib/core/tic.d.ts.map +1 -0
- package/lib/core/transformable2.d.ts +27 -0
- package/lib/core/transformable2.d.ts.map +1 -0
- package/lib/core/{view.d.ts → view2.d.ts} +20 -12
- package/lib/core/view2.d.ts.map +1 -0
- package/lib/core/view3.d.ts +70 -0
- package/lib/core/view3.d.ts.map +1 -0
- package/lib/dummies/dummy2-point.d.ts +9 -0
- package/lib/dummies/dummy2-point.d.ts.map +1 -0
- package/lib/dummies/dummy2-rect.d.ts +9 -0
- package/lib/dummies/dummy2-rect.d.ts.map +1 -0
- package/lib/dummies/dummy2.d.ts +21 -0
- package/lib/dummies/dummy2.d.ts.map +1 -0
- package/lib/editor/editor.d.ts +67 -0
- package/lib/editor/editor.d.ts.map +1 -0
- package/lib/editor/interfaces.d.ts +61 -0
- package/lib/editor/interfaces.d.ts.map +1 -0
- package/lib/editor/tool-manager.d.ts +45 -0
- package/lib/editor/tool-manager.d.ts.map +1 -0
- package/lib/editor/tools/base-tool.d.ts +20 -0
- package/lib/editor/tools/base-tool.d.ts.map +1 -0
- package/lib/editor/tools/distribution-tool.d.ts +20 -0
- package/lib/editor/tools/distribution-tool.d.ts.map +1 -0
- package/lib/editor/tools/drag-tool.d.ts +27 -0
- package/lib/editor/tools/drag-tool.d.ts.map +1 -0
- package/lib/editor/tools/draw-point-tool.d.ts +10 -0
- package/lib/editor/tools/draw-point-tool.d.ts.map +1 -0
- package/lib/editor/tools/dummy-tool.d.ts +57 -0
- package/lib/editor/tools/dummy-tool.d.ts.map +1 -0
- package/lib/editor/tools/hover-tool.d.ts +20 -0
- package/lib/editor/tools/hover-tool.d.ts.map +1 -0
- package/lib/editor/tools/index.d.ts +3 -0
- package/lib/editor/tools/index.d.ts.map +1 -0
- package/lib/editor/tools/linker-tool.d.ts +19 -0
- package/lib/editor/tools/linker-tool.d.ts.map +1 -0
- package/lib/editor/tools/select-tool.d.ts +32 -0
- package/lib/editor/tools/select-tool.d.ts.map +1 -0
- package/lib/editor/tools/selector-rect-tool.d.ts +21 -0
- package/lib/editor/tools/selector-rect-tool.d.ts.map +1 -0
- package/lib/editor/tools/tips-tool.d.ts +13 -0
- package/lib/editor/tools/tips-tool.d.ts.map +1 -0
- package/lib/effects/clear-pass.d.ts +1 -0
- package/lib/effects/clear-pass.d.ts.map +1 -0
- package/lib/effects/debounce-pass.d.ts +2 -0
- package/lib/effects/debounce-pass.d.ts.map +1 -0
- package/lib/effects/debounce-pass2.d.ts +29 -0
- package/lib/effects/debounce-pass2.d.ts.map +1 -0
- package/lib/effects/debounce-pass3.d.ts +38 -0
- package/lib/effects/debounce-pass3.d.ts.map +1 -0
- package/lib/effects/dynamic-pass3.d.ts +11 -0
- package/lib/effects/dynamic-pass3.d.ts.map +1 -0
- package/lib/effects/effect-composer.d.ts +2 -1
- package/lib/effects/effect-composer.d.ts.map +1 -0
- package/lib/effects/effect-director.d.ts +7 -3
- package/lib/effects/effect-director.d.ts.map +1 -0
- package/lib/effects/final-pass.d.ts +3 -2
- package/lib/effects/final-pass.d.ts.map +1 -0
- package/lib/effects/final-pass3.d.ts +6 -0
- package/lib/effects/final-pass3.d.ts.map +1 -0
- package/lib/effects/output-pass.d.ts +1 -0
- package/lib/effects/output-pass.d.ts.map +1 -0
- package/lib/effects/paper-pass.d.ts +5 -0
- package/lib/effects/paper-pass.d.ts.map +1 -0
- package/lib/effects/pass.d.ts +1 -0
- package/lib/effects/pass.d.ts.map +1 -0
- package/lib/effects/render-cached-pass.d.ts +1 -0
- package/lib/effects/render-cached-pass.d.ts.map +1 -0
- package/lib/effects/render-pass.d.ts +1 -0
- package/lib/effects/render-pass.d.ts.map +1 -0
- package/lib/effects/save-pass.d.ts +1 -0
- package/lib/effects/save-pass.d.ts.map +1 -0
- package/lib/effects/shadow-pass3.d.ts +16 -0
- package/lib/effects/shadow-pass3.d.ts.map +1 -0
- package/lib/effects/texture-pass.d.ts +3 -2
- package/lib/effects/texture-pass.d.ts.map +1 -0
- package/lib/env/conf.zh.d.ts +1 -0
- package/lib/env/conf.zh.d.ts.map +1 -0
- package/lib/env/constants.d.ts +1 -0
- package/lib/env/constants.d.ts.map +1 -0
- package/lib/env/default-config.d.ts +99 -0
- package/lib/env/default-config.d.ts.map +1 -0
- package/lib/env/enums.d.ts +3 -0
- package/lib/env/enums.d.ts.map +1 -0
- package/lib/env/index.d.ts +1 -0
- package/lib/env/index.d.ts.map +1 -0
- package/lib/environment.worker.js +2 -4296
- package/lib/environment.worker.js.map +1 -0
- package/lib/extras/adapter2.d.ts +44 -0
- package/lib/extras/adapter2.d.ts.map +1 -0
- package/lib/extras/adapter3.d.ts +28 -0
- package/lib/extras/adapter3.d.ts.map +1 -0
- package/lib/extras/drag.d.ts +1 -0
- package/lib/extras/drag.d.ts.map +1 -0
- package/lib/extras/dummy-point.d.ts +2 -1
- package/lib/extras/dummy-point.d.ts.map +1 -0
- package/lib/extras/dummy-rect.d.ts +2 -1
- package/lib/extras/dummy-rect.d.ts.map +1 -0
- package/lib/extras/dynamic-draw-rect.d.ts +2 -1
- package/lib/extras/dynamic-draw-rect.d.ts.map +1 -0
- package/lib/extras/interfaces.d.ts +3 -2
- package/lib/extras/interfaces.d.ts.map +1 -0
- package/lib/extras/label.d.ts +2 -1
- package/lib/extras/label.d.ts.map +1 -0
- package/lib/extras/svg-app.d.ts +52 -6
- package/lib/extras/svg-app.d.ts.map +1 -0
- package/lib/extras/svg-chef.d.ts +3 -4
- package/lib/extras/svg-chef.d.ts.map +1 -0
- package/lib/extras/svg-dummies.d.ts +1 -0
- package/lib/extras/svg-dummies.d.ts.map +1 -0
- package/lib/extras/svg-multi-selector.d.ts +2 -1
- package/lib/extras/svg-multi-selector.d.ts.map +1 -0
- package/lib/extras/svg-painter.d.ts +1 -0
- package/lib/extras/svg-painter.d.ts.map +1 -0
- package/lib/extras/svg-view.d.ts +6 -5
- package/lib/extras/svg-view.d.ts.map +1 -0
- package/lib/extras/tooltip.d.ts +1 -0
- package/lib/extras/tooltip.d.ts.map +1 -0
- package/lib/helpers/axes-helper3.d.ts +20 -0
- package/lib/helpers/axes-helper3.d.ts.map +1 -0
- package/lib/helpers/cache.d.ts +1 -0
- package/lib/helpers/cache.d.ts.map +1 -0
- package/lib/helpers/canvas-helper.d.ts +7 -14
- package/lib/helpers/canvas-helper.d.ts.map +1 -0
- package/lib/helpers/geo-helper.d.ts +15 -11
- package/lib/helpers/geo-helper.d.ts.map +1 -0
- package/lib/helpers/geo3-helper.d.ts +5 -0
- package/lib/helpers/geo3-helper.d.ts.map +1 -0
- package/lib/helpers/loading-manager.d.ts +1 -0
- package/lib/helpers/loading-manager.d.ts.map +1 -0
- package/lib/helpers/mtl-helper.d.ts +11 -0
- package/lib/helpers/mtl-helper.d.ts.map +1 -0
- package/lib/helpers/obj3-helper.d.ts +4 -0
- package/lib/helpers/obj3-helper.d.ts.map +1 -0
- package/lib/helpers/sax-helper.d.ts +1 -0
- package/lib/helpers/sax-helper.d.ts.map +1 -0
- package/lib/helpers/shape2-helper.d.ts +27 -0
- package/lib/helpers/shape2-helper.d.ts.map +1 -0
- package/lib/helpers/shape3-helper.d.ts +11 -0
- package/lib/helpers/shape3-helper.d.ts.map +1 -0
- package/lib/helpers/sprite-helper.d.ts +10 -0
- package/lib/helpers/sprite-helper.d.ts.map +1 -0
- package/lib/helpers/svg-helper.d.ts +69 -51
- package/lib/helpers/svg-helper.d.ts.map +1 -0
- package/lib/helpers/texture-helper.d.ts +26 -27
- package/lib/helpers/texture-helper.d.ts.map +1 -0
- package/lib/helpers/texture3-helper.d.ts +15 -0
- package/lib/helpers/texture3-helper.d.ts.map +1 -0
- package/lib/index.d.ts +14 -7
- package/lib/index.d.ts.map +1 -0
- package/lib/index.mjs +17 -18637
- package/lib/index.mjs.map +1 -0
- package/lib/index.umd.js +1 -152
- package/lib/index.umd.js.map +1 -0
- package/lib/interfaces.d.ts +386 -132
- package/lib/interfaces.d.ts.map +1 -0
- package/lib/loaders/file-loader.d.ts +1 -0
- package/lib/loaders/file-loader.d.ts.map +1 -0
- package/lib/loaders/image-loader.d.ts +1 -0
- package/lib/loaders/image-loader.d.ts.map +1 -0
- package/lib/loaders/loader.d.ts +1 -0
- package/lib/loaders/loader.d.ts.map +1 -0
- package/lib/loaders/svg-loader.d.ts +1 -0
- package/lib/loaders/svg-loader.d.ts.map +1 -0
- package/lib/loaders/svg-loader3.d.ts +15 -0
- package/lib/loaders/svg-loader3.d.ts.map +1 -0
- package/lib/main.d.ts +1 -0
- package/lib/main.d.ts.map +1 -0
- package/lib/math/box2.d.ts +13 -13
- package/lib/math/box2.d.ts.map +1 -0
- package/lib/math/box3.d.ts +13 -0
- package/lib/math/box3.d.ts.map +1 -0
- package/lib/math/color.d.ts +4 -2
- package/lib/math/color.d.ts.map +1 -0
- package/lib/math/cubic-interpolant.d.ts +1 -0
- package/lib/math/cubic-interpolant.d.ts.map +1 -0
- package/lib/math/curve.d.ts +16 -0
- package/lib/math/curve.d.ts.map +1 -0
- package/lib/math/discrete-interpolant.d.ts +1 -0
- package/lib/math/discrete-interpolant.d.ts.map +1 -0
- package/lib/math/improved-noise.d.ts +1 -0
- package/lib/math/improved-noise.d.ts.map +1 -0
- package/lib/math/interpolant.d.ts +1 -0
- package/lib/math/interpolant.d.ts.map +1 -0
- package/lib/math/linear-interpolant.d.ts +1 -0
- package/lib/math/linear-interpolant.d.ts.map +1 -0
- package/lib/math/matrix3.d.ts +12 -2
- package/lib/math/matrix3.d.ts.map +1 -0
- package/lib/math/matrix4.d.ts +8 -0
- package/lib/math/matrix4.d.ts.map +1 -0
- package/lib/math/utils.d.ts +1 -0
- package/lib/math/utils.d.ts.map +1 -0
- package/lib/math/vector2.d.ts +13 -4
- package/lib/math/vector2.d.ts.map +1 -0
- package/lib/math/vector3.d.ts +10 -5
- package/lib/math/vector3.d.ts.map +1 -0
- package/lib/math/vector4.d.ts +1 -0
- package/lib/math/vector4.d.ts.map +1 -0
- package/lib/renderer2.worker.js +16 -0
- package/lib/renderer2.worker.js.map +1 -0
- package/lib/renderer3.worker.js +22 -0
- package/lib/renderer3.worker.js.map +1 -0
- package/lib/renderers/binding-states.d.ts +8 -10
- package/lib/renderers/binding-states.d.ts.map +1 -0
- package/lib/renderers/buffer-renderer.d.ts +18 -20
- package/lib/renderers/buffer-renderer.d.ts.map +1 -0
- package/lib/renderers/cvs-renderer.d.ts +34 -16
- package/lib/renderers/cvs-renderer.d.ts.map +1 -0
- package/lib/renderers/render-lists.d.ts +3 -2
- package/lib/renderers/render-lists.d.ts.map +1 -0
- package/lib/renderers/render-states.d.ts +1 -0
- package/lib/renderers/render-states.d.ts.map +1 -0
- package/lib/renderers/render-target.d.ts +1 -0
- package/lib/renderers/render-target.d.ts.map +1 -0
- package/lib/{renders → renderers}/svg-renderer.d.ts +1 -0
- package/lib/renderers/svg-renderer.d.ts.map +1 -0
- package/lib/renderers/web-g-l-renderer3.d.ts +1 -0
- package/lib/renderers/web-g-l-renderer3.d.ts.map +1 -0
- package/lib/routes.d.ts +1 -0
- package/lib/routes.d.ts.map +1 -0
- package/lib/scenes/animate-scene2.d.ts +27 -0
- package/lib/scenes/animate-scene2.d.ts.map +1 -0
- package/lib/scenes/animate-scene3.d.ts +15 -0
- package/lib/scenes/animate-scene3.d.ts.map +1 -0
- package/lib/scenes/drawing-scene2.d.ts +43 -0
- package/lib/scenes/drawing-scene2.d.ts.map +1 -0
- package/lib/scenes/drawing-scene3.d.ts +20 -0
- package/lib/scenes/drawing-scene3.d.ts.map +1 -0
- package/lib/scenes/dynamic-scene.d.ts +1 -0
- package/lib/scenes/dynamic-scene.d.ts.map +1 -0
- package/lib/scenes/empty-scene2.d.ts +27 -0
- package/lib/scenes/empty-scene2.d.ts.map +1 -0
- package/lib/scenes/empty-scene3.d.ts +16 -0
- package/lib/scenes/empty-scene3.d.ts.map +1 -0
- package/lib/scenes/{loading-scene.d.ts → loading-scene2.d.ts} +9 -8
- package/lib/scenes/loading-scene2.d.ts.map +1 -0
- package/lib/scenes/loading-scene3.d.ts +17 -0
- package/lib/scenes/loading-scene3.d.ts.map +1 -0
- package/lib/scenes/scene.d.ts +4 -2
- package/lib/scenes/scene.d.ts.map +1 -0
- package/lib/scenes/shadow-scene3.d.ts +15 -0
- package/lib/scenes/shadow-scene3.d.ts.map +1 -0
- package/lib/scenes/static-scene.d.ts +1 -0
- package/lib/scenes/static-scene.d.ts.map +1 -0
- package/lib/scenes/svg-empty-scene.d.ts +1 -0
- package/lib/scenes/svg-empty-scene.d.ts.map +1 -0
- package/lib/scenes/svg-loading-scene.d.ts +1 -0
- package/lib/scenes/svg-loading-scene.d.ts.map +1 -0
- package/lib/scenes/svg-scene.d.ts +2 -1
- package/lib/scenes/svg-scene.d.ts.map +1 -0
- package/lib/shaders/final.shader.d.ts +13 -0
- package/lib/shaders/final.shader.d.ts.map +1 -0
- package/lib/shaders/loading-circles.shader.d.ts +14 -0
- package/lib/shaders/loading-circles.shader.d.ts.map +1 -0
- package/lib/shaders/projection.shader.d.ts +33 -0
- package/lib/shaders/projection.shader.d.ts.map +1 -0
- package/lib/shaders/shadow.shader.d.ts +16 -0
- package/lib/shaders/shadow.shader.d.ts.map +1 -0
- package/lib/shaders/smoke.shader.d.ts +12 -0
- package/lib/shaders/smoke.shader.d.ts.map +1 -0
- package/lib/shaders/textures-box.shader.d.ts +12 -0
- package/lib/shaders/textures-box.shader.d.ts.map +1 -0
- package/lib/shapes/arrow.d.ts +6 -4
- package/lib/shapes/arrow.d.ts.map +1 -0
- package/lib/shapes/axes.d.ts +14 -16
- package/lib/shapes/axes.d.ts.map +1 -0
- package/lib/shapes/circle.d.ts +5 -4
- package/lib/shapes/circle.d.ts.map +1 -0
- package/lib/shapes/geo/a-geo.d.ts +31 -0
- package/lib/shapes/geo/a-geo.d.ts.map +1 -0
- package/lib/shapes/geo/cmd.d.ts +11 -0
- package/lib/shapes/geo/cmd.d.ts.map +1 -0
- package/lib/shapes/geo/geo-circle.d.ts +14 -0
- package/lib/shapes/geo/geo-circle.d.ts.map +1 -0
- package/lib/shapes/geo/geo-line.d.ts +13 -0
- package/lib/shapes/geo/geo-line.d.ts.map +1 -0
- package/lib/shapes/geo/geo-polygon.d.ts +9 -0
- package/lib/shapes/geo/geo-polygon.d.ts.map +1 -0
- package/lib/shapes/geo/geo-polyline.d.ts +22 -0
- package/lib/shapes/geo/geo-polyline.d.ts.map +1 -0
- package/lib/shapes/geo/geo-rect.d.ts +14 -0
- package/lib/shapes/geo/geo-rect.d.ts.map +1 -0
- package/lib/shapes/geo/geo-shape.d.ts +22 -0
- package/lib/shapes/geo/geo-shape.d.ts.map +1 -0
- package/lib/{geometries → shapes/geo}/path-polyfill.d.ts +2 -1
- package/lib/shapes/geo/path-polyfill.d.ts.map +1 -0
- package/lib/shapes/geo/path-proxy.d.ts +74 -0
- package/lib/shapes/geo/path-proxy.d.ts.map +1 -0
- package/lib/shapes/line.d.ts +10 -0
- package/lib/shapes/line.d.ts.map +1 -0
- package/lib/{materials/text-material2.d.ts → shapes/mtl/mtl-text.d.ts} +8 -9
- package/lib/shapes/mtl/mtl-text.d.ts.map +1 -0
- package/lib/shapes/mtl/mtl.d.ts +30 -0
- package/lib/shapes/mtl/mtl.d.ts.map +1 -0
- package/lib/shapes/mtl/utils.d.ts +3 -0
- package/lib/shapes/mtl/utils.d.ts.map +1 -0
- package/lib/shapes/polygon.d.ts +2 -3
- package/lib/shapes/polygon.d.ts.map +1 -0
- package/lib/shapes/polyline.d.ts +9 -0
- package/lib/shapes/polyline.d.ts.map +1 -0
- package/lib/shapes/rect.d.ts +14 -0
- package/lib/shapes/rect.d.ts.map +1 -0
- package/lib/shapes/shape.d.ts +27 -0
- package/lib/shapes/shape.d.ts.map +1 -0
- package/lib/shapes/skinned-shape.d.ts +10 -0
- package/lib/shapes/skinned-shape.d.ts.map +1 -0
- package/lib/shapes/sprite.d.ts +9 -0
- package/lib/shapes/sprite.d.ts.map +1 -0
- package/lib/shapes/svg.d.ts +10 -0
- package/lib/shapes/svg.d.ts.map +1 -0
- package/lib/shapes/text.d.ts +10 -12
- package/lib/shapes/text.d.ts.map +1 -0
- package/lib/svg/editor/svg-editor.d.ts +60 -0
- package/lib/svg/editor/svg-editor.d.ts.map +1 -0
- package/lib/svg/editor/tools/svg-base-tool.d.ts +29 -0
- package/lib/svg/editor/tools/svg-base-tool.d.ts.map +1 -0
- package/lib/svg/editor/tools/svg-drag-tool.d.ts +26 -0
- package/lib/svg/editor/tools/svg-drag-tool.d.ts.map +1 -0
- package/lib/svg/editor/tools/svg-draw-base-tool.d.ts +59 -0
- package/lib/svg/editor/tools/svg-draw-base-tool.d.ts.map +1 -0
- package/lib/svg/editor/tools/svg-draw-point-tool.d.ts +16 -0
- package/lib/svg/editor/tools/svg-draw-point-tool.d.ts.map +1 -0
- package/lib/svg/editor/tools/svg-draw-polylgon-tool.d.ts +20 -0
- package/lib/svg/editor/tools/svg-draw-polylgon-tool.d.ts.map +1 -0
- package/lib/svg/editor/tools/svg-draw-polyline-tool.d.ts +29 -0
- package/lib/svg/editor/tools/svg-draw-polyline-tool.d.ts.map +1 -0
- package/lib/svg/editor/tools/svg-draw-text-tool.d.ts +21 -0
- package/lib/svg/editor/tools/svg-draw-text-tool.d.ts.map +1 -0
- package/lib/svg/editor/tools/svg-hover-tool.d.ts +17 -0
- package/lib/svg/editor/tools/svg-hover-tool.d.ts.map +1 -0
- package/lib/svg/utils.d.ts +10 -1
- package/lib/svg/utils.d.ts.map +1 -0
- package/lib/utils/coords.d.ts +4 -0
- package/lib/utils/coords.d.ts.map +1 -0
- package/lib/utils/dom-utils.d.ts +1 -0
- package/lib/utils/dom-utils.d.ts.map +1 -0
- package/lib/utils/md5.d.ts +2 -1
- package/lib/utils/md5.d.ts.map +1 -0
- package/lib/utils/request-anim-frame.d.ts +1 -0
- package/lib/utils/request-anim-frame.d.ts.map +1 -0
- package/lib/utils/svg.d.ts +5 -2
- package/lib/utils/svg.d.ts.map +1 -0
- package/lib/utils/three-utils.d.ts +4 -0
- package/lib/utils/three-utils.d.ts.map +1 -0
- package/lib/utils/utils.d.ts +1 -0
- package/lib/utils/utils.d.ts.map +1 -0
- package/lib/utils/uuid.d.ts +1 -0
- package/lib/utils/uuid.d.ts.map +1 -0
- package/lib/utils/validates.d.ts +1 -0
- package/lib/utils/validates.d.ts.map +1 -0
- package/lib/workers/environment.worker.d.ts +1 -0
- package/lib/workers/environment.worker.d.ts.map +1 -0
- package/lib/workers/renderer2.worker.d.ts +2 -0
- package/lib/workers/renderer2.worker.d.ts.map +1 -0
- package/lib/workers/renderer3.worker.d.ts +2 -0
- package/lib/workers/renderer3.worker.d.ts.map +1 -0
- package/package.json +8 -3
- package/lib/applications/app-cvs.d.ts +0 -61
- package/lib/applications/app-director.d.ts +0 -22
- package/lib/applications/app-offscreen.d.ts +0 -58
- package/lib/applications/application.d.ts +0 -71
- package/lib/controls/interactive-controls.d.ts +0 -12
- package/lib/core/ope-view.d.ts +0 -45
- package/lib/extras/adapter.d.ts +0 -46
- package/lib/extras/app.d.ts +0 -0
- package/lib/extras/chef.d.ts +0 -23
- package/lib/geometries/circle-geo2.d.ts +0 -15
- package/lib/geometries/circle-geometry2.d.ts +0 -22
- package/lib/geometries/geo2.d.ts +0 -33
- package/lib/geometries/geometry2.d.ts +0 -50
- package/lib/geometries/line-geometry2.d.ts +0 -29
- package/lib/geometries/path.d.ts +0 -40
- package/lib/geometries/polygon-geo2.d.ts +0 -5
- package/lib/geometries/polygon-geometry2.d.ts +0 -13
- package/lib/geometries/polyline-geo2.d.ts +0 -21
- package/lib/geometries/rect-geometry2.d.ts +0 -18
- package/lib/geometries/text-geometry2.d.ts +0 -13
- package/lib/helpers/axes-helper.d.ts +0 -18
- package/lib/helpers/axes-helper2.d.ts +0 -21
- package/lib/helpers/dummy-helper.d.ts +0 -4
- package/lib/helpers/dxf-helper.d.ts +0 -2
- package/lib/helpers/mat-helper.d.ts +0 -11
- package/lib/helpers/merge-helper.d.ts +0 -11
- package/lib/index.cjs.js +0 -152
- package/lib/materials/line-material2.d.ts +0 -8
- package/lib/materials/mat2.d.ts +0 -35
- package/lib/materials/material2.d.ts +0 -38
- package/lib/materials/text-mat2.d.ts +0 -53
- package/lib/objects/mesh2.d.ts +0 -18
- package/lib/objects/node2.d.ts +0 -24
- package/lib/objects/shape.d.ts +0 -57
- package/lib/objects/shape2.d.ts +0 -32
- package/lib/renderer.worker.js +0 -19115
- package/lib/renderers/renderer.d.ts +0 -26
- package/lib/renders/binding-states.d.ts +0 -35
- package/lib/renders/buffer-renderer.d.ts +0 -19
- package/lib/renders/render-lists.d.ts +0 -29
- package/lib/renders/render-states.d.ts +0 -18
- package/lib/renders/render-target.d.ts +0 -26
- package/lib/renders/renderer2.d.ts +0 -52
- package/lib/renders/t-svg-renderer.d.ts +0 -35
- package/lib/scenes/animate-scene.d.ts +0 -17
- package/lib/scenes/loading-text-scene.d.ts +0 -19
- package/lib/scenes/main-scene.d.ts +0 -34
- package/lib/shapes2/actor.d.ts +0 -24
- package/lib/shapes2/arrow.d.ts +0 -6
- package/lib/shapes2/axes.d.ts +0 -35
- package/lib/shapes2/circle.d.ts +0 -10
- package/lib/shapes2/dummy.d.ts +0 -19
- package/lib/shapes2/polygon.d.ts +0 -9
- package/lib/shapes2/svg.d.ts +0 -18
- package/lib/shapes2/text.d.ts +0 -21
- package/lib/svg/circle-element.d.ts +0 -9
- package/lib/svg/defs-element.d.ts +0 -6
- package/lib/svg/element.d.ts +0 -32
- package/lib/svg/elements.d.ts +0 -25
- package/lib/svg/g-element.d.ts +0 -6
- package/lib/svg/interfaces.d.ts +0 -46
- package/lib/svg/path-element.d.ts +0 -33
- package/lib/svg/property.d.ts +0 -25
- package/lib/svg/style-element.d.ts +0 -6
- package/lib/svg/svg-element.d.ts +0 -10
- package/lib/svg/symbol-element.d.ts +0 -6
- package/lib/svg/text-element.d.ts +0 -10
- package/lib/svg/unknown-element.d.ts +0 -6
- package/lib/svg/use-element.d.ts +0 -8
- package/lib/svg/view-element.d.ts +0 -6
- package/lib/textures/texture.d.ts +0 -45
- package/lib/workers/app-offscreen.worker.d.ts +0 -0
- package/lib/workers/renderer.worker.d.ts +0 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ILabelResult, IObject2, IPathProxy, IShape, ISymbolResult, IUseResult } from '../interfaces';
|
|
2
|
+
import { ShapePath } from 'three';
|
|
3
|
+
export interface IShape2HelperConfig {
|
|
4
|
+
fill?: string;
|
|
5
|
+
stroke?: string;
|
|
6
|
+
flipY?: boolean;
|
|
7
|
+
lineWidth?: number;
|
|
8
|
+
thinLine?: boolean;
|
|
9
|
+
fillOpacity?: number;
|
|
10
|
+
strokeOpacity?: number;
|
|
11
|
+
opacity?: number;
|
|
12
|
+
wireframe?: boolean;
|
|
13
|
+
use3DShape?: boolean;
|
|
14
|
+
selectable?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare class Shape2Helper {
|
|
17
|
+
static use3DShape: boolean;
|
|
18
|
+
static getObject2BySvg(svg: string, config?: IShape2HelperConfig): IObject2;
|
|
19
|
+
static getShapesBySvg(svg: string, config?: IShape2HelperConfig): IShape[];
|
|
20
|
+
static getShapesByParsed(res?: any, config?: IShape2HelperConfig): IShape[];
|
|
21
|
+
static getPolygons2ByPaths(paths?: ShapePath[], config?: IShape2HelperConfig): IShape[] | undefined;
|
|
22
|
+
static getPolygonsByPath(path?: ShapePath | IPathProxy, config?: IShape2HelperConfig): IShape[] | undefined;
|
|
23
|
+
static getInstanceBySymbol(symbol: ISymbolResult, use: IUseResult): IShape[] | undefined;
|
|
24
|
+
static getLabels(os?: ILabelResult[], config?: IShape2HelperConfig): IShape[] | undefined;
|
|
25
|
+
static getLabel(txt?: ILabelResult, config?: IShape2HelperConfig): IShape[] | undefined;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=shape2-helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shape2-helper.d.ts","sourceRoot":"","sources":["../../src/helpers/shape2-helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAQ,QAAQ,EAAE,UAAU,EAAW,MAAM,EAAE,aAAa,EAAY,UAAU,EAAY,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xF,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,YAAY,EAAE,EAAE,MAAM,CAAC,EAAE,mBAAmB,GAAG,MAAM,EAAE,GAAG,SAAS;IAWzF,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,mBAAmB,GAAG,MAAM,EAAE,GAAG,SAAS;CA8BxF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Mesh, ShapePath } from 'three';
|
|
2
|
+
export declare class Shape3Helper {
|
|
3
|
+
static _z: number;
|
|
4
|
+
constructor();
|
|
5
|
+
static getZ(): number;
|
|
6
|
+
static getPolygons3ByPaths(paths?: ShapePath[]): Mesh[];
|
|
7
|
+
static getPolygons3BySymbolUses(symbolsMap?: any, uses?: any[]): Mesh[];
|
|
8
|
+
static getLabels3ByPaths(res?: any[], font?: any): Mesh[];
|
|
9
|
+
}
|
|
10
|
+
export declare function mergeMeshes(res: Mesh[], out?: Mesh[]): Mesh[];
|
|
11
|
+
//# sourceMappingURL=shape3-helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shape3-helper.d.ts","sourceRoot":"","sources":["../../src/helpers/shape3-helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,IAAI,EAKJ,SAAS,EACV,MAAM,OAAO,CAAC;AAOf,qBAAa,YAAY;IACvB,MAAM,CAAC,EAAE,EAAE,MAAM,CAAO;;IAKxB,MAAM,CAAC,IAAI,IAAI,MAAM;IAMrB,MAAM,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE;IAsEvD,MAAM,CAAC,wBAAwB,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE;IAkEvE,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,IAAI,EAAE;CA+B1D;AAMD,wBAAgB,WAAW,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,GAAG,GAAE,IAAI,EAAO,GAAG,IAAI,EAAE,CAKjE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ISprite } from '../interfaces';
|
|
2
|
+
import { ICircleConfig } from '../shapes/circle';
|
|
3
|
+
import { IRectConfig } from '../shapes/rect';
|
|
4
|
+
import { IMtlConfig } from '../shapes/mtl/mtl';
|
|
5
|
+
export declare class SpriteHelper {
|
|
6
|
+
static getPoint(conf: ICircleConfig): ISprite;
|
|
7
|
+
static getRect(conf: IRectConfig): ISprite;
|
|
8
|
+
static getMark(conf: IMtlConfig): ISprite;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=sprite-helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sprite-helper.d.ts","sourceRoot":"","sources":["../../src/helpers/sprite-helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/C,qBAAa,YAAY;IACvB,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO;IAM7C,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO;IAO1C,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO;CAe1C"}
|
|
@@ -1,52 +1,70 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { default as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
1
|
+
import { IBox2, ILabelResult, IMatrix3, IPathProxy, IPoint2, ISVGParseResult, ISymbolResult, IUseResult } from '../interfaces';
|
|
2
|
+
import { Box2 } from '../math/box2';
|
|
3
|
+
import { default as Matrix3 } from '../math/matrix3';
|
|
4
|
+
import { Vector2 } from '../math/vector2';
|
|
5
|
+
import { PathProxy } from '../shapes/geo/path-proxy';
|
|
6
|
+
export declare class SVGHelper {
|
|
7
|
+
static createSVG(width: number, height: number): SVGSVGElement;
|
|
8
|
+
static createSVGPath(d: string): SVGPathElement;
|
|
9
|
+
static createSVGText(text: string, x: number, y: number): SVGTextElement;
|
|
10
|
+
static getInstance(): SVGHelper;
|
|
11
|
+
static setInstancedMesh(v: boolean): SVGHelper;
|
|
12
|
+
static parse(svg: string, style?: any): ISVGParseResult;
|
|
13
|
+
static getBoundingBoxByNode(node: HTMLElement, out?: Box2): Box2;
|
|
14
|
+
static parseNodeTransform(node: HTMLElement, out?: Matrix3): Matrix3;
|
|
15
|
+
static getSvgPathDByData(data: number[] | Float32Array): string;
|
|
16
|
+
static getPathProxyBySvgPathD(d?: string | null, out?: PathProxy): PathProxy | undefined;
|
|
17
|
+
instancedMesh?: boolean;
|
|
18
|
+
_xml?: HTMLElement;
|
|
19
|
+
_symbolsNodeMap: Record<string, HTMLElement>;
|
|
20
|
+
paths: IPathProxy[];
|
|
21
|
+
labels: ILabelResult[];
|
|
22
|
+
symbolsMap: Record<string, ISymbolResult>;
|
|
23
|
+
instances: IUseResult[];
|
|
24
|
+
_viewBox: IBox2;
|
|
25
|
+
_isInDefs: boolean;
|
|
26
|
+
_transformStack: IMatrix3[];
|
|
27
|
+
_currentTransform: Matrix3;
|
|
28
|
+
centralInitialized: boolean;
|
|
29
|
+
centralPoint: Vector2;
|
|
30
|
+
defaultUnit: string;
|
|
31
|
+
defaultDPI: number;
|
|
32
|
+
stylesheets: Record<string, any>;
|
|
33
|
+
float2Int: boolean;
|
|
34
|
+
scaleFactor: number;
|
|
35
|
+
ASSET_TYPES: string[];
|
|
36
|
+
constructor();
|
|
37
|
+
setInstancedMesh(instancedMesh: boolean): this;
|
|
38
|
+
dispose(): void;
|
|
39
|
+
parse(svg: string, style?: any): ISVGParseResult;
|
|
40
|
+
getViewBox(xml: Element, out?: IBox2): IBox2;
|
|
41
|
+
parseNode(node: HTMLElement, style?: any, out?: IPathProxy[], pid?: string | null, silent?: boolean): IPathProxy[];
|
|
42
|
+
transformPath(path: IPathProxy, m: Matrix3): void;
|
|
43
|
+
getNodeTransform(node: Element, style: any): Matrix3 | null;
|
|
44
|
+
parseNodeTransform(node: Element, style?: any, out?: Matrix3): Matrix3;
|
|
45
|
+
parseStyle(node: HTMLElement, style: any): any;
|
|
46
|
+
parseCSSStylesheetByTextContent(styleElement: any): void;
|
|
47
|
+
parsePathNode(node: Element, origin?: boolean): PathProxy | undefined;
|
|
48
|
+
getPathProxyBySvgPathD(d?: string | null, path?: PathProxy, origin?: boolean): PathProxy | undefined;
|
|
49
|
+
parseArcCommand(path: PathProxy, rx: number, ry: number, x_axis_rotation: number, large_arc_flag: number, sweep_flag: number, start: IPoint2, end: IPoint2): void;
|
|
50
|
+
svgAngle(ux: number, uy: number, vx: number, vy: number): number;
|
|
51
|
+
parseRectNode(node: Element, origin?: boolean): PathProxy;
|
|
52
|
+
parsePolygonNode(node: Element, origin?: boolean): PathProxy;
|
|
53
|
+
parsePolylineNode(node: Element, origin?: boolean): PathProxy;
|
|
54
|
+
parseCircleNode(node: Element, origin?: boolean): PathProxy;
|
|
55
|
+
parseEllipseNode(node: Element, origin?: boolean): PathProxy;
|
|
56
|
+
parseLineNode(node: Element, origin?: boolean): PathProxy;
|
|
57
|
+
parseTextNode(node: Element, style: any, origin?: boolean): any | undefined;
|
|
58
|
+
parseFloatWithUnits(str: any, conf?: any): number;
|
|
59
|
+
getReflection(a: number, b: number): number;
|
|
60
|
+
parseFloats(input: string, flags?: number[], stride?: number): number[];
|
|
61
|
+
normalizeX(v: number): number;
|
|
62
|
+
normalizeY(v: number): number;
|
|
63
|
+
normalizeW(v: number): number;
|
|
64
|
+
normalizeH(v: number): number;
|
|
65
|
+
getAssetType(node: Element, typ?: "asset" | "layer"): string | undefined;
|
|
66
|
+
getId(node: Element): string | null;
|
|
67
|
+
getParentId(node: Element, pid?: string | null): string;
|
|
68
|
+
getLabelAssetId(node: Element): string | null;
|
|
52
69
|
}
|
|
70
|
+
//# sourceMappingURL=svg-helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"svg-helper.d.ts","sourceRoot":"","sources":["../../src/helpers/svg-helper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC/H,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,OAAO,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAMrD,qBAAa,SAAS;IACpB,MAAM,CAAC,SAAS,CAAC,KA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C,CAAC,EAAE,MAAM,GAAG,MAAM;IAM7B,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM;IAM7B,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM;IAG7B,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM;IAG7B,YAAY,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,GAAE,OAAO,GAAG,OAAiB,GAAG,MAAM,GAAG,SAAS;IAejF,KAAK,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI;IAOnC,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM;IASvD,eAAe,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI;CAS9C"}
|
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { IBox2, ILight, IShape, IText, ITexture } from '../interfaces';
|
|
2
|
+
import { Vector2 } from '../math/vector2';
|
|
3
|
+
import { BufferRenderer } from '../renderers/buffer-renderer';
|
|
4
4
|
import { default as _ } from 'lodash';
|
|
5
|
-
/**
|
|
6
|
-
* @class TextureHelper
|
|
7
|
-
* @description Texture cache helper
|
|
8
|
-
* @author Dio Zhu 2024.6.1
|
|
9
|
-
*/
|
|
10
5
|
export declare class TextureHelper {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
private cache;
|
|
7
|
+
maxSize: number;
|
|
8
|
+
renderer: BufferRenderer;
|
|
9
|
+
_scaled: Vector2;
|
|
10
|
+
constructor();
|
|
11
|
+
dispose(): void;
|
|
12
|
+
static getInstance(): TextureHelper;
|
|
16
13
|
static DEBUG_DisplayCachedTexture: _.DebouncedFuncLeading<(width?: number, opacity?: number) => void>;
|
|
17
|
-
static
|
|
18
|
-
static has(k: string): boolean;
|
|
19
|
-
static get(k: string | undefined, threshold?: number): ITexture | undefined;
|
|
20
|
-
static set(k: string | undefined, img: ITexture | undefined): ITexture | undefined;
|
|
21
|
-
static remove(k: string): void;
|
|
14
|
+
static set(k: string, texture: ITexture): void;
|
|
22
15
|
static clear(): void;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
16
|
+
scale(sx?: number, sy?: number): this;
|
|
17
|
+
has(k: string): boolean;
|
|
18
|
+
set(k: string, texture: ITexture): void;
|
|
19
|
+
get(k: string): ITexture | undefined;
|
|
20
|
+
clear(): void;
|
|
21
|
+
calculateMipLevel(scaled: number): 0 | 1 | 2 | 3;
|
|
22
|
+
setByShape(key: string, obj: IShape, originBox?: IBox2, finalBox?: IBox2): ITexture;
|
|
23
|
+
getTextureByShape(obj: IShape, originBox?: IBox2, finalBox?: IBox2, light?: ILight): ITexture;
|
|
24
|
+
renderShapeTexture(obj: IShape, texture: ITexture, light?: ILight): void;
|
|
25
|
+
_transform(ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D, obj: IShape): void;
|
|
26
|
+
_bindStyle(ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D, obj: IShape): void;
|
|
27
|
+
_fill(ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D, obj: IShape): void;
|
|
28
|
+
_stroke(ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D, obj: IShape): void;
|
|
29
|
+
_renderText(ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D, obj: IText): void;
|
|
32
30
|
}
|
|
31
|
+
//# sourceMappingURL=texture-helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"texture-helper.d.ts","sourceRoot":"","sources":["../../src/helpers/texture-helper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAqB,MAAM,EAAE,KAAK,EAA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AAE,MAAM,GAAG,IAAI;IAkCxE,UAAU,CAAC,GAAG,EAAE,wBAAwB,GAAG,iCAAiC,EAAE,GAAG,EAAE,MAAM;IAczF,UAAU,CAAC,GAAG,EAAE,wBAAwB,GAAG,iCAAiC,EAAE,GAAG,EAAE,MAAM;IA2BzF,KAAK,CAAC,GAAG,EAAE,wBAAwB,GAAG,iCAAiC,EAAE,GAAG,EAAE,MAAM;IAIpF,OAAO,CAAC,GAAG,EAAE,wBAAwB,GAAG,iCAAiC,EAAE,GAAG,EAAE,MAAM;IAKtF,WAAW,CAAC,GAAG,EAAE,wBAAwB,GAAG,iCAAiC,EAAE,GAAG,EAAE,KAAK;CA8C1F"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Texture } from 'three';
|
|
2
|
+
import { default as _ } from 'lodash';
|
|
3
|
+
export declare class Texture3Helper {
|
|
4
|
+
static cached: Map<string, Texture>;
|
|
5
|
+
static destroy(): void;
|
|
6
|
+
static has(k: string): boolean;
|
|
7
|
+
static get(k?: string, threshold?: number): Texture | undefined;
|
|
8
|
+
static set(k: string, texture: Texture): Texture;
|
|
9
|
+
static remove(k: string): void;
|
|
10
|
+
static clear(): void;
|
|
11
|
+
static DEBUG: _.DebouncedFuncLeading<(width?: number, opacity?: number) => void>;
|
|
12
|
+
static keys: any;
|
|
13
|
+
static DEBUG_RENDER_ONCE(key: string, renderTarget: any, renderer: any, scale?: number): void;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=texture3-helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"texture3-helper.d.ts","sourceRoot":"","sources":["../../src/helpers/texture3-helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AAC9B,OAAO,CAAC,MAAM,QAAQ,CAAC;AAIvB,qBAAa,cAAc;IACzB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAa;IAEhD,MAAM,CAAC,OAAO;IAOd,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO;IAI9B,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS;IAM/D,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO;IAMhD,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI;IAO9B,MAAM,CAAC,KAAK,IAAI,IAAI;IAIpB,MAAM,CAAC,KAAK,kCAAsB,MAAM,YAAgB,MAAM,WAOrD;IAET,MAAM,CAAC,IAAI,EAAE,GAAG,CAAM;IACtB,MAAM,CAAC,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,SAAI;CAoBlF"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
import { default as EnvironmentWorker } from './workers/environment.worker?worker';
|
|
2
|
-
import { default as
|
|
2
|
+
import { default as Renderer2Worker } from './workers/renderer2.worker?worker';
|
|
3
|
+
import { default as Renderer3Worker } from './workers/renderer3.worker?worker';
|
|
3
4
|
import { default as defaultConfig } from './env/default-config.js';
|
|
4
5
|
export { GLOB } from './core/global.js';
|
|
5
6
|
export { Color, ColorsEnum } from './math/color.js';
|
|
6
|
-
export
|
|
7
|
-
export
|
|
7
|
+
export { Vector2 } from './math/vector2';
|
|
8
|
+
export type { Vector2Array } from './math/vector2';
|
|
9
|
+
export { Box2 } from './math/box2';
|
|
8
10
|
export { Monitor } from './core/monitor';
|
|
9
|
-
export { randomDelay } from './utils/utils.js';
|
|
10
|
-
export { AssetTypeEnum, LayerTypeEnum } from './env/enums';
|
|
11
|
+
export { randomDelay, getIdsByTree, getRandomString } from './utils/utils.js';
|
|
12
|
+
export { AssetTypeEnum, LayerTypeEnum, ASSET_TYPE_DUMMY } from './env/enums';
|
|
11
13
|
export { getAssetLayerByType, getAssetLabelByType, assetTypeConflicts } from './env/constants';
|
|
14
|
+
export { APP_ENUM } from './interfaces';
|
|
12
15
|
export type { ITree } from './interfaces';
|
|
13
16
|
export type { IApp, IDummyVo, IDummy } from './extras/interfaces';
|
|
14
17
|
export { AppEnum, SvgApp } from './extras/svg-app';
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
18
|
+
export { App2 } from './applications/app2';
|
|
19
|
+
export { polyfillHammerProxy } from './controls/el-proxy-hammer';
|
|
20
|
+
export { Label } from './extras/label';
|
|
21
|
+
export { App2Offscreen } from './applications/app2-offscreen';
|
|
22
|
+
export { defaultConfig, EnvironmentWorker, Renderer2Worker, Renderer3Worker };
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAE9E,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC/F,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC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