@antv/g 5.1.1 → 5.1.3-alpha.1
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 +20766 -0
- package/dist/index.js +20942 -0
- package/dist/index.umd.js +29072 -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 +13 -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/tapable/AsyncParallelHook.d.ts +6 -0
- package/dist/utils/tapable/AsyncParallelHook.d.ts.map +1 -0
- package/dist/utils/tapable/AsyncSeriesWaterfallHook.d.ts +6 -0
- package/dist/utils/tapable/AsyncSeriesWaterfallHook.d.ts.map +1 -0
- package/dist/utils/tapable/Hook.d.ts +52 -0
- package/dist/utils/tapable/Hook.d.ts.map +1 -0
- package/dist/utils/tapable/HookCodeFactory.d.ts +47 -0
- package/dist/utils/tapable/HookCodeFactory.d.ts.map +1 -0
- package/dist/utils/tapable/SyncHook.d.ts +6 -0
- package/dist/utils/tapable/SyncHook.d.ts.map +1 -0
- package/dist/utils/tapable/SyncWaterfallHook.d.ts +6 -0
- package/dist/utils/tapable/SyncWaterfallHook.d.ts.map +1 -0
- package/dist/utils/tapable/index.d.ts +5 -0
- package/dist/utils/tapable/index.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 -34
- 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 -85
- 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 -26
- package/es/display-objects/CustomElement.js +0 -102
- 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 -96
- 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 -26
- package/lib/display-objects/CustomElement.js +0 -109
- 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,303 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.mergeTransforms = mergeTransforms;
|
|
7
|
-
exports.parseTransform = parseTransform;
|
|
8
|
-
|
|
9
|
-
var _types = require("../cssom/types");
|
|
10
|
-
|
|
11
|
-
var _CSSNumericValue = require("../cssom/CSSNumericValue");
|
|
12
|
-
|
|
13
|
-
var _dimension = require("./dimension");
|
|
14
|
-
|
|
15
|
-
var _numeric = require("./numeric");
|
|
16
|
-
|
|
17
|
-
var _CSS = require("../CSS");
|
|
18
|
-
|
|
19
|
-
var _ = null;
|
|
20
|
-
|
|
21
|
-
function cast(pattern) {
|
|
22
|
-
return function (contents) {
|
|
23
|
-
var i = 0;
|
|
24
|
-
return pattern.map(function (x) {
|
|
25
|
-
return x === _ ? contents[i++] : x;
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function id(x) {
|
|
31
|
-
return x;
|
|
32
|
-
} // type: [argTypes, convertTo3D, convertTo2D]
|
|
33
|
-
// In the argument types string, lowercase characters represent optional arguments
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
var transformFunctions = {
|
|
37
|
-
// matrix: ['NNNNNN', [_, _, 0, 0, _, _, 0, 0, 0, 0, 1, 0, _, _, 0, 1], id],
|
|
38
|
-
// matrix3d: ['NNNNNNNNNNNNNNNN', id],
|
|
39
|
-
rotate: ['A'],
|
|
40
|
-
rotatex: ['A'],
|
|
41
|
-
rotatey: ['A'],
|
|
42
|
-
rotatez: ['A'],
|
|
43
|
-
rotate3d: ['NNNA'],
|
|
44
|
-
// perspective: ['L'],
|
|
45
|
-
scale: ['Nn', cast([_, _, _CSS.CSS.number(1)]), id],
|
|
46
|
-
scalex: ['N', cast([_, _CSS.CSS.number(1), _CSS.CSS.number(1)]), cast([_, _CSS.CSS.number(1)])],
|
|
47
|
-
scaley: ['N', cast([_CSS.CSS.number(1), _, _CSS.CSS.number(1)]), cast([_CSS.CSS.number(1), _])],
|
|
48
|
-
scalez: ['N', cast([_CSS.CSS.number(1), _CSS.CSS.number(1), _])],
|
|
49
|
-
scale3d: ['NNN', id],
|
|
50
|
-
// skew: ['Aa', null, id],
|
|
51
|
-
// skewx: ['A', null, cast([_, Odeg])],
|
|
52
|
-
// skewy: ['A', null, cast([Odeg, _])],
|
|
53
|
-
translate: ['Tt', cast([_, _, _CSSNumericValue.Opx]), id],
|
|
54
|
-
translatex: ['T', cast([_, _CSSNumericValue.Opx, _CSSNumericValue.Opx]), cast([_, _CSSNumericValue.Opx])],
|
|
55
|
-
translatey: ['T', cast([_CSSNumericValue.Opx, _, _CSSNumericValue.Opx]), cast([_CSSNumericValue.Opx, _])],
|
|
56
|
-
translatez: ['L', cast([_CSSNumericValue.Opx, _CSSNumericValue.Opx, _])],
|
|
57
|
-
translate3d: ['TTL', id]
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* none
|
|
61
|
-
* scale(1) scale(1, 2)
|
|
62
|
-
* scaleX(1)
|
|
63
|
-
*/
|
|
64
|
-
|
|
65
|
-
function parseTransform(string) {
|
|
66
|
-
string = (string || 'none').toLowerCase().trim();
|
|
67
|
-
|
|
68
|
-
if (string === 'none') {
|
|
69
|
-
return [];
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
var transformRegExp = /\s*(\w+)\(([^)]*)\)/g;
|
|
73
|
-
var result = [];
|
|
74
|
-
var match;
|
|
75
|
-
var prevLastIndex = 0;
|
|
76
|
-
|
|
77
|
-
while (match = transformRegExp.exec(string)) {
|
|
78
|
-
if (match.index !== prevLastIndex) {
|
|
79
|
-
return [];
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
prevLastIndex = match.index + match[0].length;
|
|
83
|
-
var functionName = match[1]; // scale
|
|
84
|
-
|
|
85
|
-
var functionData = transformFunctions[functionName]; // scale(1, 2)
|
|
86
|
-
|
|
87
|
-
if (!functionData) {
|
|
88
|
-
// invalid, eg. scale()
|
|
89
|
-
return [];
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
var args = match[2].split(','); // 1,2
|
|
93
|
-
|
|
94
|
-
var argTypes = functionData[0]; // Nn
|
|
95
|
-
|
|
96
|
-
if (argTypes.length < args.length) {
|
|
97
|
-
// scale(N, n)
|
|
98
|
-
return [];
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
var parsedArgs = [];
|
|
102
|
-
|
|
103
|
-
for (var i = 0; i < argTypes.length; i++) {
|
|
104
|
-
var arg = args[i];
|
|
105
|
-
var type = argTypes[i];
|
|
106
|
-
var parsedArg = void 0;
|
|
107
|
-
|
|
108
|
-
if (!arg) {
|
|
109
|
-
// @ts-ignore
|
|
110
|
-
parsedArg = {
|
|
111
|
-
a: _CSSNumericValue.Odeg,
|
|
112
|
-
n: parsedArgs[0],
|
|
113
|
-
t: _CSSNumericValue.Opx
|
|
114
|
-
}[type];
|
|
115
|
-
} else {
|
|
116
|
-
// @ts-ignore
|
|
117
|
-
parsedArg = {
|
|
118
|
-
A: function A(s) {
|
|
119
|
-
return s.trim() === '0' ? _CSSNumericValue.Odeg : (0, _dimension.parseAngle)(s);
|
|
120
|
-
},
|
|
121
|
-
N: _numeric.parseNumber,
|
|
122
|
-
T: _dimension.parseLengthOrPercentage,
|
|
123
|
-
L: _dimension.parseLength
|
|
124
|
-
}[type.toUpperCase()](arg);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
if (parsedArg === undefined) {
|
|
128
|
-
return [];
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
parsedArgs.push(parsedArg);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
result.push({
|
|
135
|
-
t: functionName,
|
|
136
|
-
d: parsedArgs
|
|
137
|
-
}); // { t: scale, d: [1, 2] }
|
|
138
|
-
|
|
139
|
-
if (transformRegExp.lastIndex === string.length) {
|
|
140
|
-
return result;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
return [];
|
|
145
|
-
} // function mergeMatrices(left: number[][], right: number[][]): [
|
|
146
|
-
// number[][], number[][], () => string,
|
|
147
|
-
// ] {
|
|
148
|
-
// if (left.decompositionPair !== right) {
|
|
149
|
-
// left.decompositionPair = right;
|
|
150
|
-
// var leftArgs = makeMatrixDecomposition(left);
|
|
151
|
-
// }
|
|
152
|
-
// if (right.decompositionPair !== left) {
|
|
153
|
-
// right.decompositionPair = left;
|
|
154
|
-
// var rightArgs = makeMatrixDecomposition(right);
|
|
155
|
-
// }
|
|
156
|
-
// if (leftArgs[0] === null || rightArgs[0] === null)
|
|
157
|
-
// return [[false], [true], (x) => { return x ? right[0].d : left[0].d; }];
|
|
158
|
-
// leftArgs[0].push(0);
|
|
159
|
-
// rightArgs[0].push(1);
|
|
160
|
-
// return [
|
|
161
|
-
// leftArgs,
|
|
162
|
-
// rightArgs,
|
|
163
|
-
// (list) => {
|
|
164
|
-
// const q = quat(leftArgs[0][3], rightArgs[0][3], list[5]);
|
|
165
|
-
// const mat = composeMatrix(list[0], list[1], list[2], q, list[4]);
|
|
166
|
-
// const stringifiedArgs = mat.map(numberToLongString).join(',');
|
|
167
|
-
// return stringifiedArgs;
|
|
168
|
-
// }
|
|
169
|
-
// ];
|
|
170
|
-
// }
|
|
171
|
-
// scalex/y/z -> scale
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
function typeTo2D(type) {
|
|
175
|
-
return type.replace(/[xy]/, '');
|
|
176
|
-
} // scalex/y/z -> scale3d
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
function typeTo3D(type) {
|
|
180
|
-
return type.replace(/(x|y|z|3d)?$/, '3d');
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
var isMatrixOrPerspective = function isMatrixOrPerspective(lt, rt) {
|
|
184
|
-
return lt === 'perspective' && rt === 'perspective' || (lt === 'matrix' || lt === 'matrix3d') && (rt === 'matrix' || rt === 'matrix3d');
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
function mergeTransforms(left, right, target) {
|
|
188
|
-
var flipResults = false; // padding empty transform, eg. merge 'scale(10)' with 'none' -> scale(1)
|
|
189
|
-
|
|
190
|
-
if (!left.length || !right.length) {
|
|
191
|
-
if (!left.length) {
|
|
192
|
-
flipResults = true;
|
|
193
|
-
left = right;
|
|
194
|
-
right = [];
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
var _loop_1 = function _loop_1(i) {
|
|
198
|
-
var _a = left[i],
|
|
199
|
-
type = _a.t,
|
|
200
|
-
args = _a.d; // none -> scale(1)/translateX(0)
|
|
201
|
-
|
|
202
|
-
var defaultValue = type.substr(0, 5) === 'scale' ? 1 : 0;
|
|
203
|
-
right.push({
|
|
204
|
-
t: type,
|
|
205
|
-
d: args.map(function (arg) {
|
|
206
|
-
if (typeof arg === 'number') {
|
|
207
|
-
return new _CSSNumericValue.CSSUnitValue(defaultValue);
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
return new _CSSNumericValue.CSSUnitValue(defaultValue, arg.unit); // {
|
|
211
|
-
// unit: arg.unit,
|
|
212
|
-
// value: defaultValue,
|
|
213
|
-
// };
|
|
214
|
-
})
|
|
215
|
-
});
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
for (var i = 0; i < left.length; i++) {
|
|
219
|
-
_loop_1(i);
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
var leftResult = [];
|
|
224
|
-
var rightResult = [];
|
|
225
|
-
var types = []; // merge matrix() with matrix3d()
|
|
226
|
-
|
|
227
|
-
if (left.length !== right.length) {// const merged = mergeMatrices(left, right);
|
|
228
|
-
// leftResult = [merged[0]];
|
|
229
|
-
// rightResult = [merged[1]];
|
|
230
|
-
// types = [['matrix', [merged[2]]]];
|
|
231
|
-
} else {
|
|
232
|
-
for (var i = 0; i < left.length; i++) {
|
|
233
|
-
var leftType = left[i].t;
|
|
234
|
-
var rightType = right[i].t;
|
|
235
|
-
var leftArgs = left[i].d;
|
|
236
|
-
var rightArgs = right[i].d;
|
|
237
|
-
var leftFunctionData = transformFunctions[leftType];
|
|
238
|
-
var rightFunctionData = transformFunctions[rightType];
|
|
239
|
-
var type = void 0;
|
|
240
|
-
|
|
241
|
-
if (isMatrixOrPerspective(leftType, rightType)) {
|
|
242
|
-
// const merged = mergeMatrices([left[i]], [right[i]]);
|
|
243
|
-
// leftResult.push(merged[0]);
|
|
244
|
-
// rightResult.push(merged[1]);
|
|
245
|
-
// types.push(['matrix', [merged[2]]]);
|
|
246
|
-
continue;
|
|
247
|
-
} else if (leftType === rightType) {
|
|
248
|
-
type = leftType;
|
|
249
|
-
} else if (leftFunctionData[2] && rightFunctionData[2] && typeTo2D(leftType) === typeTo2D(rightType)) {
|
|
250
|
-
type = typeTo2D(leftType); // @ts-ignore
|
|
251
|
-
|
|
252
|
-
leftArgs = leftFunctionData[2](leftArgs); // @ts-ignore
|
|
253
|
-
|
|
254
|
-
rightArgs = rightFunctionData[2](rightArgs);
|
|
255
|
-
} else if (leftFunctionData[1] && rightFunctionData[1] && typeTo3D(leftType) === typeTo3D(rightType)) {
|
|
256
|
-
type = typeTo3D(leftType); // @ts-ignore
|
|
257
|
-
|
|
258
|
-
leftArgs = leftFunctionData[1](leftArgs); // @ts-ignore
|
|
259
|
-
|
|
260
|
-
rightArgs = rightFunctionData[1](rightArgs);
|
|
261
|
-
} else {
|
|
262
|
-
// const merged = mergeMatrices(left, right);
|
|
263
|
-
// leftResult = [merged[0]];
|
|
264
|
-
// rightResult = [merged[1]];
|
|
265
|
-
// types = [['matrix', [merged[2]]]];
|
|
266
|
-
break;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
var leftArgsCopy = [];
|
|
270
|
-
var rightArgsCopy = [];
|
|
271
|
-
var stringConversions = [];
|
|
272
|
-
|
|
273
|
-
for (var j = 0; j < leftArgs.length; j++) {
|
|
274
|
-
var merge = leftArgs[j].unit === _types.UnitType.kNumber ? _numeric.mergeNumbers : _dimension.mergeDimensions; // @ts-ignore
|
|
275
|
-
|
|
276
|
-
var merged = merge(leftArgs[j], rightArgs[j], target, false, j);
|
|
277
|
-
leftArgsCopy[j] = merged[0];
|
|
278
|
-
rightArgsCopy[j] = merged[1];
|
|
279
|
-
stringConversions.push(merged[2]);
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
leftResult.push(leftArgsCopy);
|
|
283
|
-
rightResult.push(rightArgsCopy);
|
|
284
|
-
types.push([type, stringConversions]);
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
if (flipResults) {
|
|
289
|
-
var tmp = leftResult;
|
|
290
|
-
leftResult = rightResult;
|
|
291
|
-
rightResult = tmp;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
return [leftResult, rightResult, function (list) {
|
|
295
|
-
return list.map(function (args, i) {
|
|
296
|
-
var stringifiedArgs = args.map(function (arg, j) {
|
|
297
|
-
return types[i][1][j](arg);
|
|
298
|
-
}).join(',');
|
|
299
|
-
if (types[i][0] === 'matrix' && stringifiedArgs.split(',').length === 16) types[i][0] = 'matrix3d';
|
|
300
|
-
return types[i][0] + '(' + stringifiedArgs + ')';
|
|
301
|
-
}).join(' ');
|
|
302
|
-
}];
|
|
303
|
-
}
|
package/lib/css/parser/types.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { CSSProperty } from '../CSSProperty';
|
|
2
|
-
import type { DisplayObject } from '../../display-objects';
|
|
3
|
-
import { CSSUnitValue } from '../cssom';
|
|
4
|
-
import { parseNumberList } from '../parser';
|
|
5
|
-
export declare class CSSPropertyAnchor implements Partial<CSSProperty<CSSUnitValue[], CSSUnitValue[]>> {
|
|
6
|
-
parser: typeof parseNumberList;
|
|
7
|
-
calculator(name: string, oldParsed: CSSUnitValue[], parsed: CSSUnitValue[], object: DisplayObject): CSSUnitValue[];
|
|
8
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.CSSPropertyAnchor = void 0;
|
|
7
|
-
|
|
8
|
-
var _tslib = require("tslib");
|
|
9
|
-
|
|
10
|
-
var _manaSyringe = require("mana-syringe");
|
|
11
|
-
|
|
12
|
-
var _cssom = require("../cssom");
|
|
13
|
-
|
|
14
|
-
var _parser = require("../parser");
|
|
15
|
-
|
|
16
|
-
var CSSPropertyAnchor =
|
|
17
|
-
/** @class */
|
|
18
|
-
function () {
|
|
19
|
-
function CSSPropertyAnchor() {
|
|
20
|
-
this.parser = _parser.parseNumberList;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
CSSPropertyAnchor.prototype.calculator = function (name, oldParsed, parsed, object) {
|
|
24
|
-
if (parsed.length === 2) {
|
|
25
|
-
return [parsed[0], parsed[1], new _cssom.CSSUnitValue(0)];
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
return parsed;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
CSSPropertyAnchor = (0, _tslib.__decorate)([(0, _manaSyringe.singleton)()], CSSPropertyAnchor);
|
|
32
|
-
return CSSPropertyAnchor;
|
|
33
|
-
}();
|
|
34
|
-
|
|
35
|
-
exports.CSSPropertyAnchor = CSSPropertyAnchor;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { CSSProperty } from '../CSSProperty';
|
|
2
|
-
import type { DisplayObject } from '../../display-objects';
|
|
3
|
-
/**
|
|
4
|
-
* @see /zh/docs/api/basic/display-object#clippath
|
|
5
|
-
* @example
|
|
6
|
-
const image = new Image({
|
|
7
|
-
style: {
|
|
8
|
-
width: 200,
|
|
9
|
-
height: 200,
|
|
10
|
-
clipPath: new Circle({
|
|
11
|
-
style: {
|
|
12
|
-
x: 100, // 处于被裁剪图形局部坐标系下
|
|
13
|
-
y: 100,
|
|
14
|
-
r: 50,
|
|
15
|
-
},
|
|
16
|
-
}),
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
*/
|
|
20
|
-
export declare class CSSPropertyClipPath implements Partial<CSSProperty<DisplayObject, DisplayObject>> {
|
|
21
|
-
calculator(name: string, oldClipPath: DisplayObject, newClipPath: DisplayObject, object: DisplayObject): DisplayObject<any, any>;
|
|
22
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.CSSPropertyClipPath = void 0;
|
|
7
|
-
|
|
8
|
-
var _tslib = require("tslib");
|
|
9
|
-
|
|
10
|
-
var _manaSyringe = require("mana-syringe");
|
|
11
|
-
|
|
12
|
-
var _services = require("../../services");
|
|
13
|
-
|
|
14
|
-
var _cssom = require("../cssom");
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @see /zh/docs/api/basic/display-object#clippath
|
|
18
|
-
* @example
|
|
19
|
-
const image = new Image({
|
|
20
|
-
style: {
|
|
21
|
-
width: 200,
|
|
22
|
-
height: 200,
|
|
23
|
-
clipPath: new Circle({
|
|
24
|
-
style: {
|
|
25
|
-
x: 100, // 处于被裁剪图形局部坐标系下
|
|
26
|
-
y: 100,
|
|
27
|
-
r: 50,
|
|
28
|
-
},
|
|
29
|
-
}),
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
*/
|
|
33
|
-
var CSSPropertyClipPath =
|
|
34
|
-
/** @class */
|
|
35
|
-
function () {
|
|
36
|
-
function CSSPropertyClipPath() {}
|
|
37
|
-
|
|
38
|
-
CSSPropertyClipPath.prototype.calculator = function (name, oldClipPath, newClipPath, object) {
|
|
39
|
-
// unset
|
|
40
|
-
if (newClipPath instanceof _cssom.CSSKeywordValue) {
|
|
41
|
-
newClipPath = null;
|
|
42
|
-
} // clear ref to old clip path
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
if (oldClipPath && oldClipPath !== newClipPath && oldClipPath.style.clipPathTargets) {
|
|
46
|
-
var index = oldClipPath.style.clipPathTargets.indexOf(object);
|
|
47
|
-
oldClipPath.style.clipPathTargets.splice(index, 1);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
if (newClipPath) {
|
|
51
|
-
if (!newClipPath.style.clipPathTargets) {
|
|
52
|
-
newClipPath.style.clipPathTargets = [];
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
newClipPath.style.clipPathTargets.push(object);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
(0, _services.dirtifyToRoot)(object);
|
|
59
|
-
return newClipPath;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
CSSPropertyClipPath = (0, _tslib.__decorate)([(0, _manaSyringe.singleton)()], CSSPropertyClipPath);
|
|
63
|
-
return CSSPropertyClipPath;
|
|
64
|
-
}();
|
|
65
|
-
|
|
66
|
-
exports.CSSPropertyClipPath = CSSPropertyClipPath;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { CSSProperty } from '../CSSProperty';
|
|
2
|
-
import type { DisplayObject } from '../../display-objects';
|
|
3
|
-
import { parseColor, mergeColors } from '../parser';
|
|
4
|
-
import type { CSSGradientValue } from '../cssom';
|
|
5
|
-
import { CSSKeywordValue, CSSRGB } from '../cssom';
|
|
6
|
-
import type { StyleValueRegistry } from '../interfaces';
|
|
7
|
-
/**
|
|
8
|
-
* opacity
|
|
9
|
-
*/
|
|
10
|
-
export declare class CSSPropertyColor implements Partial<CSSProperty<CSSRGB | CSSGradientValue | CSSKeywordValue, CSSRGB | CSSGradientValue>> {
|
|
11
|
-
parser: typeof parseColor;
|
|
12
|
-
calculator(name: string, oldParsed: CSSRGB | CSSGradientValue | CSSKeywordValue, parsed: CSSRGB | CSSGradientValue | CSSKeywordValue, object: DisplayObject, registry: StyleValueRegistry): CSSRGB | CSSGradientValue;
|
|
13
|
-
mixer: typeof mergeColors;
|
|
14
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.CSSPropertyColor = void 0;
|
|
7
|
-
|
|
8
|
-
var _tslib = require("tslib");
|
|
9
|
-
|
|
10
|
-
var _manaSyringe = require("mana-syringe");
|
|
11
|
-
|
|
12
|
-
var _parser = require("../parser");
|
|
13
|
-
|
|
14
|
-
var _cssom = require("../cssom");
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* opacity
|
|
18
|
-
*/
|
|
19
|
-
var CSSPropertyColor =
|
|
20
|
-
/** @class */
|
|
21
|
-
function () {
|
|
22
|
-
function CSSPropertyColor() {
|
|
23
|
-
this.parser = _parser.parseColor;
|
|
24
|
-
this.mixer = _parser.mergeColors;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
CSSPropertyColor.prototype.calculator = function (name, oldParsed, parsed, object, registry) {
|
|
28
|
-
if (parsed instanceof _cssom.CSSKeywordValue) {
|
|
29
|
-
// 'unset' 'none'
|
|
30
|
-
return new _cssom.CSSRGB(0, 0, 0, 0, parsed.value === 'none');
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
return parsed;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
CSSPropertyColor = (0, _tslib.__decorate)([(0, _manaSyringe.singleton)()], CSSPropertyColor);
|
|
37
|
-
return CSSPropertyColor;
|
|
38
|
-
}();
|
|
39
|
-
|
|
40
|
-
exports.CSSPropertyColor = CSSPropertyColor;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { CSSProperty } from '../CSSProperty';
|
|
2
|
-
import type { ParsedFilterStyleProperty } from '../parser';
|
|
3
|
-
import { parseFilter } from '../parser';
|
|
4
|
-
export declare class CSSPropertyFilter implements Partial<CSSProperty<ParsedFilterStyleProperty[], ParsedFilterStyleProperty[]>> {
|
|
5
|
-
parser: typeof parseFilter;
|
|
6
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.CSSPropertyFilter = void 0;
|
|
7
|
-
|
|
8
|
-
var _tslib = require("tslib");
|
|
9
|
-
|
|
10
|
-
var _manaSyringe = require("mana-syringe");
|
|
11
|
-
|
|
12
|
-
var _parser = require("../parser");
|
|
13
|
-
|
|
14
|
-
var CSSPropertyFilter =
|
|
15
|
-
/** @class */
|
|
16
|
-
function () {
|
|
17
|
-
function CSSPropertyFilter() {
|
|
18
|
-
this.parser = _parser.parseFilter;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
CSSPropertyFilter = (0, _tslib.__decorate)([(0, _manaSyringe.singleton)()], CSSPropertyFilter);
|
|
22
|
-
return CSSPropertyFilter;
|
|
23
|
-
}();
|
|
24
|
-
|
|
25
|
-
exports.CSSPropertyFilter = CSSPropertyFilter;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { CSSUnitValue } from '../cssom';
|
|
2
|
-
import { mergeDimensions } from '../parser';
|
|
3
|
-
import type { StyleValueRegistry } from '../interfaces';
|
|
4
|
-
import type { DisplayObject } from '../../display-objects';
|
|
5
|
-
import type { CSSProperty } from '../CSSProperty';
|
|
6
|
-
/**
|
|
7
|
-
* <length> & <percentage>
|
|
8
|
-
*/
|
|
9
|
-
export declare class CSSPropertyLengthOrPercentage implements Partial<CSSProperty<CSSUnitValue, CSSUnitValue>> {
|
|
10
|
-
parser: (css: string) => CSSUnitValue;
|
|
11
|
-
mixer: typeof mergeDimensions;
|
|
12
|
-
/**
|
|
13
|
-
* according to parent's bounds
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* CSS.percent(50) -> CSS.px(0.5 * parent.width)
|
|
17
|
-
*/
|
|
18
|
-
calculator(name: string, oldParsed: CSSUnitValue, computed: CSSUnitValue, object: DisplayObject, registry: StyleValueRegistry): CSSUnitValue;
|
|
19
|
-
private nameToBoundsIndex;
|
|
20
|
-
private calculateUsedValueWithParentBounds;
|
|
21
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.CSSPropertyLengthOrPercentage = void 0;
|
|
7
|
-
|
|
8
|
-
var _tslib = require("tslib");
|
|
9
|
-
|
|
10
|
-
var _manaSyringe = require("mana-syringe");
|
|
11
|
-
|
|
12
|
-
var _cssom = require("../cssom");
|
|
13
|
-
|
|
14
|
-
var _parser = require("../parser");
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* <length> & <percentage>
|
|
18
|
-
*/
|
|
19
|
-
var CSSPropertyLengthOrPercentage =
|
|
20
|
-
/** @class */
|
|
21
|
-
function () {
|
|
22
|
-
function CSSPropertyLengthOrPercentage() {
|
|
23
|
-
this.parser = _parser.parseLengthOrPercentage;
|
|
24
|
-
this.mixer = _parser.mergeDimensions;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* according to parent's bounds
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* CSS.percent(50) -> CSS.px(0.5 * parent.width)
|
|
31
|
-
*/
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
CSSPropertyLengthOrPercentage.prototype.calculator = function (name, oldParsed, computed, object, registry) {
|
|
35
|
-
if (_cssom.CSSUnitValue.isRelativeUnit(computed.unit)) {
|
|
36
|
-
if (computed.unit === _cssom.UnitType.kPercentage) {
|
|
37
|
-
// try to resolve according to parent's geometry bounds
|
|
38
|
-
// if (object.parentElement) {
|
|
39
|
-
// // registry.registerParentGeometryBoundsChangedHandler(object, name);
|
|
40
|
-
// return this.calculateUsedValueWithParentBounds(object, name);
|
|
41
|
-
// } else {
|
|
42
|
-
// registry.addUnresolveProperty(object, name);
|
|
43
|
-
// // defer calculation after mounted
|
|
44
|
-
// // object.addEventListener(
|
|
45
|
-
// // ElementEvent.MOUNTED,
|
|
46
|
-
// // () => {
|
|
47
|
-
// // registry.registerParentGeometryBoundsChangedHandler(object, name);
|
|
48
|
-
// // },
|
|
49
|
-
// // { once: true },
|
|
50
|
-
// // );
|
|
51
|
-
// }
|
|
52
|
-
return new _cssom.CSSUnitValue(0, 'px');
|
|
53
|
-
} else if (computed.unit === _cssom.UnitType.kEms) {
|
|
54
|
-
// TODO: handle ems
|
|
55
|
-
return new _cssom.CSSUnitValue(0, 'px');
|
|
56
|
-
}
|
|
57
|
-
} else {
|
|
58
|
-
// remove listener if exists
|
|
59
|
-
// registry.unregisterParentGeometryBoundsChangedHandler(object, name);
|
|
60
|
-
// return absolute value
|
|
61
|
-
return computed.clone();
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
CSSPropertyLengthOrPercentage.prototype.nameToBoundsIndex = function (name) {
|
|
66
|
-
if (name === 'x' || name === 'cx' || name === 'width') {
|
|
67
|
-
return 0;
|
|
68
|
-
} else if (name === 'y' || name === 'cy' || name === 'height') {
|
|
69
|
-
return 1;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
return 2;
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
CSSPropertyLengthOrPercentage.prototype.calculateUsedValueWithParentBounds = function (object, name) {
|
|
76
|
-
var bounds = object.parentElement.getGeometryBounds();
|
|
77
|
-
var computedValue = object.computedStyle[name].value;
|
|
78
|
-
return new _cssom.CSSUnitValue(bounds.halfExtents[this.nameToBoundsIndex(name)] * 2 * computedValue / 100, 'px');
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
CSSPropertyLengthOrPercentage = (0, _tslib.__decorate)([(0, _manaSyringe.singleton)()], CSSPropertyLengthOrPercentage);
|
|
82
|
-
return CSSPropertyLengthOrPercentage;
|
|
83
|
-
}();
|
|
84
|
-
|
|
85
|
-
exports.CSSPropertyLengthOrPercentage = CSSPropertyLengthOrPercentage;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { DisplayObject } from '../../display-objects';
|
|
2
|
-
import type { CSSProperty } from '../CSSProperty';
|
|
3
|
-
import type { CSSUnitValue } from '../cssom';
|
|
4
|
-
import { parseDimensionArray, mergeDimensionList } from '../parser';
|
|
5
|
-
export declare class CSSPropertyLineDash implements Partial<CSSProperty<CSSUnitValue[], CSSUnitValue[]>> {
|
|
6
|
-
parser: typeof parseDimensionArray;
|
|
7
|
-
mixer: typeof mergeDimensionList;
|
|
8
|
-
calculator(name: string, oldParsed: CSSUnitValue[], parsed: CSSUnitValue[], object: DisplayObject): CSSUnitValue[];
|
|
9
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.CSSPropertyLineDash = void 0;
|
|
7
|
-
|
|
8
|
-
var _tslib = require("tslib");
|
|
9
|
-
|
|
10
|
-
var _manaSyringe = require("mana-syringe");
|
|
11
|
-
|
|
12
|
-
var _parser = require("../parser");
|
|
13
|
-
|
|
14
|
-
var CSSPropertyLineDash =
|
|
15
|
-
/** @class */
|
|
16
|
-
function () {
|
|
17
|
-
function CSSPropertyLineDash() {
|
|
18
|
-
this.parser = _parser.parseDimensionArray;
|
|
19
|
-
this.mixer = _parser.mergeDimensionList;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
CSSPropertyLineDash.prototype.calculator = function (name, oldParsed, parsed, object) {
|
|
23
|
-
if (parsed && parsed.length === 1) {
|
|
24
|
-
return [parsed[0], parsed[0]];
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
return [parsed[0], parsed[1]];
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
CSSPropertyLineDash = (0, _tslib.__decorate)([(0, _manaSyringe.singleton)()], CSSPropertyLineDash);
|
|
31
|
-
return CSSPropertyLineDash;
|
|
32
|
-
}();
|
|
33
|
-
|
|
34
|
-
exports.CSSPropertyLineDash = CSSPropertyLineDash;
|