@antv/g-lite 0.0.7 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -0
- package/dist/AbstractRenderer.d.ts +45 -0
- package/dist/AbstractRenderer.d.ts.map +1 -0
- package/dist/Canvas.d.ts +159 -0
- package/dist/Canvas.d.ts.map +1 -0
- package/dist/camera/Camera.d.ts +274 -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 +4 -0
- package/dist/camera/index.d.ts.map +1 -0
- package/dist/camera/interfaces.d.ts +196 -0
- package/dist/camera/interfaces.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 +13 -0
- package/dist/components/Cullable.d.ts.map +1 -0
- package/dist/components/Geometry.d.ts +12 -0
- package/dist/components/Geometry.d.ts.map +1 -0
- package/dist/components/RBushNode.d.ts +13 -0
- package/dist/components/RBushNode.d.ts.map +1 -0
- package/dist/components/Renderable.d.ts +28 -0
- package/dist/components/Renderable.d.ts.map +1 -0
- package/dist/components/Sortable.d.ts +20 -0
- package/dist/components/Sortable.d.ts.map +1 -0
- package/dist/components/Transform.d.ts +32 -0
- package/dist/components/Transform.d.ts.map +1 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/css/CSS.d.ts +88 -0
- package/dist/css/CSS.d.ts.map +1 -0
- package/dist/css/CSSProperty.d.ts +46 -0
- package/dist/css/CSSProperty.d.ts.map +1 -0
- package/dist/css/CSSStyleValuePool.d.ts +22 -0
- package/dist/css/CSSStyleValuePool.d.ts.map +1 -0
- package/dist/css/StyleValueRegistry.d.ts +60 -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 +27 -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 +208 -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 +46 -0
- package/dist/css/cssom/CSSStyleValue.d.ts.map +1 -0
- package/dist/css/cssom/index.d.ts +17 -0
- package/dist/css/cssom/index.d.ts.map +1 -0
- package/dist/css/cssom/types.d.ts +39 -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 +140 -0
- package/dist/css/interfaces.d.ts.map +1 -0
- package/dist/css/parser/color.d.ts +19 -0
- package/dist/css/parser/color.d.ts.map +1 -0
- package/dist/css/parser/dimension.d.ts +49 -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/gradient.d.ts +5 -0
- package/dist/css/parser/gradient.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 +25 -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 +9 -0
- package/dist/css/parser/transform-origin.d.ts.map +1 -0
- package/dist/css/parser/transform.d.ts +16 -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/CSSPropertyAngle.d.ts +13 -0
- package/dist/css/properties/CSSPropertyAngle.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyClipPath.d.ts +26 -0
- package/dist/css/properties/CSSPropertyClipPath.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyColor.d.ts +15 -0
- package/dist/css/properties/CSSPropertyColor.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyFilter.d.ts +8 -0
- package/dist/css/properties/CSSPropertyFilter.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyLengthOrPercentage.d.ts +23 -0
- package/dist/css/properties/CSSPropertyLengthOrPercentage.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyLengthOrPercentage12.d.ts +17 -0
- package/dist/css/properties/CSSPropertyLengthOrPercentage12.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyLengthOrPercentage14.d.ts +27 -0
- package/dist/css/properties/CSSPropertyLengthOrPercentage14.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyLocalPosition.d.ts +14 -0
- package/dist/css/properties/CSSPropertyLocalPosition.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyMarker.d.ts +6 -0
- package/dist/css/properties/CSSPropertyMarker.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyNumber.d.ts +12 -0
- package/dist/css/properties/CSSPropertyNumber.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyOffsetDistance.d.ts +13 -0
- package/dist/css/properties/CSSPropertyOffsetDistance.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyOffsetPath.d.ts +6 -0
- package/dist/css/properties/CSSPropertyOffsetPath.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyOpacity.d.ts +14 -0
- package/dist/css/properties/CSSPropertyOpacity.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyPath.d.ts +28 -0
- package/dist/css/properties/CSSPropertyPath.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyPoints.d.ts +19 -0
- package/dist/css/properties/CSSPropertyPoints.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyShadowBlur.d.ts +5 -0
- package/dist/css/properties/CSSPropertyShadowBlur.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyText.d.ts +8 -0
- package/dist/css/properties/CSSPropertyText.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyTextTransform.d.ts +12 -0
- package/dist/css/properties/CSSPropertyTextTransform.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyTransform.d.ts +43 -0
- package/dist/css/properties/CSSPropertyTransform.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyTransformOrigin.d.ts +14 -0
- package/dist/css/properties/CSSPropertyTransformOrigin.d.ts.map +1 -0
- package/dist/css/properties/CSSPropertyZIndex.d.ts +12 -0
- package/dist/css/properties/CSSPropertyZIndex.d.ts.map +1 -0
- package/dist/css/properties/index.d.ts +22 -0
- package/dist/css/properties/index.d.ts.map +1 -0
- package/dist/display-objects/Circle.d.ts +17 -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 +188 -0
- package/dist/display-objects/DisplayObject.d.ts.map +1 -0
- package/dist/display-objects/DisplayObjectPool.d.ts +9 -0
- package/dist/display-objects/DisplayObjectPool.d.ts.map +1 -0
- package/dist/display-objects/Ellipse.d.ts +19 -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 +23 -0
- package/dist/display-objects/Image.d.ts.map +1 -0
- package/dist/display-objects/Line.d.ts +61 -0
- package/dist/display-objects/Line.d.ts.map +1 -0
- package/dist/display-objects/Path.d.ts +100 -0
- package/dist/display-objects/Path.d.ts.map +1 -0
- package/dist/display-objects/Polygon.d.ts +50 -0
- package/dist/display-objects/Polygon.d.ts.map +1 -0
- package/dist/display-objects/Polyline.d.ts +49 -0
- package/dist/display-objects/Polyline.d.ts.map +1 -0
- package/dist/display-objects/Rect.d.ts +24 -0
- package/dist/display-objects/Rect.d.ts.map +1 -0
- package/dist/display-objects/Text.d.ts +128 -0
- package/dist/display-objects/Text.d.ts.map +1 -0
- package/dist/display-objects/index.d.ts +15 -0
- package/dist/display-objects/index.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 +76 -0
- package/dist/dom/Document.d.ts.map +1 -0
- package/dist/dom/Element.d.ts +205 -0
- package/dist/dom/Element.d.ts.map +1 -0
- package/dist/dom/EventTarget.d.ts +40 -0
- package/dist/dom/EventTarget.d.ts.map +1 -0
- package/dist/dom/FederatedEvent.d.ts +147 -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 +88 -0
- package/dist/dom/FederatedPointerEvent.d.ts.map +1 -0
- package/dist/dom/FederatedWheelEvent.d.ts +22 -0
- package/dist/dom/FederatedWheelEvent.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/Node.d.ts +139 -0
- package/dist/dom/Node.d.ts.map +1 -0
- package/dist/dom/index.d.ts +13 -0
- package/dist/dom/index.d.ts.map +1 -0
- package/dist/dom/interfaces.d.ts +422 -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 +17 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +18742 -0
- package/dist/index.js +18837 -0
- package/dist/index.umd.js +29383 -4
- package/dist/index.umd.min.js +17 -1
- package/dist/plugins/CullingPlugin.d.ts +22 -0
- package/dist/plugins/CullingPlugin.d.ts.map +1 -0
- package/dist/plugins/DirtyCheckPlugin.d.ts +9 -0
- package/dist/plugins/DirtyCheckPlugin.d.ts.map +1 -0
- package/dist/plugins/EventPlugin.d.ts +32 -0
- package/dist/plugins/EventPlugin.d.ts.map +1 -0
- package/dist/plugins/FrustumCullingStrategy.d.ts +24 -0
- package/dist/plugins/FrustumCullingStrategy.d.ts.map +1 -0
- package/dist/plugins/PrepareRendererPlugin.d.ts +28 -0
- package/dist/plugins/PrepareRendererPlugin.d.ts.map +1 -0
- package/dist/services/ContextService.d.ts +30 -0
- package/dist/services/ContextService.d.ts.map +1 -0
- package/dist/services/EventService.d.ts +82 -0
- package/dist/services/EventService.d.ts.map +1 -0
- package/dist/services/OffscreenCanvasCreator.d.ts +15 -0
- package/dist/services/OffscreenCanvasCreator.d.ts.map +1 -0
- package/dist/services/RenderingContext.d.ts +29 -0
- package/dist/services/RenderingContext.d.ts.map +1 -0
- package/dist/services/RenderingService.d.ts +118 -0
- package/dist/services/RenderingService.d.ts.map +1 -0
- package/dist/services/SceneGraphSelector.d.ts +27 -0
- package/dist/services/SceneGraphSelector.d.ts.map +1 -0
- package/dist/services/SceneGraphService.d.ts +123 -0
- package/dist/services/SceneGraphService.d.ts.map +1 -0
- package/dist/services/TextService.d.ts +39 -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 +24 -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 +12 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/interfaces.d.ts +47 -0
- package/dist/services/interfaces.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 +6 -0
- package/dist/shapes/index.d.ts.map +1 -0
- package/dist/types.d.ts +318 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/assert.d.ts +8 -0
- package/dist/utils/assert.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/dom.d.ts +10 -0
- package/dist/utils/dom.d.ts.map +1 -0
- package/dist/utils/error.d.ts +3 -0
- package/dist/utils/error.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/gradient.d.ts +106 -0
- package/dist/utils/gradient.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/math.d.ts +30 -0
- package/dist/utils/math.d.ts.map +1 -0
- package/dist/utils/path.d.ts +22 -0
- package/dist/utils/path.d.ts.map +1 -0
- package/dist/utils/pointer-events.d.ts +3 -0
- package/dist/utils/pointer-events.d.ts.map +1 -0
- package/dist/utils/string.d.ts +5 -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 +4 -5
- package/LICENSE +0 -21
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { DisplayObject } from '../../display-objects';
|
|
2
|
+
import type { IElement } from '../../dom';
|
|
3
|
+
import type { CSSStyleValue } from '../cssom';
|
|
4
|
+
import { CSSUnitValue } from '../cssom';
|
|
5
|
+
export declare function parseDimension(unitRegExp: RegExp, string: string): CSSStyleValue | undefined;
|
|
6
|
+
/**
|
|
7
|
+
* <length>
|
|
8
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/CSS/length
|
|
9
|
+
* length with only absolute unit, eg. 1px
|
|
10
|
+
*/
|
|
11
|
+
export declare const parseLength: {
|
|
12
|
+
(...args: any[]): any;
|
|
13
|
+
cache: Map<any, any>;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* <percentage>
|
|
17
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/CSS/percentage
|
|
18
|
+
*/
|
|
19
|
+
export declare const parserPercentage: {
|
|
20
|
+
(...args: any[]): any;
|
|
21
|
+
cache: Map<any, any>;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* length with absolute or relative unit,
|
|
25
|
+
* eg. 1px, 0.7em, 50%, calc(100% - 200px);
|
|
26
|
+
*
|
|
27
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/CSS/length-percentage
|
|
28
|
+
*/
|
|
29
|
+
export declare const parseLengthOrPercentage: {
|
|
30
|
+
(...args: any[]): any;
|
|
31
|
+
cache: Map<any, any>;
|
|
32
|
+
};
|
|
33
|
+
export declare const parseAngle: {
|
|
34
|
+
(...args: any[]): any;
|
|
35
|
+
cache: Map<any, any>;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* merge CSSUnitValue
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* 10px + 20px = 30px
|
|
42
|
+
* 10deg + 10rad
|
|
43
|
+
* 10% + 20% = 30%
|
|
44
|
+
*/
|
|
45
|
+
export declare function mergeDimensions(left: CSSUnitValue, right: CSSUnitValue, target: IElement, nonNegative?: boolean, index?: number): [number, number, (value: number) => string];
|
|
46
|
+
export declare function convertAngleUnit(value: CSSUnitValue): number;
|
|
47
|
+
export declare function parseDimensionArray(string: string | (string | number)[]): CSSUnitValue[];
|
|
48
|
+
export declare function convertPercentUnit(valueWithUnit: CSSUnitValue, vec3Index: number, target: DisplayObject): number;
|
|
49
|
+
//# sourceMappingURL=dimension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dimension.d.ts","sourceRoot":"","sources":["../src/css/parser/dimension.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAI1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,YAAY,EAA+C,MAAM,UAAU,CAAC;AAOrF,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAgC5F;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW;;;CAEtB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;CAE3B,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB;;;CAKlC,CAAC;AAEH,eAAO,MAAM,UAAU;;;CAErB,CAAC;AAEH;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE,YAAY,EACnB,MAAM,EAAE,QAAQ,EAChB,WAAW,CAAC,EAAE,OAAO,EACrB,KAAK,SAAI,GACR,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,CAsC7C;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,YAAY,UAUnD;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,YAAY,EAAE,CAQxF;AAsBD,wBAAgB,kBAAkB,CAChC,aAAa,EAAE,YAAY,EAC3B,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,aAAa,GACpB,MAAM,CAaR"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CSSUnitValue } from '../cssom';
|
|
2
|
+
export interface ParsedFilterStyleProperty {
|
|
3
|
+
name: string;
|
|
4
|
+
params: CSSUnitValue[];
|
|
5
|
+
}
|
|
6
|
+
export declare const parseParam: (css: string) => import("../cssom").CSSStyleValue;
|
|
7
|
+
export declare function parseFilter(filterStr?: string): ParsedFilterStyleProperty[];
|
|
8
|
+
//# sourceMappingURL=filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../src/css/parser/filter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,YAAY,EAAE,CAAC;CACxB;AAED,eAAO,MAAM,UAAU,QAAS,MAAM,qCAAmD,CAAC;AAc1F,wBAAgB,WAAW,CAAC,SAAS,GAAE,MAAW,GAAG,yBAAyB,EAAE,CA4B/E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gradient.d.ts","sourceRoot":"","sources":["../src/css/parser/gradient.ts"],"names":[],"mappings":"AAkHA,eAAO,MAAM,aAAa;;;CAmExB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* parse string to CSSStyleValue
|
|
3
|
+
* @see https://drafts.csswg.org/cssom-1/#css-values
|
|
4
|
+
*
|
|
5
|
+
* eg. 1px, 1%, 1em, 1deg, 1turn, calc(10% + 1px)
|
|
6
|
+
*/
|
|
7
|
+
export * from './color';
|
|
8
|
+
export * from './dimension';
|
|
9
|
+
export * from './filter';
|
|
10
|
+
export * from './numeric';
|
|
11
|
+
export * from './path';
|
|
12
|
+
export * from './points';
|
|
13
|
+
export * from './transform';
|
|
14
|
+
export * from './transform-origin';
|
|
15
|
+
export * from './types';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/css/parser/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare function numberToString(x: number): string;
|
|
2
|
+
/**
|
|
3
|
+
* parse string or number to CSSUnitValue(numeric)
|
|
4
|
+
*
|
|
5
|
+
* eg.
|
|
6
|
+
* * 0 -> CSSUnitValue(0)
|
|
7
|
+
* * '2' -> CSSUnitValue(2)
|
|
8
|
+
*/
|
|
9
|
+
export declare const parseNumber: {
|
|
10
|
+
(...args: any[]): any;
|
|
11
|
+
cache: Map<any, any>;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* separate string to array
|
|
15
|
+
* eg.
|
|
16
|
+
* * [0.5, 0.5] -> [CSSUnitValue, CSSUnitValue]
|
|
17
|
+
*/
|
|
18
|
+
export declare const parseNumberList: {
|
|
19
|
+
(...args: any[]): any;
|
|
20
|
+
cache: Map<any, any>;
|
|
21
|
+
};
|
|
22
|
+
export declare function mergeNumbers(left: number, right: number): [number, number, (n: number) => string];
|
|
23
|
+
export declare function clampedMergeNumbers(min: number, max: number): (left: number, right: number) => [number, number, (i: number) => string];
|
|
24
|
+
export declare function mergeNumberLists(left: number[], right: number[]): [number[], number[], (numberList: number[]) => number[]] | undefined;
|
|
25
|
+
//# sourceMappingURL=numeric.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"numeric.d.ts","sourceRoot":"","sources":["../src/css/parser/numeric.ts"],"names":[],"mappings":"AAIA,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,UAIvC;AAED;;;;;;GAMG;AACH,eAAO,MAAM,WAAW;;;CAStB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;CAM1B,CAAC;AAEH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC,CAEjG;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,UAC5C,MAAM,SAAS,MAAM,0BAAwB,MAAM,KAAK,MAAM,EAK7E;AAED,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EAAE,EACd,KAAK,EAAE,MAAM,EAAE,GACd,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,MAAM,EAAE,CAAC,GAAG,SAAS,CAWtE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CurveArray, PathArray } from '@antv/util';
|
|
2
|
+
import type { DisplayObject, ParsedPathStyleProps } from '../../display-objects';
|
|
3
|
+
import type { IElement } from '../../dom';
|
|
4
|
+
export declare function parsePath(path: string | PathArray, object: DisplayObject): ParsedPathStyleProps['path'];
|
|
5
|
+
export declare function mergePaths(left: ParsedPathStyleProps['path'], right: ParsedPathStyleProps['path'], object: IElement): [CurveArray, CurveArray, (b: CurveArray) => CurveArray];
|
|
6
|
+
//# sourceMappingURL=path.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../src/css/parser/path.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAcvE,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AACjF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AA2E1C,wBAAgB,SAAS,CACvB,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,MAAM,EAAE,aAAa,GACpB,oBAAoB,CAAC,MAAM,CAAC,CAW9B;AAED,wBAAgB,UAAU,CACxB,IAAI,EAAE,oBAAoB,CAAC,MAAM,CAAC,EAClC,KAAK,EAAE,oBAAoB,CAAC,MAAM,CAAC,EACnC,MAAM,EAAE,QAAQ,GACf,CAAC,UAAU,EAAE,UAAU,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,UAAU,CAAC,CAqBzD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DisplayObject } from '../..';
|
|
2
|
+
/**
|
|
3
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/SVG/Attribute/points
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* points="100,10 250,150 200,110"
|
|
7
|
+
*/
|
|
8
|
+
export declare function parsePoints(pointsOrStr: string | [number, number][], object: DisplayObject): {
|
|
9
|
+
points: [number, number][];
|
|
10
|
+
totalLength: number;
|
|
11
|
+
segments: [number, number][];
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=points.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"points.d.ts","sourceRoot":"","sources":["../src/css/parser/points.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,aAAa;;;;EA0C1F"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/CSS/transform-origin
|
|
3
|
+
* eg. 'center' 'top left' '50px 50px'
|
|
4
|
+
*/
|
|
5
|
+
export declare const parseTransformOrigin: {
|
|
6
|
+
(...args: any[]): any;
|
|
7
|
+
cache: Map<any, any>;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=transform-origin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transform-origin.d.ts","sourceRoot":"","sources":["../src/css/parser/transform-origin.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;CAgChC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { DisplayObject } from '../../display-objects';
|
|
2
|
+
import type { CSSUnitValue } from '../cssom';
|
|
3
|
+
export interface ParsedTransform {
|
|
4
|
+
t: string;
|
|
5
|
+
d: CSSUnitValue[];
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* none
|
|
9
|
+
* scale(1) scale(1, 2)
|
|
10
|
+
* scaleX(1)
|
|
11
|
+
*/
|
|
12
|
+
export declare function parseTransform(string: string): ParsedTransform[];
|
|
13
|
+
export declare function convertItemToMatrix(item: ParsedTransform): number[];
|
|
14
|
+
export declare const composeMatrix: (translate: any, scale: any, skew: any, quat: any, perspective: any) => number[];
|
|
15
|
+
export declare function mergeTransforms(left: ParsedTransform[], right: ParsedTransform[], target: DisplayObject | null): [number[][], number[][], (d: number[][]) => string];
|
|
16
|
+
//# sourceMappingURL=transform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../src/css/parser/transform.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAc7C,MAAM,WAAW,eAAe;IAC9B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,YAAY,EAAE,CAAC;CACnB;AAqED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,EAAE,CA+DhE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,EAAE,CAgMnE;AA4CD,eAAO,MAAM,aAAa,kFA8GtB,CAAC;AAgGL,wBAAgB,eAAe,CAC7B,IAAI,EAAE,eAAe,EAAE,EACvB,KAAK,EAAE,eAAe,EAAE,EACxB,MAAM,EAAE,aAAa,GAAG,IAAI,GAC3B,CAAC,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK,MAAM,CAAC,CAwIrD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/css/parser/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,oBAAY,cAAc,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,aAAa,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DisplayObject } from '../../display-objects';
|
|
2
|
+
import type { CSSUnitValue } from '../cssom';
|
|
3
|
+
import { CSSProperty } from '../CSSProperty';
|
|
4
|
+
import { mergeNumbers } from '../parser';
|
|
5
|
+
export declare class CSSPropertyAngle implements Partial<CSSProperty<CSSUnitValue, number>> {
|
|
6
|
+
parser: {
|
|
7
|
+
(...args: any[]): any;
|
|
8
|
+
cache: Map<any, any>;
|
|
9
|
+
};
|
|
10
|
+
mixer: typeof mergeNumbers;
|
|
11
|
+
calculator(name: string, oldParsed: CSSUnitValue, parsed: CSSUnitValue, object: DisplayObject): number;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=CSSPropertyAngle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CSSPropertyAngle.d.ts","sourceRoot":"","sources":["../src/css/properties/CSSPropertyAngle.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAGzC,qBAMa,gBAAiB,YAAW,OAAO,CAAC,WAAW,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IACjF,MAAM;;;MAAc;IAEpB,KAAK,sBAAgB;IAErB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa;CAG9F"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { DisplayObject } from '../../display-objects';
|
|
2
|
+
import { SceneGraphService } from '../../services';
|
|
3
|
+
import { CSSProperty } from '../CSSProperty';
|
|
4
|
+
/**
|
|
5
|
+
* @see /zh/docs/api/basic/display-object#clippath
|
|
6
|
+
* @example
|
|
7
|
+
const image = new Image({
|
|
8
|
+
style: {
|
|
9
|
+
width: 200,
|
|
10
|
+
height: 200,
|
|
11
|
+
clipPath: new Circle({
|
|
12
|
+
style: {
|
|
13
|
+
x: 100, // 处于被裁剪图形局部坐标系下
|
|
14
|
+
y: 100,
|
|
15
|
+
r: 50,
|
|
16
|
+
},
|
|
17
|
+
}),
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
*/
|
|
21
|
+
export declare class CSSPropertyClipPath implements Partial<CSSProperty<DisplayObject, DisplayObject>> {
|
|
22
|
+
private sceneGraphService;
|
|
23
|
+
constructor(sceneGraphService: SceneGraphService);
|
|
24
|
+
calculator(name: string, oldClipPath: DisplayObject, newClipPath: DisplayObject, object: DisplayObject): DisplayObject<any, any>;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=CSSPropertyClipPath.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CSSPropertyClipPath.d.ts","sourceRoot":"","sources":["../src/css/properties/CSSPropertyClipPath.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C;;;;;;;;;;;;;;;;GAgBG;AACH,qBAMa,mBAAoB,YAAW,OAAO,CAAC,WAAW,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;IAG1F,OAAO,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,iBAAiB;IAG9C,UAAU,CACR,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,aAAa,EAC1B,WAAW,EAAE,aAAa,EAC1B,MAAM,EAAE,aAAa;CA6BxB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { DisplayObject } from '../../display-objects';
|
|
2
|
+
import type { CSSGradientValue, CSSRGB } from '../cssom';
|
|
3
|
+
import { CSSKeywordValue } from '../cssom';
|
|
4
|
+
import { CSSProperty } from '../CSSProperty';
|
|
5
|
+
import type { Pattern } from '../parser/color';
|
|
6
|
+
import { mergeColors } from '../parser/color';
|
|
7
|
+
export declare class CSSPropertyColor implements Partial<CSSProperty<CSSRGB | CSSGradientValue[] | Pattern | CSSKeywordValue, CSSRGB | CSSGradientValue[] | Pattern>> {
|
|
8
|
+
parser: {
|
|
9
|
+
(...args: any[]): any;
|
|
10
|
+
cache: Map<any, any>;
|
|
11
|
+
};
|
|
12
|
+
calculator(name: string, oldParsed: CSSRGB | CSSGradientValue[] | CSSKeywordValue | Pattern, parsed: CSSRGB | CSSGradientValue[] | CSSKeywordValue | Pattern, object: DisplayObject): CSSRGB | Pattern | CSSGradientValue[];
|
|
13
|
+
mixer: typeof mergeColors;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=CSSPropertyColor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CSSPropertyColor.d.ts","sourceRoot":"","sources":["../src/css/properties/CSSPropertyColor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAc,MAAM,iBAAiB,CAAC;AAE1D,qBAYa,gBACX,YACE,OAAO,CACL,WAAW,CACT,MAAM,GAAG,gBAAgB,EAAE,GAAG,OAAO,GAAG,eAAe,EACvD,MAAM,GAAG,gBAAgB,EAAE,GAAG,OAAO,CACtC,CACF;IAEH,MAAM;;;MAAc;IACpB,UAAU,CACR,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,GAAG,gBAAgB,EAAE,GAAG,eAAe,GAAG,OAAO,EAClE,MAAM,EAAE,MAAM,GAAG,gBAAgB,EAAE,GAAG,eAAe,GAAG,OAAO,EAC/D,MAAM,EAAE,aAAa;IASvB,KAAK,qBAAe;CACrB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CSSProperty } from '../CSSProperty';
|
|
2
|
+
import type { ParsedFilterStyleProperty } from '../parser';
|
|
3
|
+
import { parseFilter } from '../parser/filter';
|
|
4
|
+
export declare class CSSPropertyFilter implements Partial<CSSProperty<ParsedFilterStyleProperty[], ParsedFilterStyleProperty[]>> {
|
|
5
|
+
parser: typeof parseFilter;
|
|
6
|
+
calculator(name: string, oldParsed: ParsedFilterStyleProperty[], parsed: ParsedFilterStyleProperty[]): ParsedFilterStyleProperty[];
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=CSSPropertyFilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CSSPropertyFilter.d.ts","sourceRoot":"","sources":["../src/css/properties/CSSPropertyFilter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,qBAMa,iBACX,YAAW,OAAO,CAAC,WAAW,CAAC,yBAAyB,EAAE,EAAE,yBAAyB,EAAE,CAAC,CAAC;IAEzF,MAAM,qBAAe;IAErB,UAAU,CACR,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,yBAAyB,EAAE,EACtC,MAAM,EAAE,yBAAyB,EAAE;CAQtC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { DisplayObject } from '../../display-objects';
|
|
2
|
+
import { CSSUnitValue } from '../cssom';
|
|
3
|
+
import { CSSProperty } from '../CSSProperty';
|
|
4
|
+
import type { StyleValueRegistry } from '../interfaces';
|
|
5
|
+
import { mergeNumbers } from '../parser';
|
|
6
|
+
/**
|
|
7
|
+
* <length> & <percentage>
|
|
8
|
+
*/
|
|
9
|
+
export declare class CSSPropertyLengthOrPercentage implements Partial<CSSProperty<CSSUnitValue, number>> {
|
|
10
|
+
parser: {
|
|
11
|
+
(...args: any[]): any;
|
|
12
|
+
cache: Map<any, any>;
|
|
13
|
+
};
|
|
14
|
+
mixer: typeof mergeNumbers;
|
|
15
|
+
/**
|
|
16
|
+
* according to parent's bounds
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* CSS.percent(50) -> CSS.px(0.5 * parent.width)
|
|
20
|
+
*/
|
|
21
|
+
calculator(name: string, oldParsed: CSSUnitValue, computed: CSSUnitValue, object: DisplayObject, registry: StyleValueRegistry): number;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=CSSPropertyLengthOrPercentage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CSSPropertyLengthOrPercentage.d.ts","sourceRoot":"","sources":["../src/css/properties/CSSPropertyLengthOrPercentage.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAwB,MAAM,uBAAuB,CAAC;AACjF,OAAO,EAAE,YAAY,EAAY,MAAM,UAAU,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAQzC;;GAEG;AACH,qBAYa,6BAA8B,YAAW,OAAO,CAAC,WAAW,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAC9F,MAAM;;;MAA2B;IAEjC,KAAK,sBAAgB;IAErB;;;;;OAKG;IACH,UAAU,CACR,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,YAAY,EACvB,QAAQ,EAAE,YAAY,EACtB,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,kBAAkB,GAC3B,MAAM;CAyCV"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CSSUnitValue } from '../cssom';
|
|
2
|
+
import { CSSProperty } from '../CSSProperty';
|
|
3
|
+
import { mergeNumberLists } from '../parser';
|
|
4
|
+
/**
|
|
5
|
+
* format to Tuple2<CSSUnitValue>
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* rect.style.lineDash = 10;
|
|
9
|
+
* rect.style.lineDash = [10, 10];
|
|
10
|
+
* rect.style.lineDash = '10 10';
|
|
11
|
+
*/
|
|
12
|
+
export declare class CSSPropertyLengthOrPercentage12 implements Partial<CSSProperty<[CSSUnitValue, CSSUnitValue], [number, number]>> {
|
|
13
|
+
parser(radius: string | number | number[]): [CSSUnitValue, CSSUnitValue];
|
|
14
|
+
calculator(name: string, oldParsed: [CSSUnitValue, CSSUnitValue], computed: [CSSUnitValue, CSSUnitValue]): [number, number];
|
|
15
|
+
mixer: typeof mergeNumberLists;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=CSSPropertyLengthOrPercentage12.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CSSPropertyLengthOrPercentage12.d.ts","sourceRoot":"","sources":["../src/css/properties/CSSPropertyLengthOrPercentage12.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAG7C;;;;;;;GAOG;AACH,qBAMa,+BACX,YAAW,OAAO,CAAC,WAAW,CAAC,CAAC,YAAY,EAAE,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAE/E,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE;IAazC,UAAU,CACR,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC,EACvC,QAAQ,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC,GACrC,CAAC,MAAM,EAAE,MAAM,CAAC;IAInB,KAAK,0BAAoB;CAC1B"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { CSSUnitValue } from '../cssom';
|
|
2
|
+
import { CSSProperty } from '../CSSProperty';
|
|
3
|
+
import { mergeNumberLists } from '../parser';
|
|
4
|
+
/**
|
|
5
|
+
* used in rounded rect
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* rect.style.radius = 10;
|
|
9
|
+
* rect.style.radius = '10 10';
|
|
10
|
+
* rect.style.radius = '10 10 10 10';
|
|
11
|
+
*/
|
|
12
|
+
export declare class CSSPropertyLengthOrPercentage14 implements Partial<CSSProperty<[
|
|
13
|
+
CSSUnitValue,
|
|
14
|
+
CSSUnitValue,
|
|
15
|
+
CSSUnitValue,
|
|
16
|
+
CSSUnitValue
|
|
17
|
+
], [
|
|
18
|
+
number,
|
|
19
|
+
number,
|
|
20
|
+
number,
|
|
21
|
+
number
|
|
22
|
+
]>> {
|
|
23
|
+
parser(radius: string | number | number[]): [CSSUnitValue, CSSUnitValue, CSSUnitValue, CSSUnitValue];
|
|
24
|
+
calculator(name: string, oldParsed: [CSSUnitValue, CSSUnitValue, CSSUnitValue, CSSUnitValue], computed: [CSSUnitValue, CSSUnitValue, CSSUnitValue, CSSUnitValue]): [number, number, number, number];
|
|
25
|
+
mixer: typeof mergeNumberLists;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=CSSPropertyLengthOrPercentage14.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CSSPropertyLengthOrPercentage14.d.ts","sourceRoot":"","sources":["../src/css/properties/CSSPropertyLengthOrPercentage14.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAG7C;;;;;;;GAOG;AACH,qBAMa,+BACX,YACE,OAAO,CACL,WAAW,CACT;IAAC,YAAY;IAAE,YAAY;IAAE,YAAY;IAAE,YAAY;CAAC,EACxD;IAAC,MAAM;IAAE,MAAM;IAAE,MAAM;IAAE,MAAM;CAAC,CACjC,CACF;IAEH,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE;IAkBzC,UAAU,CACR,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,EACnE,QAAQ,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,GACjE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;IAInC,KAAK,0BAAoB;CAC1B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DisplayObject } from '../../display-objects';
|
|
2
|
+
import type { CSSUnitValue } from '../cssom';
|
|
3
|
+
import { CSSProperty } from '../CSSProperty';
|
|
4
|
+
import { CSSPropertyLengthOrPercentage } from './CSSPropertyLengthOrPercentage';
|
|
5
|
+
/**
|
|
6
|
+
* local position
|
|
7
|
+
*/
|
|
8
|
+
export declare class CSSPropertyLocalPosition extends CSSPropertyLengthOrPercentage implements Partial<CSSProperty<CSSUnitValue, number>> {
|
|
9
|
+
/**
|
|
10
|
+
* update local position
|
|
11
|
+
*/
|
|
12
|
+
postProcessor(object: DisplayObject): void;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=CSSPropertyLocalPosition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CSSPropertyLocalPosition.d.ts","sourceRoot":"","sources":["../src/css/properties/CSSPropertyLocalPosition.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAU,aAAa,EAAc,MAAM,uBAAuB,CAAC;AAE/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhF;;GAEG;AACH,qBAMa,wBACX,SAAQ,6BACR,YAAW,OAAO,CAAC,WAAW,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAErD;;OAEG;IACH,aAAa,CAAC,MAAM,EAAE,aAAa;CAwDpC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DisplayObject } from '../../display-objects';
|
|
2
|
+
import { CSSProperty } from '../CSSProperty';
|
|
3
|
+
export declare class CSSPropertyMarker implements Partial<CSSProperty<DisplayObject, DisplayObject>> {
|
|
4
|
+
calculator(name: string, oldMarker: DisplayObject, newMarker: DisplayObject, object: DisplayObject): DisplayObject<any, any>;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=CSSPropertyMarker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CSSPropertyMarker.d.ts","sourceRoot":"","sources":["../src/css/properties/CSSPropertyMarker.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,qBAMa,iBAAkB,YAAW,OAAO,CAAC,WAAW,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;IAC1F,UAAU,CACR,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,aAAa,EACxB,SAAS,EAAE,aAAa,EACxB,MAAM,EAAE,aAAa;CAexB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CSSUnitValue } from '../cssom';
|
|
2
|
+
import { CSSProperty } from '../CSSProperty';
|
|
3
|
+
import { mergeNumbers } from '../parser/numeric';
|
|
4
|
+
export declare class CSSPropertyNumber implements Partial<CSSProperty<CSSUnitValue, number>> {
|
|
5
|
+
mixer: typeof mergeNumbers;
|
|
6
|
+
parser: {
|
|
7
|
+
(...args: any[]): any;
|
|
8
|
+
cache: Map<any, any>;
|
|
9
|
+
};
|
|
10
|
+
calculator(name: string, oldParsed: CSSUnitValue, computed: CSSUnitValue): number;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=CSSPropertyNumber.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CSSPropertyNumber.d.ts","sourceRoot":"","sources":["../src/css/properties/CSSPropertyNumber.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAe,MAAM,mBAAmB,CAAC;AAE9D,qBAMa,iBAAkB,YAAW,OAAO,CAAC,WAAW,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAClF,KAAK,sBAAgB;IACrB,MAAM;;;MAAe;IACrB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,GAAG,MAAM;CAGlF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DisplayObject } from '../../display-objects';
|
|
2
|
+
import type { CSSUnitValue } from '../cssom';
|
|
3
|
+
import { CSSProperty } from '../CSSProperty';
|
|
4
|
+
export declare class CSSPropertyOffsetDistance implements Partial<CSSProperty<CSSUnitValue, number>> {
|
|
5
|
+
parser: {
|
|
6
|
+
(...args: any[]): any;
|
|
7
|
+
cache: Map<any, any>;
|
|
8
|
+
};
|
|
9
|
+
calculator(name: string, oldParsed: CSSUnitValue, computed: CSSUnitValue): number;
|
|
10
|
+
mixer: (left: number, right: number) => [number, number, (i: number) => string];
|
|
11
|
+
postProcessor(object: DisplayObject): void;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=CSSPropertyOffsetDistance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CSSPropertyOffsetDistance.d.ts","sourceRoot":"","sources":["../src/css/properties/CSSPropertyOffsetDistance.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAI7C,qBAMa,yBAA0B,YAAW,OAAO,CAAC,WAAW,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAC1F,MAAM;;;MAAe;IAErB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,GAAG,MAAM;IAIjF,KAAK,2EAA6B;IAElC,aAAa,CAAC,MAAM,EAAE,aAAa;CAiBpC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DisplayObject } from '../../display-objects';
|
|
2
|
+
import { CSSProperty } from '../CSSProperty';
|
|
3
|
+
export declare class CSSPropertyOffsetPath implements Partial<CSSProperty<DisplayObject, DisplayObject>> {
|
|
4
|
+
calculator(name: string, oldOffsetPath: DisplayObject, newOffsetPath: DisplayObject, object: DisplayObject): DisplayObject<any, any>;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=CSSPropertyOffsetPath.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CSSPropertyOffsetPath.d.ts","sourceRoot":"","sources":["../src/css/properties/CSSPropertyOffsetPath.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,qBAMa,qBAAsB,YAAW,OAAO,CAAC,WAAW,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;IAC9F,UAAU,CACR,IAAI,EAAE,MAAM,EACZ,aAAa,EAAE,aAAa,EAC5B,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,aAAa;CAiBxB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { CSSUnitValue } from '../cssom';
|
|
2
|
+
import { CSSProperty } from '../CSSProperty';
|
|
3
|
+
/**
|
|
4
|
+
* opacity
|
|
5
|
+
*/
|
|
6
|
+
export declare class CSSPropertyOpacity implements Partial<CSSProperty<CSSUnitValue, number>> {
|
|
7
|
+
parser: {
|
|
8
|
+
(...args: any[]): any;
|
|
9
|
+
cache: Map<any, any>;
|
|
10
|
+
};
|
|
11
|
+
calculator(name: string, oldParsed: CSSUnitValue, computed: CSSUnitValue): number;
|
|
12
|
+
mixer: (left: number, right: number) => [number, number, (i: number) => string];
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=CSSPropertyOpacity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CSSPropertyOpacity.d.ts","sourceRoot":"","sources":["../src/css/properties/CSSPropertyOpacity.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAI7C;;GAEG;AACH,qBAMa,kBAAmB,YAAW,OAAO,CAAC,WAAW,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IACnF,MAAM;;;MAAe;IAErB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,GAAG,MAAM;IAIjF,KAAK,2EAA6B;CACnC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { AbsoluteArray, CurveArray } from '@antv/util';
|
|
2
|
+
import type { DisplayObject, ParsedPathStyleProps } from '../../display-objects';
|
|
3
|
+
import { Rectangle } from '../../shapes';
|
|
4
|
+
import { CSSProperty } from '../CSSProperty';
|
|
5
|
+
import { mergePaths, parsePath } from '../parser/path';
|
|
6
|
+
export declare class CSSPropertyPath implements Partial<CSSProperty<ParsedPathStyleProps['path'], ParsedPathStyleProps['path']>> {
|
|
7
|
+
/**
|
|
8
|
+
* path2Curve
|
|
9
|
+
*/
|
|
10
|
+
parser: typeof parsePath;
|
|
11
|
+
calculator(name: string, oldParsed: ParsedPathStyleProps['path'], parsed: ParsedPathStyleProps['path']): {
|
|
12
|
+
absolutePath: AbsoluteArray;
|
|
13
|
+
hasArc: boolean;
|
|
14
|
+
segments: import("../../display-objects").PathSegment[];
|
|
15
|
+
polygons: [number, number][][];
|
|
16
|
+
polylines: [number, number][][];
|
|
17
|
+
curve: CurveArray;
|
|
18
|
+
totalLength: number;
|
|
19
|
+
zCommandIndexes: number[];
|
|
20
|
+
rect: Rectangle;
|
|
21
|
+
};
|
|
22
|
+
mixer: typeof mergePaths;
|
|
23
|
+
/**
|
|
24
|
+
* update local position
|
|
25
|
+
*/
|
|
26
|
+
postProcessor(object: DisplayObject): void;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=CSSPropertyPath.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CSSPropertyPath.d.ts","sourceRoot":"","sources":["../src/css/properties/CSSPropertyPath.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AACjF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEvD,qBAMa,eACX,YAAW,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC;IAE3F;;OAEG;IACH,MAAM,mBAAa;IAEnB,UAAU,CACR,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,oBAAoB,CAAC,MAAM,CAAC,EACvC,MAAM,EAAE,oBAAoB,CAAC,MAAM,CAAC;;;;;;;;;;;IAmBtC,KAAK,oBAAc;IAEnB;;OAEG;IACH,aAAa,CAAC,MAAM,EAAE,aAAa;CAMpC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { DisplayObject } from '../../display-objects';
|
|
2
|
+
import { CSSProperty } from '../CSSProperty';
|
|
3
|
+
import { parsePoints } from '../parser/points';
|
|
4
|
+
export declare class CSSPropertyPoints implements Partial<CSSProperty<{
|
|
5
|
+
points: [number, number][];
|
|
6
|
+
totalLength: number;
|
|
7
|
+
segments: [number, number][];
|
|
8
|
+
}, {
|
|
9
|
+
points: [number, number][];
|
|
10
|
+
totalLength: number;
|
|
11
|
+
segments: [number, number][];
|
|
12
|
+
}>> {
|
|
13
|
+
parser: typeof parsePoints;
|
|
14
|
+
/**
|
|
15
|
+
* update local position
|
|
16
|
+
*/
|
|
17
|
+
postProcessor(object: DisplayObject): void;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=CSSPropertyPoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CSSPropertyPoints.d.ts","sourceRoot":"","sources":["../src/css/properties/CSSPropertyPoints.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,qBAMa,iBACX,YACE,OAAO,CACL,WAAW,CACT;IACE,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;CAC9B,EACD;IACE,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;CAC9B,CACF,CACF;IAEH,MAAM,qBAAe;IAErB;;OAEG;IACH,aAAa,CAAC,MAAM,EAAE,aAAa;CAMpC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CSSPropertyLengthOrPercentage } from './CSSPropertyLengthOrPercentage';
|
|
2
|
+
export declare class CSSPropertyShadowBlur extends CSSPropertyLengthOrPercentage {
|
|
3
|
+
mixer: (left: number, right: number) => [number, number, (i: number) => string];
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=CSSPropertyShadowBlur.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CSSPropertyShadowBlur.d.ts","sourceRoot":"","sources":["../src/css/properties/CSSPropertyShadowBlur.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhF,qBAMa,qBAAsB,SAAQ,6BAA6B;IACtE,KAAK,2EAAoC;CAC1C"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DisplayObject } from '../../display-objects';
|
|
2
|
+
import { CSSKeywordValue } from '../cssom';
|
|
3
|
+
import { CSSProperty } from '../CSSProperty';
|
|
4
|
+
export declare class CSSPropertyText implements Partial<CSSProperty<CSSKeywordValue | string, string>> {
|
|
5
|
+
calculator(name: string, oldParsed: CSSKeywordValue | string, parsed: CSSKeywordValue | string, object: DisplayObject): string;
|
|
6
|
+
postProcessor(object: DisplayObject): void;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=CSSPropertyText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CSSPropertyText.d.ts","sourceRoot":"","sources":["../src/css/properties/CSSPropertyText.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,qBAMa,eAAgB,YAAW,OAAO,CAAC,WAAW,CAAC,eAAe,GAAG,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5F,UAAU,CACR,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,eAAe,GAAG,MAAM,EACnC,MAAM,EAAE,eAAe,GAAG,MAAM,EAChC,MAAM,EAAE,aAAa;IAYvB,aAAa,CAAC,MAAM,EAAE,aAAa;CAGpC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TextTransform } from '../..';
|
|
2
|
+
import type { DisplayObject } from '../../display-objects';
|
|
3
|
+
import type { CSSKeywordValue } from '../cssom';
|
|
4
|
+
import { CSSProperty } from '../CSSProperty';
|
|
5
|
+
/**
|
|
6
|
+
* it must transform after text get parsed
|
|
7
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/CSS/text-transform
|
|
8
|
+
*/
|
|
9
|
+
export declare class CSSPropertyTextTransform implements Partial<CSSProperty<CSSKeywordValue, TextTransform>> {
|
|
10
|
+
calculator(name: string, oldParsed: CSSKeywordValue, parsed: CSSKeywordValue, object: DisplayObject): TextTransform;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=CSSPropertyTextTransform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CSSPropertyTextTransform.d.ts","sourceRoot":"","sources":["../src/css/properties/CSSPropertyTextTransform.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C;;;GAGG;AACH,qBAMa,wBACX,YAAW,OAAO,CAAC,WAAW,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;IAE/D,UAAU,CACR,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,eAAe,EAC1B,MAAM,EAAE,eAAe,EACvB,MAAM,EAAE,aAAa;CAkBxB"}
|