@antv/g-lite 1.0.70 → 1.1.0-beta.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 +49 -50
- package/dist/Canvas.d.ts +149 -150
- package/dist/camera/Camera.d.ts +279 -280
- package/dist/camera/Landmark.d.ts +23 -24
- package/dist/camera/index.d.ts +3 -4
- package/dist/camera/interfaces.d.ts +194 -195
- package/dist/components/Cullable.d.ts +12 -13
- package/dist/components/Geometry.d.ts +11 -12
- package/dist/components/RBushNode.d.ts +11 -12
- package/dist/components/Renderable.d.ts +27 -28
- package/dist/components/Sortable.d.ts +25 -26
- package/dist/components/Transform.d.ts +31 -32
- package/dist/components/index.d.ts +6 -7
- package/dist/css/CSS.d.ts +87 -88
- package/dist/css/CSSProperty.d.ts +43 -44
- package/dist/css/CSSStyleValuePool.d.ts +19 -20
- package/dist/css/StyleValueRegistry.d.ts +54 -53
- package/dist/css/cssom/CSSColorValue.d.ts +23 -24
- package/dist/css/cssom/CSSGradientValue.d.ts +31 -32
- package/dist/css/cssom/CSSKeywordValue.d.ts +15 -16
- package/dist/css/cssom/CSSMathOperator.d.ts +11 -12
- package/dist/css/cssom/CSSNumericSumValue.d.ts +7 -8
- package/dist/css/cssom/CSSNumericValue.d.ts +28 -29
- package/dist/css/cssom/CSSRGB.d.ts +25 -26
- package/dist/css/cssom/CSSStyleValue.d.ts +45 -46
- package/dist/css/cssom/index.d.ts +16 -17
- package/dist/css/cssom/types.d.ts +38 -39
- package/dist/css/index.d.ts +11 -12
- package/dist/css/interfaces.d.ts +136 -137
- package/dist/css/parser/color.d.ts +22 -23
- package/dist/css/parser/dimension.d.ts +46 -47
- package/dist/css/parser/filter.d.ts +7 -8
- package/dist/css/parser/gradient.d.ts +4 -5
- package/dist/css/parser/index.d.ts +15 -16
- package/dist/css/parser/numeric.d.ts +24 -25
- package/dist/css/parser/path.d.ts +5 -6
- package/dist/css/parser/points.d.ts +23 -24
- package/dist/css/parser/transform-origin.d.ts +8 -9
- package/dist/css/parser/transform.d.ts +15 -16
- package/dist/css/parser/types.d.ts +2 -3
- package/dist/css/properties/CSSPropertyAngle.d.ts +13 -14
- package/dist/css/properties/CSSPropertyClipPath.d.ts +9 -9
- package/dist/css/properties/CSSPropertyColor.d.ts +18 -19
- package/dist/css/properties/CSSPropertyFilter.d.ts +7 -8
- package/dist/css/properties/CSSPropertyLengthOrPercentage.d.ts +20 -21
- package/dist/css/properties/CSSPropertyLengthOrPercentage12.d.ts +16 -17
- package/dist/css/properties/CSSPropertyLengthOrPercentage14.d.ts +26 -27
- package/dist/css/properties/CSSPropertyLocalPosition.d.ts +13 -14
- package/dist/css/properties/CSSPropertyMarker.d.ts +5 -6
- package/dist/css/properties/CSSPropertyNumber.d.ts +12 -13
- package/dist/css/properties/CSSPropertyOffsetDistance.d.ts +13 -14
- package/dist/css/properties/CSSPropertyOpacity.d.ts +14 -15
- package/dist/css/properties/CSSPropertyPath.d.ts +27 -28
- package/dist/css/properties/CSSPropertyPoints.d.ts +19 -20
- package/dist/css/properties/CSSPropertyShadowBlur.d.ts +4 -5
- package/dist/css/properties/CSSPropertyText.d.ts +7 -8
- package/dist/css/properties/CSSPropertyTextTransform.d.ts +11 -12
- package/dist/css/properties/CSSPropertyTransform.d.ts +42 -43
- package/dist/css/properties/CSSPropertyTransformOrigin.d.ts +13 -14
- package/dist/css/properties/CSSPropertyZIndex.d.ts +11 -12
- package/dist/css/properties/index.d.ts +20 -21
- package/dist/display-objects/Circle.d.ts +20 -21
- package/dist/display-objects/CustomElement.d.ts +24 -25
- package/dist/display-objects/DisplayObject.d.ts +273 -274
- package/dist/display-objects/Ellipse.d.ts +22 -23
- package/dist/display-objects/Group.d.ts +29 -30
- package/dist/display-objects/HTML.d.ts +41 -42
- package/dist/display-objects/Image.d.ts +26 -27
- package/dist/display-objects/Line.d.ts +60 -61
- package/dist/display-objects/Path.d.ts +123 -134
- package/dist/display-objects/Polygon.d.ts +49 -50
- package/dist/display-objects/Polyline.d.ts +48 -49
- package/dist/display-objects/Rect.d.ts +27 -28
- package/dist/display-objects/Text.d.ts +180 -181
- package/dist/display-objects/constants.d.ts +12 -0
- package/dist/display-objects/index.d.ts +13 -14
- package/dist/dom/CustomElementRegistry.d.ts +15 -16
- package/dist/dom/CustomEvent.d.ts +15 -16
- package/dist/dom/Document.d.ts +77 -78
- package/dist/dom/Element.d.ts +206 -208
- package/dist/dom/EventTarget.d.ts +40 -41
- package/dist/dom/FederatedEvent.d.ts +147 -148
- package/dist/dom/FederatedMouseEvent.d.ts +52 -53
- package/dist/dom/FederatedPointerEvent.d.ts +87 -88
- package/dist/dom/FederatedWheelEvent.d.ts +18 -22
- package/dist/dom/MutationEvent.d.ts +15 -16
- package/dist/dom/Node.d.ts +138 -139
- package/dist/dom/index.d.ts +12 -13
- package/dist/dom/interfaces.d.ts +440 -441
- package/dist/global-runtime.d.ts +35 -36
- package/dist/index.d.ts +15 -15
- package/dist/index.esm.js +15091 -14804
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +15168 -14857
- package/dist/index.js.map +1 -0
- package/dist/index.umd.min.js +2 -1
- package/dist/index.umd.min.js.map +1 -0
- package/dist/plugins/CullingPlugin.d.ts +17 -18
- package/dist/plugins/DirtyCheckPlugin.d.ts +8 -9
- package/dist/plugins/EventPlugin.d.ts +26 -27
- package/dist/plugins/FrustumCullingStrategy.d.ts +21 -22
- package/dist/plugins/PrepareRendererPlugin.d.ts +11 -12
- package/dist/services/ContextService.d.ts +28 -29
- package/dist/services/EventService.d.ts +82 -83
- package/dist/services/OffscreenCanvasCreator.d.ts +15 -16
- package/dist/services/RenderingContext.d.ts +26 -27
- package/dist/services/RenderingService.d.ts +112 -113
- package/dist/services/SceneGraphSelector.d.ts +23 -24
- package/dist/services/SceneGraphService.d.ts +127 -128
- package/dist/services/TextService.d.ts +47 -48
- package/dist/services/aabb/CircleUpdater.d.ts +8 -9
- package/dist/services/aabb/EllipseUpdater.d.ts +8 -9
- package/dist/services/aabb/LineUpdater.d.ts +8 -9
- package/dist/services/aabb/PathUpdater.d.ts +8 -9
- package/dist/services/aabb/PolylineUpdater.d.ts +8 -9
- package/dist/services/aabb/RectUpdater.d.ts +8 -9
- package/dist/services/aabb/TextUpdater.d.ts +23 -24
- package/dist/services/aabb/index.d.ts +8 -9
- package/dist/services/aabb/interfaces.d.ts +12 -13
- package/dist/services/index.d.ts +11 -12
- package/dist/services/interfaces.d.ts +48 -49
- package/dist/shapes/AABB.d.ts +33 -34
- package/dist/shapes/Frustum.d.ts +16 -17
- package/dist/shapes/Plane.d.ts +14 -15
- package/dist/shapes/Point.d.ts +11 -12
- package/dist/shapes/Rectangle.d.ts +12 -13
- package/dist/shapes/index.d.ts +5 -6
- package/dist/types.d.ts +327 -328
- package/dist/utils/assert.d.ts +12 -13
- package/dist/utils/canvas.d.ts +6 -7
- package/dist/utils/dom.d.ts +11 -11
- package/dist/utils/error.d.ts +3 -4
- package/dist/utils/event.d.ts +35 -36
- package/dist/utils/gradient.d.ts +106 -107
- package/dist/utils/index.d.ts +15 -15
- package/dist/utils/math.d.ts +36 -40
- package/dist/utils/memoize.d.ts +7 -8
- package/dist/utils/path.d.ts +24 -29
- package/dist/utils/pointer-events.d.ts +2 -3
- package/dist/utils/raf.d.ts +14 -15
- package/dist/utils/string.d.ts +5 -6
- package/dist/utils/tapable/AsyncParallelHook.d.ts +6 -7
- package/dist/utils/tapable/AsyncSeriesWaterfallHook.d.ts +6 -7
- package/dist/utils/tapable/Hook.d.ts +1 -2
- package/dist/utils/tapable/SyncHook.d.ts +6 -7
- package/dist/utils/tapable/SyncWaterfallHook.d.ts +6 -7
- package/dist/utils/tapable/index.d.ts +4 -5
- package/dist/utils/text.d.ts +2 -3
- package/dist/utils/transform-mat4.d.ts +4 -0
- package/package.json +20 -13
- package/dist/AbstractRenderer.d.ts.map +0 -1
- package/dist/Canvas.d.ts.map +0 -1
- package/dist/camera/Camera.d.ts.map +0 -1
- package/dist/camera/Landmark.d.ts.map +0 -1
- package/dist/camera/index.d.ts.map +0 -1
- package/dist/camera/interfaces.d.ts.map +0 -1
- package/dist/components/Cullable.d.ts.map +0 -1
- package/dist/components/Geometry.d.ts.map +0 -1
- package/dist/components/RBushNode.d.ts.map +0 -1
- package/dist/components/Renderable.d.ts.map +0 -1
- package/dist/components/Sortable.d.ts.map +0 -1
- package/dist/components/Transform.d.ts.map +0 -1
- package/dist/components/index.d.ts.map +0 -1
- package/dist/css/CSS.d.ts.map +0 -1
- package/dist/css/CSSProperty.d.ts.map +0 -1
- package/dist/css/CSSStyleValuePool.d.ts.map +0 -1
- package/dist/css/StyleValueRegistry.d.ts.map +0 -1
- package/dist/css/cssom/CSSColorValue.d.ts.map +0 -1
- package/dist/css/cssom/CSSGradientValue.d.ts.map +0 -1
- package/dist/css/cssom/CSSKeywordValue.d.ts.map +0 -1
- package/dist/css/cssom/CSSMathOperator.d.ts.map +0 -1
- package/dist/css/cssom/CSSNumericSumValue.d.ts.map +0 -1
- package/dist/css/cssom/CSSNumericValue.d.ts.map +0 -1
- package/dist/css/cssom/CSSRGB.d.ts.map +0 -1
- package/dist/css/cssom/CSSStyleValue.d.ts.map +0 -1
- package/dist/css/cssom/index.d.ts.map +0 -1
- package/dist/css/cssom/types.d.ts.map +0 -1
- package/dist/css/index.d.ts.map +0 -1
- package/dist/css/interfaces.d.ts.map +0 -1
- package/dist/css/parser/color.d.ts.map +0 -1
- package/dist/css/parser/dimension.d.ts.map +0 -1
- package/dist/css/parser/filter.d.ts.map +0 -1
- package/dist/css/parser/gradient.d.ts.map +0 -1
- package/dist/css/parser/index.d.ts.map +0 -1
- package/dist/css/parser/numeric.d.ts.map +0 -1
- package/dist/css/parser/path.d.ts.map +0 -1
- package/dist/css/parser/points.d.ts.map +0 -1
- package/dist/css/parser/transform-origin.d.ts.map +0 -1
- package/dist/css/parser/transform.d.ts.map +0 -1
- package/dist/css/parser/types.d.ts.map +0 -1
- package/dist/css/properties/CSSPropertyAngle.d.ts.map +0 -1
- package/dist/css/properties/CSSPropertyClipPath.d.ts.map +0 -1
- package/dist/css/properties/CSSPropertyColor.d.ts.map +0 -1
- package/dist/css/properties/CSSPropertyFilter.d.ts.map +0 -1
- package/dist/css/properties/CSSPropertyLengthOrPercentage.d.ts.map +0 -1
- package/dist/css/properties/CSSPropertyLengthOrPercentage12.d.ts.map +0 -1
- package/dist/css/properties/CSSPropertyLengthOrPercentage14.d.ts.map +0 -1
- package/dist/css/properties/CSSPropertyLocalPosition.d.ts.map +0 -1
- package/dist/css/properties/CSSPropertyMarker.d.ts.map +0 -1
- package/dist/css/properties/CSSPropertyNumber.d.ts.map +0 -1
- package/dist/css/properties/CSSPropertyOffsetDistance.d.ts.map +0 -1
- package/dist/css/properties/CSSPropertyOpacity.d.ts.map +0 -1
- package/dist/css/properties/CSSPropertyPath.d.ts.map +0 -1
- package/dist/css/properties/CSSPropertyPoints.d.ts.map +0 -1
- package/dist/css/properties/CSSPropertyShadowBlur.d.ts.map +0 -1
- package/dist/css/properties/CSSPropertyText.d.ts.map +0 -1
- package/dist/css/properties/CSSPropertyTextTransform.d.ts.map +0 -1
- package/dist/css/properties/CSSPropertyTransform.d.ts.map +0 -1
- package/dist/css/properties/CSSPropertyTransformOrigin.d.ts.map +0 -1
- package/dist/css/properties/CSSPropertyZIndex.d.ts.map +0 -1
- package/dist/css/properties/index.d.ts.map +0 -1
- package/dist/display-objects/Circle.d.ts.map +0 -1
- package/dist/display-objects/CustomElement.d.ts.map +0 -1
- package/dist/display-objects/DisplayObject.d.ts.map +0 -1
- package/dist/display-objects/Ellipse.d.ts.map +0 -1
- package/dist/display-objects/Group.d.ts.map +0 -1
- package/dist/display-objects/HTML.d.ts.map +0 -1
- package/dist/display-objects/Image.d.ts.map +0 -1
- package/dist/display-objects/Line.d.ts.map +0 -1
- package/dist/display-objects/Path.d.ts.map +0 -1
- package/dist/display-objects/Polygon.d.ts.map +0 -1
- package/dist/display-objects/Polyline.d.ts.map +0 -1
- package/dist/display-objects/Rect.d.ts.map +0 -1
- package/dist/display-objects/Text.d.ts.map +0 -1
- package/dist/display-objects/index.d.ts.map +0 -1
- package/dist/dom/CustomElementRegistry.d.ts.map +0 -1
- package/dist/dom/CustomEvent.d.ts.map +0 -1
- package/dist/dom/Document.d.ts.map +0 -1
- package/dist/dom/Element.d.ts.map +0 -1
- package/dist/dom/EventTarget.d.ts.map +0 -1
- package/dist/dom/FederatedEvent.d.ts.map +0 -1
- package/dist/dom/FederatedMouseEvent.d.ts.map +0 -1
- package/dist/dom/FederatedPointerEvent.d.ts.map +0 -1
- package/dist/dom/FederatedWheelEvent.d.ts.map +0 -1
- package/dist/dom/MutationEvent.d.ts.map +0 -1
- package/dist/dom/Node.d.ts.map +0 -1
- package/dist/dom/index.d.ts.map +0 -1
- package/dist/dom/interfaces.d.ts.map +0 -1
- package/dist/global-runtime.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.umd.js +0 -22112
- package/dist/plugins/CullingPlugin.d.ts.map +0 -1
- package/dist/plugins/DirtyCheckPlugin.d.ts.map +0 -1
- package/dist/plugins/EventPlugin.d.ts.map +0 -1
- package/dist/plugins/FrustumCullingStrategy.d.ts.map +0 -1
- package/dist/plugins/PrepareRendererPlugin.d.ts.map +0 -1
- package/dist/services/ContextService.d.ts.map +0 -1
- package/dist/services/EventService.d.ts.map +0 -1
- package/dist/services/OffscreenCanvasCreator.d.ts.map +0 -1
- package/dist/services/RenderingContext.d.ts.map +0 -1
- package/dist/services/RenderingService.d.ts.map +0 -1
- package/dist/services/SceneGraphSelector.d.ts.map +0 -1
- package/dist/services/SceneGraphService.d.ts.map +0 -1
- package/dist/services/TextService.d.ts.map +0 -1
- package/dist/services/aabb/CircleUpdater.d.ts.map +0 -1
- package/dist/services/aabb/EllipseUpdater.d.ts.map +0 -1
- package/dist/services/aabb/LineUpdater.d.ts.map +0 -1
- package/dist/services/aabb/PathUpdater.d.ts.map +0 -1
- package/dist/services/aabb/PolylineUpdater.d.ts.map +0 -1
- package/dist/services/aabb/RectUpdater.d.ts.map +0 -1
- package/dist/services/aabb/TextUpdater.d.ts.map +0 -1
- package/dist/services/aabb/index.d.ts.map +0 -1
- package/dist/services/aabb/interfaces.d.ts.map +0 -1
- package/dist/services/index.d.ts.map +0 -1
- package/dist/services/interfaces.d.ts.map +0 -1
- package/dist/shapes/AABB.d.ts.map +0 -1
- package/dist/shapes/Frustum.d.ts.map +0 -1
- package/dist/shapes/Plane.d.ts.map +0 -1
- package/dist/shapes/Point.d.ts.map +0 -1
- package/dist/shapes/Rectangle.d.ts.map +0 -1
- package/dist/shapes/index.d.ts.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/utils/assert.d.ts.map +0 -1
- package/dist/utils/canvas.d.ts.map +0 -1
- package/dist/utils/dom.d.ts.map +0 -1
- package/dist/utils/error.d.ts.map +0 -1
- package/dist/utils/event.d.ts.map +0 -1
- package/dist/utils/gradient.d.ts.map +0 -1
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/math.d.ts.map +0 -1
- package/dist/utils/memoize.d.ts.map +0 -1
- package/dist/utils/path.d.ts.map +0 -1
- package/dist/utils/pointer-events.d.ts.map +0 -1
- package/dist/utils/raf.d.ts.map +0 -1
- package/dist/utils/string.d.ts.map +0 -1
- package/dist/utils/tapable/AsyncParallelHook.d.ts.map +0 -1
- package/dist/utils/tapable/AsyncSeriesWaterfallHook.d.ts.map +0 -1
- package/dist/utils/tapable/Hook.d.ts.map +0 -1
- package/dist/utils/tapable/SyncHook.d.ts.map +0 -1
- package/dist/utils/tapable/SyncWaterfallHook.d.ts.map +0 -1
- package/dist/utils/tapable/index.d.ts.map +0 -1
- package/dist/utils/text.d.ts.map +0 -1
package/dist/css/CSS.d.ts
CHANGED
|
@@ -1,88 +1,87 @@
|
|
|
1
|
-
import { CSSUnitValue } from './cssom';
|
|
2
|
-
import type { PropertySyntax } from './interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/CSS/RegisterProperty#parameters
|
|
5
|
-
*/
|
|
6
|
-
export interface PropertyDefinition {
|
|
7
|
-
name: string;
|
|
8
|
-
/**
|
|
9
|
-
* representing the expected syntax of the defined property. Defaults to "*".
|
|
10
|
-
*/
|
|
11
|
-
syntax: PropertySyntax;
|
|
12
|
-
/**
|
|
13
|
-
* A boolean value defining whether the defined property should be inherited (true), or not (false). Defaults to false.
|
|
14
|
-
*/
|
|
15
|
-
inherits?: boolean;
|
|
16
|
-
interpolable?: boolean;
|
|
17
|
-
initialValue?: string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* holds useful CSS-related methods.
|
|
21
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/CSS
|
|
22
|
-
*
|
|
23
|
-
* * CSS Typed OM @see https://developer.mozilla.org/en-US/docs/Web/API/CSS/factory_functions
|
|
24
|
-
* * register property @see https://developer.mozilla.org/en-US/docs/Web/API/CSS/RegisterProperty
|
|
25
|
-
* * CSS Layout API
|
|
26
|
-
*/
|
|
27
|
-
export declare const CSS: {
|
|
28
|
-
/**
|
|
29
|
-
* <number>
|
|
30
|
-
* @see https://drafts.csswg.org/css-values-4/#number-value
|
|
31
|
-
*/
|
|
32
|
-
number: (n: number) => CSSUnitValue;
|
|
33
|
-
/**
|
|
34
|
-
* <percentage>
|
|
35
|
-
* @see https://drafts.csswg.org/css-values-4/#percentage-value
|
|
36
|
-
*/
|
|
37
|
-
percent: (n: number) => CSSUnitValue;
|
|
38
|
-
/**
|
|
39
|
-
* <length>
|
|
40
|
-
*/
|
|
41
|
-
px: (n: number) => CSSUnitValue;
|
|
42
|
-
/**
|
|
43
|
-
* <length>
|
|
44
|
-
*/
|
|
45
|
-
em: (n: number) => CSSUnitValue;
|
|
46
|
-
rem: (n: number) => CSSUnitValue;
|
|
47
|
-
/**
|
|
48
|
-
* <angle>
|
|
49
|
-
*/
|
|
50
|
-
deg: (n: number) => CSSUnitValue;
|
|
51
|
-
/**
|
|
52
|
-
* <angle>
|
|
53
|
-
*/
|
|
54
|
-
grad: (n: number) => CSSUnitValue;
|
|
55
|
-
/**
|
|
56
|
-
* <angle>
|
|
57
|
-
*/
|
|
58
|
-
rad: (n: number) => CSSUnitValue;
|
|
59
|
-
/**
|
|
60
|
-
* <angle>
|
|
61
|
-
*/
|
|
62
|
-
turn: (n: number) => CSSUnitValue;
|
|
63
|
-
/**
|
|
64
|
-
* <time>
|
|
65
|
-
*/
|
|
66
|
-
s: (n: number) => CSSUnitValue;
|
|
67
|
-
/**
|
|
68
|
-
* <time>
|
|
69
|
-
*/
|
|
70
|
-
ms: (n: number) => CSSUnitValue;
|
|
71
|
-
/**
|
|
72
|
-
* CSS Properties & Values API
|
|
73
|
-
*
|
|
74
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/CSS_Properties_and_Values_API
|
|
75
|
-
* @see https://drafts.css-houdini.org/css-properties-values-api/#registering-custom-properties
|
|
76
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/CSS/RegisterProperty
|
|
77
|
-
*/
|
|
78
|
-
registerProperty: (definition: PropertyDefinition) => void;
|
|
79
|
-
/**
|
|
80
|
-
* CSS Layout API
|
|
81
|
-
* register layout
|
|
82
|
-
*
|
|
83
|
-
* @see https://github.com/w3c/css-houdini-drafts/blob/main/css-layout-api/EXPLAINER.md
|
|
84
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/Guide/Houdini#css_layout_api
|
|
85
|
-
*/
|
|
86
|
-
registerLayout: (name: string, clazz: any) => void;
|
|
87
|
-
};
|
|
88
|
-
//# sourceMappingURL=CSS.d.ts.map
|
|
1
|
+
import { CSSUnitValue } from './cssom';
|
|
2
|
+
import type { PropertySyntax } from './interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/CSS/RegisterProperty#parameters
|
|
5
|
+
*/
|
|
6
|
+
export interface PropertyDefinition {
|
|
7
|
+
name: string;
|
|
8
|
+
/**
|
|
9
|
+
* representing the expected syntax of the defined property. Defaults to "*".
|
|
10
|
+
*/
|
|
11
|
+
syntax: PropertySyntax;
|
|
12
|
+
/**
|
|
13
|
+
* A boolean value defining whether the defined property should be inherited (true), or not (false). Defaults to false.
|
|
14
|
+
*/
|
|
15
|
+
inherits?: boolean;
|
|
16
|
+
interpolable?: boolean;
|
|
17
|
+
initialValue?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* holds useful CSS-related methods.
|
|
21
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/CSS
|
|
22
|
+
*
|
|
23
|
+
* * CSS Typed OM @see https://developer.mozilla.org/en-US/docs/Web/API/CSS/factory_functions
|
|
24
|
+
* * register property @see https://developer.mozilla.org/en-US/docs/Web/API/CSS/RegisterProperty
|
|
25
|
+
* * CSS Layout API
|
|
26
|
+
*/
|
|
27
|
+
export declare const CSS: {
|
|
28
|
+
/**
|
|
29
|
+
* <number>
|
|
30
|
+
* @see https://drafts.csswg.org/css-values-4/#number-value
|
|
31
|
+
*/
|
|
32
|
+
number: (n: number) => CSSUnitValue;
|
|
33
|
+
/**
|
|
34
|
+
* <percentage>
|
|
35
|
+
* @see https://drafts.csswg.org/css-values-4/#percentage-value
|
|
36
|
+
*/
|
|
37
|
+
percent: (n: number) => CSSUnitValue;
|
|
38
|
+
/**
|
|
39
|
+
* <length>
|
|
40
|
+
*/
|
|
41
|
+
px: (n: number) => CSSUnitValue;
|
|
42
|
+
/**
|
|
43
|
+
* <length>
|
|
44
|
+
*/
|
|
45
|
+
em: (n: number) => CSSUnitValue;
|
|
46
|
+
rem: (n: number) => CSSUnitValue;
|
|
47
|
+
/**
|
|
48
|
+
* <angle>
|
|
49
|
+
*/
|
|
50
|
+
deg: (n: number) => CSSUnitValue;
|
|
51
|
+
/**
|
|
52
|
+
* <angle>
|
|
53
|
+
*/
|
|
54
|
+
grad: (n: number) => CSSUnitValue;
|
|
55
|
+
/**
|
|
56
|
+
* <angle>
|
|
57
|
+
*/
|
|
58
|
+
rad: (n: number) => CSSUnitValue;
|
|
59
|
+
/**
|
|
60
|
+
* <angle>
|
|
61
|
+
*/
|
|
62
|
+
turn: (n: number) => CSSUnitValue;
|
|
63
|
+
/**
|
|
64
|
+
* <time>
|
|
65
|
+
*/
|
|
66
|
+
s: (n: number) => CSSUnitValue;
|
|
67
|
+
/**
|
|
68
|
+
* <time>
|
|
69
|
+
*/
|
|
70
|
+
ms: (n: number) => CSSUnitValue;
|
|
71
|
+
/**
|
|
72
|
+
* CSS Properties & Values API
|
|
73
|
+
*
|
|
74
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/CSS_Properties_and_Values_API
|
|
75
|
+
* @see https://drafts.css-houdini.org/css-properties-values-api/#registering-custom-properties
|
|
76
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/CSS/RegisterProperty
|
|
77
|
+
*/
|
|
78
|
+
registerProperty: (definition: PropertyDefinition) => void;
|
|
79
|
+
/**
|
|
80
|
+
* CSS Layout API
|
|
81
|
+
* register layout
|
|
82
|
+
*
|
|
83
|
+
* @see https://github.com/w3c/css-houdini-drafts/blob/main/css-layout-api/EXPLAINER.md
|
|
84
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/Guide/Houdini#css_layout_api
|
|
85
|
+
*/
|
|
86
|
+
registerLayout: (name: string, clazz: any) => void;
|
|
87
|
+
};
|
|
@@ -1,44 +1,43 @@
|
|
|
1
|
-
import type { DisplayObject } from '../display-objects';
|
|
2
|
-
import type { IElement } from '../dom';
|
|
3
|
-
import type {
|
|
4
|
-
export type CSSPropertySyntaxFactory = <P, U>(syntax: string) => CSSProperty<P, U>;
|
|
5
|
-
export type Interpolatable = number | boolean | number[] | boolean[];
|
|
6
|
-
type CSSPropertyMixer<Parsed = any, T extends Interpolatable = any> = (left: Parsed, right: Parsed, displayObject: IElement | null) => [T, T, (i: T) => string | any] | undefined;
|
|
7
|
-
type CSSPropertyParser<Parsed> = (value: string | any, object: DisplayObject) => Parsed;
|
|
8
|
-
type CSSPropertyCalculator<Parsed, Used> = (name: string, oldParsed: Parsed, parsed: Parsed, object: IElement,
|
|
9
|
-
/**
|
|
10
|
-
* 1. parser: raw CSS string -> Computed Value
|
|
11
|
-
* 2. calculator: Computed Value -> Used Value
|
|
12
|
-
* 3. mixer(in animation system): Used Value -> new Used Value
|
|
13
|
-
* 4. post processor
|
|
14
|
-
*/
|
|
15
|
-
export interface CSSProperty<Parsed, Used> {
|
|
16
|
-
/**
|
|
17
|
-
* parse CSS string to CSSStyleValue
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* '10' -> CSS.number(10)
|
|
21
|
-
* '10px' -> CSS.px(10)
|
|
22
|
-
* '180deg' -> CSS.deg(180)
|
|
23
|
-
*/
|
|
24
|
-
parser: CSSPropertyParser<Parsed>;
|
|
25
|
-
parserWithCSSDisabled: CSSPropertyParser<Parsed>;
|
|
26
|
-
/**
|
|
27
|
-
* convert parsed value to used value.
|
|
28
|
-
* eg. in `lineWidth`, convert [CSSUnitValue] to [CSSUnitValue, CSSUnitValue]
|
|
29
|
-
*
|
|
30
|
-
* in Blink, it convert a CSSValue to an appropriate platform value
|
|
31
|
-
*/
|
|
32
|
-
calculator: CSSPropertyCalculator<Parsed, Used>;
|
|
33
|
-
/**
|
|
34
|
-
* used with interpolation in animation system
|
|
35
|
-
*/
|
|
36
|
-
mixer: CSSPropertyMixer<Used>;
|
|
37
|
-
preProcessor: (object: IElement) => void;
|
|
38
|
-
/**
|
|
39
|
-
* eg. update local position after x/y/z caculated
|
|
40
|
-
*/
|
|
41
|
-
postProcessor: (object: IElement, attributes: string[]) => void;
|
|
42
|
-
}
|
|
43
|
-
export {};
|
|
44
|
-
//# sourceMappingURL=CSSProperty.d.ts.map
|
|
1
|
+
import type { DisplayObject } from '../display-objects';
|
|
2
|
+
import type { IElement } from '../dom';
|
|
3
|
+
import type { GlobalRuntime } from '../global-runtime';
|
|
4
|
+
export type CSSPropertySyntaxFactory = <P, U>(syntax: string) => CSSProperty<P, U>;
|
|
5
|
+
export type Interpolatable = number | boolean | number[] | boolean[];
|
|
6
|
+
type CSSPropertyMixer<Parsed = any, T extends Interpolatable = any> = (left: Parsed, right: Parsed, displayObject: IElement | null) => [T, T, (i: T) => string | any] | undefined;
|
|
7
|
+
type CSSPropertyParser<Parsed> = (value: string | any, object: DisplayObject) => Parsed;
|
|
8
|
+
type CSSPropertyCalculator<Parsed, Used> = (name: string, oldParsed: Parsed, parsed: Parsed, object: IElement, runtime: GlobalRuntime) => Used;
|
|
9
|
+
/**
|
|
10
|
+
* 1. parser: raw CSS string -> Computed Value
|
|
11
|
+
* 2. calculator: Computed Value -> Used Value
|
|
12
|
+
* 3. mixer(in animation system): Used Value -> new Used Value
|
|
13
|
+
* 4. post processor
|
|
14
|
+
*/
|
|
15
|
+
export interface CSSProperty<Parsed, Used> {
|
|
16
|
+
/**
|
|
17
|
+
* parse CSS string to CSSStyleValue
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* '10' -> CSS.number(10)
|
|
21
|
+
* '10px' -> CSS.px(10)
|
|
22
|
+
* '180deg' -> CSS.deg(180)
|
|
23
|
+
*/
|
|
24
|
+
parser: CSSPropertyParser<Parsed>;
|
|
25
|
+
parserWithCSSDisabled: CSSPropertyParser<Parsed>;
|
|
26
|
+
/**
|
|
27
|
+
* convert parsed value to used value.
|
|
28
|
+
* eg. in `lineWidth`, convert [CSSUnitValue] to [CSSUnitValue, CSSUnitValue]
|
|
29
|
+
*
|
|
30
|
+
* in Blink, it convert a CSSValue to an appropriate platform value
|
|
31
|
+
*/
|
|
32
|
+
calculator: CSSPropertyCalculator<Parsed, Used>;
|
|
33
|
+
/**
|
|
34
|
+
* used with interpolation in animation system
|
|
35
|
+
*/
|
|
36
|
+
mixer: CSSPropertyMixer<Used>;
|
|
37
|
+
preProcessor: (object: IElement) => void;
|
|
38
|
+
/**
|
|
39
|
+
* eg. update local position after x/y/z caculated
|
|
40
|
+
*/
|
|
41
|
+
postProcessor: (object: IElement, attributes: string[]) => void;
|
|
42
|
+
}
|
|
43
|
+
export {};
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import { CSSKeywordValue, CSSRGB, CSSUnitValue, UnitType } from './cssom';
|
|
2
|
-
/**
|
|
3
|
-
* CSSKeywordValue
|
|
4
|
-
*/
|
|
5
|
-
export declare const unsetKeywordValue: CSSKeywordValue;
|
|
6
|
-
export declare const initialKeywordValue: CSSKeywordValue;
|
|
7
|
-
export declare const inheritKeywordValue: CSSKeywordValue;
|
|
8
|
-
export declare const getOrCreateKeyword: (name: string) => CSSKeywordValue;
|
|
9
|
-
/**
|
|
10
|
-
* CSSColor
|
|
11
|
-
*/
|
|
12
|
-
export declare const noneColor: CSSRGB;
|
|
13
|
-
export declare const transparentColor: CSSRGB;
|
|
14
|
-
export declare const getOrCreateRGBA: {
|
|
15
|
-
(...args: any[]): any;
|
|
16
|
-
cache: Map<any, any>;
|
|
17
|
-
};
|
|
18
|
-
export declare const getOrCreateUnitValue: (value: number, unitOrName?: UnitType | string) => CSSUnitValue;
|
|
19
|
-
export declare const PECENTAGE_50: CSSUnitValue;
|
|
20
|
-
//# sourceMappingURL=CSSStyleValuePool.d.ts.map
|
|
1
|
+
import { CSSKeywordValue, CSSRGB, CSSUnitValue, UnitType } from './cssom';
|
|
2
|
+
/**
|
|
3
|
+
* CSSKeywordValue
|
|
4
|
+
*/
|
|
5
|
+
export declare const unsetKeywordValue: CSSKeywordValue;
|
|
6
|
+
export declare const initialKeywordValue: CSSKeywordValue;
|
|
7
|
+
export declare const inheritKeywordValue: CSSKeywordValue;
|
|
8
|
+
export declare const getOrCreateKeyword: (name: string) => CSSKeywordValue;
|
|
9
|
+
/**
|
|
10
|
+
* CSSColor
|
|
11
|
+
*/
|
|
12
|
+
export declare const noneColor: CSSRGB;
|
|
13
|
+
export declare const transparentColor: CSSRGB;
|
|
14
|
+
export declare const getOrCreateRGBA: {
|
|
15
|
+
(...args: any[]): any;
|
|
16
|
+
cache: Map<any, any>;
|
|
17
|
+
};
|
|
18
|
+
export declare const getOrCreateUnitValue: (value: number, unitOrName?: UnitType | string) => CSSUnitValue;
|
|
19
|
+
export declare const PECENTAGE_50: CSSUnitValue;
|
|
@@ -1,53 +1,54 @@
|
|
|
1
|
-
import { DisplayObject } from '../display-objects';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const
|
|
11
|
-
export declare
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
1
|
+
import type { DisplayObject } from '../display-objects';
|
|
2
|
+
import type { GlobalRuntime } from '../global-runtime';
|
|
3
|
+
import type { BaseStyleProps } from '../types';
|
|
4
|
+
import type { CSSStyleValue } from './cssom';
|
|
5
|
+
import type { PropertyMetadata, PropertyParseOptions, StyleValueRegistry } from './interfaces';
|
|
6
|
+
export type CSSGlobalKeywords = 'unset' | 'initial' | 'inherit' | '';
|
|
7
|
+
/**
|
|
8
|
+
* Blink used them in code generation(css_properties.json5)
|
|
9
|
+
*/
|
|
10
|
+
export declare const BUILT_IN_PROPERTIES: PropertyMetadata[];
|
|
11
|
+
export declare const propertyMetadataCache: Record<string, PropertyMetadata>;
|
|
12
|
+
export declare class DefaultStyleValueRegistry implements StyleValueRegistry {
|
|
13
|
+
private runtime;
|
|
14
|
+
/**
|
|
15
|
+
* need recalc later
|
|
16
|
+
*/
|
|
17
|
+
constructor(runtime: GlobalRuntime);
|
|
18
|
+
registerMetadata(metadata: PropertyMetadata): void;
|
|
19
|
+
unregisterMetadata(name: string): void;
|
|
20
|
+
getPropertySyntax(syntax: string): any;
|
|
21
|
+
/**
|
|
22
|
+
* * parse value, eg.
|
|
23
|
+
* fill: 'red' => CSSRGB
|
|
24
|
+
* translateX: '10px' => CSSUnitValue { unit: 'px', value: 10 }
|
|
25
|
+
* fontSize: '2em' => { unit: 'px', value: 32 }
|
|
26
|
+
*
|
|
27
|
+
* * calculate used value
|
|
28
|
+
* * post process
|
|
29
|
+
*/
|
|
30
|
+
processProperties(object: DisplayObject, attributes: BaseStyleProps, options?: Partial<PropertyParseOptions>): void;
|
|
31
|
+
/**
|
|
32
|
+
* string -> parsed value
|
|
33
|
+
*/
|
|
34
|
+
parseProperty(name: string, value: any, object: DisplayObject): CSSStyleValue;
|
|
35
|
+
/**
|
|
36
|
+
* computed value -> used value
|
|
37
|
+
*/
|
|
38
|
+
computeProperty(name: string, computed: CSSStyleValue, object: DisplayObject): any;
|
|
39
|
+
postProcessProperty(name: string, object: DisplayObject, attributes: string[]): void;
|
|
40
|
+
/**
|
|
41
|
+
* resolve later
|
|
42
|
+
*/
|
|
43
|
+
addUnresolveProperty(object: DisplayObject, name: string): void;
|
|
44
|
+
tryToResolveProperty(object: DisplayObject, name: string, options?: {
|
|
45
|
+
inherited?: boolean;
|
|
46
|
+
}): any;
|
|
47
|
+
recalc(object: DisplayObject): void;
|
|
48
|
+
/**
|
|
49
|
+
* update geometry when relative props changed,
|
|
50
|
+
* eg. r of Circle, width/height of Rect
|
|
51
|
+
*/
|
|
52
|
+
private updateGeometry;
|
|
53
|
+
private isPropertyInheritable;
|
|
54
|
+
}
|
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import { CSSStyleValue, CSSStyleValueType } from './CSSStyleValue';
|
|
2
|
-
/**
|
|
3
|
-
* @see https://drafts.css-houdini.org/css-typed-om-1/#dom-csscolorvalue-colorspace
|
|
4
|
-
*/
|
|
5
|
-
export type ColorSpace = 'rgb' | 'hsl' | 'hwb' | 'lch' | 'lab';
|
|
6
|
-
export type CSSColorRGBComp = CSSNumberish | 'none';
|
|
7
|
-
export type CSSColorPercent = CSSNumberish | 'none';
|
|
8
|
-
export type CSSColorNumber = CSSNumberish | 'none';
|
|
9
|
-
export type CSSColorAngle = CSSNumberish | 'none';
|
|
10
|
-
/**
|
|
11
|
-
* CSSColorValue is the base class used for the various CSS color interfaces.
|
|
12
|
-
*
|
|
13
|
-
* @see https://drafts.css-houdini.org/css-typed-om-1/#colorvalue-objects
|
|
14
|
-
*/
|
|
15
|
-
export declare abstract class CSSColorValue extends CSSStyleValue {
|
|
16
|
-
colorSpace: ColorSpace;
|
|
17
|
-
constructor(colorSpace: ColorSpace);
|
|
18
|
-
getType(): CSSStyleValueType;
|
|
19
|
-
/**
|
|
20
|
-
* @see https://drafts.css-houdini.org/css-typed-om-1/#dom-csscolorvalue-to
|
|
21
|
-
*/
|
|
22
|
-
to(colorSpace: ColorSpace): CSSColorValue;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=CSSColorValue.d.ts.map
|
|
1
|
+
import { CSSStyleValue, CSSStyleValueType } from './CSSStyleValue';
|
|
2
|
+
/**
|
|
3
|
+
* @see https://drafts.css-houdini.org/css-typed-om-1/#dom-csscolorvalue-colorspace
|
|
4
|
+
*/
|
|
5
|
+
export type ColorSpace = 'rgb' | 'hsl' | 'hwb' | 'lch' | 'lab';
|
|
6
|
+
export type CSSColorRGBComp = CSSNumberish | 'none';
|
|
7
|
+
export type CSSColorPercent = CSSNumberish | 'none';
|
|
8
|
+
export type CSSColorNumber = CSSNumberish | 'none';
|
|
9
|
+
export type CSSColorAngle = CSSNumberish | 'none';
|
|
10
|
+
/**
|
|
11
|
+
* CSSColorValue is the base class used for the various CSS color interfaces.
|
|
12
|
+
*
|
|
13
|
+
* @see https://drafts.css-houdini.org/css-typed-om-1/#colorvalue-objects
|
|
14
|
+
*/
|
|
15
|
+
export declare abstract class CSSColorValue extends CSSStyleValue {
|
|
16
|
+
colorSpace: ColorSpace;
|
|
17
|
+
constructor(colorSpace: ColorSpace);
|
|
18
|
+
getType(): CSSStyleValueType;
|
|
19
|
+
/**
|
|
20
|
+
* @see https://drafts.css-houdini.org/css-typed-om-1/#dom-csscolorvalue-to
|
|
21
|
+
*/
|
|
22
|
+
to(colorSpace: ColorSpace): CSSColorValue;
|
|
23
|
+
}
|
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import type { CSSKeywordValue } from './CSSKeywordValue';
|
|
2
|
-
import type { CSSUnitValue } from './CSSNumericValue';
|
|
3
|
-
import { CSSStyleValue, CSSStyleValueType } from './CSSStyleValue';
|
|
4
|
-
import type { Nested, ParenLess } from './types';
|
|
5
|
-
export interface LinearColorStop {
|
|
6
|
-
offset: CSSUnitValue;
|
|
7
|
-
color: string;
|
|
8
|
-
}
|
|
9
|
-
export interface LinearGradient {
|
|
10
|
-
angle: CSSUnitValue;
|
|
11
|
-
steps: LinearColorStop[];
|
|
12
|
-
}
|
|
13
|
-
export interface RadialGradient {
|
|
14
|
-
cx: CSSUnitValue;
|
|
15
|
-
cy: CSSUnitValue;
|
|
16
|
-
size?: CSSUnitValue | CSSKeywordValue;
|
|
17
|
-
steps: LinearColorStop[];
|
|
18
|
-
}
|
|
19
|
-
export declare enum GradientType {
|
|
20
|
-
Constant = 0,
|
|
21
|
-
LinearGradient = 1,
|
|
22
|
-
RadialGradient = 2
|
|
23
|
-
}
|
|
24
|
-
export declare class CSSGradientValue extends CSSStyleValue {
|
|
25
|
-
type: GradientType;
|
|
26
|
-
value: LinearGradient | RadialGradient;
|
|
27
|
-
constructor(type: GradientType, value: LinearGradient | RadialGradient);
|
|
28
|
-
clone(): CSSGradientValue;
|
|
29
|
-
buildCSSText(n: Nested, p: ParenLess, result: string): string;
|
|
30
|
-
getType(): CSSStyleValueType;
|
|
31
|
-
}
|
|
32
|
-
//# sourceMappingURL=CSSGradientValue.d.ts.map
|
|
1
|
+
import type { CSSKeywordValue } from './CSSKeywordValue';
|
|
2
|
+
import type { CSSUnitValue } from './CSSNumericValue';
|
|
3
|
+
import { CSSStyleValue, CSSStyleValueType } from './CSSStyleValue';
|
|
4
|
+
import type { Nested, ParenLess } from './types';
|
|
5
|
+
export interface LinearColorStop {
|
|
6
|
+
offset: CSSUnitValue;
|
|
7
|
+
color: string;
|
|
8
|
+
}
|
|
9
|
+
export interface LinearGradient {
|
|
10
|
+
angle: CSSUnitValue;
|
|
11
|
+
steps: LinearColorStop[];
|
|
12
|
+
}
|
|
13
|
+
export interface RadialGradient {
|
|
14
|
+
cx: CSSUnitValue;
|
|
15
|
+
cy: CSSUnitValue;
|
|
16
|
+
size?: CSSUnitValue | CSSKeywordValue;
|
|
17
|
+
steps: LinearColorStop[];
|
|
18
|
+
}
|
|
19
|
+
export declare enum GradientType {
|
|
20
|
+
Constant = 0,
|
|
21
|
+
LinearGradient = 1,
|
|
22
|
+
RadialGradient = 2
|
|
23
|
+
}
|
|
24
|
+
export declare class CSSGradientValue extends CSSStyleValue {
|
|
25
|
+
type: GradientType;
|
|
26
|
+
value: LinearGradient | RadialGradient;
|
|
27
|
+
constructor(type: GradientType, value: LinearGradient | RadialGradient);
|
|
28
|
+
clone(): CSSGradientValue;
|
|
29
|
+
buildCSSText(n: Nested, p: ParenLess, result: string): string;
|
|
30
|
+
getType(): CSSStyleValueType;
|
|
31
|
+
}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { CSSStyleValue, CSSStyleValueType } from './CSSStyleValue';
|
|
2
|
-
import type { Nested, ParenLess } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* CSSKeywordValue represents CSS Values that are specified as keywords
|
|
5
|
-
* eg. 'initial'
|
|
6
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/CSSKeywordValue
|
|
7
|
-
* @see https://chromium.googlesource.com/chromium/src/+/refs/heads/main/third_party/blink/renderer/core/css/cssom/css_keyword_value.idl
|
|
8
|
-
*/
|
|
9
|
-
export declare class CSSKeywordValue extends CSSStyleValue {
|
|
10
|
-
value: string;
|
|
11
|
-
constructor(value: string);
|
|
12
|
-
clone(): CSSKeywordValue;
|
|
13
|
-
getType(): CSSStyleValueType;
|
|
14
|
-
buildCSSText(n: Nested, p: ParenLess, result: string): string;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=CSSKeywordValue.d.ts.map
|
|
1
|
+
import { CSSStyleValue, CSSStyleValueType } from './CSSStyleValue';
|
|
2
|
+
import type { Nested, ParenLess } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* CSSKeywordValue represents CSS Values that are specified as keywords
|
|
5
|
+
* eg. 'initial'
|
|
6
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/CSSKeywordValue
|
|
7
|
+
* @see https://chromium.googlesource.com/chromium/src/+/refs/heads/main/third_party/blink/renderer/core/css/cssom/css_keyword_value.idl
|
|
8
|
+
*/
|
|
9
|
+
export declare class CSSKeywordValue extends CSSStyleValue {
|
|
10
|
+
value: string;
|
|
11
|
+
constructor(value: string);
|
|
12
|
+
clone(): CSSKeywordValue;
|
|
13
|
+
getType(): CSSStyleValueType;
|
|
14
|
+
buildCSSText(n: Nested, p: ParenLess, result: string): string;
|
|
15
|
+
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
export declare enum CSSMathOperator {
|
|
2
|
-
kAdd = "+",
|
|
3
|
-
kSubtract = "-",
|
|
4
|
-
kMultiply = "*",
|
|
5
|
-
kDivide = "/",
|
|
6
|
-
kMin = "min",
|
|
7
|
-
kMax = "max",
|
|
8
|
-
kClamp = "clamp",
|
|
9
|
-
kInvalid = ""
|
|
10
|
-
}
|
|
11
|
-
export declare function isComparison(op: CSSMathOperator): boolean;
|
|
12
|
-
//# sourceMappingURL=CSSMathOperator.d.ts.map
|
|
1
|
+
export declare enum CSSMathOperator {
|
|
2
|
+
kAdd = "+",
|
|
3
|
+
kSubtract = "-",
|
|
4
|
+
kMultiply = "*",
|
|
5
|
+
kDivide = "/",
|
|
6
|
+
kMin = "min",
|
|
7
|
+
kMax = "max",
|
|
8
|
+
kClamp = "clamp",
|
|
9
|
+
kInvalid = ""
|
|
10
|
+
}
|
|
11
|
+
export declare function isComparison(op: CSSMathOperator): boolean;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type { UnitType } from './types';
|
|
2
|
-
export type UnitMap = Record<UnitType, number>;
|
|
3
|
-
export interface Term {
|
|
4
|
-
value: number;
|
|
5
|
-
units: UnitMap;
|
|
6
|
-
}
|
|
7
|
-
export type CSSNumericSumValue = Term[];
|
|
8
|
-
//# sourceMappingURL=CSSNumericSumValue.d.ts.map
|
|
1
|
+
import type { UnitType } from './types';
|
|
2
|
+
export type UnitMap = Record<UnitType, number>;
|
|
3
|
+
export interface Term {
|
|
4
|
+
value: number;
|
|
5
|
+
units: UnitMap;
|
|
6
|
+
}
|
|
7
|
+
export type CSSNumericSumValue = Term[];
|