@antv/g 5.1.0 → 5.1.3-alpha.0
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/AbstractRenderer.d.ts +38 -0
- package/dist/AbstractRenderer.d.ts.map +1 -0
- package/dist/Canvas.d.ts +150 -0
- package/dist/Canvas.d.ts.map +1 -0
- package/dist/DisplayObjectPool.d.ts +10 -0
- package/dist/DisplayObjectPool.d.ts.map +1 -0
- package/dist/__tests__/utils.d.ts +2 -0
- package/dist/__tests__/utils.d.ts.map +1 -0
- package/dist/camera/Camera.d.ts +328 -0
- package/dist/camera/Camera.d.ts.map +1 -0
- package/dist/camera/Landmark.d.ts +24 -0
- package/dist/camera/Landmark.d.ts.map +1 -0
- package/dist/camera/index.d.ts +3 -0
- package/dist/camera/index.d.ts.map +1 -0
- package/dist/canvas-module.d.ts +2 -0
- package/dist/canvas-module.d.ts.map +1 -0
- package/dist/components/Cullable.d.ts +15 -0
- package/dist/components/Cullable.d.ts.map +1 -0
- package/dist/components/Geometry.d.ts +13 -0
- package/dist/components/Geometry.d.ts.map +1 -0
- package/dist/components/Renderable.d.ts +25 -0
- package/dist/components/Renderable.d.ts.map +1 -0
- package/dist/components/Sortable.d.ts +21 -0
- package/dist/components/Sortable.d.ts.map +1 -0
- package/dist/components/Transform.d.ts +29 -0
- package/dist/components/Transform.d.ts.map +1 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/css/CSS.d.ts +89 -0
- package/dist/css/CSS.d.ts.map +1 -0
- package/dist/css/CSSProperty.d.ts +42 -0
- package/dist/css/CSSProperty.d.ts.map +1 -0
- package/dist/css/StyleValueRegistry.d.ts +124 -0
- package/dist/css/StyleValueRegistry.d.ts.map +1 -0
- package/dist/css/cssom/CSSColorValue.d.ts +24 -0
- package/dist/css/cssom/CSSColorValue.d.ts.map +1 -0
- package/dist/css/cssom/CSSGradientValue.d.ts +40 -0
- package/dist/css/cssom/CSSGradientValue.d.ts.map +1 -0
- package/dist/css/cssom/CSSKeywordValue.d.ts +16 -0
- package/dist/css/cssom/CSSKeywordValue.d.ts.map +1 -0
- package/dist/css/cssom/CSSMathOperator.d.ts +12 -0
- package/dist/css/cssom/CSSMathOperator.d.ts.map +1 -0
- package/dist/css/cssom/CSSNumericSumValue.d.ts +8 -0
- package/dist/css/cssom/CSSNumericSumValue.d.ts.map +1 -0
- package/dist/css/cssom/CSSNumericValue.d.ts +213 -0
- package/dist/css/cssom/CSSNumericValue.d.ts.map +1 -0
- package/dist/css/cssom/CSSRGB.d.ts +26 -0
- package/dist/css/cssom/CSSRGB.d.ts.map +1 -0
- package/dist/css/cssom/CSSStyleValue.d.ts +54 -0
- package/dist/css/cssom/CSSStyleValue.d.ts.map +1 -0
- package/dist/css/cssom/index.d.ts +18 -0
- package/dist/css/cssom/index.d.ts.map +1 -0
- package/dist/css/cssom/types.d.ts +87 -0
- package/dist/css/cssom/types.d.ts.map +1 -0
- package/dist/css/index.d.ts +12 -0
- package/dist/css/index.d.ts.map +1 -0
- package/dist/css/interfaces.d.ts +117 -0
- package/dist/css/interfaces.d.ts.map +1 -0
- package/dist/css/layout/FragmentResult.d.ts +33 -0
- package/dist/css/layout/FragmentResult.d.ts.map +1 -0
- package/dist/css/layout/LayoutChildren.d.ts +24 -0
- package/dist/css/layout/LayoutChildren.d.ts.map +1 -0
- package/dist/css/layout/LayoutContext.d.ts +36 -0
- package/dist/css/layout/LayoutContext.d.ts.map +1 -0
- package/dist/css/layout/LayoutDefinition.d.ts +21 -0
- package/dist/css/layout/LayoutDefinition.d.ts.map +1 -0
- package/dist/css/layout/LayoutEdges.d.ts +25 -0
- package/dist/css/layout/LayoutEdges.d.ts.map +1 -0
- package/dist/css/layout/LayoutEngine.d.ts +42 -0
- package/dist/css/layout/LayoutEngine.d.ts.map +1 -0
- package/dist/css/layout/LayoutFragment.d.ts +27 -0
- package/dist/css/layout/LayoutFragment.d.ts.map +1 -0
- package/dist/css/layout/LayoutObject.d.ts +47 -0
- package/dist/css/layout/LayoutObject.d.ts.map +1 -0
- package/dist/css/layout/LayoutRegistry.d.ts +17 -0
- package/dist/css/layout/LayoutRegistry.d.ts.map +1 -0
- package/dist/css/layout/LayoutWorkTask.d.ts +15 -0
- package/dist/css/layout/LayoutWorkTask.d.ts.map +1 -0
- package/dist/css/layout/index.d.ts +12 -0
- package/dist/css/layout/index.d.ts.map +1 -0
- package/dist/css/layout/types.d.ts +105 -0
- package/dist/css/layout/types.d.ts.map +1 -0
- package/dist/css/parser/color.d.ts +7 -0
- package/dist/css/parser/color.d.ts.map +1 -0
- package/dist/css/parser/dimension.d.ts +38 -0
- package/dist/css/parser/dimension.d.ts.map +1 -0
- package/dist/css/parser/filter.d.ts +8 -0
- package/dist/css/parser/filter.d.ts.map +1 -0
- package/dist/css/parser/index.d.ts +16 -0
- package/dist/css/parser/index.d.ts.map +1 -0
- package/dist/css/parser/numeric.d.ts +20 -0
- package/dist/css/parser/numeric.d.ts.map +1 -0
- package/dist/css/parser/path.d.ts +6 -0
- package/dist/css/parser/path.d.ts.map +1 -0
- package/dist/css/parser/points.d.ts +13 -0
- package/dist/css/parser/points.d.ts.map +1 -0
- package/dist/css/parser/transform-origin.d.ts +7 -0
- package/dist/css/parser/transform-origin.d.ts.map +1 -0
- package/dist/css/parser/transform.d.ts +14 -0
- package/dist/css/parser/transform.d.ts.map +1 -0
- package/dist/css/parser/types.d.ts +3 -0
- package/dist/css/parser/types.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyClipPath.d.ts +21 -0
- package/dist/css/properties/CSSPropertyClipPath.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyColor.d.ts +5 -0
- package/dist/css/properties/CSSPropertyColor.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyFilter.d.ts +4 -0
- package/dist/css/properties/CSSPropertyFilter.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyLengthOrPercentage.d.ts +7 -0
- package/dist/css/properties/CSSPropertyLengthOrPercentage.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyLengthOrPercentage12.d.ts +12 -0
- package/dist/css/properties/CSSPropertyLengthOrPercentage12.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyLengthOrPercentage14.d.ts +22 -0
- package/dist/css/properties/CSSPropertyLengthOrPercentage14.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyLocalPosition.d.ts +7 -0
- package/dist/css/properties/CSSPropertyLocalPosition.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyOffsetDistance.d.ts +4 -0
- package/dist/css/properties/CSSPropertyOffsetDistance.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyOffsetPath.d.ts +4 -0
- package/dist/css/properties/CSSPropertyOffsetPath.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyOpacity.d.ts +7 -0
- package/dist/css/properties/CSSPropertyOpacity.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyPath.d.ts +4 -0
- package/dist/css/properties/CSSPropertyPath.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyPoints.d.ts +11 -0
- package/dist/css/properties/CSSPropertyPoints.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyShadowBlur.d.ts +3 -0
- package/dist/css/properties/CSSPropertyShadowBlur.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyText.d.ts +4 -0
- package/dist/css/properties/CSSPropertyText.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyTextTransform.d.ts +4 -0
- package/dist/css/properties/CSSPropertyTextTransform.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyTransform.d.ts +33 -0
- package/dist/css/properties/CSSPropertyTransform.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyTransformOrigin.d.ts +9 -0
- package/dist/css/properties/CSSPropertyTransformOrigin.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyZIndex.d.ts +4 -0
- package/dist/css/properties/CSSPropertyZIndex.d.ts.map +1 -0
- package/dist/css/properties/index.d.ts +19 -0
- package/dist/css/properties/index.d.ts.map +1 -0
- package/dist/display-objects/Circle.d.ts +18 -0
- package/dist/display-objects/Circle.d.ts.map +1 -0
- package/dist/display-objects/CustomElement.d.ts +25 -0
- package/dist/display-objects/CustomElement.d.ts.map +1 -0
- package/dist/display-objects/DisplayObject.d.ts +275 -0
- package/dist/display-objects/DisplayObject.d.ts.map +1 -0
- package/dist/display-objects/Ellipse.d.ts +20 -0
- package/dist/display-objects/Ellipse.d.ts.map +1 -0
- package/dist/display-objects/Group.d.ts +30 -0
- package/dist/display-objects/Group.d.ts.map +1 -0
- package/dist/display-objects/HTML.d.ts +42 -0
- package/dist/display-objects/HTML.d.ts.map +1 -0
- package/dist/display-objects/Image.d.ts +24 -0
- package/dist/display-objects/Image.d.ts.map +1 -0
- package/dist/display-objects/Line.d.ts +31 -0
- package/dist/display-objects/Line.d.ts.map +1 -0
- package/dist/display-objects/Path.d.ts +49 -0
- package/dist/display-objects/Path.d.ts.map +1 -0
- package/dist/display-objects/Polygon.d.ts +17 -0
- package/dist/display-objects/Polygon.d.ts.map +1 -0
- package/dist/display-objects/Polyline.d.ts +22 -0
- package/dist/display-objects/Polyline.d.ts.map +1 -0
- package/dist/display-objects/Rect.d.ts +25 -0
- package/dist/display-objects/Rect.d.ts.map +1 -0
- package/dist/display-objects/Text.d.ts +92 -0
- package/dist/display-objects/Text.d.ts.map +1 -0
- package/dist/display-objects/index.d.ts +14 -0
- package/dist/display-objects/index.d.ts.map +1 -0
- package/dist/dom/Animation.d.ts +133 -0
- package/dist/dom/Animation.d.ts.map +1 -0
- package/dist/dom/AnimationEffectTiming.d.ts +59 -0
- package/dist/dom/AnimationEffectTiming.d.ts.map +1 -0
- package/dist/dom/AnimationEvent.d.ts +12 -0
- package/dist/dom/AnimationEvent.d.ts.map +1 -0
- package/dist/dom/AnimationTimeline.d.ts +41 -0
- package/dist/dom/AnimationTimeline.d.ts.map +1 -0
- package/dist/dom/CustomElementRegistry.d.ts +16 -0
- package/dist/dom/CustomElementRegistry.d.ts.map +1 -0
- package/dist/dom/CustomEvent.d.ts +17 -0
- package/dist/dom/CustomEvent.d.ts.map +1 -0
- package/dist/dom/Document.d.ts +73 -0
- package/dist/dom/Document.d.ts.map +1 -0
- package/dist/dom/Element.d.ts +188 -0
- package/dist/dom/Element.d.ts.map +1 -0
- package/dist/dom/EventTarget.d.ts +41 -0
- package/dist/dom/EventTarget.d.ts.map +1 -0
- package/dist/dom/FederatedEvent.d.ts +146 -0
- package/dist/dom/FederatedEvent.d.ts.map +1 -0
- package/dist/dom/FederatedMouseEvent.d.ts +53 -0
- package/dist/dom/FederatedMouseEvent.d.ts.map +1 -0
- package/dist/dom/FederatedPointerEvent.d.ts +76 -0
- package/dist/dom/FederatedPointerEvent.d.ts.map +1 -0
- package/dist/dom/FederatedWheelEvent.d.ts +21 -0
- package/dist/dom/FederatedWheelEvent.d.ts.map +1 -0
- package/dist/dom/KeyframeEffect.d.ts +48 -0
- package/dist/dom/KeyframeEffect.d.ts.map +1 -0
- package/dist/dom/KeyframeList.d.ts +3 -0
- package/dist/dom/KeyframeList.d.ts.map +1 -0
- package/dist/dom/MutationEvent.d.ts +16 -0
- package/dist/dom/MutationEvent.d.ts.map +1 -0
- package/dist/dom/MutationObserver.d.ts +37 -0
- package/dist/dom/MutationObserver.d.ts.map +1 -0
- package/dist/dom/MutationRecord.d.ts +15 -0
- package/dist/dom/MutationRecord.d.ts.map +1 -0
- package/dist/dom/Node.d.ts +139 -0
- package/dist/dom/Node.d.ts.map +1 -0
- package/dist/dom/index.d.ts +21 -0
- package/dist/dom/index.d.ts.map +1 -0
- package/dist/dom/interfaces.d.ts +373 -0
- package/dist/dom/interfaces.d.ts.map +1 -0
- package/dist/global-module.d.ts +2 -0
- package/dist/global-module.d.ts.map +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +19679 -0
- package/dist/index.js +19851 -0
- package/dist/index.umd.js +29159 -0
- package/dist/index.umd.min.js +14 -28
- package/dist/plugins/CullingPlugin.d.ts +18 -0
- package/dist/plugins/CullingPlugin.d.ts.map +1 -0
- package/dist/plugins/DirtyCheckPlugin.d.ts +11 -0
- package/dist/plugins/DirtyCheckPlugin.d.ts.map +1 -0
- package/dist/plugins/EventPlugin.d.ts +30 -0
- package/dist/plugins/EventPlugin.d.ts.map +1 -0
- package/dist/plugins/FrustumCullingStrategy.d.ts +22 -0
- package/dist/plugins/FrustumCullingStrategy.d.ts.map +1 -0
- package/dist/plugins/PrepareRendererPlugin.d.ts +8 -0
- package/dist/plugins/PrepareRendererPlugin.d.ts.map +1 -0
- package/dist/services/ContextService.d.ts +14 -0
- package/dist/services/ContextService.d.ts.map +1 -0
- package/dist/services/EventService.d.ts +72 -0
- package/dist/services/EventService.d.ts.map +1 -0
- package/dist/services/OffscreenCanvasCreator.d.ts +14 -0
- package/dist/services/OffscreenCanvasCreator.d.ts.map +1 -0
- package/dist/services/RenderingContext.d.ts +27 -0
- package/dist/services/RenderingContext.d.ts.map +1 -0
- package/dist/services/RenderingService.d.ts +103 -0
- package/dist/services/RenderingService.d.ts.map +1 -0
- package/dist/services/SceneGraphSelector.d.ts +24 -0
- package/dist/services/SceneGraphSelector.d.ts.map +1 -0
- package/dist/services/SceneGraphService.d.ts +154 -0
- package/dist/services/SceneGraphService.d.ts.map +1 -0
- package/dist/services/TextService.d.ts +37 -0
- package/dist/services/TextService.d.ts.map +1 -0
- package/dist/services/aabb/CircleUpdater.d.ts +9 -0
- package/dist/services/aabb/CircleUpdater.d.ts.map +1 -0
- package/dist/services/aabb/EllipseUpdater.d.ts +9 -0
- package/dist/services/aabb/EllipseUpdater.d.ts.map +1 -0
- package/dist/services/aabb/LineUpdater.d.ts +9 -0
- package/dist/services/aabb/LineUpdater.d.ts.map +1 -0
- package/dist/services/aabb/PathUpdater.d.ts +9 -0
- package/dist/services/aabb/PathUpdater.d.ts.map +1 -0
- package/dist/services/aabb/PolylineUpdater.d.ts +9 -0
- package/dist/services/aabb/PolylineUpdater.d.ts.map +1 -0
- package/dist/services/aabb/RectUpdater.d.ts +9 -0
- package/dist/services/aabb/RectUpdater.d.ts.map +1 -0
- package/dist/services/aabb/TextUpdater.d.ts +22 -0
- package/dist/services/aabb/TextUpdater.d.ts.map +1 -0
- package/dist/services/aabb/index.d.ts +9 -0
- package/dist/services/aabb/index.d.ts.map +1 -0
- package/dist/services/aabb/interfaces.d.ts +16 -0
- package/dist/services/aabb/interfaces.d.ts.map +1 -0
- package/dist/services/index.d.ts +11 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/shapes/AABB.d.ts +36 -0
- package/dist/shapes/AABB.d.ts.map +1 -0
- package/dist/shapes/BoundingSphere.d.ts +9 -0
- package/dist/shapes/BoundingSphere.d.ts.map +1 -0
- package/dist/shapes/Frustum.d.ts +17 -0
- package/dist/shapes/Frustum.d.ts.map +1 -0
- package/dist/shapes/Plane.d.ts +15 -0
- package/dist/shapes/Plane.d.ts.map +1 -0
- package/dist/shapes/Point.d.ts +12 -0
- package/dist/shapes/Point.d.ts.map +1 -0
- package/dist/shapes/Ray.d.ts +25 -0
- package/dist/shapes/Ray.d.ts.map +1 -0
- package/dist/shapes/Rectangle.d.ts +13 -0
- package/dist/shapes/Rectangle.d.ts.map +1 -0
- package/dist/shapes/index.d.ts +8 -0
- package/dist/shapes/index.d.ts.map +1 -0
- package/dist/types.d.ts +270 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/animation.d.ts +16 -0
- package/dist/utils/animation.d.ts.map +1 -0
- package/dist/utils/assert.d.ts +10 -0
- package/dist/utils/assert.d.ts.map +1 -0
- package/dist/utils/bezier-easing.d.ts +21 -0
- package/dist/utils/bezier-easing.d.ts.map +1 -0
- package/dist/utils/canvas.d.ts +7 -0
- package/dist/utils/canvas.d.ts.map +1 -0
- package/dist/utils/custom-easing.d.ts +16 -0
- package/dist/utils/custom-easing.d.ts.map +1 -0
- package/dist/utils/deferred.d.ts +44 -0
- package/dist/utils/deferred.d.ts.map +1 -0
- package/dist/utils/dom.d.ts +3 -0
- package/dist/utils/dom.d.ts.map +1 -0
- package/dist/utils/event.d.ts +36 -0
- package/dist/utils/event.d.ts.map +1 -0
- package/dist/utils/index.d.ts +12 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/interpolation.d.ts +5 -0
- package/dist/utils/interpolation.d.ts.map +1 -0
- package/dist/utils/math.d.ts +30 -0
- package/dist/utils/math.d.ts.map +1 -0
- package/dist/utils/path.d.ts +16 -0
- package/dist/utils/path.d.ts.map +1 -0
- package/dist/utils/string.d.ts +3 -0
- package/dist/utils/string.d.ts.map +1 -0
- package/dist/utils/text.d.ts +3 -0
- package/dist/utils/text.d.ts.map +1 -0
- package/package.json +27 -33
- package/es/AbstractRenderer.d.ts +0 -37
- package/es/AbstractRenderer.js +0 -62
- package/es/Canvas.d.ts +0 -149
- package/es/Canvas.js +0 -518
- package/es/DisplayObjectPool.d.ts +0 -7
- package/es/DisplayObjectPool.js +0 -27
- package/es/camera/Camera.d.ts +0 -327
- package/es/camera/Camera.js +0 -1154
- package/es/camera/Landmark.d.ts +0 -23
- package/es/camera/Landmark.js +0 -1
- package/es/camera/index.d.ts +0 -2
- package/es/camera/index.js +0 -2
- package/es/canvas-module.d.ts +0 -1
- package/es/canvas-module.js +0 -25
- package/es/components/Cullable.d.ts +0 -14
- package/es/components/Cullable.js +0 -28
- package/es/components/Geometry.d.ts +0 -12
- package/es/components/Geometry.js +0 -10
- package/es/components/Renderable.d.ts +0 -24
- package/es/components/Renderable.js +0 -18
- package/es/components/Sortable.d.ts +0 -20
- package/es/components/Sortable.js +0 -20
- package/es/components/Transform.d.ts +0 -28
- package/es/components/Transform.js +0 -64
- package/es/components/index.d.ts +0 -5
- package/es/components/index.js +0 -5
- package/es/css/CSS.d.ts +0 -85
- package/es/css/CSS.js +0 -117
- package/es/css/CSSProperty.d.ts +0 -41
- package/es/css/CSSProperty.js +0 -1
- package/es/css/StyleValueRegistry.d.ts +0 -124
- package/es/css/StyleValueRegistry.js +0 -896
- package/es/css/cssom/CSSColorValue.d.ts +0 -23
- package/es/css/cssom/CSSColorValue.js +0 -43
- package/es/css/cssom/CSSGradientValue.d.ts +0 -39
- package/es/css/cssom/CSSGradientValue.js +0 -54
- package/es/css/cssom/CSSImageValue.d.ts +0 -1
- package/es/css/cssom/CSSImageValue.js +0 -0
- package/es/css/cssom/CSSKeywordValue.d.ts +0 -15
- package/es/css/cssom/CSSKeywordValue.js +0 -37
- package/es/css/cssom/CSSMathOperator.d.ts +0 -11
- package/es/css/cssom/CSSMathOperator.js +0 -32
- package/es/css/cssom/CSSNumericSumValue.d.ts +0 -7
- package/es/css/cssom/CSSNumericSumValue.js +0 -1
- package/es/css/cssom/CSSNumericValue.d.ts +0 -212
- package/es/css/cssom/CSSNumericValue.js +0 -1661
- package/es/css/cssom/CSSRGB.d.ts +0 -25
- package/es/css/cssom/CSSRGB.js +0 -48
- package/es/css/cssom/CSSStyleValue.d.ts +0 -53
- package/es/css/cssom/CSSStyleValue.js +0 -625
- package/es/css/cssom/CSSTransformComponent.d.ts +0 -22
- package/es/css/cssom/CSSTransformComponent.js +0 -32
- package/es/css/cssom/CSSTransformValue.d.ts +0 -30
- package/es/css/cssom/CSSTransformValue.js +0 -48
- package/es/css/cssom/CSSTranslate.d.ts +0 -15
- package/es/css/cssom/CSSTranslate.js +0 -44
- package/es/css/cssom/index.d.ts +0 -19
- package/es/css/cssom/index.js +0 -19
- package/es/css/cssom/types.d.ts +0 -86
- package/es/css/cssom/types.js +0 -119
- package/es/css/index.d.ts +0 -11
- package/es/css/index.js +0 -11
- package/es/css/interfaces.d.ts +0 -6
- package/es/css/interfaces.js +0 -2
- package/es/css/layout/FragmentResult.d.ts +0 -32
- package/es/css/layout/FragmentResult.js +0 -32
- package/es/css/layout/LayoutChildren.d.ts +0 -23
- package/es/css/layout/LayoutChildren.js +0 -55
- package/es/css/layout/LayoutContext.d.ts +0 -35
- package/es/css/layout/LayoutContext.js +0 -35
- package/es/css/layout/LayoutDefinition.d.ts +0 -20
- package/es/css/layout/LayoutDefinition.js +0 -9
- package/es/css/layout/LayoutEdges.d.ts +0 -24
- package/es/css/layout/LayoutEdges.js +0 -41
- package/es/css/layout/LayoutEngine.d.ts +0 -41
- package/es/css/layout/LayoutEngine.js +0 -332
- package/es/css/layout/LayoutFragment.d.ts +0 -26
- package/es/css/layout/LayoutFragment.js +0 -28
- package/es/css/layout/LayoutObject.d.ts +0 -46
- package/es/css/layout/LayoutObject.js +0 -172
- package/es/css/layout/LayoutRegistry.d.ts +0 -16
- package/es/css/layout/LayoutRegistry.js +0 -78
- package/es/css/layout/LayoutWorkTask.d.ts +0 -14
- package/es/css/layout/LayoutWorkTask.js +0 -1
- package/es/css/layout/index.d.ts +0 -11
- package/es/css/layout/index.js +0 -11
- package/es/css/layout/types.d.ts +0 -104
- package/es/css/layout/types.js +0 -66
- package/es/css/parser/color.d.ts +0 -6
- package/es/css/parser/color.js +0 -241
- package/es/css/parser/dimension.d.ts +0 -37
- package/es/css/parser/dimension.js +0 -149
- package/es/css/parser/filter.d.ts +0 -7
- package/es/css/parser/filter.js +0 -43
- package/es/css/parser/index.d.ts +0 -15
- package/es/css/parser/index.js +0 -15
- package/es/css/parser/numeric.d.ts +0 -19
- package/es/css/parser/numeric.js +0 -62
- package/es/css/parser/path.d.ts +0 -5
- package/es/css/parser/path.js +0 -207
- package/es/css/parser/points.d.ts +0 -12
- package/es/css/parser/points.js +0 -58
- package/es/css/parser/transform-origin.d.ts +0 -6
- package/es/css/parser/transform-origin.js +0 -45
- package/es/css/parser/transform.d.ts +0 -13
- package/es/css/parser/transform.js +0 -289
- package/es/css/parser/types.d.ts +0 -2
- package/es/css/parser/types.js +0 -1
- package/es/css/properties/CSSPropertyAnchor.d.ts +0 -8
- package/es/css/properties/CSSPropertyAnchor.js +0 -25
- package/es/css/properties/CSSPropertyClipPath.d.ts +0 -22
- package/es/css/properties/CSSPropertyClipPath.js +0 -56
- package/es/css/properties/CSSPropertyColor.d.ts +0 -14
- package/es/css/properties/CSSPropertyColor.js +0 -30
- package/es/css/properties/CSSPropertyFilter.d.ts +0 -6
- package/es/css/properties/CSSPropertyFilter.js +0 -16
- package/es/css/properties/CSSPropertyLengthOrPercentage.d.ts +0 -21
- package/es/css/properties/CSSPropertyLengthOrPercentage.js +0 -75
- package/es/css/properties/CSSPropertyLineDash.d.ts +0 -9
- package/es/css/properties/CSSPropertyLineDash.js +0 -25
- package/es/css/properties/CSSPropertyLocalPosition.d.ts +0 -13
- package/es/css/properties/CSSPropertyLocalPosition.js +0 -90
- package/es/css/properties/CSSPropertyOffsetDistance.d.ts +0 -9
- package/es/css/properties/CSSPropertyOffsetDistance.js +0 -34
- package/es/css/properties/CSSPropertyOffsetPath.d.ts +0 -5
- package/es/css/properties/CSSPropertyOffsetPath.js +0 -31
- package/es/css/properties/CSSPropertyOpacity.d.ts +0 -10
- package/es/css/properties/CSSPropertyOpacity.js +0 -20
- package/es/css/properties/CSSPropertyPath.d.ts +0 -27
- package/es/css/properties/CSSPropertyPath.js +0 -55
- package/es/css/properties/CSSPropertyPoints.d.ts +0 -18
- package/es/css/properties/CSSPropertyPoints.js +0 -27
- package/es/css/properties/CSSPropertyShadowBlur.d.ts +0 -4
- package/es/css/properties/CSSPropertyShadowBlur.js +0 -22
- package/es/css/properties/CSSPropertyText.d.ts +0 -7
- package/es/css/properties/CSSPropertyText.js +0 -30
- package/es/css/properties/CSSPropertyTextTransform.d.ts +0 -5
- package/es/css/properties/CSSPropertyTextTransform.js +0 -29
- package/es/css/properties/CSSPropertyTransform.d.ts +0 -38
- package/es/css/properties/CSSPropertyTransform.js +0 -128
- package/es/css/properties/CSSPropertyTransformOrigin.d.ts +0 -11
- package/es/css/properties/CSSPropertyTransformOrigin.js +0 -21
- package/es/css/properties/CSSPropertyVisibility.d.ts +0 -13
- package/es/css/properties/CSSPropertyVisibility.js +0 -24
- package/es/css/properties/CSSPropertyZIndex.d.ts +0 -8
- package/es/css/properties/CSSPropertyZIndex.js +0 -33
- package/es/css/properties/index.d.ts +0 -18
- package/es/css/properties/index.js +0 -18
- package/es/display-objects/Circle.d.ts +0 -17
- package/es/display-objects/Circle.js +0 -34
- package/es/display-objects/CustomElement.d.ts +0 -22
- package/es/display-objects/CustomElement.js +0 -92
- package/es/display-objects/DisplayObject.d.ts +0 -274
- package/es/display-objects/DisplayObject.js +0 -887
- package/es/display-objects/Ellipse.d.ts +0 -19
- package/es/display-objects/Ellipse.js +0 -35
- package/es/display-objects/Group.d.ts +0 -29
- package/es/display-objects/Group.js +0 -42
- package/es/display-objects/HTML.d.ts +0 -41
- package/es/display-objects/HTML.js +0 -100
- package/es/display-objects/Image.d.ts +0 -23
- package/es/display-objects/Image.js +0 -34
- package/es/display-objects/Line.d.ts +0 -30
- package/es/display-objects/Line.js +0 -63
- package/es/display-objects/Path.d.ts +0 -48
- package/es/display-objects/Path.js +0 -131
- package/es/display-objects/Polygon.d.ts +0 -16
- package/es/display-objects/Polygon.js +0 -31
- package/es/display-objects/Polyline.d.ts +0 -21
- package/es/display-objects/Polyline.js +0 -74
- package/es/display-objects/Rect.d.ts +0 -21
- package/es/display-objects/Rect.js +0 -34
- package/es/display-objects/Text.d.ts +0 -91
- package/es/display-objects/Text.js +0 -118
- package/es/display-objects/index.d.ts +0 -13
- package/es/display-objects/index.js +0 -13
- package/es/dom/Animation.d.ts +0 -132
- package/es/dom/Animation.js +0 -503
- package/es/dom/AnimationEffectTiming.d.ts +0 -58
- package/es/dom/AnimationEffectTiming.js +0 -68
- package/es/dom/AnimationEvent.d.ts +0 -11
- package/es/dom/AnimationEvent.js +0 -34
- package/es/dom/AnimationTimeline.d.ts +0 -40
- package/es/dom/AnimationTimeline.js +0 -217
- package/es/dom/CustomElementRegistry.d.ts +0 -15
- package/es/dom/CustomElementRegistry.js +0 -42
- package/es/dom/CustomEvent.d.ts +0 -16
- package/es/dom/CustomEvent.js +0 -35
- package/es/dom/Document.d.ts +0 -72
- package/es/dom/Document.js +0 -316
- package/es/dom/Element.d.ts +0 -187
- package/es/dom/Element.js +0 -604
- package/es/dom/EventTarget.d.ts +0 -40
- package/es/dom/EventTarget.js +0 -157
- package/es/dom/FederatedEvent.d.ts +0 -145
- package/es/dom/FederatedEvent.js +0 -222
- package/es/dom/FederatedMouseEvent.d.ts +0 -52
- package/es/dom/FederatedMouseEvent.js +0 -124
- package/es/dom/FederatedPointerEvent.d.ts +0 -75
- package/es/dom/FederatedPointerEvent.js +0 -61
- package/es/dom/FederatedTouchEvent.d.ts +0 -15
- package/es/dom/FederatedTouchEvent.js +0 -19
- package/es/dom/FederatedWheelEvent.d.ts +0 -20
- package/es/dom/FederatedWheelEvent.js +0 -27
- package/es/dom/KeyframeEffect.d.ts +0 -47
- package/es/dom/KeyframeEffect.js +0 -174
- package/es/dom/KeyframeList.d.ts +0 -2
- package/es/dom/KeyframeList.js +0 -176
- package/es/dom/MutationEvent.d.ts +0 -15
- package/es/dom/MutationEvent.js +0 -29
- package/es/dom/MutationObserver.d.ts +0 -36
- package/es/dom/MutationObserver.js +0 -416
- package/es/dom/MutationRecord.d.ts +0 -14
- package/es/dom/MutationRecord.js +0 -31
- package/es/dom/Node.d.ts +0 -138
- package/es/dom/Node.js +0 -387
- package/es/dom/index.d.ts +0 -20
- package/es/dom/index.js +0 -20
- package/es/dom/interfaces.d.ts +0 -372
- package/es/dom/interfaces.js +0 -56
- package/es/global-module.d.ts +0 -1
- package/es/global-module.js +0 -155
- package/es/index.d.ts +0 -18
- package/es/index.js +0 -21
- package/es/plugins/CullingPlugin.d.ts +0 -17
- package/es/plugins/CullingPlugin.js +0 -58
- package/es/plugins/DirtyCheckPlugin.d.ts +0 -10
- package/es/plugins/DirtyCheckPlugin.js +0 -55
- package/es/plugins/EventPlugin.d.ts +0 -30
- package/es/plugins/EventPlugin.js +0 -374
- package/es/plugins/FrustumCullingStrategy.d.ts +0 -21
- package/es/plugins/FrustumCullingStrategy.js +0 -108
- package/es/plugins/PrepareRendererPlugin.d.ts +0 -7
- package/es/plugins/PrepareRendererPlugin.js +0 -79
- package/es/services/ContextService.d.ts +0 -13
- package/es/services/ContextService.js +0 -5
- package/es/services/EventService.d.ts +0 -73
- package/es/services/EventService.js +0 -1238
- package/es/services/OffscreenCanvasCreator.d.ts +0 -13
- package/es/services/OffscreenCanvasCreator.js +0 -58
- package/es/services/RenderingContext.d.ts +0 -26
- package/es/services/RenderingContext.js +0 -14
- package/es/services/RenderingService.d.ts +0 -102
- package/es/services/RenderingService.js +0 -231
- package/es/services/SceneGraphSelector.d.ts +0 -23
- package/es/services/SceneGraphSelector.js +0 -100
- package/es/services/SceneGraphService.d.ts +0 -153
- package/es/services/SceneGraphService.js +0 -819
- package/es/services/TextService.d.ts +0 -36
- package/es/services/TextService.js +0 -350
- package/es/services/aabb/CircleUpdater.d.ts +0 -8
- package/es/services/aabb/CircleUpdater.js +0 -30
- package/es/services/aabb/EllipseUpdater.d.ts +0 -8
- package/es/services/aabb/EllipseUpdater.js +0 -31
- package/es/services/aabb/LineUpdater.d.ts +0 -8
- package/es/services/aabb/LineUpdater.js +0 -37
- package/es/services/aabb/PathUpdater.d.ts +0 -8
- package/es/services/aabb/PathUpdater.js +0 -168
- package/es/services/aabb/PolylineUpdater.d.ts +0 -8
- package/es/services/aabb/PolylineUpdater.js +0 -46
- package/es/services/aabb/RectUpdater.d.ts +0 -8
- package/es/services/aabb/RectUpdater.js +0 -72
- package/es/services/aabb/TextUpdater.d.ts +0 -21
- package/es/services/aabb/TextUpdater.js +0 -136
- package/es/services/aabb/index.d.ts +0 -8
- package/es/services/aabb/index.js +0 -8
- package/es/services/aabb/interfaces.d.ts +0 -15
- package/es/services/aabb/interfaces.js +0 -3
- package/es/services/index.d.ts +0 -10
- package/es/services/index.js +0 -10
- package/es/shapes/AABB.d.ts +0 -35
- package/es/shapes/AABB.js +0 -230
- package/es/shapes/BoundingSphere.d.ts +0 -8
- package/es/shapes/BoundingSphere.js +0 -31
- package/es/shapes/Frustum.d.ts +0 -16
- package/es/shapes/Frustum.js +0 -79
- package/es/shapes/Plane.d.ts +0 -14
- package/es/shapes/Plane.js +0 -42
- package/es/shapes/Point.d.ts +0 -11
- package/es/shapes/Point.js +0 -31
- package/es/shapes/Ray.d.ts +0 -24
- package/es/shapes/Ray.js +0 -138
- package/es/shapes/Rectangle.d.ts +0 -12
- package/es/shapes/Rectangle.js +0 -20
- package/es/shapes/index.d.ts +0 -7
- package/es/shapes/index.js +0 -7
- package/es/types.d.ts +0 -289
- package/es/types.js +0 -54
- package/es/utils/animation.d.ts +0 -15
- package/es/utils/animation.js +0 -251
- package/es/utils/assert.d.ts +0 -9
- package/es/utils/assert.js +0 -33
- package/es/utils/bezier-easing.d.ts +0 -20
- package/es/utils/bezier-easing.js +0 -90
- package/es/utils/canvas.d.ts +0 -6
- package/es/utils/canvas.js +0 -18
- package/es/utils/custom-easing.d.ts +0 -64
- package/es/utils/custom-easing.js +0 -317
- package/es/utils/deferred.d.ts +0 -43
- package/es/utils/deferred.js +0 -117
- package/es/utils/dom.d.ts +0 -2
- package/es/utils/dom.js +0 -8
- package/es/utils/event.d.ts +0 -45
- package/es/utils/event.js +0 -9
- package/es/utils/index.d.ts +0 -10
- package/es/utils/index.js +0 -10
- package/es/utils/interpolation.d.ts +0 -4
- package/es/utils/interpolation.js +0 -211
- package/es/utils/math.d.ts +0 -29
- package/es/utils/math.js +0 -236
- package/es/utils/path.d.ts +0 -15
- package/es/utils/path.js +0 -374
- package/es/utils/string.d.ts +0 -2
- package/es/utils/string.js +0 -17
- package/es/utils/text.d.ts +0 -2
- package/es/utils/text.js +0 -29
- package/lib/AbstractRenderer.d.ts +0 -37
- package/lib/AbstractRenderer.js +0 -69
- package/lib/Canvas.d.ts +0 -149
- package/lib/Canvas.js +0 -540
- package/lib/DisplayObjectPool.d.ts +0 -7
- package/lib/DisplayObjectPool.js +0 -35
- package/lib/camera/Camera.d.ts +0 -327
- package/lib/camera/Camera.js +0 -1232
- package/lib/camera/Landmark.d.ts +0 -23
- package/lib/camera/Landmark.js +0 -5
- package/lib/camera/index.d.ts +0 -2
- package/lib/camera/index.js +0 -31
- package/lib/canvas-module.d.ts +0 -1
- package/lib/canvas-module.js +0 -41
- package/lib/components/Cullable.d.ts +0 -14
- package/lib/components/Cullable.js +0 -36
- package/lib/components/Geometry.d.ts +0 -12
- package/lib/components/Geometry.js +0 -17
- package/lib/components/Renderable.d.ts +0 -24
- package/lib/components/Renderable.js +0 -25
- package/lib/components/Sortable.d.ts +0 -20
- package/lib/components/Sortable.js +0 -27
- package/lib/components/Transform.d.ts +0 -28
- package/lib/components/Transform.js +0 -71
- package/lib/components/index.d.ts +0 -5
- package/lib/components/index.js +0 -70
- package/lib/css/CSS.d.ts +0 -85
- package/lib/css/CSS.js +0 -131
- package/lib/css/CSSProperty.d.ts +0 -41
- package/lib/css/CSSProperty.js +0 -5
- package/lib/css/StyleValueRegistry.d.ts +0 -124
- package/lib/css/StyleValueRegistry.js +0 -922
- package/lib/css/cssom/CSSColorValue.d.ts +0 -23
- package/lib/css/cssom/CSSColorValue.js +0 -51
- package/lib/css/cssom/CSSGradientValue.d.ts +0 -39
- package/lib/css/cssom/CSSGradientValue.js +0 -64
- package/lib/css/cssom/CSSImageValue.d.ts +0 -1
- package/lib/css/cssom/CSSImageValue.js +0 -1
- package/lib/css/cssom/CSSKeywordValue.d.ts +0 -15
- package/lib/css/cssom/CSSKeywordValue.js +0 -45
- package/lib/css/cssom/CSSMathOperator.d.ts +0 -11
- package/lib/css/cssom/CSSMathOperator.js +0 -40
- package/lib/css/cssom/CSSNumericSumValue.d.ts +0 -7
- package/lib/css/cssom/CSSNumericSumValue.js +0 -5
- package/lib/css/cssom/CSSNumericValue.d.ts +0 -212
- package/lib/css/cssom/CSSNumericValue.js +0 -1685
- package/lib/css/cssom/CSSRGB.d.ts +0 -25
- package/lib/css/cssom/CSSRGB.js +0 -56
- package/lib/css/cssom/CSSStyleValue.d.ts +0 -53
- package/lib/css/cssom/CSSStyleValue.js +0 -634
- package/lib/css/cssom/CSSTransformComponent.d.ts +0 -22
- package/lib/css/cssom/CSSTransformComponent.js +0 -39
- package/lib/css/cssom/CSSTransformValue.d.ts +0 -30
- package/lib/css/cssom/CSSTransformValue.js +0 -56
- package/lib/css/cssom/CSSTranslate.d.ts +0 -15
- package/lib/css/cssom/CSSTranslate.js +0 -53
- package/lib/css/cssom/index.d.ts +0 -19
- package/lib/css/cssom/index.js +0 -148
- package/lib/css/cssom/types.d.ts +0 -86
- package/lib/css/cssom/types.js +0 -130
- package/lib/css/index.d.ts +0 -11
- package/lib/css/index.js +0 -109
- package/lib/css/interfaces.d.ts +0 -6
- package/lib/css/interfaces.js +0 -12
- package/lib/css/layout/FragmentResult.d.ts +0 -32
- package/lib/css/layout/FragmentResult.js +0 -51
- package/lib/css/layout/LayoutChildren.d.ts +0 -23
- package/lib/css/layout/LayoutChildren.js +0 -72
- package/lib/css/layout/LayoutContext.d.ts +0 -35
- package/lib/css/layout/LayoutContext.js +0 -49
- package/lib/css/layout/LayoutDefinition.d.ts +0 -20
- package/lib/css/layout/LayoutDefinition.js +0 -16
- package/lib/css/layout/LayoutEdges.d.ts +0 -24
- package/lib/css/layout/LayoutEdges.js +0 -56
- package/lib/css/layout/LayoutEngine.d.ts +0 -41
- package/lib/css/layout/LayoutEngine.js +0 -345
- package/lib/css/layout/LayoutFragment.d.ts +0 -26
- package/lib/css/layout/LayoutFragment.js +0 -44
- package/lib/css/layout/LayoutObject.d.ts +0 -46
- package/lib/css/layout/LayoutObject.js +0 -182
- package/lib/css/layout/LayoutRegistry.d.ts +0 -16
- package/lib/css/layout/LayoutRegistry.js +0 -87
- package/lib/css/layout/LayoutWorkTask.d.ts +0 -14
- package/lib/css/layout/LayoutWorkTask.js +0 -5
- package/lib/css/layout/index.d.ts +0 -11
- package/lib/css/layout/index.js +0 -148
- package/lib/css/layout/types.d.ts +0 -104
- package/lib/css/layout/types.js +0 -74
- package/lib/css/parser/color.d.ts +0 -6
- package/lib/css/parser/color.js +0 -260
- package/lib/css/parser/dimension.d.ts +0 -37
- package/lib/css/parser/dimension.js +0 -175
- package/lib/css/parser/filter.d.ts +0 -7
- package/lib/css/parser/filter.js +0 -56
- package/lib/css/parser/index.d.ts +0 -15
- package/lib/css/parser/index.js +0 -122
- package/lib/css/parser/numeric.d.ts +0 -19
- package/lib/css/parser/numeric.js +0 -81
- package/lib/css/parser/path.d.ts +0 -5
- package/lib/css/parser/path.js +0 -221
- package/lib/css/parser/points.d.ts +0 -12
- package/lib/css/parser/points.js +0 -69
- package/lib/css/parser/transform-origin.d.ts +0 -6
- package/lib/css/parser/transform-origin.js +0 -54
- package/lib/css/parser/transform.d.ts +0 -13
- package/lib/css/parser/transform.js +0 -303
- package/lib/css/parser/types.d.ts +0 -2
- package/lib/css/parser/types.js +0 -5
- package/lib/css/properties/CSSPropertyAnchor.d.ts +0 -8
- package/lib/css/properties/CSSPropertyAnchor.js +0 -35
- package/lib/css/properties/CSSPropertyClipPath.d.ts +0 -22
- package/lib/css/properties/CSSPropertyClipPath.js +0 -66
- package/lib/css/properties/CSSPropertyColor.d.ts +0 -14
- package/lib/css/properties/CSSPropertyColor.js +0 -40
- package/lib/css/properties/CSSPropertyFilter.d.ts +0 -6
- package/lib/css/properties/CSSPropertyFilter.js +0 -25
- package/lib/css/properties/CSSPropertyLengthOrPercentage.d.ts +0 -21
- package/lib/css/properties/CSSPropertyLengthOrPercentage.js +0 -85
- package/lib/css/properties/CSSPropertyLineDash.d.ts +0 -9
- package/lib/css/properties/CSSPropertyLineDash.js +0 -34
- package/lib/css/properties/CSSPropertyLocalPosition.d.ts +0 -13
- package/lib/css/properties/CSSPropertyLocalPosition.js +0 -101
- package/lib/css/properties/CSSPropertyOffsetDistance.d.ts +0 -9
- package/lib/css/properties/CSSPropertyOffsetDistance.js +0 -44
- package/lib/css/properties/CSSPropertyOffsetPath.d.ts +0 -5
- package/lib/css/properties/CSSPropertyOffsetPath.js +0 -39
- package/lib/css/properties/CSSPropertyOpacity.d.ts +0 -10
- package/lib/css/properties/CSSPropertyOpacity.js +0 -29
- package/lib/css/properties/CSSPropertyPath.d.ts +0 -27
- package/lib/css/properties/CSSPropertyPath.js +0 -66
- package/lib/css/properties/CSSPropertyPoints.d.ts +0 -18
- package/lib/css/properties/CSSPropertyPoints.js +0 -36
- package/lib/css/properties/CSSPropertyShadowBlur.d.ts +0 -4
- package/lib/css/properties/CSSPropertyShadowBlur.js +0 -32
- package/lib/css/properties/CSSPropertyText.d.ts +0 -7
- package/lib/css/properties/CSSPropertyText.js +0 -39
- package/lib/css/properties/CSSPropertyTextTransform.d.ts +0 -5
- package/lib/css/properties/CSSPropertyTextTransform.js +0 -38
- package/lib/css/properties/CSSPropertyTransform.d.ts +0 -38
- package/lib/css/properties/CSSPropertyTransform.js +0 -138
- package/lib/css/properties/CSSPropertyTransformOrigin.d.ts +0 -11
- package/lib/css/properties/CSSPropertyTransformOrigin.js +0 -30
- package/lib/css/properties/CSSPropertyVisibility.d.ts +0 -13
- package/lib/css/properties/CSSPropertyVisibility.js +0 -32
- package/lib/css/properties/CSSPropertyZIndex.d.ts +0 -8
- package/lib/css/properties/CSSPropertyZIndex.js +0 -42
- package/lib/css/properties/index.d.ts +0 -18
- package/lib/css/properties/index.js +0 -239
- package/lib/display-objects/Circle.d.ts +0 -17
- package/lib/display-objects/Circle.js +0 -42
- package/lib/display-objects/CustomElement.d.ts +0 -22
- package/lib/display-objects/CustomElement.js +0 -100
- package/lib/display-objects/DisplayObject.d.ts +0 -274
- package/lib/display-objects/DisplayObject.js +0 -910
- package/lib/display-objects/Ellipse.d.ts +0 -19
- package/lib/display-objects/Ellipse.js +0 -43
- package/lib/display-objects/Group.d.ts +0 -29
- package/lib/display-objects/Group.js +0 -50
- package/lib/display-objects/HTML.d.ts +0 -41
- package/lib/display-objects/HTML.js +0 -111
- package/lib/display-objects/Image.d.ts +0 -23
- package/lib/display-objects/Image.js +0 -42
- package/lib/display-objects/Line.d.ts +0 -30
- package/lib/display-objects/Line.js +0 -75
- package/lib/display-objects/Path.d.ts +0 -48
- package/lib/display-objects/Path.js +0 -142
- package/lib/display-objects/Polygon.d.ts +0 -16
- package/lib/display-objects/Polygon.js +0 -39
- package/lib/display-objects/Polyline.d.ts +0 -21
- package/lib/display-objects/Polyline.js +0 -84
- package/lib/display-objects/Rect.d.ts +0 -21
- package/lib/display-objects/Rect.js +0 -42
- package/lib/display-objects/Text.d.ts +0 -91
- package/lib/display-objects/Text.js +0 -126
- package/lib/display-objects/index.d.ts +0 -13
- package/lib/display-objects/index.js +0 -174
- package/lib/dom/Animation.d.ts +0 -132
- package/lib/dom/Animation.js +0 -511
- package/lib/dom/AnimationEffectTiming.d.ts +0 -58
- package/lib/dom/AnimationEffectTiming.js +0 -75
- package/lib/dom/AnimationEvent.d.ts +0 -11
- package/lib/dom/AnimationEvent.js +0 -42
- package/lib/dom/AnimationTimeline.d.ts +0 -40
- package/lib/dom/AnimationTimeline.js +0 -228
- package/lib/dom/CustomElementRegistry.d.ts +0 -15
- package/lib/dom/CustomElementRegistry.js +0 -50
- package/lib/dom/CustomEvent.d.ts +0 -16
- package/lib/dom/CustomEvent.js +0 -42
- package/lib/dom/Document.d.ts +0 -72
- package/lib/dom/Document.js +0 -329
- package/lib/dom/Element.d.ts +0 -187
- package/lib/dom/Element.js +0 -619
- package/lib/dom/EventTarget.d.ts +0 -40
- package/lib/dom/EventTarget.js +0 -171
- package/lib/dom/FederatedEvent.d.ts +0 -145
- package/lib/dom/FederatedEvent.js +0 -229
- package/lib/dom/FederatedMouseEvent.d.ts +0 -52
- package/lib/dom/FederatedMouseEvent.js +0 -133
- package/lib/dom/FederatedPointerEvent.d.ts +0 -75
- package/lib/dom/FederatedPointerEvent.js +0 -69
- package/lib/dom/FederatedTouchEvent.d.ts +0 -15
- package/lib/dom/FederatedTouchEvent.js +0 -27
- package/lib/dom/FederatedWheelEvent.d.ts +0 -20
- package/lib/dom/FederatedWheelEvent.js +0 -35
- package/lib/dom/KeyframeEffect.d.ts +0 -47
- package/lib/dom/KeyframeEffect.js +0 -192
- package/lib/dom/KeyframeList.d.ts +0 -2
- package/lib/dom/KeyframeList.js +0 -183
- package/lib/dom/MutationEvent.d.ts +0 -15
- package/lib/dom/MutationEvent.js +0 -37
- package/lib/dom/MutationObserver.d.ts +0 -36
- package/lib/dom/MutationObserver.js +0 -426
- package/lib/dom/MutationRecord.d.ts +0 -14
- package/lib/dom/MutationRecord.js +0 -38
- package/lib/dom/Node.d.ts +0 -138
- package/lib/dom/Node.js +0 -397
- package/lib/dom/index.d.ts +0 -20
- package/lib/dom/index.js +0 -265
- package/lib/dom/interfaces.d.ts +0 -372
- package/lib/dom/interfaces.js +0 -64
- package/lib/global-module.d.ts +0 -1
- package/lib/global-module.js +0 -170
- package/lib/index.d.ts +0 -18
- package/lib/index.js +0 -198
- package/lib/plugins/CullingPlugin.d.ts +0 -17
- package/lib/plugins/CullingPlugin.js +0 -69
- package/lib/plugins/DirtyCheckPlugin.d.ts +0 -10
- package/lib/plugins/DirtyCheckPlugin.js +0 -63
- package/lib/plugins/EventPlugin.d.ts +0 -30
- package/lib/plugins/EventPlugin.js +0 -382
- package/lib/plugins/FrustumCullingStrategy.d.ts +0 -21
- package/lib/plugins/FrustumCullingStrategy.js +0 -121
- package/lib/plugins/PrepareRendererPlugin.d.ts +0 -7
- package/lib/plugins/PrepareRendererPlugin.js +0 -87
- package/lib/services/ContextService.d.ts +0 -13
- package/lib/services/ContextService.js +0 -15
- package/lib/services/EventService.d.ts +0 -73
- package/lib/services/EventService.js +0 -1263
- package/lib/services/OffscreenCanvasCreator.d.ts +0 -13
- package/lib/services/OffscreenCanvasCreator.js +0 -66
- package/lib/services/RenderingContext.d.ts +0 -26
- package/lib/services/RenderingContext.js +0 -24
- package/lib/services/RenderingService.d.ts +0 -102
- package/lib/services/RenderingService.js +0 -244
- package/lib/services/SceneGraphSelector.d.ts +0 -23
- package/lib/services/SceneGraphSelector.js +0 -114
- package/lib/services/SceneGraphService.d.ts +0 -153
- package/lib/services/SceneGraphService.js +0 -875
- package/lib/services/TextService.d.ts +0 -36
- package/lib/services/TextService.js +0 -359
- package/lib/services/aabb/CircleUpdater.d.ts +0 -8
- package/lib/services/aabb/CircleUpdater.js +0 -40
- package/lib/services/aabb/EllipseUpdater.d.ts +0 -8
- package/lib/services/aabb/EllipseUpdater.js +0 -41
- package/lib/services/aabb/LineUpdater.d.ts +0 -8
- package/lib/services/aabb/LineUpdater.js +0 -47
- package/lib/services/aabb/PathUpdater.d.ts +0 -8
- package/lib/services/aabb/PathUpdater.js +0 -179
- package/lib/services/aabb/PolylineUpdater.d.ts +0 -8
- package/lib/services/aabb/PolylineUpdater.js +0 -56
- package/lib/services/aabb/RectUpdater.d.ts +0 -8
- package/lib/services/aabb/RectUpdater.js +0 -84
- package/lib/services/aabb/TextUpdater.d.ts +0 -21
- package/lib/services/aabb/TextUpdater.js +0 -149
- package/lib/services/aabb/index.d.ts +0 -8
- package/lib/services/aabb/index.js +0 -84
- package/lib/services/aabb/interfaces.d.ts +0 -15
- package/lib/services/aabb/interfaces.js +0 -16
- package/lib/services/index.d.ts +0 -10
- package/lib/services/index.js +0 -122
- package/lib/shapes/AABB.d.ts +0 -35
- package/lib/shapes/AABB.js +0 -248
- package/lib/shapes/BoundingSphere.d.ts +0 -8
- package/lib/shapes/BoundingSphere.js +0 -41
- package/lib/shapes/Frustum.d.ts +0 -16
- package/lib/shapes/Frustum.js +0 -96
- package/lib/shapes/Plane.d.ts +0 -14
- package/lib/shapes/Plane.js +0 -51
- package/lib/shapes/Point.d.ts +0 -11
- package/lib/shapes/Point.js +0 -38
- package/lib/shapes/Ray.d.ts +0 -24
- package/lib/shapes/Ray.js +0 -169
- package/lib/shapes/Rectangle.d.ts +0 -12
- package/lib/shapes/Rectangle.js +0 -27
- package/lib/shapes/index.d.ts +0 -7
- package/lib/shapes/index.js +0 -96
- package/lib/types.d.ts +0 -289
- package/lib/types.js +0 -69
- package/lib/utils/animation.d.ts +0 -15
- package/lib/utils/animation.js +0 -275
- package/lib/utils/assert.d.ts +0 -9
- package/lib/utils/assert.js +0 -56
- package/lib/utils/bezier-easing.d.ts +0 -20
- package/lib/utils/bezier-easing.js +0 -128
- package/lib/utils/canvas.d.ts +0 -6
- package/lib/utils/canvas.js +0 -27
- package/lib/utils/custom-easing.d.ts +0 -64
- package/lib/utils/custom-easing.js +0 -392
- package/lib/utils/deferred.d.ts +0 -43
- package/lib/utils/deferred.js +0 -131
- package/lib/utils/dom.d.ts +0 -2
- package/lib/utils/dom.js +0 -17
- package/lib/utils/event.d.ts +0 -45
- package/lib/utils/event.js +0 -17
- package/lib/utils/index.d.ts +0 -10
- package/lib/utils/index.js +0 -135
- package/lib/utils/interpolation.d.ts +0 -4
- package/lib/utils/interpolation.js +0 -227
- package/lib/utils/math.d.ts +0 -29
- package/lib/utils/math.js +0 -273
- package/lib/utils/path.d.ts +0 -15
- package/lib/utils/path.js +0 -396
- package/lib/utils/string.d.ts +0 -2
- package/lib/utils/string.js +0 -27
- package/lib/utils/text.d.ts +0 -2
- package/lib/utils/text.js +0 -39
|
@@ -1,317 +0,0 @@
|
|
|
1
|
-
import { __read } from "tslib";
|
|
2
|
-
/**
|
|
3
|
-
* ported from https://github.com/okikio/native/blob/master/packages/animate/src/custom-easing.ts
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { bezier } from './bezier-easing';
|
|
7
|
-
export var convertToDash = function convertToDash(str) {
|
|
8
|
-
str = str.replace(/([A-Z])/g, function (letter) {
|
|
9
|
-
return "-".concat(letter.toLowerCase());
|
|
10
|
-
}); // Remove first dash
|
|
11
|
-
|
|
12
|
-
return str.charAt(0) === '-' ? str.substr(1) : str;
|
|
13
|
-
};
|
|
14
|
-
export var limit = function limit(value, min, max) {
|
|
15
|
-
return Math.min(Math.max(value, min), max);
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
Easing Functions from anime.js, they are tried and true, so, its better to use them instead of other alternatives
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
export var Quad = function Quad(t) {
|
|
22
|
-
return Math.pow(t, 2);
|
|
23
|
-
};
|
|
24
|
-
export var Cubic = function Cubic(t) {
|
|
25
|
-
return Math.pow(t, 3);
|
|
26
|
-
};
|
|
27
|
-
export var Quart = function Quart(t) {
|
|
28
|
-
return Math.pow(t, 4);
|
|
29
|
-
};
|
|
30
|
-
export var Quint = function Quint(t) {
|
|
31
|
-
return Math.pow(t, 5);
|
|
32
|
-
};
|
|
33
|
-
export var Expo = function Expo(t) {
|
|
34
|
-
return Math.pow(t, 6);
|
|
35
|
-
};
|
|
36
|
-
export var Sine = function Sine(t) {
|
|
37
|
-
return 1 - Math.cos(t * Math.PI / 2);
|
|
38
|
-
};
|
|
39
|
-
export var Circ = function Circ(t) {
|
|
40
|
-
return 1 - Math.sqrt(1 - t * t);
|
|
41
|
-
};
|
|
42
|
-
export var Back = function Back(t) {
|
|
43
|
-
return t * t * (3 * t - 2);
|
|
44
|
-
};
|
|
45
|
-
export var Bounce = function Bounce(t) {
|
|
46
|
-
var pow2,
|
|
47
|
-
b = 4;
|
|
48
|
-
|
|
49
|
-
while (t < ((pow2 = Math.pow(2, --b)) - 1) / 11) {}
|
|
50
|
-
|
|
51
|
-
return 1 / Math.pow(4, 3 - b) - 7.5625 * Math.pow((pow2 * 3 - 2) / 22 - t, 2);
|
|
52
|
-
};
|
|
53
|
-
export var Elastic = function Elastic(t, params) {
|
|
54
|
-
if (params === void 0) {
|
|
55
|
-
params = [];
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
var _a = __read(params, 2),
|
|
59
|
-
_b = _a[0],
|
|
60
|
-
amplitude = _b === void 0 ? 1 : _b,
|
|
61
|
-
_c = _a[1],
|
|
62
|
-
period = _c === void 0 ? 0.5 : _c;
|
|
63
|
-
|
|
64
|
-
var a = limit(Number(amplitude), 1, 10);
|
|
65
|
-
var p = limit(Number(period), 0.1, 2);
|
|
66
|
-
if (t === 0 || t === 1) return t;
|
|
67
|
-
return -a * Math.pow(2, 10 * (t - 1)) * Math.sin((t - 1 - p / (Math.PI * 2) * Math.asin(1 / a)) * (Math.PI * 2) / p);
|
|
68
|
-
};
|
|
69
|
-
export var Spring = function Spring(t, params, duration) {
|
|
70
|
-
if (params === void 0) {
|
|
71
|
-
params = [];
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
var _a = __read(params, 4),
|
|
75
|
-
_b = _a[0],
|
|
76
|
-
mass = _b === void 0 ? 1 : _b,
|
|
77
|
-
_c = _a[1],
|
|
78
|
-
stiffness = _c === void 0 ? 100 : _c,
|
|
79
|
-
_d = _a[2],
|
|
80
|
-
damping = _d === void 0 ? 10 : _d,
|
|
81
|
-
_e = _a[3],
|
|
82
|
-
velocity = _e === void 0 ? 0 : _e;
|
|
83
|
-
|
|
84
|
-
mass = limit(mass, 0.1, 1000);
|
|
85
|
-
stiffness = limit(stiffness, 0.1, 1000);
|
|
86
|
-
damping = limit(damping, 0.1, 1000);
|
|
87
|
-
velocity = limit(velocity, 0.1, 1000);
|
|
88
|
-
var w0 = Math.sqrt(stiffness / mass);
|
|
89
|
-
var zeta = damping / (2 * Math.sqrt(stiffness * mass));
|
|
90
|
-
var wd = zeta < 1 ? w0 * Math.sqrt(1 - zeta * zeta) : 0;
|
|
91
|
-
var a = 1;
|
|
92
|
-
var b = zeta < 1 ? (zeta * w0 + -velocity) / wd : -velocity + w0;
|
|
93
|
-
var progress = duration ? duration * t / 1000 : t;
|
|
94
|
-
|
|
95
|
-
if (zeta < 1) {
|
|
96
|
-
progress = Math.exp(-progress * zeta * w0) * (a * Math.cos(wd * progress) + b * Math.sin(wd * progress));
|
|
97
|
-
} else {
|
|
98
|
-
progress = (a + b * progress) * Math.exp(-progress * w0);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
if (t === 0 || t === 1) return t;
|
|
102
|
-
return 1 - progress;
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* Cache the durations at set easing parameters
|
|
106
|
-
*/
|
|
107
|
-
|
|
108
|
-
export var EasingDurationCache = new Map();
|
|
109
|
-
/**
|
|
110
|
-
* The threshold for an infinite loop
|
|
111
|
-
*/
|
|
112
|
-
|
|
113
|
-
export var INTINITE_LOOP_LIMIT = 10000;
|
|
114
|
-
/** Convert easing parameters to Array of numbers, e.g. "spring(2, 500)" to [2, 500] */
|
|
115
|
-
|
|
116
|
-
export var parseEasingParameters = function parseEasingParameters(str) {
|
|
117
|
-
var match = /(\(|\s)([^)]+)\)?/.exec(str);
|
|
118
|
-
return match ? match[2].split(',').map(function (value) {
|
|
119
|
-
var num = parseFloat(value);
|
|
120
|
-
return !Number.isNaN(num) ? num : value.trim();
|
|
121
|
-
}) : [];
|
|
122
|
-
};
|
|
123
|
-
/**
|
|
124
|
-
* The spring easing function will only look smooth at certain durations, with certain parameters.
|
|
125
|
-
* This functions returns the optimal duration to create a smooth springy animation based on physics
|
|
126
|
-
*
|
|
127
|
-
* Note: it can also be used to determine the optimal duration of other types of easing function, but be careful of 'in-'
|
|
128
|
-
* easing functions, because of the nature of the function it can sometimes create an infinite loop, I suggest only using
|
|
129
|
-
* `getEasingDuration` for `spring`, specifically 'out-spring' and 'spring'
|
|
130
|
-
*/
|
|
131
|
-
// export const getEasingDuration = (easing: string | TypeEasingFunction = 'spring') => {
|
|
132
|
-
// if (EasingDurationCache.has(easing)) return EasingDurationCache.get(easing);
|
|
133
|
-
// // eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
134
|
-
// const easingFunction = typeof easing == 'function' ? easing : getEasingFunction(easing as string);
|
|
135
|
-
// const params = typeof easing == 'function' ? [] : parseEasingParameters(easing);
|
|
136
|
-
// const frame = 1 / 6;
|
|
137
|
-
// let elapsed = 0;
|
|
138
|
-
// let rest = 0;
|
|
139
|
-
// let count = 0;
|
|
140
|
-
// while (++count < INTINITE_LOOP_LIMIT) {
|
|
141
|
-
// elapsed += frame;
|
|
142
|
-
// if (easingFunction(elapsed, params, undefined) === 1) {
|
|
143
|
-
// rest++;
|
|
144
|
-
// if (rest >= 16) break;
|
|
145
|
-
// } else {
|
|
146
|
-
// rest = 0;
|
|
147
|
-
// }
|
|
148
|
-
// }
|
|
149
|
-
// const duration = elapsed * frame * 1000;
|
|
150
|
-
// EasingDurationCache.set(easing, duration);
|
|
151
|
-
// return duration;
|
|
152
|
-
// };
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
These Easing Functions are based off of the Sozi Project's easing functions
|
|
156
|
-
https://github.com/sozi-projects/Sozi/blob/d72e44ebd580dc7579d1e177406ad41e632f961d/src/js/player/Timing.js
|
|
157
|
-
*/
|
|
158
|
-
|
|
159
|
-
export var Steps = function Steps(t, params) {
|
|
160
|
-
if (params === void 0) {
|
|
161
|
-
params = [];
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
var _a = __read(params, 2),
|
|
165
|
-
_b = _a[0],
|
|
166
|
-
steps = _b === void 0 ? 10 : _b,
|
|
167
|
-
type = _a[1];
|
|
168
|
-
|
|
169
|
-
var trunc = type == 'start' ? Math.ceil : Math.floor;
|
|
170
|
-
return trunc(limit(t, 0, 1) * steps) / steps;
|
|
171
|
-
}; // @ts-ignore
|
|
172
|
-
|
|
173
|
-
export var Bezier = function Bezier(t, params) {
|
|
174
|
-
if (params === void 0) {
|
|
175
|
-
params = [];
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
var _a = __read(params, 4),
|
|
179
|
-
mX1 = _a[0],
|
|
180
|
-
mY1 = _a[1],
|
|
181
|
-
mX2 = _a[2],
|
|
182
|
-
mY2 = _a[3];
|
|
183
|
-
|
|
184
|
-
return bezier(mX1, mY1, mX2, mY2)(t);
|
|
185
|
-
};
|
|
186
|
-
/** The default `ease-in` easing function */
|
|
187
|
-
|
|
188
|
-
export var easein = bezier(0.42, 0.0, 1.0, 1.0);
|
|
189
|
-
/** Converts easing functions to their `out`counter parts */
|
|
190
|
-
|
|
191
|
-
export var EaseOut = function EaseOut(ease) {
|
|
192
|
-
return function (t, params, duration) {
|
|
193
|
-
if (params === void 0) {
|
|
194
|
-
params = [];
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
return 1 - ease(1 - t, params, duration);
|
|
198
|
-
};
|
|
199
|
-
};
|
|
200
|
-
/** Converts easing functions to their `in-out` counter parts */
|
|
201
|
-
|
|
202
|
-
export var EaseInOut = function EaseInOut(ease) {
|
|
203
|
-
return function (t, params, duration) {
|
|
204
|
-
if (params === void 0) {
|
|
205
|
-
params = [];
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
return t < 0.5 ? ease(t * 2, params, duration) / 2 : 1 - ease(t * -2 + 2, params, duration) / 2;
|
|
209
|
-
};
|
|
210
|
-
};
|
|
211
|
-
/** Converts easing functions to their `out-in` counter parts */
|
|
212
|
-
|
|
213
|
-
export var EaseOutIn = function EaseOutIn(ease) {
|
|
214
|
-
return function (t, params, duration) {
|
|
215
|
-
if (params === void 0) {
|
|
216
|
-
params = [];
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
return t < 0.5 ? (1 - ease(1 - t * 2, params, duration)) / 2 : (ease(t * 2 - 1, params, duration) + 1) / 2;
|
|
220
|
-
};
|
|
221
|
-
};
|
|
222
|
-
/**
|
|
223
|
-
* The default list of easing functions, do note this is different from {@link EASING}
|
|
224
|
-
*/
|
|
225
|
-
|
|
226
|
-
export var EasingFunctions = {
|
|
227
|
-
steps: Steps,
|
|
228
|
-
'step-start': function stepStart(t) {
|
|
229
|
-
return Steps(t, [1, 'start']);
|
|
230
|
-
},
|
|
231
|
-
'step-end': function stepEnd(t) {
|
|
232
|
-
return Steps(t, [1, 'end']);
|
|
233
|
-
},
|
|
234
|
-
linear: function linear(t) {
|
|
235
|
-
return t;
|
|
236
|
-
},
|
|
237
|
-
'cubic-bezier': Bezier,
|
|
238
|
-
ease: function ease(t) {
|
|
239
|
-
return Bezier(t, [0.25, 0.1, 0.25, 1.0]);
|
|
240
|
-
},
|
|
241
|
-
in: easein,
|
|
242
|
-
out: EaseOut(easein),
|
|
243
|
-
'in-out': EaseInOut(easein),
|
|
244
|
-
'out-in': EaseOutIn(easein),
|
|
245
|
-
'in-quad': Quad,
|
|
246
|
-
'out-quad': EaseOut(Quad),
|
|
247
|
-
'in-out-quad': EaseInOut(Quad),
|
|
248
|
-
'out-in-quad': EaseOutIn(Quad),
|
|
249
|
-
'in-cubic': Cubic,
|
|
250
|
-
'out-cubic': EaseOut(Cubic),
|
|
251
|
-
'in-out-cubic': EaseInOut(Cubic),
|
|
252
|
-
'out-in-cubic': EaseOutIn(Cubic),
|
|
253
|
-
'in-quart': Quart,
|
|
254
|
-
'out-quart': EaseOut(Quart),
|
|
255
|
-
'in-out-quart': EaseInOut(Quart),
|
|
256
|
-
'out-in-quart': EaseOutIn(Quart),
|
|
257
|
-
'in-quint': Quint,
|
|
258
|
-
'out-quint': EaseOut(Quint),
|
|
259
|
-
'in-out-quint': EaseInOut(Quint),
|
|
260
|
-
'out-in-quint': EaseOutIn(Quint),
|
|
261
|
-
'in-expo': Expo,
|
|
262
|
-
'out-expo': EaseOut(Expo),
|
|
263
|
-
'in-out-expo': EaseInOut(Expo),
|
|
264
|
-
'out-in-expo': EaseOutIn(Expo),
|
|
265
|
-
'in-sine': Sine,
|
|
266
|
-
'out-sine': EaseOut(Sine),
|
|
267
|
-
'in-out-sine': EaseInOut(Sine),
|
|
268
|
-
'out-in-sine': EaseOutIn(Sine),
|
|
269
|
-
'in-circ': Circ,
|
|
270
|
-
'out-circ': EaseOut(Circ),
|
|
271
|
-
'in-out-circ': EaseInOut(Circ),
|
|
272
|
-
'out-in-circ': EaseOutIn(Circ),
|
|
273
|
-
'in-back': Back,
|
|
274
|
-
'out-back': EaseOut(Back),
|
|
275
|
-
'in-out-back': EaseInOut(Back),
|
|
276
|
-
'out-in-back': EaseOutIn(Back),
|
|
277
|
-
'in-bounce': Bounce,
|
|
278
|
-
'out-bounce': EaseOut(Bounce),
|
|
279
|
-
'in-out-bounce': EaseInOut(Bounce),
|
|
280
|
-
'out-in-bounce': EaseOutIn(Bounce),
|
|
281
|
-
'in-elastic': Elastic,
|
|
282
|
-
'out-elastic': EaseOut(Elastic),
|
|
283
|
-
'in-out-elastic': EaseInOut(Elastic),
|
|
284
|
-
'out-in-elastic': EaseOutIn(Elastic),
|
|
285
|
-
spring: Spring,
|
|
286
|
-
'spring-in': Spring,
|
|
287
|
-
'spring-out': EaseOut(Spring),
|
|
288
|
-
'spring-in-out': EaseInOut(Spring),
|
|
289
|
-
'spring-out-in': EaseOutIn(Spring)
|
|
290
|
-
};
|
|
291
|
-
/**
|
|
292
|
-
* Convert string easing to their proper form
|
|
293
|
-
*/
|
|
294
|
-
|
|
295
|
-
export var complexEasingSyntax = function complexEasingSyntax(ease) {
|
|
296
|
-
return convertToDash(ease).replace(/^ease-/, '') // Remove the "ease-" keyword
|
|
297
|
-
.replace(/(\(|\s).+/, '') // Remove the function brackets and parameters
|
|
298
|
-
.toLowerCase().trim();
|
|
299
|
-
};
|
|
300
|
-
/** Re-maps a number from one range to another. Numbers outside the range are not clamped to 0 and 1, because out-of-range values are often intentional and useful. */
|
|
301
|
-
|
|
302
|
-
export var getEasingFunction = function getEasingFunction(ease) {
|
|
303
|
-
return EasingFunctions[complexEasingSyntax(ease)] || EasingFunctions.linear;
|
|
304
|
-
}; // /**
|
|
305
|
-
// * Allows you to register new easing functions
|
|
306
|
-
// */
|
|
307
|
-
// export const registerEasingFunction = (key: string, fn: TypeEasingFunction) => {
|
|
308
|
-
// Object.assign(EasingFunctions, {
|
|
309
|
-
// [key]: fn,
|
|
310
|
-
// });
|
|
311
|
-
// };
|
|
312
|
-
// /**
|
|
313
|
-
// * Allows you to register multiple new easing functions
|
|
314
|
-
// */
|
|
315
|
-
// export const registerEasingFunctions = (...obj: typeof EasingFunctions[]) => {
|
|
316
|
-
// Object.assign(EasingFunctions, ...obj);
|
|
317
|
-
// };
|
package/es/utils/deferred.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
interface PromiseStatus<T> {
|
|
2
|
-
isPending: () => boolean;
|
|
3
|
-
isRejected: () => boolean;
|
|
4
|
-
isFulfilled: () => boolean;
|
|
5
|
-
getFullFilledValue: () => T;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* This function allow you to modify a JS Promise by adding some status properties.
|
|
9
|
-
* Based on: http://stackoverflow.com/questions/21485545/is-there-a-way-to-tell-if-an-es6-promise-is-fulfilled-rejected-resolved
|
|
10
|
-
* But modified according to the specs of promises : https://promisesaplus.com/
|
|
11
|
-
*/
|
|
12
|
-
export declare const makeQuerablePromise: <T>(promise: Promise<T>) => PromiseStatus<T>;
|
|
13
|
-
/**
|
|
14
|
-
* Simple implementation of the deferred pattern.
|
|
15
|
-
* An object that exposes a promise and functions to resolve and reject it.
|
|
16
|
-
*/
|
|
17
|
-
export declare class Deferred<T = void> {
|
|
18
|
-
resolve: (value: T | PromiseLike<T>) => void;
|
|
19
|
-
reject: (err?: any) => void;
|
|
20
|
-
promise: Promise<T>;
|
|
21
|
-
}
|
|
22
|
-
export declare const equalSet: (as: Set<any>, bs: Set<any>) => boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Nicely typed aliases for some `Object` Methods
|
|
25
|
-
* - PSA: Don't mutate `yourObject`s
|
|
26
|
-
* - Numerical keys are BAD, resolve that issue upstream
|
|
27
|
-
* - Discussion: https://stackoverflow.com/a/65117465/565877
|
|
28
|
-
*/
|
|
29
|
-
export declare const ObjectTyped: {
|
|
30
|
-
/**
|
|
31
|
-
* Object.keys, but with nice typing (`Array<keyof T>`)
|
|
32
|
-
*/
|
|
33
|
-
keys: <T extends {}>(yourObject: T) => (keyof T)[];
|
|
34
|
-
/**
|
|
35
|
-
* Object.values, but with nice typing
|
|
36
|
-
*/
|
|
37
|
-
values: <T_1 extends {}>(yourObject: T_1) => T_1[keyof T_1][];
|
|
38
|
-
/**
|
|
39
|
-
* Object.entries, but with nice typing
|
|
40
|
-
*/
|
|
41
|
-
entries: <T_2 extends {}>(yourObject: T_2) => [keyof T_2, T_2[keyof T_2]][];
|
|
42
|
-
};
|
|
43
|
-
export {};
|
package/es/utils/deferred.js
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { __values } from "tslib";
|
|
2
|
-
/**
|
|
3
|
-
* This function allow you to modify a JS Promise by adding some status properties.
|
|
4
|
-
* Based on: http://stackoverflow.com/questions/21485545/is-there-a-way-to-tell-if-an-es6-promise-is-fulfilled-rejected-resolved
|
|
5
|
-
* But modified according to the specs of promises : https://promisesaplus.com/
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
export var makeQuerablePromise = function makeQuerablePromise(promise) {
|
|
9
|
-
// Don't modify any promise that has been already modified.
|
|
10
|
-
if (promise.isRejected || promise.isFulfilled) return promise; // Set initial state
|
|
11
|
-
|
|
12
|
-
var isPending = true;
|
|
13
|
-
var isRejected = false;
|
|
14
|
-
var isFulfilled = false;
|
|
15
|
-
var fullFilledValue; // Observe the promise, saving the fulfillment in a closure scope.
|
|
16
|
-
|
|
17
|
-
var result = promise.then(function (v) {
|
|
18
|
-
isFulfilled = true;
|
|
19
|
-
isPending = false;
|
|
20
|
-
fullFilledValue = v;
|
|
21
|
-
return v;
|
|
22
|
-
}, function (e) {
|
|
23
|
-
isRejected = true;
|
|
24
|
-
isPending = false;
|
|
25
|
-
throw e;
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
result.isFulfilled = function () {
|
|
29
|
-
return isFulfilled;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
result.isPending = function () {
|
|
33
|
-
return isPending;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
result.isRejected = function () {
|
|
37
|
-
return isRejected;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
result.getFullFilledValue = function () {
|
|
41
|
-
return fullFilledValue;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
return result;
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Simple implementation of the deferred pattern.
|
|
48
|
-
* An object that exposes a promise and functions to resolve and reject it.
|
|
49
|
-
*/
|
|
50
|
-
|
|
51
|
-
var Deferred =
|
|
52
|
-
/** @class */
|
|
53
|
-
function () {
|
|
54
|
-
function Deferred() {
|
|
55
|
-
var _this = this;
|
|
56
|
-
|
|
57
|
-
this.promise = new Promise(function (resolve, reject) {
|
|
58
|
-
_this.resolve = resolve;
|
|
59
|
-
_this.reject = reject;
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
return Deferred;
|
|
64
|
-
}();
|
|
65
|
-
|
|
66
|
-
export { Deferred };
|
|
67
|
-
export var equalSet = function equalSet(as, bs) {
|
|
68
|
-
var e_1, _a;
|
|
69
|
-
|
|
70
|
-
if (as.size !== bs.size) return false;
|
|
71
|
-
|
|
72
|
-
try {
|
|
73
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
74
|
-
for (var as_1 = __values(as), as_1_1 = as_1.next(); !as_1_1.done; as_1_1 = as_1.next()) {
|
|
75
|
-
var a = as_1_1.value;
|
|
76
|
-
|
|
77
|
-
if (!bs.has(a)) {
|
|
78
|
-
return false;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
} catch (e_1_1) {
|
|
82
|
-
e_1 = {
|
|
83
|
-
error: e_1_1
|
|
84
|
-
};
|
|
85
|
-
} finally {
|
|
86
|
-
try {
|
|
87
|
-
if (as_1_1 && !as_1_1.done && (_a = as_1.return)) _a.call(as_1);
|
|
88
|
-
} finally {
|
|
89
|
-
if (e_1) throw e_1.error;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
return true;
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* Nicely typed aliases for some `Object` Methods
|
|
97
|
-
* - PSA: Don't mutate `yourObject`s
|
|
98
|
-
* - Numerical keys are BAD, resolve that issue upstream
|
|
99
|
-
* - Discussion: https://stackoverflow.com/a/65117465/565877
|
|
100
|
-
*/
|
|
101
|
-
|
|
102
|
-
export var ObjectTyped = {
|
|
103
|
-
/**
|
|
104
|
-
* Object.keys, but with nice typing (`Array<keyof T>`)
|
|
105
|
-
*/
|
|
106
|
-
keys: Object.keys,
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Object.values, but with nice typing
|
|
110
|
-
*/
|
|
111
|
-
values: Object.values,
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Object.entries, but with nice typing
|
|
115
|
-
*/
|
|
116
|
-
entries: Object.entries
|
|
117
|
-
};
|
package/es/utils/dom.d.ts
DELETED
package/es/utils/dom.js
DELETED
package/es/utils/event.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { IEventTarget } from '../dom';
|
|
2
|
-
export declare const MOUSE_POINTER_ID = 1;
|
|
3
|
-
export declare const TOUCH_TO_POINTER: Record<string, string>;
|
|
4
|
-
export interface FormattedPointerEvent extends PointerEvent {
|
|
5
|
-
isPrimary: boolean;
|
|
6
|
-
width: number;
|
|
7
|
-
height: number;
|
|
8
|
-
tiltX: number;
|
|
9
|
-
tiltY: number;
|
|
10
|
-
pointerType: string;
|
|
11
|
-
pointerId: number;
|
|
12
|
-
pressure: number;
|
|
13
|
-
twist: number;
|
|
14
|
-
tangentialPressure: number;
|
|
15
|
-
isNormalized: boolean;
|
|
16
|
-
type: string;
|
|
17
|
-
}
|
|
18
|
-
export interface FormattedTouchEvent {
|
|
19
|
-
isNormalized: boolean;
|
|
20
|
-
type: string;
|
|
21
|
-
/**
|
|
22
|
-
* we don't implement TouchList here
|
|
23
|
-
*
|
|
24
|
-
* @see https://developer.mozilla.org/zh-CN/docs/Web/API/TouchEvent/changedTouches
|
|
25
|
-
*/
|
|
26
|
-
changedTouches: FormattedTouch[];
|
|
27
|
-
/**
|
|
28
|
-
* @see https://developer.mozilla.org/zh-CN/docs/Web/API/TouchEvent/touches
|
|
29
|
-
*/
|
|
30
|
-
touches: FormattedTouch[];
|
|
31
|
-
/**
|
|
32
|
-
* @see https://developer.mozilla.org/zh-CN/docs/Web/API/TouchEvent/targetTouches
|
|
33
|
-
*/
|
|
34
|
-
targetTouches: FormattedTouch[];
|
|
35
|
-
}
|
|
36
|
-
export interface FormattedTouch extends Touch {
|
|
37
|
-
x: number;
|
|
38
|
-
y: number;
|
|
39
|
-
canvasX: number;
|
|
40
|
-
canvasY: number;
|
|
41
|
-
viewportX: number;
|
|
42
|
-
viewportY: number;
|
|
43
|
-
target: IEventTarget | null;
|
|
44
|
-
nativeTouch: Touch;
|
|
45
|
-
}
|
package/es/utils/event.js
DELETED
package/es/utils/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from './assert';
|
|
2
|
-
export * from './math';
|
|
3
|
-
export * from './interpolation';
|
|
4
|
-
export * from './path';
|
|
5
|
-
export * from './text';
|
|
6
|
-
export * from './string';
|
|
7
|
-
export * from './event';
|
|
8
|
-
export * from './canvas';
|
|
9
|
-
export * from './deferred';
|
|
10
|
-
export * from './dom';
|
package/es/utils/index.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from './assert';
|
|
2
|
-
export * from './math';
|
|
3
|
-
export * from './interpolation';
|
|
4
|
-
export * from './path';
|
|
5
|
-
export * from './text';
|
|
6
|
-
export * from './string';
|
|
7
|
-
export * from './event';
|
|
8
|
-
export * from './canvas';
|
|
9
|
-
export * from './deferred';
|
|
10
|
-
export * from './dom';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { AnimationEffectTiming } from '../dom';
|
|
2
|
-
import type { IElement } from '../dom/interfaces';
|
|
3
|
-
export declare function convertEffectInput(keyframes: ComputedKeyframe[], timing: AnimationEffectTiming, target: IElement | null): (target: IElement, fraction: number) => void;
|
|
4
|
-
export declare function formatAttribute(name: string, value: any): [string, any];
|