@antv/g 1.0.0-alpha.3 → 1.0.0-alpha.30
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/dist/index.umd.js +30 -0
- package/es/AbstractRenderer.d.ts +26 -0
- package/es/AbstractRenderer.js +42 -0
- package/es/Canvas.d.ts +96 -0
- package/es/Canvas.js +401 -0
- package/{dist → es}/DisplayObjectPool.d.ts +7 -6
- package/es/DisplayObjectPool.js +27 -0
- package/{dist → es/camera}/Camera.d.ts +279 -271
- package/es/camera/Camera.js +963 -0
- package/{dist → es/camera}/Landmark.d.ts +28 -28
- package/es/camera/Landmark.js +68 -0
- package/es/camera/index.d.ts +2 -0
- package/es/camera/index.js +2 -0
- package/es/canvas-module.d.ts +1 -0
- package/es/canvas-module.js +33 -0
- package/{dist → es}/components/Cullable.d.ts +15 -14
- package/es/components/Cullable.js +36 -0
- package/es/components/Geometry.d.ts +13 -0
- package/es/components/Geometry.js +17 -0
- package/{dist → es}/components/Renderable.d.ts +25 -36
- package/es/components/Renderable.js +26 -0
- package/es/components/Sortable.d.ts +17 -0
- package/es/components/Sortable.js +24 -0
- package/{dist → es}/components/Transform.d.ts +28 -28
- package/es/components/Transform.js +70 -0
- package/{dist → es}/components/index.d.ts +5 -7
- package/es/components/index.js +5 -0
- package/es/display-objects/Circle.d.ts +12 -0
- package/es/display-objects/Circle.js +26 -0
- package/es/display-objects/CustomElement.d.ts +25 -0
- package/es/display-objects/CustomElement.js +82 -0
- package/es/display-objects/DisplayObject.d.ts +258 -0
- package/es/display-objects/DisplayObject.js +857 -0
- package/es/display-objects/Ellipse.d.ts +14 -0
- package/es/display-objects/Ellipse.js +27 -0
- package/es/display-objects/Group.d.ts +6 -0
- package/es/display-objects/Group.js +27 -0
- package/es/display-objects/HTML.d.ts +36 -0
- package/es/display-objects/HTML.js +96 -0
- package/es/display-objects/Image.d.ts +16 -0
- package/es/display-objects/Image.js +25 -0
- package/es/display-objects/Line.d.ts +23 -0
- package/es/display-objects/Line.js +56 -0
- package/es/display-objects/Path.d.ts +47 -0
- package/es/display-objects/Path.js +132 -0
- package/es/display-objects/Polygon.d.ts +12 -0
- package/es/display-objects/Polygon.js +25 -0
- package/es/display-objects/Polyline.d.ts +21 -0
- package/es/display-objects/Polyline.js +75 -0
- package/es/display-objects/Rect.d.ts +16 -0
- package/es/display-objects/Rect.js +26 -0
- package/es/display-objects/Text.d.ts +65 -0
- package/es/display-objects/Text.js +61 -0
- package/es/display-objects/index.d.ts +13 -0
- package/es/display-objects/index.js +13 -0
- package/es/dom/Animation.d.ts +132 -0
- package/es/dom/Animation.js +498 -0
- package/es/dom/AnimationEffectTiming.d.ts +59 -0
- package/es/dom/AnimationEffectTiming.js +68 -0
- package/es/dom/AnimationEvent.d.ts +11 -0
- package/es/dom/AnimationEvent.js +34 -0
- package/es/dom/AnimationTimeline.d.ts +37 -0
- package/es/dom/AnimationTimeline.js +217 -0
- package/es/dom/CustomElementRegistry.d.ts +15 -0
- package/es/dom/CustomElementRegistry.js +42 -0
- package/es/dom/CustomEvent.d.ts +16 -0
- package/es/dom/CustomEvent.js +34 -0
- package/es/dom/Document.d.ts +59 -0
- package/es/dom/Document.js +167 -0
- package/es/dom/Element.d.ts +143 -0
- package/es/dom/Element.js +492 -0
- package/es/dom/EventTarget.d.ts +43 -0
- package/es/dom/EventTarget.js +161 -0
- package/{dist → es/dom}/FederatedEvent.d.ts +146 -102
- package/es/dom/FederatedEvent.js +232 -0
- package/{dist → es/dom}/FederatedMouseEvent.d.ts +52 -54
- package/es/dom/FederatedMouseEvent.js +124 -0
- package/{dist → es/dom}/FederatedPointerEvent.d.ts +69 -69
- package/es/dom/FederatedPointerEvent.js +53 -0
- package/{dist → es/dom}/FederatedWheelEvent.d.ts +20 -20
- package/es/dom/FederatedWheelEvent.js +27 -0
- package/es/dom/KeyframeEffect.d.ts +48 -0
- package/es/dom/KeyframeEffect.js +174 -0
- package/es/dom/KeyframeList.d.ts +2 -0
- package/es/dom/KeyframeList.js +176 -0
- package/es/dom/Node.d.ts +106 -0
- package/es/dom/Node.js +213 -0
- package/es/dom/index.d.ts +17 -0
- package/es/dom/index.js +17 -0
- package/es/dom/interfaces.d.ts +326 -0
- package/es/dom/interfaces.js +32 -0
- package/es/global-module.d.ts +2 -0
- package/es/global-module.js +159 -0
- package/es/index.d.ts +18 -0
- package/es/index.js +25 -0
- package/es/plugins/CullingPlugin.d.ts +19 -0
- package/es/plugins/CullingPlugin.js +80 -0
- package/es/plugins/DirtyCheckPlugin.d.ts +10 -0
- package/es/plugins/DirtyCheckPlugin.js +53 -0
- package/{dist → es}/plugins/EventPlugin.d.ts +26 -26
- package/es/plugins/EventPlugin.js +288 -0
- package/{dist → es}/plugins/FrustumCullingStrategy.d.ts +21 -21
- package/es/plugins/FrustumCullingStrategy.js +102 -0
- package/{dist → es}/plugins/PrepareRendererPlugin.d.ts +6 -7
- package/es/plugins/PrepareRendererPlugin.js +80 -0
- package/es/property-handlers/aabb.d.ts +2 -0
- package/es/property-handlers/aabb.js +135 -0
- package/es/property-handlers/anchor.d.ts +3 -0
- package/es/property-handlers/anchor.js +21 -0
- package/es/property-handlers/clipPath.d.ts +19 -0
- package/es/property-handlers/clipPath.js +36 -0
- package/es/property-handlers/color.d.ts +32 -0
- package/es/property-handlers/color.js +250 -0
- package/es/property-handlers/dimension.d.ts +18 -0
- package/es/property-handlers/dimension.js +123 -0
- package/es/property-handlers/filter.d.ts +9 -0
- package/es/property-handlers/filter.js +43 -0
- package/es/property-handlers/index.d.ts +17 -0
- package/es/property-handlers/index.js +17 -0
- package/es/property-handlers/interfaces.d.ts +20 -0
- package/es/property-handlers/interfaces.js +6 -0
- package/es/property-handlers/localPosition.d.ts +2 -0
- package/es/property-handlers/localPosition.js +9 -0
- package/es/property-handlers/numeric.d.ts +5 -0
- package/es/property-handlers/numeric.js +34 -0
- package/es/property-handlers/offsetDistance.d.ts +5 -0
- package/es/property-handlers/offsetDistance.js +20 -0
- package/es/property-handlers/offsetPath.d.ts +5 -0
- package/es/property-handlers/offsetPath.js +18 -0
- package/es/property-handlers/origin.d.ts +11 -0
- package/es/property-handlers/origin.js +68 -0
- package/es/property-handlers/path.d.ts +5 -0
- package/es/property-handlers/path.js +200 -0
- package/es/property-handlers/points.d.ts +6 -0
- package/es/property-handlers/points.js +23 -0
- package/es/property-handlers/transform.d.ts +45 -0
- package/es/property-handlers/transform.js +416 -0
- package/es/property-handlers/zIndex.d.ts +2 -0
- package/es/property-handlers/zIndex.js +17 -0
- package/{dist → es}/services/ContextService.d.ts +12 -10
- package/es/services/ContextService.js +5 -0
- package/es/services/EventService.d.ts +64 -0
- package/es/services/EventService.js +937 -0
- package/es/services/RenderingContext.d.ts +28 -0
- package/es/services/RenderingContext.js +13 -0
- package/{dist → es}/services/RenderingService.d.ts +51 -46
- package/es/services/RenderingService.js +145 -0
- package/es/services/SceneGraphSelector.d.ts +20 -0
- package/es/services/SceneGraphSelector.js +64 -0
- package/es/services/SceneGraphService.d.ts +146 -0
- package/es/services/SceneGraphService.js +805 -0
- package/es/services/aabb/CircleUpdater.d.ts +10 -0
- package/es/services/aabb/CircleUpdater.js +35 -0
- package/es/services/aabb/EllipseUpdater.d.ts +10 -0
- package/es/services/aabb/EllipseUpdater.js +37 -0
- package/es/services/aabb/LineUpdater.d.ts +10 -0
- package/es/services/aabb/LineUpdater.js +39 -0
- package/es/services/aabb/PathUpdater.d.ts +11 -0
- package/es/services/aabb/PathUpdater.js +172 -0
- package/es/services/aabb/PolylineUpdater.d.ts +10 -0
- package/es/services/aabb/PolylineUpdater.js +48 -0
- package/es/services/aabb/RectUpdater.d.ts +10 -0
- package/es/services/aabb/RectUpdater.js +55 -0
- package/es/services/aabb/TextUpdater.d.ts +13 -0
- package/es/services/aabb/TextUpdater.js +81 -0
- package/es/services/aabb/index.d.ts +8 -0
- package/es/services/aabb/index.js +8 -0
- package/es/services/aabb/interfaces.d.ts +16 -0
- package/es/services/aabb/interfaces.js +2 -0
- package/{dist → es}/services/index.d.ts +10 -10
- package/es/services/index.js +10 -0
- package/es/services/text/OffscreenCanvasCreator.d.ts +6 -0
- package/es/services/text/OffscreenCanvasCreator.js +47 -0
- package/{dist → es}/services/text/index.d.ts +35 -32
- package/es/services/text/index.js +355 -0
- package/{dist → es}/shapes/AABB.d.ts +33 -32
- package/es/shapes/AABB.js +217 -0
- package/{dist → es}/shapes/BoundingSphere.d.ts +8 -8
- package/es/shapes/BoundingSphere.js +31 -0
- package/{dist → es}/shapes/Frustum.d.ts +16 -16
- package/es/shapes/Frustum.js +79 -0
- package/{dist → es}/shapes/Plane.d.ts +14 -14
- package/es/shapes/Plane.js +42 -0
- package/{dist → es}/shapes/Point.d.ts +11 -7
- package/es/shapes/Point.js +31 -0
- package/es/shapes/Polygon.d.ts +9 -0
- package/es/shapes/Polygon.js +64 -0
- package/{dist → es}/shapes/Ray.d.ts +24 -24
- package/es/shapes/Ray.js +138 -0
- package/es/shapes/Rect.d.ts +12 -0
- package/es/shapes/Rect.js +24 -0
- package/es/shapes/Rectangle.d.ts +12 -0
- package/es/shapes/Rectangle.js +20 -0
- package/es/shapes/index.d.ts +8 -0
- package/{dist/shapes/index.d.ts → es/shapes/index.js} +8 -5
- package/{dist → es}/types.d.ts +219 -241
- package/es/types.js +17 -0
- package/es/utils/animation.d.ts +15 -0
- package/es/utils/animation.js +251 -0
- package/es/utils/bezier-easing.d.ts +20 -0
- package/es/utils/bezier-easing.js +90 -0
- package/{dist → es}/utils/canvas.d.ts +5 -5
- package/es/utils/canvas.js +15 -0
- package/es/utils/custom-easing.d.ts +75 -0
- package/es/utils/custom-easing.js +332 -0
- package/{dist → es}/utils/event.d.ts +11 -11
- package/es/utils/event.js +69 -0
- package/es/utils/index.d.ts +5 -0
- package/es/utils/index.js +5 -0
- package/es/utils/interpolation.d.ts +3 -0
- package/es/utils/interpolation.js +182 -0
- package/{dist → es}/utils/math.d.ts +22 -22
- package/es/utils/math.js +141 -0
- package/es/utils/path.d.ts +15 -0
- package/es/utils/path.js +333 -0
- package/es/utils/raf.d.ts +3 -0
- package/es/utils/raf.js +15 -0
- package/es/utils/text.d.ts +2 -0
- package/es/utils/text.js +32 -0
- package/lib/AbstractRenderer.d.ts +26 -0
- package/lib/AbstractRenderer.js +49 -0
- package/lib/Canvas.d.ts +96 -0
- package/lib/Canvas.js +423 -0
- package/lib/DisplayObjectPool.d.ts +7 -0
- package/lib/DisplayObjectPool.js +35 -0
- package/lib/camera/Camera.d.ts +279 -0
- package/lib/camera/Camera.js +1035 -0
- package/lib/camera/Landmark.d.ts +28 -0
- package/lib/camera/Landmark.js +75 -0
- package/lib/camera/index.d.ts +2 -0
- package/lib/camera/index.js +31 -0
- package/lib/canvas-module.d.ts +1 -0
- package/lib/canvas-module.js +48 -0
- package/lib/components/Cullable.d.ts +15 -0
- package/lib/components/Cullable.js +45 -0
- package/lib/components/Geometry.d.ts +13 -0
- package/lib/components/Geometry.js +25 -0
- package/lib/components/Renderable.d.ts +25 -0
- package/lib/components/Renderable.js +34 -0
- package/lib/components/Sortable.d.ts +17 -0
- package/lib/components/Sortable.js +32 -0
- package/lib/components/Transform.d.ts +28 -0
- package/lib/components/Transform.js +79 -0
- package/lib/components/index.d.ts +5 -0
- package/lib/components/index.js +70 -0
- package/lib/display-objects/Circle.d.ts +12 -0
- package/lib/display-objects/Circle.js +34 -0
- package/lib/display-objects/CustomElement.d.ts +25 -0
- package/lib/display-objects/CustomElement.js +91 -0
- package/lib/display-objects/DisplayObject.d.ts +258 -0
- package/lib/display-objects/DisplayObject.js +879 -0
- package/lib/display-objects/Ellipse.d.ts +14 -0
- package/lib/display-objects/Ellipse.js +35 -0
- package/lib/display-objects/Group.d.ts +6 -0
- package/lib/display-objects/Group.js +36 -0
- package/lib/display-objects/HTML.d.ts +36 -0
- package/lib/display-objects/HTML.js +109 -0
- package/lib/display-objects/Image.d.ts +16 -0
- package/lib/display-objects/Image.js +33 -0
- package/lib/display-objects/Line.d.ts +23 -0
- package/lib/display-objects/Line.js +68 -0
- package/lib/display-objects/Path.d.ts +47 -0
- package/lib/display-objects/Path.js +143 -0
- package/lib/display-objects/Polygon.d.ts +12 -0
- package/lib/display-objects/Polygon.js +33 -0
- package/lib/display-objects/Polyline.d.ts +21 -0
- package/lib/display-objects/Polyline.js +85 -0
- package/lib/display-objects/Rect.d.ts +16 -0
- package/lib/display-objects/Rect.js +34 -0
- package/lib/display-objects/Text.d.ts +65 -0
- package/lib/display-objects/Text.js +69 -0
- package/lib/display-objects/index.d.ts +13 -0
- package/lib/display-objects/index.js +174 -0
- package/lib/dom/Animation.d.ts +132 -0
- package/lib/dom/Animation.js +506 -0
- package/lib/dom/AnimationEffectTiming.d.ts +59 -0
- package/lib/dom/AnimationEffectTiming.js +75 -0
- package/lib/dom/AnimationEvent.d.ts +11 -0
- package/lib/dom/AnimationEvent.js +42 -0
- package/lib/dom/AnimationTimeline.d.ts +37 -0
- package/lib/dom/AnimationTimeline.js +229 -0
- package/lib/dom/CustomElementRegistry.d.ts +15 -0
- package/lib/dom/CustomElementRegistry.js +50 -0
- package/lib/dom/CustomEvent.d.ts +16 -0
- package/lib/dom/CustomEvent.js +42 -0
- package/lib/dom/Document.d.ts +59 -0
- package/lib/dom/Document.js +177 -0
- package/lib/dom/Element.d.ts +143 -0
- package/lib/dom/Element.js +505 -0
- package/lib/dom/EventTarget.d.ts +43 -0
- package/lib/dom/EventTarget.js +179 -0
- package/lib/dom/FederatedEvent.d.ts +146 -0
- package/lib/dom/FederatedEvent.js +239 -0
- package/lib/dom/FederatedMouseEvent.d.ts +52 -0
- package/lib/dom/FederatedMouseEvent.js +133 -0
- package/lib/dom/FederatedPointerEvent.d.ts +69 -0
- package/lib/dom/FederatedPointerEvent.js +61 -0
- package/lib/dom/FederatedWheelEvent.d.ts +20 -0
- package/lib/dom/FederatedWheelEvent.js +35 -0
- package/lib/dom/KeyframeEffect.d.ts +48 -0
- package/lib/dom/KeyframeEffect.js +192 -0
- package/lib/dom/KeyframeList.d.ts +2 -0
- package/lib/dom/KeyframeList.js +183 -0
- package/lib/dom/Node.d.ts +106 -0
- package/lib/dom/Node.js +221 -0
- package/lib/dom/__tests__/utils/easing.d.ts +14 -0
- package/lib/dom/__tests__/utils/keyframe.d.ts +38 -0
- package/lib/dom/index.d.ts +17 -0
- package/lib/dom/index.js +226 -0
- package/lib/dom/interfaces.d.ts +326 -0
- package/lib/dom/interfaces.js +40 -0
- package/lib/global-module.d.ts +2 -0
- package/lib/global-module.js +177 -0
- package/lib/index.d.ts +18 -0
- package/lib/index.js +222 -0
- package/lib/plugins/CullingPlugin.d.ts +19 -0
- package/lib/plugins/CullingPlugin.js +92 -0
- package/lib/plugins/DirtyCheckPlugin.d.ts +10 -0
- package/lib/plugins/DirtyCheckPlugin.js +62 -0
- package/lib/plugins/EventPlugin.d.ts +26 -0
- package/lib/plugins/EventPlugin.js +297 -0
- package/lib/plugins/FrustumCullingStrategy.d.ts +21 -0
- package/lib/plugins/FrustumCullingStrategy.js +116 -0
- package/lib/plugins/PrepareRendererPlugin.d.ts +6 -0
- package/lib/plugins/PrepareRendererPlugin.js +88 -0
- package/lib/property-handlers/aabb.d.ts +2 -0
- package/lib/property-handlers/aabb.js +152 -0
- package/lib/property-handlers/anchor.d.ts +3 -0
- package/lib/property-handlers/anchor.js +34 -0
- package/lib/property-handlers/clipPath.d.ts +19 -0
- package/lib/property-handlers/clipPath.js +43 -0
- package/lib/property-handlers/color.d.ts +32 -0
- package/lib/property-handlers/color.js +271 -0
- package/lib/property-handlers/dimension.d.ts +18 -0
- package/lib/property-handlers/dimension.js +144 -0
- package/lib/property-handlers/filter.d.ts +9 -0
- package/lib/property-handlers/filter.js +56 -0
- package/lib/property-handlers/index.d.ts +17 -0
- package/lib/property-handlers/index.js +213 -0
- package/lib/property-handlers/interfaces.d.ts +20 -0
- package/lib/property-handlers/interfaces.js +18 -0
- package/lib/property-handlers/localPosition.d.ts +2 -0
- package/lib/property-handlers/localPosition.js +16 -0
- package/lib/property-handlers/numeric.d.ts +5 -0
- package/lib/property-handlers/numeric.js +50 -0
- package/lib/property-handlers/offsetDistance.d.ts +5 -0
- package/lib/property-handlers/offsetDistance.js +27 -0
- package/lib/property-handlers/offsetPath.d.ts +5 -0
- package/lib/property-handlers/offsetPath.js +25 -0
- package/lib/property-handlers/origin.d.ts +11 -0
- package/lib/property-handlers/origin.js +79 -0
- package/lib/property-handlers/path.d.ts +5 -0
- package/lib/property-handlers/path.js +214 -0
- package/lib/property-handlers/points.d.ts +6 -0
- package/lib/property-handlers/points.js +33 -0
- package/lib/property-handlers/transform.d.ts +45 -0
- package/lib/property-handlers/transform.js +430 -0
- package/lib/property-handlers/zIndex.d.ts +2 -0
- package/lib/property-handlers/zIndex.js +25 -0
- package/lib/services/ContextService.d.ts +12 -0
- package/lib/services/ContextService.js +15 -0
- package/lib/services/EventService.d.ts +64 -0
- package/lib/services/EventService.js +961 -0
- package/lib/services/RenderingContext.d.ts +28 -0
- package/lib/services/RenderingContext.js +22 -0
- package/lib/services/RenderingService.d.ts +51 -0
- package/lib/services/RenderingService.js +159 -0
- package/lib/services/SceneGraphSelector.d.ts +20 -0
- package/lib/services/SceneGraphSelector.js +76 -0
- package/lib/services/SceneGraphService.d.ts +146 -0
- package/lib/services/SceneGraphService.js +854 -0
- package/lib/services/aabb/CircleUpdater.d.ts +10 -0
- package/lib/services/aabb/CircleUpdater.js +45 -0
- package/lib/services/aabb/EllipseUpdater.d.ts +10 -0
- package/lib/services/aabb/EllipseUpdater.js +47 -0
- package/lib/services/aabb/LineUpdater.d.ts +10 -0
- package/lib/services/aabb/LineUpdater.js +49 -0
- package/lib/services/aabb/PathUpdater.d.ts +11 -0
- package/lib/services/aabb/PathUpdater.js +183 -0
- package/lib/services/aabb/PolylineUpdater.d.ts +10 -0
- package/lib/services/aabb/PolylineUpdater.js +58 -0
- package/lib/services/aabb/RectUpdater.d.ts +10 -0
- package/lib/services/aabb/RectUpdater.js +66 -0
- package/lib/services/aabb/TextUpdater.d.ts +13 -0
- package/lib/services/aabb/TextUpdater.js +93 -0
- package/lib/services/aabb/index.d.ts +8 -0
- package/lib/services/aabb/index.js +84 -0
- package/lib/services/aabb/interfaces.d.ts +16 -0
- package/lib/services/aabb/interfaces.js +10 -0
- package/lib/services/index.d.ts +10 -0
- package/lib/services/index.js +122 -0
- package/lib/services/text/OffscreenCanvasCreator.d.ts +6 -0
- package/lib/services/text/OffscreenCanvasCreator.js +55 -0
- package/lib/services/text/index.d.ts +35 -0
- package/lib/services/text/index.js +364 -0
- package/lib/shapes/AABB.d.ts +33 -0
- package/lib/shapes/AABB.js +235 -0
- package/lib/shapes/BoundingSphere.d.ts +8 -0
- package/lib/shapes/BoundingSphere.js +41 -0
- package/lib/shapes/Frustum.d.ts +16 -0
- package/lib/shapes/Frustum.js +96 -0
- package/lib/shapes/Plane.d.ts +14 -0
- package/lib/shapes/Plane.js +51 -0
- package/lib/shapes/Point.d.ts +11 -0
- package/lib/shapes/Point.js +38 -0
- package/lib/shapes/Polygon.d.ts +9 -0
- package/lib/shapes/Polygon.js +71 -0
- package/lib/shapes/Ray.d.ts +24 -0
- package/lib/shapes/Ray.js +169 -0
- package/lib/shapes/Rect.d.ts +12 -0
- package/lib/shapes/Rect.js +31 -0
- package/lib/shapes/Rectangle.d.ts +12 -0
- package/lib/shapes/Rectangle.js +27 -0
- package/lib/shapes/index.d.ts +8 -0
- package/lib/shapes/index.js +109 -0
- package/lib/types.d.ts +219 -0
- package/lib/types.js +25 -0
- package/lib/utils/animation.d.ts +15 -0
- package/lib/utils/animation.js +275 -0
- package/lib/utils/bezier-easing.d.ts +20 -0
- package/lib/utils/bezier-easing.js +128 -0
- package/lib/utils/canvas.d.ts +5 -0
- package/lib/utils/canvas.js +21 -0
- package/lib/utils/custom-easing.d.ts +75 -0
- package/lib/utils/custom-easing.js +415 -0
- package/lib/utils/event.d.ts +11 -0
- package/lib/utils/event.js +88 -0
- package/lib/utils/index.d.ts +5 -0
- package/lib/utils/index.js +70 -0
- package/lib/utils/interpolation.d.ts +3 -0
- package/lib/utils/interpolation.js +197 -0
- package/lib/utils/math.d.ts +22 -0
- package/lib/utils/math.js +166 -0
- package/lib/utils/path.d.ts +15 -0
- package/lib/utils/path.js +359 -0
- package/lib/utils/raf.d.ts +3 -0
- package/lib/utils/raf.js +21 -0
- package/lib/utils/text.d.ts +2 -0
- package/lib/utils/text.js +41 -0
- package/package.json +19 -20
- package/dist/AbstractRenderer.d.ts +0 -22
- package/dist/Batch.d.ts +0 -22
- package/dist/Canvas.d.ts +0 -56
- package/dist/CustomElement.d.ts +0 -13
- package/dist/DisplayObject.d.ts +0 -342
- package/dist/__tests__/circle.spec.d.ts +0 -1
- package/dist/__tests__/display-object.event.spec.d.ts +0 -1
- package/dist/__tests__/display-object.node.spec.d.ts +0 -1
- package/dist/__tests__/display-object.sort.spec.d.ts +0 -1
- package/dist/__tests__/display-object.spec.d.ts +0 -1
- package/dist/__tests__/display-object.visibility.spec.d.ts +0 -1
- package/dist/__tests__/event.spec.d.ts +0 -1
- package/dist/canvas-module.d.ts +0 -2
- package/dist/components/Animator.d.ts +0 -12
- package/dist/components/Geometry.d.ts +0 -6
- package/dist/components/SceneGraphNode.d.ts +0 -39
- package/dist/components/Sortable.d.ts +0 -17
- package/dist/contribution-provider.d.ts +0 -17
- package/dist/global-module.d.ts +0 -2
- package/dist/index.d.ts +0 -16
- package/dist/index.esm.js +0 -9199
- package/dist/index.js +0 -9262
- package/dist/inversify.config.d.ts +0 -7
- package/dist/plugins/CullingPlugin.d.ts +0 -16
- package/dist/plugins/DirtyCheckPlugin.d.ts +0 -19
- package/dist/plugins/SortPlugin.d.ts +0 -8
- package/dist/services/EventService.d.ts +0 -44
- package/dist/services/RenderingContext.d.ts +0 -31
- package/dist/services/SceneGraphSelector.d.ts +0 -18
- package/dist/services/SceneGraphService.d.ts +0 -101
- package/dist/services/aabb/CircleUpdater.d.ts +0 -7
- package/dist/services/aabb/EllipseUpdater.d.ts +0 -7
- package/dist/services/aabb/LineUpdater.d.ts +0 -7
- package/dist/services/aabb/PathUpdater.d.ts +0 -7
- package/dist/services/aabb/PolylineUpdater.d.ts +0 -7
- package/dist/services/aabb/RectUpdater.d.ts +0 -7
- package/dist/services/aabb/TextUpdater.d.ts +0 -8
- package/dist/services/aabb/index.d.ts +0 -15
- package/dist/services/text/OffscreenCanvasCreator.d.ts +0 -6
- package/dist/shapes/__tests__/aabb.spec.d.ts +0 -1
- package/dist/shapes/__tests__/boundingSphere.spec.d.ts +0 -1
- package/dist/shapes/__tests__/frustum.spec.d.ts +0 -1
- package/dist/shapes/__tests__/plane.spec.d.ts +0 -1
- package/dist/shapes/__tests__/ray.spec.d.ts +0 -1
- package/dist/shapes-export.d.ts +0 -32
- package/dist/systems/Timeline.d.ts +0 -40
- package/dist/systems/index.d.ts +0 -1
- package/dist/utils/color.d.ts +0 -2
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/path.d.ts +0 -12
- package/dist/utils/text.d.ts +0 -2
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import 'reflect-metadata';
|
|
2
|
-
import { Container } from 'inversify';
|
|
3
|
-
import { World } from '@antv/g-ecs';
|
|
4
|
-
export declare const CanvasContainerModuleFactory: unique symbol;
|
|
5
|
-
declare const container: Container;
|
|
6
|
-
declare const world: World;
|
|
7
|
-
export { world, container };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DisplayObject } from '../DisplayObject';
|
|
2
|
-
import { RenderingService, RenderingPlugin } from '../services/RenderingService';
|
|
3
|
-
export declare const CullingStrategy: unique symbol;
|
|
4
|
-
export interface CullingStrategy {
|
|
5
|
-
isVisible(object: DisplayObject): boolean;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* apply following rules:
|
|
9
|
-
* 1. `visibility` in scenegraph node
|
|
10
|
-
* 2. other custom culling strategies, eg. frustum culling
|
|
11
|
-
*/
|
|
12
|
-
export declare class CullingPlugin implements RenderingPlugin {
|
|
13
|
-
static tag: string;
|
|
14
|
-
private strategies;
|
|
15
|
-
apply(renderer: RenderingService): void;
|
|
16
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { RenderingService, RenderingPlugin } from '../services/RenderingService';
|
|
2
|
-
/**
|
|
3
|
-
* Filter dirty renderables and calculate the "dirty rectangle" which will be clear when frame began
|
|
4
|
-
*/
|
|
5
|
-
export declare class DirtyCheckPlugin implements RenderingPlugin {
|
|
6
|
-
static tag: string;
|
|
7
|
-
private canvasConfig;
|
|
8
|
-
private sceneGraphService;
|
|
9
|
-
private renderingContext;
|
|
10
|
-
private displayObjectPool;
|
|
11
|
-
private handleEntityAABBChanged;
|
|
12
|
-
apply(renderer: RenderingService): void;
|
|
13
|
-
/**
|
|
14
|
-
* TODO: merge dirty rectangles with some strategies.
|
|
15
|
-
* For now, we just simply merge all the rectangles into one.
|
|
16
|
-
* @see https://idom.me/articles/841.html
|
|
17
|
-
*/
|
|
18
|
-
private mergeDirtyRectangles;
|
|
19
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import EventEmitter from 'eventemitter3';
|
|
2
|
-
import { DisplayObject } from '../DisplayObject';
|
|
3
|
-
import { FederatedEvent } from '../FederatedEvent';
|
|
4
|
-
import { Cursor, EventPosition } from '../types';
|
|
5
|
-
declare type Picker = (position: EventPosition) => DisplayObject | null;
|
|
6
|
-
export declare class EventService extends EventEmitter {
|
|
7
|
-
private renderingContext;
|
|
8
|
-
private rootTarget;
|
|
9
|
-
cursor: Cursor | null;
|
|
10
|
-
private mappingTable;
|
|
11
|
-
private mappingState;
|
|
12
|
-
private eventPool;
|
|
13
|
-
private pickHandler;
|
|
14
|
-
init(): void;
|
|
15
|
-
setPickHandler(pickHandler: Picker): void;
|
|
16
|
-
addEventMapping(type: string, fn: (e: FederatedEvent) => void): void;
|
|
17
|
-
mapEvent(e: FederatedEvent): void;
|
|
18
|
-
onPointerDown: (from: FederatedEvent) => void;
|
|
19
|
-
onPointerUp: (from: FederatedEvent) => void;
|
|
20
|
-
onPointerMove: (from: FederatedEvent) => void;
|
|
21
|
-
onPointerOut: (from: FederatedEvent) => void;
|
|
22
|
-
onPointerOver: (from: FederatedEvent) => void;
|
|
23
|
-
onPointerUpOutside: (from: FederatedEvent) => void;
|
|
24
|
-
onWheel: (from: FederatedEvent) => void;
|
|
25
|
-
dispatchEvent(e: FederatedEvent, type?: string): void;
|
|
26
|
-
propagate(e: FederatedEvent, type?: string): void;
|
|
27
|
-
propagationPath(target: DisplayObject): DisplayObject[];
|
|
28
|
-
hitTest(position: EventPosition): DisplayObject | null;
|
|
29
|
-
private createPointerEvent;
|
|
30
|
-
private createWheelEvent;
|
|
31
|
-
private trackingData;
|
|
32
|
-
private clonePointerEvent;
|
|
33
|
-
private copyPointerData;
|
|
34
|
-
private copyMouseData;
|
|
35
|
-
private copyWheelData;
|
|
36
|
-
private copyData;
|
|
37
|
-
private allocateEvent;
|
|
38
|
-
private freeEvent;
|
|
39
|
-
private notifyTarget;
|
|
40
|
-
private notifyListeners;
|
|
41
|
-
private findMountedTarget;
|
|
42
|
-
private getCursor;
|
|
43
|
-
}
|
|
44
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import RBush from 'rbush';
|
|
2
|
-
import { RBushNode } from '../components';
|
|
3
|
-
import { DisplayObject } from '../DisplayObject';
|
|
4
|
-
import { AABB } from '../shapes';
|
|
5
|
-
export declare const RenderingContext: unique symbol;
|
|
6
|
-
export interface RenderingContext {
|
|
7
|
-
/**
|
|
8
|
-
* root of scenegraph
|
|
9
|
-
*/
|
|
10
|
-
root: DisplayObject;
|
|
11
|
-
/**
|
|
12
|
-
* force rendering at next frame
|
|
13
|
-
*/
|
|
14
|
-
force: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* spatial index with RTree which can speed up the search for AABBs
|
|
17
|
-
*/
|
|
18
|
-
rBush: RBush<RBushNode>;
|
|
19
|
-
/**
|
|
20
|
-
* all the entities
|
|
21
|
-
*/
|
|
22
|
-
displayObjects: DisplayObject[];
|
|
23
|
-
dirtyRectangle: AABB | undefined;
|
|
24
|
-
dirtyDisplayObjects: DisplayObject[];
|
|
25
|
-
removedAABBs: AABB[];
|
|
26
|
-
/**
|
|
27
|
-
* picked object in last frame
|
|
28
|
-
*/
|
|
29
|
-
lastPickedDisplayObject: DisplayObject | undefined;
|
|
30
|
-
cameraDirty: boolean;
|
|
31
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { DisplayObject } from '../DisplayObject';
|
|
2
|
-
export declare const SceneGraphSelectorFactory: unique symbol;
|
|
3
|
-
export declare const SceneGraphSelector: unique symbol;
|
|
4
|
-
export interface SceneGraphSelector {
|
|
5
|
-
selectOne(query: string, object: DisplayObject): DisplayObject | null;
|
|
6
|
-
selectAll(query: string, object: DisplayObject): DisplayObject[];
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* support following DOM API
|
|
10
|
-
* * getElementById
|
|
11
|
-
* * getElementsByClassName
|
|
12
|
-
* * getElementsByName
|
|
13
|
-
* * getElementsByTag
|
|
14
|
-
*/
|
|
15
|
-
export declare class DefaultSceneGraphSelector implements SceneGraphSelector {
|
|
16
|
-
selectOne(query: string, object: DisplayObject): DisplayObject | null;
|
|
17
|
-
selectAll(query: string, object: DisplayObject): DisplayObject[];
|
|
18
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { Entity } from '@antv/g-ecs';
|
|
2
|
-
import EventEmitter from 'eventemitter3';
|
|
3
|
-
import { Transform } from '../components/Transform';
|
|
4
|
-
import { mat4, quat, vec3 } from 'gl-matrix';
|
|
5
|
-
import { DisplayObject } from '../DisplayObject';
|
|
6
|
-
import { AABB } from '../shapes';
|
|
7
|
-
export declare enum SCENE_GRAPH_EVENT {
|
|
8
|
-
AABBChanged = "AABBChanged"
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* update transform in scene graph
|
|
12
|
-
*
|
|
13
|
-
* @see https://community.khronos.org/t/scene-graphs/50542/7
|
|
14
|
-
*/
|
|
15
|
-
export declare class SceneGraphService extends EventEmitter {
|
|
16
|
-
private sceneGraphSelectorFactory;
|
|
17
|
-
querySelector(query: string, root: DisplayObject): DisplayObject | null;
|
|
18
|
-
querySelectorAll(query: string, root: DisplayObject): DisplayObject[];
|
|
19
|
-
attach(entity: Entity, parentEntity: Entity, index?: number): void;
|
|
20
|
-
detach(entity: Entity): void;
|
|
21
|
-
/**
|
|
22
|
-
* compare two display objects by hierarchy-index and z-index
|
|
23
|
-
*
|
|
24
|
-
* use materialized path
|
|
25
|
-
* @see https://stackoverflow.com/questions/31470730/comparing-tree-nodes
|
|
26
|
-
*/
|
|
27
|
-
sort: (object1: DisplayObject, object2: DisplayObject) => number;
|
|
28
|
-
private getDepth;
|
|
29
|
-
setOrigin(entity: Entity, origin: vec3 | number, y?: number, z?: number): void;
|
|
30
|
-
/**
|
|
31
|
-
* rotate in world space
|
|
32
|
-
*/
|
|
33
|
-
rotate: (entity: Entity, degrees: vec3 | number, y?: number, z?: number) => void;
|
|
34
|
-
/**
|
|
35
|
-
* rotate in local space
|
|
36
|
-
* @see @see https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-xmquaternionrotationrollpitchyaw
|
|
37
|
-
*/
|
|
38
|
-
rotateLocal: (entity: Entity, degrees: vec3 | number, y?: number, z?: number) => void;
|
|
39
|
-
/**
|
|
40
|
-
* set euler angles(degrees) in world space
|
|
41
|
-
*/
|
|
42
|
-
setEulerAngles: (entity: Entity, degrees: vec3 | number, y?: number, z?: number) => void;
|
|
43
|
-
/**
|
|
44
|
-
* set euler angles(degrees) in local space
|
|
45
|
-
*/
|
|
46
|
-
setLocalEulerAngles(entity: Entity, degrees: vec3 | number, y?: number, z?: number): void;
|
|
47
|
-
/**
|
|
48
|
-
* translate in local space
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* ```
|
|
52
|
-
* translateLocal(x, y, z)
|
|
53
|
-
* translateLocal(vec3(x, y, z))
|
|
54
|
-
* ```
|
|
55
|
-
*/
|
|
56
|
-
translateLocal: (entity: Entity, translation: vec3 | number, y?: number, z?: number) => void;
|
|
57
|
-
/**
|
|
58
|
-
* move to position in world space
|
|
59
|
-
*
|
|
60
|
-
* 对应 g 原版的 move/moveTo
|
|
61
|
-
* @see https://github.com/antvis/g/blob/master/packages/g-base/src/abstract/element.ts#L684-L689
|
|
62
|
-
*/
|
|
63
|
-
setPosition: (entity: Entity, position: vec3 | number, y?: number, z?: number) => void;
|
|
64
|
-
/**
|
|
65
|
-
* move to position in local space
|
|
66
|
-
*/
|
|
67
|
-
setLocalPosition(entity: Entity, position: vec3 | number, y?: number, z?: number): void;
|
|
68
|
-
/**
|
|
69
|
-
* scale in local space
|
|
70
|
-
*/
|
|
71
|
-
scaleLocal(entity: Entity, scaling: vec3 | number, y?: number, z?: number): void;
|
|
72
|
-
setLocalScale(entity: Entity, scaling: vec3 | number, y?: number, z?: number): void;
|
|
73
|
-
/**
|
|
74
|
-
* translate in world space
|
|
75
|
-
*
|
|
76
|
-
* @example
|
|
77
|
-
* ```
|
|
78
|
-
* translate(x, y, z)
|
|
79
|
-
* translate(vec3(x, y, z))
|
|
80
|
-
* ```
|
|
81
|
-
*
|
|
82
|
-
* 对应 g 原版的 translate 2D
|
|
83
|
-
* @see https://github.com/antvis/g/blob/master/packages/g-base/src/abstract/element.ts#L665-L676
|
|
84
|
-
*/
|
|
85
|
-
translate: (entity: Entity, translation: vec3 | number, y?: number, z?: number) => void;
|
|
86
|
-
dirtifyLocal(entity: Entity, transform: Transform): void;
|
|
87
|
-
dirtifyWorld(entity: Entity, transform: Transform): void;
|
|
88
|
-
getPosition(entity: Entity): vec3;
|
|
89
|
-
getRotation(entity: Entity): quat;
|
|
90
|
-
getScale(entity: Entity): vec3;
|
|
91
|
-
getWorldTransform(entity: Entity, transform?: Transform): mat4;
|
|
92
|
-
getLocalPosition(entity: Entity): vec3;
|
|
93
|
-
getLocalRotation(entity: Entity): import("gl-matrix").vec4;
|
|
94
|
-
getLocalScale(entity: Entity): vec3;
|
|
95
|
-
getLocalTransform(entity: Entity): mat4;
|
|
96
|
-
getLocalBounds(entity: Entity): AABB | null;
|
|
97
|
-
getBounds(entity: Entity): AABB | null;
|
|
98
|
-
private dirtifyAABBToRoot;
|
|
99
|
-
private dirtifyWorldInternal;
|
|
100
|
-
private updateTransform;
|
|
101
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { GeometryAABBUpdater } from '.';
|
|
2
|
-
import { AABB } from '../../shapes';
|
|
3
|
-
import { ShapeAttrs } from '../../types';
|
|
4
|
-
export declare class CircleUpdater implements GeometryAABBUpdater {
|
|
5
|
-
dependencies: string[];
|
|
6
|
-
update(attributes: ShapeAttrs, aabb: AABB): void;
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { GeometryAABBUpdater } from '.';
|
|
2
|
-
import { AABB } from '../../shapes';
|
|
3
|
-
import { ShapeAttrs } from '../../types';
|
|
4
|
-
export declare class EllipseUpdater implements GeometryAABBUpdater {
|
|
5
|
-
dependencies: string[];
|
|
6
|
-
update(attributes: ShapeAttrs, aabb: AABB): void;
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { GeometryAABBUpdater } from '.';
|
|
2
|
-
import { AABB } from '../../shapes';
|
|
3
|
-
import { ShapeAttrs } from '../../types';
|
|
4
|
-
export declare class LineUpdater implements GeometryAABBUpdater {
|
|
5
|
-
dependencies: string[];
|
|
6
|
-
update(attributes: ShapeAttrs, aabb: AABB): void;
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { GeometryAABBUpdater } from '.';
|
|
2
|
-
import { AABB } from '../../shapes';
|
|
3
|
-
import { ShapeAttrs } from '../../types';
|
|
4
|
-
export declare class PathUpdater implements GeometryAABBUpdater {
|
|
5
|
-
dependencies: string[];
|
|
6
|
-
update(attributes: ShapeAttrs, aabb: AABB): void;
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { GeometryAABBUpdater } from '.';
|
|
2
|
-
import { AABB } from '../../shapes';
|
|
3
|
-
import { ShapeAttrs } from '../../types';
|
|
4
|
-
export declare class PolylineUpdater implements GeometryAABBUpdater {
|
|
5
|
-
dependencies: string[];
|
|
6
|
-
update(attributes: ShapeAttrs, aabb: AABB): void;
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { GeometryAABBUpdater } from '.';
|
|
2
|
-
import { AABB } from '../../shapes';
|
|
3
|
-
import { ShapeAttrs } from '../../types';
|
|
4
|
-
export declare class RectUpdater implements GeometryAABBUpdater {
|
|
5
|
-
dependencies: string[];
|
|
6
|
-
update(attributes: ShapeAttrs, aabb: AABB): void;
|
|
7
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { GeometryAABBUpdater } from '.';
|
|
2
|
-
import { AABB } from '../../shapes';
|
|
3
|
-
import { ShapeAttrs } from '../../types';
|
|
4
|
-
export declare class TextUpdater implements GeometryAABBUpdater {
|
|
5
|
-
dependencies: string[];
|
|
6
|
-
private textService;
|
|
7
|
-
update(attributes: ShapeAttrs, aabb: AABB): void;
|
|
8
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { AABB } from '../../shapes';
|
|
2
|
-
import { ShapeAttrs } from '../../types';
|
|
3
|
-
export declare const GeometryUpdaterFactory: unique symbol;
|
|
4
|
-
export declare const GeometryAABBUpdater: unique symbol;
|
|
5
|
-
export interface GeometryAABBUpdater {
|
|
6
|
-
dependencies: string[];
|
|
7
|
-
update(attributes: ShapeAttrs, aabb: AABB): void;
|
|
8
|
-
}
|
|
9
|
-
export { CircleUpdater } from './CircleUpdater';
|
|
10
|
-
export { EllipseUpdater } from './EllipseUpdater';
|
|
11
|
-
export { RectUpdater } from './RectUpdater';
|
|
12
|
-
export { TextUpdater } from './TextUpdater';
|
|
13
|
-
export { LineUpdater } from './LineUpdater';
|
|
14
|
-
export { PolylineUpdater } from './PolylineUpdater';
|
|
15
|
-
export { PathUpdater } from './PathUpdater';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/shapes-export.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { DisplayObject } from './DisplayObject';
|
|
2
|
-
import { GroupCfg, ShapeCfg } from './types';
|
|
3
|
-
export declare class Group extends DisplayObject {
|
|
4
|
-
constructor(config?: GroupCfg);
|
|
5
|
-
}
|
|
6
|
-
export declare class Circle extends DisplayObject {
|
|
7
|
-
constructor({ attrs, ...rest }: ShapeCfg);
|
|
8
|
-
}
|
|
9
|
-
export declare class Ellipse extends DisplayObject {
|
|
10
|
-
constructor({ attrs, ...rest }: ShapeCfg);
|
|
11
|
-
}
|
|
12
|
-
export declare class Rect extends DisplayObject {
|
|
13
|
-
constructor({ attrs, ...rest }: ShapeCfg);
|
|
14
|
-
}
|
|
15
|
-
export declare class Image extends DisplayObject {
|
|
16
|
-
constructor({ attrs, ...rest }: ShapeCfg);
|
|
17
|
-
}
|
|
18
|
-
export declare class Line extends DisplayObject {
|
|
19
|
-
constructor({ attrs, ...rest }: ShapeCfg);
|
|
20
|
-
}
|
|
21
|
-
export declare class Path extends DisplayObject {
|
|
22
|
-
constructor({ attrs, ...rest }: ShapeCfg);
|
|
23
|
-
}
|
|
24
|
-
export declare class Polyline extends DisplayObject {
|
|
25
|
-
constructor({ attrs, ...rest }: ShapeCfg);
|
|
26
|
-
}
|
|
27
|
-
export declare class Polygon extends DisplayObject {
|
|
28
|
-
constructor({ attrs, ...rest }: ShapeCfg);
|
|
29
|
-
}
|
|
30
|
-
export declare class Text extends DisplayObject {
|
|
31
|
-
constructor({ attrs, ...rest }: ShapeCfg);
|
|
32
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Entity, Matcher, System } from '@antv/g-ecs';
|
|
2
|
-
import { DisplayObjectPool } from '../DisplayObjectPool';
|
|
3
|
-
export declare const AttributeAnimationUpdaters: unique symbol;
|
|
4
|
-
export declare const AttributeAnimationUpdater: unique symbol;
|
|
5
|
-
export interface AttributeAnimationUpdater {
|
|
6
|
-
filter(attribute: string, fromAttribute: any, toAttribute: any): boolean;
|
|
7
|
-
update<T>(entity: Entity, fromAttribute: T, toAttribute: T, ratio: number): T;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* default updater, get updated value with d3-interpolate
|
|
11
|
-
*/
|
|
12
|
-
export declare class DefaultAttributeAnimationUpdater implements AttributeAnimationUpdater {
|
|
13
|
-
filter(attribute: string, fromAttribute: any, toAttribute: any): boolean;
|
|
14
|
-
update(entity: Entity, fromAttribute: any, toAttribute: any, ratio: number): any;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* color updater, don't support color transition now
|
|
18
|
-
*/
|
|
19
|
-
export declare class ColorAttributeAnimationUpdater implements AttributeAnimationUpdater {
|
|
20
|
-
filter(attribute: string, fromAttribute: any, toAttribute: any): boolean;
|
|
21
|
-
update(entity: Entity, fromAttribute: any, toAttribute: any, ratio: number): any;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* do animation
|
|
25
|
-
*/
|
|
26
|
-
export declare class Timeline implements System {
|
|
27
|
-
static tag: string;
|
|
28
|
-
static trigger: Matcher<import("@antv/g-ecs").Component<{}>>;
|
|
29
|
-
private attributeAnimationUpdaters;
|
|
30
|
-
protected displayObjectPool: DisplayObjectPool;
|
|
31
|
-
execute(entities: Entity[], delta?: number, millis?: number): void;
|
|
32
|
-
createAnimation(entity: Entity, args: any): void;
|
|
33
|
-
stopAnimation(entity: Entity, toEnd: boolean, update: Function): void;
|
|
34
|
-
pauseAnimation(entity: Entity): void;
|
|
35
|
-
resumeAnimation(entity: Entity): void;
|
|
36
|
-
private getAnimationAttrs;
|
|
37
|
-
private mergeAnimationAttrs;
|
|
38
|
-
private update;
|
|
39
|
-
private changeEntityAttributes;
|
|
40
|
-
}
|
package/dist/systems/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Timeline';
|
package/dist/utils/color.d.ts
DELETED
package/dist/utils/index.d.ts
DELETED
package/dist/utils/path.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PathCommand } from '../types';
|
|
2
|
-
declare const parsePathString: (pathString: string) => PathCommand[] | null;
|
|
3
|
-
declare const catmullRomToBezier: (crp: number[], z: boolean) => (string | number)[][];
|
|
4
|
-
declare const pathToAbsolute: (pathArray: any) => (string | number)[][];
|
|
5
|
-
declare const pathToCurve: (path: any, path2?: any) => any[];
|
|
6
|
-
declare const parsePathArray: (path: any) => any;
|
|
7
|
-
declare const rectPath: (x: any, y: any, w: any, h: any, r?: any) => any[][];
|
|
8
|
-
declare const intersection: (path1: any, path2: any) => number | never[];
|
|
9
|
-
declare const fillPath: (source: any, target: any) => any;
|
|
10
|
-
declare const fillPathByDiff: (source: any, target: any) => any;
|
|
11
|
-
declare const formatPath: (fromPath: any, toPath: any) => any;
|
|
12
|
-
export { catmullRomToBezier, fillPath, fillPathByDiff, formatPath, intersection, parsePathArray, parsePathString, pathToAbsolute, pathToCurve, rectPath, };
|
package/dist/utils/text.d.ts
DELETED