@antv/g 5.0.22-alpha.3 → 5.0.22-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.umd.min.js +30 -0
- package/es/AbstractRenderer.js +3 -1
- package/es/Canvas.d.ts +1 -4
- package/es/Canvas.js +5 -3
- package/es/DisplayObjectPool.js +3 -1
- package/es/camera/Camera.d.ts +105 -66
- package/es/camera/Camera.js +307 -171
- package/es/camera/Landmark.d.ts +18 -25
- package/es/camera/Landmark.js +1 -72
- package/es/canvas-module.js +2 -4
- package/es/components/Cullable.js +3 -1
- package/es/components/Geometry.js +3 -1
- package/es/components/Renderable.js +3 -1
- package/es/components/Sortable.js +3 -1
- package/es/components/Transform.js +3 -1
- package/es/css/LayoutRegistry.js +3 -1
- package/es/css/StyleValueRegistry.d.ts +10 -1
- package/es/css/StyleValueRegistry.js +28 -22
- package/es/css/cssom/CSSColorValue.js +3 -1
- package/es/css/cssom/CSSGradientValue.js +8 -6
- package/es/css/cssom/CSSKeywordValue.js +3 -1
- package/es/css/cssom/CSSMathInvert.js +3 -1
- package/es/css/cssom/CSSMathMax.js +3 -1
- package/es/css/cssom/CSSMathMin.js +3 -1
- package/es/css/cssom/CSSMathNegate.js +3 -1
- package/es/css/cssom/CSSMathProduct.js +3 -1
- package/es/css/cssom/CSSMathSum.js +3 -1
- package/es/css/cssom/CSSMathValue.js +3 -1
- package/es/css/cssom/CSSMathVariadic.js +3 -1
- package/es/css/cssom/CSSNumericValue.js +3 -1
- package/es/css/cssom/CSSNumericValueType.d.ts +1 -1
- package/es/css/cssom/CSSNumericValueType.js +3 -1
- package/es/css/cssom/CSSRGB.js +4 -2
- package/es/css/cssom/CSSStyleValue.d.ts +1 -1
- package/es/css/cssom/CSSStyleValue.js +3 -1
- package/es/css/cssom/CSSTransformComponent.js +3 -1
- package/es/css/cssom/CSSTransformValue.js +3 -1
- package/es/css/cssom/CSSTranslate.js +3 -1
- package/es/css/cssom/CSSUnitValue.js +4 -2
- package/es/css/parser/color.js +2 -2
- package/es/css/parser/dimension.d.ts +2 -1
- package/es/css/parser/dimension.js +2 -2
- package/es/css/parser/numeric.js +1 -1
- package/es/css/parser/path.d.ts +1 -1
- package/es/css/parser/points.js +1 -1
- package/es/css/parser/transform-origin.d.ts +1 -1
- package/es/css/parser/transform-origin.js +3 -3
- package/es/css/properties/CSSPropertyAnchor.d.ts +4 -2
- package/es/css/properties/CSSPropertyAnchor.js +5 -2
- package/es/css/properties/CSSPropertyClipPath.d.ts +2 -1
- package/es/css/properties/CSSPropertyClipPath.js +4 -2
- package/es/css/properties/CSSPropertyColor.d.ts +3 -2
- package/es/css/properties/CSSPropertyColor.js +4 -2
- package/es/css/properties/CSSPropertyFilter.d.ts +3 -2
- package/es/css/properties/CSSPropertyFilter.js +4 -2
- package/es/css/properties/CSSPropertyLengthOrPercentage.d.ts +4 -2
- package/es/css/properties/CSSPropertyLengthOrPercentage.js +5 -2
- package/es/css/properties/CSSPropertyLineDash.d.ts +4 -2
- package/es/css/properties/CSSPropertyLineDash.js +4 -2
- package/es/css/properties/CSSPropertyLocalPosition.d.ts +4 -2
- package/es/css/properties/CSSPropertyLocalPosition.js +4 -2
- package/es/css/properties/CSSPropertyOffsetDistance.d.ts +4 -2
- package/es/css/properties/CSSPropertyOffsetDistance.js +5 -2
- package/es/css/properties/CSSPropertyOffsetPath.d.ts +2 -1
- package/es/css/properties/CSSPropertyOffsetPath.js +3 -1
- package/es/css/properties/CSSPropertyOpacity.d.ts +3 -2
- package/es/css/properties/CSSPropertyOpacity.js +4 -2
- package/es/css/properties/CSSPropertyPath.d.ts +3 -2
- package/es/css/properties/CSSPropertyPath.js +6 -2
- package/es/css/properties/CSSPropertyPoints.d.ts +3 -2
- package/es/css/properties/CSSPropertyPoints.js +4 -2
- package/es/css/properties/CSSPropertyShadowBlur.d.ts +1 -1
- package/es/css/properties/CSSPropertyShadowBlur.js +4 -2
- package/es/css/properties/CSSPropertyText.d.ts +3 -2
- package/es/css/properties/CSSPropertyText.js +5 -3
- package/es/css/properties/CSSPropertyTextTransform.d.ts +2 -1
- package/es/css/properties/CSSPropertyTextTransform.js +4 -2
- package/es/css/properties/CSSPropertyTransform.d.ts +3 -2
- package/es/css/properties/CSSPropertyTransform.js +5 -3
- package/es/css/properties/CSSPropertyTransformOrigin.d.ts +3 -2
- package/es/css/properties/CSSPropertyTransformOrigin.js +4 -2
- package/es/css/properties/CSSPropertyVisibility.d.ts +3 -1
- package/es/css/properties/CSSPropertyVisibility.js +3 -1
- package/es/css/properties/CSSPropertyZIndex.d.ts +4 -2
- package/es/css/properties/CSSPropertyZIndex.js +4 -2
- package/es/display-objects/Circle.js +3 -1
- package/es/display-objects/CustomElement.js +3 -1
- package/es/display-objects/DisplayObject.js +7 -4
- package/es/display-objects/Ellipse.js +3 -1
- package/es/display-objects/Group.js +3 -1
- package/es/display-objects/HTML.js +6 -3
- package/es/display-objects/Image.js +3 -1
- package/es/display-objects/Line.js +3 -1
- package/es/display-objects/Path.js +5 -3
- package/es/display-objects/Polygon.js +3 -1
- package/es/display-objects/Polyline.js +3 -1
- package/es/display-objects/Rect.js +3 -1
- package/es/display-objects/Text.js +6 -3
- package/es/dom/Animation.js +4 -2
- package/es/dom/AnimationEffectTiming.js +3 -1
- package/es/dom/AnimationEvent.js +3 -1
- package/es/dom/AnimationTimeline.js +3 -1
- package/es/dom/CustomElementRegistry.js +3 -1
- package/es/dom/CustomEvent.js +3 -1
- package/es/dom/Document.js +3 -1
- package/es/dom/Element.js +8 -6
- package/es/dom/EventTarget.js +6 -4
- package/es/dom/FederatedEvent.js +3 -1
- package/es/dom/FederatedMouseEvent.js +3 -1
- package/es/dom/FederatedPointerEvent.js +3 -1
- package/es/dom/FederatedTouchEvent.d.ts +13 -0
- package/es/dom/FederatedTouchEvent.js +19 -0
- package/es/dom/FederatedWheelEvent.js +3 -1
- package/es/dom/KeyframeEffect.js +3 -1
- package/es/dom/KeyframeList.js +1 -1
- package/es/dom/MutationEvent.d.ts +1 -1
- package/es/dom/MutationEvent.js +3 -1
- package/es/dom/MutationObserver.d.ts +2 -1
- package/es/dom/MutationObserver.js +11 -4
- package/es/dom/MutationRecord.d.ts +1 -1
- package/es/dom/MutationRecord.js +3 -1
- package/es/dom/Node.js +5 -3
- package/es/dom/interfaces.d.ts +2 -1
- package/es/plugins/CullingPlugin.js +3 -1
- package/es/plugins/DirtyCheckPlugin.js +3 -1
- package/es/plugins/EventPlugin.js +4 -2
- package/es/plugins/FrustumCullingStrategy.js +3 -1
- package/es/plugins/PrepareRendererPlugin.d.ts +1 -1
- package/es/plugins/PrepareRendererPlugin.js +3 -1
- package/es/services/EventService.js +5 -3
- package/es/services/OffscreenCanvasCreator.js +3 -1
- package/es/services/RenderingService.d.ts +2 -2
- package/es/services/RenderingService.js +3 -1
- package/es/services/SceneGraphSelector.js +3 -1
- package/es/services/SceneGraphService.js +4 -2
- package/es/services/TextService.d.ts +2 -2
- package/es/services/TextService.js +7 -4
- package/es/services/aabb/CircleUpdater.js +3 -1
- package/es/services/aabb/EllipseUpdater.js +3 -1
- package/es/services/aabb/LineUpdater.js +3 -1
- package/es/services/aabb/PathUpdater.js +3 -1
- package/es/services/aabb/PolylineUpdater.js +3 -1
- package/es/services/aabb/RectUpdater.js +4 -2
- package/es/services/aabb/TextUpdater.d.ts +1 -2
- package/es/services/aabb/TextUpdater.js +3 -1
- package/es/shapes/AABB.js +3 -1
- package/es/shapes/BoundingSphere.js +3 -1
- package/es/shapes/Frustum.js +3 -1
- package/es/shapes/Plane.js +3 -1
- package/es/shapes/Point.js +3 -1
- package/es/shapes/Ray.js +3 -1
- package/es/shapes/Rectangle.js +3 -1
- package/es/types.d.ts +4 -0
- package/es/utils/custom-easing.js +1 -1
- package/es/utils/math.d.ts +1 -2
- package/es/utils/math.js +11 -6
- package/es/utils/path.d.ts +2 -2
- package/es/utils/path.js +3 -3
- package/es/utils/text.js +4 -4
- package/lib/AbstractRenderer.js +3 -1
- package/lib/Canvas.d.ts +1 -4
- package/lib/Canvas.js +5 -3
- package/lib/DisplayObjectPool.js +3 -1
- package/lib/camera/Camera.d.ts +105 -66
- package/lib/camera/Camera.js +314 -179
- package/lib/camera/Landmark.d.ts +18 -25
- package/lib/camera/Landmark.js +1 -75
- package/lib/canvas-module.js +1 -3
- package/lib/components/Cullable.js +4 -2
- package/lib/components/Geometry.js +3 -1
- package/lib/components/Renderable.js +3 -1
- package/lib/components/Sortable.js +3 -1
- package/lib/components/Transform.js +3 -1
- package/lib/css/LayoutRegistry.js +3 -1
- package/lib/css/StyleValueRegistry.d.ts +10 -1
- package/lib/css/StyleValueRegistry.js +38 -27
- package/lib/css/cssom/CSSColorValue.js +3 -1
- package/lib/css/cssom/CSSGradientValue.js +9 -7
- package/lib/css/cssom/CSSKeywordValue.js +3 -1
- package/lib/css/cssom/CSSMathInvert.js +3 -1
- package/lib/css/cssom/CSSMathMax.js +3 -1
- package/lib/css/cssom/CSSMathMin.js +3 -1
- package/lib/css/cssom/CSSMathNegate.js +3 -1
- package/lib/css/cssom/CSSMathOperator.js +1 -1
- package/lib/css/cssom/CSSMathProduct.js +3 -1
- package/lib/css/cssom/CSSMathSum.js +3 -1
- package/lib/css/cssom/CSSMathValue.js +3 -1
- package/lib/css/cssom/CSSMathVariadic.js +4 -2
- package/lib/css/cssom/CSSNumericValue.js +3 -1
- package/lib/css/cssom/CSSNumericValueType.d.ts +1 -1
- package/lib/css/cssom/CSSNumericValueType.js +5 -3
- package/lib/css/cssom/CSSRGB.js +4 -2
- package/lib/css/cssom/CSSStyleValue.d.ts +1 -1
- package/lib/css/cssom/CSSStyleValue.js +4 -2
- package/lib/css/cssom/CSSTransformComponent.js +4 -2
- package/lib/css/cssom/CSSTransformValue.js +3 -1
- package/lib/css/cssom/CSSTranslate.js +3 -1
- package/lib/css/cssom/CSSUnitValue.js +4 -2
- package/lib/css/cssom/types.js +1 -1
- package/lib/css/parser/color.js +7 -7
- package/lib/css/parser/dimension.d.ts +2 -1
- package/lib/css/parser/dimension.js +9 -8
- package/lib/css/parser/numeric.js +6 -6
- package/lib/css/parser/path.d.ts +1 -1
- package/lib/css/parser/path.js +1 -1
- package/lib/css/parser/points.js +2 -2
- package/lib/css/parser/transform-origin.d.ts +1 -1
- package/lib/css/parser/transform-origin.js +7 -5
- package/lib/css/parser/transform.js +2 -2
- package/lib/css/properties/CSSPropertyAnchor.d.ts +4 -2
- package/lib/css/properties/CSSPropertyAnchor.js +8 -4
- package/lib/css/properties/CSSPropertyClipPath.d.ts +2 -1
- package/lib/css/properties/CSSPropertyClipPath.js +5 -3
- package/lib/css/properties/CSSPropertyColor.d.ts +3 -2
- package/lib/css/properties/CSSPropertyColor.js +6 -4
- package/lib/css/properties/CSSPropertyFilter.d.ts +3 -2
- package/lib/css/properties/CSSPropertyFilter.js +5 -3
- package/lib/css/properties/CSSPropertyLengthOrPercentage.d.ts +4 -2
- package/lib/css/properties/CSSPropertyLengthOrPercentage.js +14 -10
- package/lib/css/properties/CSSPropertyLineDash.d.ts +4 -2
- package/lib/css/properties/CSSPropertyLineDash.js +6 -4
- package/lib/css/properties/CSSPropertyLocalPosition.d.ts +4 -2
- package/lib/css/properties/CSSPropertyLocalPosition.js +6 -4
- package/lib/css/properties/CSSPropertyOffsetDistance.d.ts +4 -2
- package/lib/css/properties/CSSPropertyOffsetDistance.js +9 -5
- package/lib/css/properties/CSSPropertyOffsetPath.d.ts +2 -1
- package/lib/css/properties/CSSPropertyOffsetPath.js +3 -1
- package/lib/css/properties/CSSPropertyOpacity.d.ts +3 -2
- package/lib/css/properties/CSSPropertyOpacity.js +6 -4
- package/lib/css/properties/CSSPropertyPath.d.ts +3 -2
- package/lib/css/properties/CSSPropertyPath.js +12 -6
- package/lib/css/properties/CSSPropertyPoints.d.ts +3 -2
- package/lib/css/properties/CSSPropertyPoints.js +5 -3
- package/lib/css/properties/CSSPropertyShadowBlur.d.ts +1 -1
- package/lib/css/properties/CSSPropertyShadowBlur.js +5 -3
- package/lib/css/properties/CSSPropertyText.d.ts +3 -2
- package/lib/css/properties/CSSPropertyText.js +6 -4
- package/lib/css/properties/CSSPropertyTextTransform.d.ts +2 -1
- package/lib/css/properties/CSSPropertyTextTransform.js +8 -6
- package/lib/css/properties/CSSPropertyTransform.d.ts +3 -2
- package/lib/css/properties/CSSPropertyTransform.js +26 -24
- package/lib/css/properties/CSSPropertyTransformOrigin.d.ts +3 -2
- package/lib/css/properties/CSSPropertyTransformOrigin.js +5 -3
- package/lib/css/properties/CSSPropertyVisibility.d.ts +3 -1
- package/lib/css/properties/CSSPropertyVisibility.js +3 -1
- package/lib/css/properties/CSSPropertyZIndex.d.ts +4 -2
- package/lib/css/properties/CSSPropertyZIndex.js +5 -3
- package/lib/display-objects/Circle.js +3 -1
- package/lib/display-objects/CustomElement.js +3 -1
- package/lib/display-objects/DisplayObject.js +14 -11
- package/lib/display-objects/Ellipse.js +3 -1
- package/lib/display-objects/Group.js +3 -1
- package/lib/display-objects/HTML.js +6 -4
- package/lib/display-objects/Image.js +3 -1
- package/lib/display-objects/Line.js +3 -1
- package/lib/display-objects/Path.js +8 -6
- package/lib/display-objects/Polygon.js +3 -1
- package/lib/display-objects/Polyline.js +3 -1
- package/lib/display-objects/Rect.js +3 -1
- package/lib/display-objects/Text.js +6 -4
- package/lib/dom/Animation.js +4 -2
- package/lib/dom/AnimationEffectTiming.js +3 -1
- package/lib/dom/AnimationEvent.js +3 -1
- package/lib/dom/AnimationTimeline.js +4 -2
- package/lib/dom/CustomElementRegistry.js +3 -1
- package/lib/dom/CustomEvent.js +3 -1
- package/lib/dom/Document.js +3 -1
- package/lib/dom/Element.js +11 -9
- package/lib/dom/EventTarget.js +13 -11
- package/lib/dom/FederatedEvent.js +3 -1
- package/lib/dom/FederatedMouseEvent.js +3 -1
- package/lib/dom/FederatedPointerEvent.js +3 -1
- package/lib/dom/FederatedTouchEvent.d.ts +13 -0
- package/lib/dom/FederatedTouchEvent.js +27 -0
- package/lib/dom/FederatedWheelEvent.js +3 -1
- package/lib/dom/KeyframeEffect.js +4 -2
- package/lib/dom/KeyframeList.js +1 -1
- package/lib/dom/MutationEvent.d.ts +1 -1
- package/lib/dom/MutationEvent.js +3 -1
- package/lib/dom/MutationObserver.d.ts +2 -1
- package/lib/dom/MutationObserver.js +22 -15
- package/lib/dom/MutationRecord.d.ts +1 -1
- package/lib/dom/MutationRecord.js +3 -1
- package/lib/dom/Node.js +8 -6
- package/lib/dom/interfaces.d.ts +2 -1
- package/lib/index.js +1 -1
- package/lib/plugins/CullingPlugin.js +4 -2
- package/lib/plugins/DirtyCheckPlugin.js +3 -1
- package/lib/plugins/EventPlugin.js +26 -24
- package/lib/plugins/FrustumCullingStrategy.js +3 -1
- package/lib/plugins/PrepareRendererPlugin.d.ts +1 -1
- package/lib/plugins/PrepareRendererPlugin.js +3 -1
- package/lib/services/EventService.js +5 -3
- package/lib/services/OffscreenCanvasCreator.js +3 -1
- package/lib/services/RenderingService.d.ts +2 -2
- package/lib/services/RenderingService.js +3 -1
- package/lib/services/SceneGraphSelector.js +4 -2
- package/lib/services/SceneGraphService.js +7 -5
- package/lib/services/TextService.d.ts +2 -2
- package/lib/services/TextService.js +10 -6
- package/lib/services/aabb/CircleUpdater.js +3 -1
- package/lib/services/aabb/EllipseUpdater.js +3 -1
- package/lib/services/aabb/LineUpdater.js +3 -1
- package/lib/services/aabb/PathUpdater.js +3 -1
- package/lib/services/aabb/PolylineUpdater.js +3 -1
- package/lib/services/aabb/RectUpdater.js +5 -3
- package/lib/services/aabb/TextUpdater.d.ts +1 -2
- package/lib/services/aabb/TextUpdater.js +3 -1
- package/lib/services/aabb/index.js +10 -10
- package/lib/services/aabb/interfaces.js +1 -1
- package/lib/shapes/AABB.js +3 -1
- package/lib/shapes/BoundingSphere.js +3 -1
- package/lib/shapes/Frustum.js +4 -2
- package/lib/shapes/Plane.js +3 -1
- package/lib/shapes/Point.js +3 -1
- package/lib/shapes/Ray.js +3 -1
- package/lib/shapes/Rectangle.js +3 -1
- package/lib/types.d.ts +4 -0
- package/lib/types.js +1 -1
- package/lib/utils/animation.js +3 -2
- package/lib/utils/bezier-easing.js +1 -1
- package/lib/utils/custom-easing.js +2 -2
- package/lib/utils/math.d.ts +1 -2
- package/lib/utils/math.js +20 -17
- package/lib/utils/path.d.ts +2 -2
- package/lib/utils/path.js +6 -6
- package/lib/utils/text.js +5 -5
- package/package.json +7 -5
|
@@ -17,7 +17,9 @@ import { CSSStyleValue } from './CSSStyleValue';
|
|
|
17
17
|
* @see https://drafts.css-houdini.org/css-typed-om/#cssunitvalue
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
|
-
var CSSUnitValue =
|
|
20
|
+
var CSSUnitValue =
|
|
21
|
+
/** @class */
|
|
22
|
+
function (_super) {
|
|
21
23
|
__extends(CSSUnitValue, _super);
|
|
22
24
|
|
|
23
25
|
function CSSUnitValue(value, unitOrName) {
|
|
@@ -235,7 +237,7 @@ var CSSUnitValue = function (_super) {
|
|
|
235
237
|
text = CSSUnitValue.formatNumber(value, unit_1);
|
|
236
238
|
}
|
|
237
239
|
} else {
|
|
238
|
-
text = ""
|
|
240
|
+
text = "".concat(value).concat(unit);
|
|
239
241
|
}
|
|
240
242
|
}
|
|
241
243
|
}
|
package/es/css/parser/color.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __read, __spreadArray } from "tslib";
|
|
2
2
|
import * as d3 from 'd3-color';
|
|
3
|
-
import { clamp, isString } from '
|
|
3
|
+
import { clamp, isString } from 'lodash-es';
|
|
4
4
|
import { CSSRGB, CSSGradientValue, GradientPatternType } from '../cssom';
|
|
5
5
|
var regexLG = /^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i;
|
|
6
6
|
var regexRG = /^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i;
|
|
@@ -88,7 +88,7 @@ export function mergeColors(left, right) {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
rgba[3] = clamp(rgba[3], 0, 1);
|
|
91
|
-
return "rgba("
|
|
91
|
+
return "rgba(".concat(rgba.join(','), ")");
|
|
92
92
|
}];
|
|
93
93
|
}
|
|
94
94
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IElement } from '../../dom';
|
|
2
|
+
import type { DisplayObject } from '../../display-objects';
|
|
2
3
|
import type { CSSStyleValue } from '../cssom';
|
|
3
4
|
import { CSSUnitValue } from '../cssom';
|
|
4
5
|
import type { CSSValueParser } from './types';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { isString } from '
|
|
1
|
+
import { isString } from 'lodash-es';
|
|
2
2
|
import { AABB } from '../../shapes';
|
|
3
3
|
import { rad2deg, turn2deg } from '../../utils';
|
|
4
4
|
import { UnitType } from '../cssom';
|
|
5
5
|
import { CSSUnitValue } from '../cssom';
|
|
6
6
|
export function parseDimension(unitRegExp, string) {
|
|
7
|
-
string =
|
|
7
|
+
string = "".concat(string).trim().toLowerCase();
|
|
8
8
|
|
|
9
9
|
if (isFinite(Number(string))) {
|
|
10
10
|
if ('px'.search(unitRegExp) >= 0) {
|
package/es/css/parser/numeric.js
CHANGED
package/es/css/parser/path.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PathCommand } from '../../types';
|
|
2
2
|
import type { ParsedPathStyleProps } from '../../display-objects';
|
|
3
|
-
import type { IElement } from '
|
|
3
|
+
import type { IElement } from '../../dom';
|
|
4
4
|
export declare function parsePath(path: string): ParsedPathStyleProps;
|
|
5
5
|
export declare function mergePaths(left: ParsedPathStyleProps, right: ParsedPathStyleProps, object: IElement): [PathCommand[], PathCommand[], (b: PathCommand[]) => PathCommand[]];
|
package/es/css/parser/points.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isString } from '
|
|
2
|
-
import { CSSUnitValue } from '
|
|
3
|
-
import { parseLengthOrPercentage } from '
|
|
1
|
+
import { isString } from 'lodash-es';
|
|
2
|
+
import { CSSUnitValue } from '../cssom';
|
|
3
|
+
import { parseLengthOrPercentage } from './dimension';
|
|
4
4
|
/**
|
|
5
5
|
* @see https://developer.mozilla.org/zh-CN/docs/Web/CSS/transform-origin
|
|
6
6
|
* eg. 'center' 'top left' '50px 50px'
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type { CSSProperty
|
|
2
|
-
import {
|
|
1
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
2
|
+
import type { DisplayObject } from '../../display-objects';
|
|
3
|
+
import { CSSUnitValue } from '../cssom';
|
|
4
|
+
import { parseNumberList } from '../parser';
|
|
3
5
|
export declare class CSSPropertyAnchor implements Partial<CSSProperty<CSSUnitValue[], CSSUnitValue[]>> {
|
|
4
6
|
parser: typeof parseNumberList;
|
|
5
7
|
calculator(name: string, oldParsed: CSSUnitValue[], parsed: CSSUnitValue[], object: DisplayObject): CSSUnitValue[];
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { singleton } from 'mana-syringe';
|
|
3
|
-
import { CSSUnitValue
|
|
3
|
+
import { CSSUnitValue } from '../cssom';
|
|
4
|
+
import { parseNumberList } from '../parser';
|
|
4
5
|
|
|
5
|
-
var CSSPropertyAnchor =
|
|
6
|
+
var CSSPropertyAnchor =
|
|
7
|
+
/** @class */
|
|
8
|
+
function () {
|
|
6
9
|
function CSSPropertyAnchor() {
|
|
7
10
|
this.parser = parseNumberList;
|
|
8
11
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { singleton } from 'mana-syringe';
|
|
3
|
-
import { dirtifyToRoot } from '
|
|
3
|
+
import { dirtifyToRoot } from '../../services';
|
|
4
4
|
/**
|
|
5
5
|
* @see /zh/docs/api/basic/display-object#clippath
|
|
6
6
|
* @example
|
|
@@ -19,7 +19,9 @@ import { dirtifyToRoot } from '../..';
|
|
|
19
19
|
});
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
var CSSPropertyClipPath =
|
|
22
|
+
var CSSPropertyClipPath =
|
|
23
|
+
/** @class */
|
|
24
|
+
function () {
|
|
23
25
|
function CSSPropertyClipPath() {}
|
|
24
26
|
|
|
25
27
|
CSSPropertyClipPath.prototype.calculator = function (name, oldClipPath, newClipPath, object) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { CSSProperty
|
|
2
|
-
import {
|
|
1
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
2
|
+
import type { DisplayObject } from '../../display-objects';
|
|
3
|
+
import { parseColor, mergeColors } from '../parser';
|
|
3
4
|
import type { CSSGradientValue } from '../cssom';
|
|
4
5
|
import { CSSKeywordValue, CSSRGB } from '../cssom';
|
|
5
6
|
import type { StyleValueRegistry } from '../StyleValueRegistry';
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { singleton } from 'mana-syringe';
|
|
3
|
-
import { parseColor, mergeColors } from '
|
|
3
|
+
import { parseColor, mergeColors } from '../parser';
|
|
4
4
|
import { CSSKeywordValue, CSSRGB } from '../cssom';
|
|
5
5
|
/**
|
|
6
6
|
* opacity
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
var CSSPropertyColor =
|
|
9
|
+
var CSSPropertyColor =
|
|
10
|
+
/** @class */
|
|
11
|
+
function () {
|
|
10
12
|
function CSSPropertyColor() {
|
|
11
13
|
this.parser = parseColor;
|
|
12
14
|
this.mixer = mergeColors;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { CSSProperty
|
|
2
|
-
import {
|
|
1
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
2
|
+
import type { ParsedFilterStyleProperty } from '../parser';
|
|
3
|
+
import { parseFilter } from '../parser';
|
|
3
4
|
export declare class CSSPropertyFilter implements Partial<CSSProperty<ParsedFilterStyleProperty[], ParsedFilterStyleProperty[]>> {
|
|
4
5
|
parser: typeof parseFilter;
|
|
5
6
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { singleton } from 'mana-syringe';
|
|
3
|
-
import { parseFilter } from '
|
|
3
|
+
import { parseFilter } from '../parser';
|
|
4
4
|
|
|
5
|
-
var CSSPropertyFilter =
|
|
5
|
+
var CSSPropertyFilter =
|
|
6
|
+
/** @class */
|
|
7
|
+
function () {
|
|
6
8
|
function CSSPropertyFilter() {
|
|
7
9
|
this.parser = parseFilter;
|
|
8
10
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { CSSUnitValue
|
|
1
|
+
import { CSSUnitValue } from '../cssom';
|
|
2
|
+
import { mergeDimensions } from '../parser';
|
|
2
3
|
import type { StyleValueRegistry } from '../StyleValueRegistry';
|
|
3
|
-
import type { DisplayObject
|
|
4
|
+
import type { DisplayObject } from '../../display-objects';
|
|
5
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
4
6
|
/**
|
|
5
7
|
* <length> & <percentage>
|
|
6
8
|
*/
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { singleton } from 'mana-syringe';
|
|
3
|
-
import { UnitType, CSSUnitValue
|
|
3
|
+
import { UnitType, CSSUnitValue } from '../cssom';
|
|
4
|
+
import { parseLengthOrPercentage, mergeDimensions } from '../parser';
|
|
4
5
|
/**
|
|
5
6
|
* <length> & <percentage>
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
|
-
var CSSPropertyLengthOrPercentage =
|
|
9
|
+
var CSSPropertyLengthOrPercentage =
|
|
10
|
+
/** @class */
|
|
11
|
+
function () {
|
|
9
12
|
function CSSPropertyLengthOrPercentage() {
|
|
10
13
|
this.parser = parseLengthOrPercentage;
|
|
11
14
|
this.mixer = mergeDimensions;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
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';
|
|
3
5
|
export declare class CSSPropertyLineDash implements Partial<CSSProperty<CSSUnitValue[], CSSUnitValue[]>> {
|
|
4
6
|
parser: typeof parseDimensionArray;
|
|
5
7
|
mixer: typeof mergeDimensionList;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { singleton } from 'mana-syringe';
|
|
3
|
-
import { parseDimensionArray, mergeDimensionList } from '
|
|
3
|
+
import { parseDimensionArray, mergeDimensionList } from '../parser';
|
|
4
4
|
|
|
5
|
-
var CSSPropertyLineDash =
|
|
5
|
+
var CSSPropertyLineDash =
|
|
6
|
+
/** @class */
|
|
7
|
+
function () {
|
|
6
8
|
function CSSPropertyLineDash() {
|
|
7
9
|
this.parser = parseDimensionArray;
|
|
8
10
|
this.mixer = mergeDimensionList;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
1
|
+
import type { DisplayObject } from '../../display-objects';
|
|
2
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
3
|
+
import type { CSSUnitValue } from '../cssom';
|
|
4
|
+
import { mergeDimensions } from '../parser';
|
|
3
5
|
import { CSSPropertyLengthOrPercentage } from './CSSPropertyLengthOrPercentage';
|
|
4
6
|
/**
|
|
5
7
|
* local position
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { __decorate, __extends } from "tslib";
|
|
2
2
|
import { singleton } from 'mana-syringe';
|
|
3
|
-
import { mergeDimensions, parseLengthOrPercentage } from '
|
|
3
|
+
import { mergeDimensions, parseLengthOrPercentage } from '../parser';
|
|
4
4
|
import { CSSPropertyLengthOrPercentage } from './CSSPropertyLengthOrPercentage';
|
|
5
5
|
/**
|
|
6
6
|
* local position
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
var CSSPropertyLocalPosition =
|
|
9
|
+
var CSSPropertyLocalPosition =
|
|
10
|
+
/** @class */
|
|
11
|
+
function (_super) {
|
|
10
12
|
__extends(CSSPropertyLocalPosition, _super);
|
|
11
13
|
|
|
12
14
|
function CSSPropertyLocalPosition() {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
1
|
+
import type { DisplayObject } from '../../display-objects';
|
|
2
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
3
|
+
import type { CSSUnitValue } from '../cssom';
|
|
4
|
+
import { parseNumber } from '../parser';
|
|
3
5
|
export declare class CSSPropertyOffsetDistance implements Partial<CSSProperty<CSSUnitValue, CSSUnitValue>> {
|
|
4
6
|
parser: typeof parseNumber;
|
|
5
7
|
mixer: (left: CSSUnitValue, right: CSSUnitValue) => [number, number, (i: number) => string];
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { singleton } from 'mana-syringe';
|
|
3
|
-
import {
|
|
3
|
+
import { Shape } from '../../types';
|
|
4
|
+
import { parseNumber, clampedMergeNumbers } from '../parser';
|
|
4
5
|
|
|
5
|
-
var CSSPropertyOffsetDistance =
|
|
6
|
+
var CSSPropertyOffsetDistance =
|
|
7
|
+
/** @class */
|
|
8
|
+
function () {
|
|
6
9
|
function CSSPropertyOffsetDistance() {
|
|
7
10
|
this.parser = parseNumber;
|
|
8
11
|
this.mixer = clampedMergeNumbers(0, 1);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DisplayObject } from '../../display-objects';
|
|
2
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
2
3
|
export declare class CSSPropertyOffsetPath implements Partial<CSSProperty<DisplayObject, DisplayObject>> {
|
|
3
4
|
calculator(name: string, oldOffsetPath: DisplayObject, newOffsetPath: DisplayObject, object: DisplayObject): DisplayObject<any, any>;
|
|
4
5
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { singleton } from 'mana-syringe';
|
|
3
3
|
|
|
4
|
-
var CSSPropertyOffsetPath =
|
|
4
|
+
var CSSPropertyOffsetPath =
|
|
5
|
+
/** @class */
|
|
6
|
+
function () {
|
|
5
7
|
function CSSPropertyOffsetPath() {}
|
|
6
8
|
|
|
7
9
|
CSSPropertyOffsetPath.prototype.calculator = function (name, oldOffsetPath, newOffsetPath, object) {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { singleton } from 'mana-syringe';
|
|
3
|
-
import { parseNumber, clampedMergeNumbers } from '
|
|
3
|
+
import { parseNumber, clampedMergeNumbers } from '../parser';
|
|
4
4
|
/**
|
|
5
5
|
* opacity
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
var CSSPropertyOpacity =
|
|
8
|
+
var CSSPropertyOpacity =
|
|
9
|
+
/** @class */
|
|
10
|
+
function () {
|
|
9
11
|
function CSSPropertyOpacity() {
|
|
10
12
|
this.parser = parseNumber;
|
|
11
13
|
this.mixer = clampedMergeNumbers(0, 1);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { DisplayObject,
|
|
2
|
-
import {
|
|
1
|
+
import type { DisplayObject, ParsedPathStyleProps } from '../../display-objects';
|
|
2
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
3
|
+
import { parsePath, mergePaths } from '../parser';
|
|
3
4
|
export declare class CSSPropertyPath implements Partial<CSSProperty<ParsedPathStyleProps, ParsedPathStyleProps>> {
|
|
4
5
|
/**
|
|
5
6
|
* path2Curve
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { singleton } from 'mana-syringe';
|
|
3
|
-
import {
|
|
3
|
+
import { Rectangle } from '../../shapes';
|
|
4
|
+
import { CSSKeywordValue } from '../cssom';
|
|
5
|
+
import { parsePath, mergePaths } from '../parser';
|
|
4
6
|
|
|
5
|
-
var CSSPropertyPath =
|
|
7
|
+
var CSSPropertyPath =
|
|
8
|
+
/** @class */
|
|
9
|
+
function () {
|
|
6
10
|
function CSSPropertyPath() {
|
|
7
11
|
/**
|
|
8
12
|
* path2Curve
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
1
|
+
import type { DisplayObject } from '../../display-objects';
|
|
2
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
3
|
+
import { parsePoints } from '../parser';
|
|
3
4
|
export declare class CSSPropertyPoints implements Partial<CSSProperty<{
|
|
4
5
|
points: [number, number][];
|
|
5
6
|
totalLength: number;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { singleton } from 'mana-syringe';
|
|
3
|
-
import { parsePoints } from '
|
|
3
|
+
import { parsePoints } from '../parser';
|
|
4
4
|
|
|
5
|
-
var CSSPropertyPoints =
|
|
5
|
+
var CSSPropertyPoints =
|
|
6
|
+
/** @class */
|
|
7
|
+
function () {
|
|
6
8
|
function CSSPropertyPoints() {
|
|
7
9
|
this.parser = parsePoints;
|
|
8
10
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CSSPropertyLengthOrPercentage } from './CSSPropertyLengthOrPercentage';
|
|
2
2
|
export declare class CSSPropertyShadowBlur extends CSSPropertyLengthOrPercentage {
|
|
3
|
-
mixer: (left: import("
|
|
3
|
+
mixer: (left: import("..").CSSUnitValue, right: import("..").CSSUnitValue) => [number, number, (i: number) => string];
|
|
4
4
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { __decorate, __extends } from "tslib";
|
|
2
2
|
import { singleton } from 'mana-syringe';
|
|
3
|
-
import { clampedMergeNumbers } from '
|
|
3
|
+
import { clampedMergeNumbers } from '../parser';
|
|
4
4
|
import { CSSPropertyLengthOrPercentage } from './CSSPropertyLengthOrPercentage';
|
|
5
5
|
|
|
6
|
-
var CSSPropertyShadowBlur =
|
|
6
|
+
var CSSPropertyShadowBlur =
|
|
7
|
+
/** @class */
|
|
8
|
+
function (_super) {
|
|
7
9
|
__extends(CSSPropertyShadowBlur, _super);
|
|
8
10
|
|
|
9
11
|
function CSSPropertyShadowBlur() {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { CSSProperty
|
|
2
|
-
import { CSSKeywordValue } from '
|
|
1
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
2
|
+
import { CSSKeywordValue } from '../cssom';
|
|
3
|
+
import type { DisplayObject } from '../../display-objects';
|
|
3
4
|
export declare class CSSPropertyText implements Partial<CSSProperty<CSSKeywordValue | string, string>> {
|
|
4
5
|
calculator(name: string, oldParsed: CSSKeywordValue | string, parsed: CSSKeywordValue | string, object: DisplayObject): string;
|
|
5
6
|
postProcessor(object: DisplayObject): void;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { singleton } from 'mana-syringe';
|
|
3
|
-
import { CSSKeywordValue } from '
|
|
3
|
+
import { CSSKeywordValue } from '../cssom';
|
|
4
4
|
|
|
5
|
-
var CSSPropertyText =
|
|
5
|
+
var CSSPropertyText =
|
|
6
|
+
/** @class */
|
|
7
|
+
function () {
|
|
6
8
|
function CSSPropertyText() {}
|
|
7
9
|
|
|
8
10
|
CSSPropertyText.prototype.calculator = function (name, oldParsed, parsed, object) {
|
|
@@ -18,7 +20,7 @@ var CSSPropertyText = function () {
|
|
|
18
20
|
};
|
|
19
21
|
|
|
20
22
|
CSSPropertyText.prototype.postProcessor = function (object) {
|
|
21
|
-
object.nodeValue = ""
|
|
23
|
+
object.nodeValue = "".concat(object.parsedStyle.text) || '';
|
|
22
24
|
};
|
|
23
25
|
|
|
24
26
|
CSSPropertyText = __decorate([singleton()], CSSPropertyText);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { CSSProperty
|
|
1
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
2
|
+
import type { DisplayObject, ParsedPathStyleProps } from '../../display-objects';
|
|
2
3
|
export declare class CSSPropertyTextTransform implements Partial<CSSProperty<ParsedPathStyleProps, ParsedPathStyleProps>> {
|
|
3
4
|
postProcessor(o: DisplayObject): void;
|
|
4
5
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { singleton } from 'mana-syringe';
|
|
3
|
-
import { TextTransform, Shape } from '
|
|
3
|
+
import { TextTransform, Shape } from '../../types';
|
|
4
4
|
|
|
5
|
-
var CSSPropertyTextTransform =
|
|
5
|
+
var CSSPropertyTextTransform =
|
|
6
|
+
/** @class */
|
|
7
|
+
function () {
|
|
6
8
|
function CSSPropertyTextTransform() {}
|
|
7
9
|
|
|
8
10
|
CSSPropertyTextTransform.prototype.postProcessor = function (o) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
1
|
+
import type { DisplayObject } from '../../display-objects';
|
|
2
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
3
|
+
import { parseTransform, mergeTransforms } from '../parser';
|
|
3
4
|
/**
|
|
4
5
|
* @see /zh/docs/api/animation#支持变换的属性
|
|
5
6
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __decorate } from "tslib"; // import { uniq } from '@
|
|
1
|
+
import { __decorate } from "tslib"; // import { uniq } from '@lodash-es';
|
|
2
2
|
|
|
3
3
|
import { singleton } from 'mana-syringe';
|
|
4
|
-
import { Opx, Odeg, parseTransform, mergeTransforms } from '../..';
|
|
5
4
|
import { CSSKeywordValue } from '../cssom';
|
|
5
|
+
import { Opx, Odeg, parseTransform, mergeTransforms } from '../parser';
|
|
6
6
|
/**
|
|
7
7
|
* @see /zh/docs/api/animation#支持变换的属性
|
|
8
8
|
*
|
|
@@ -34,7 +34,9 @@ import { CSSKeywordValue } from '../cssom';
|
|
|
34
34
|
* * perspective
|
|
35
35
|
*/
|
|
36
36
|
|
|
37
|
-
var CSSPropertyTransform =
|
|
37
|
+
var CSSPropertyTransform =
|
|
38
|
+
/** @class */
|
|
39
|
+
function () {
|
|
38
40
|
function CSSPropertyTransform() {
|
|
39
41
|
this.parser = parseTransform;
|
|
40
42
|
this.mixer = mergeTransforms;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { CSSProperty
|
|
2
|
-
import {
|
|
1
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
2
|
+
import type { CSSUnitValue } from '../cssom';
|
|
3
|
+
import { parseTransformOrigin } from '../parser';
|
|
3
4
|
/**
|
|
4
5
|
* @see https://developer.mozilla.org/zh-CN/docs/Web/CSS/transform-origin
|
|
5
6
|
* @example
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { singleton } from 'mana-syringe';
|
|
3
|
-
import { parseTransformOrigin } from '
|
|
3
|
+
import { parseTransformOrigin } from '../parser';
|
|
4
4
|
/**
|
|
5
5
|
* @see https://developer.mozilla.org/zh-CN/docs/Web/CSS/transform-origin
|
|
6
6
|
* @example
|
|
7
7
|
* [10px, 10px] [10%, 10%]
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
var CSSPropertyTransformOrigin =
|
|
10
|
+
var CSSPropertyTransformOrigin =
|
|
11
|
+
/** @class */
|
|
12
|
+
function () {
|
|
11
13
|
function CSSPropertyTransformOrigin() {
|
|
12
14
|
this.parser = parseTransformOrigin;
|
|
13
15
|
}
|
|
@@ -8,7 +8,9 @@ import { singleton } from 'mana-syringe';
|
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
var CSSPropertyVisibility =
|
|
11
|
+
var CSSPropertyVisibility =
|
|
12
|
+
/** @class */
|
|
13
|
+
function () {
|
|
12
14
|
function CSSPropertyVisibility() {}
|
|
13
15
|
|
|
14
16
|
CSSPropertyVisibility.prototype.calculator = function (name, oldParsed, parsed, object) {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type { CSSProperty
|
|
2
|
-
import {
|
|
1
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
2
|
+
import type { CSSUnitValue } from '../cssom';
|
|
3
|
+
import type { DisplayObject } from '../../display-objects';
|
|
4
|
+
import { parseNumber } from '../parser';
|
|
3
5
|
export declare class CSSPropertyZIndex implements Partial<CSSProperty<CSSUnitValue, CSSUnitValue>> {
|
|
4
6
|
parser: typeof parseNumber;
|
|
5
7
|
postProcessor(object: DisplayObject): void;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { singleton } from 'mana-syringe';
|
|
3
|
-
import { parseNumber } from '
|
|
3
|
+
import { parseNumber } from '../parser';
|
|
4
4
|
|
|
5
|
-
var CSSPropertyZIndex =
|
|
5
|
+
var CSSPropertyZIndex =
|
|
6
|
+
/** @class */
|
|
7
|
+
function () {
|
|
6
8
|
function CSSPropertyZIndex() {
|
|
7
9
|
this.parser = parseNumber;
|
|
8
10
|
}
|
|
@@ -2,7 +2,9 @@ import { __assign, __extends, __rest } from "tslib";
|
|
|
2
2
|
import { Shape } from '../types';
|
|
3
3
|
import { DisplayObject } from './DisplayObject';
|
|
4
4
|
|
|
5
|
-
var Circle =
|
|
5
|
+
var Circle =
|
|
6
|
+
/** @class */
|
|
7
|
+
function (_super) {
|
|
6
8
|
__extends(Circle, _super);
|
|
7
9
|
|
|
8
10
|
function Circle(_a) {
|
|
@@ -6,7 +6,9 @@ import { ElementEvent } from '../dom/interfaces';
|
|
|
6
6
|
* @see https://yuque.antfin-inc.com/antv/czqvg5/pgqipg
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
var CustomElement =
|
|
9
|
+
var CustomElement =
|
|
10
|
+
/** @class */
|
|
11
|
+
function (_super) {
|
|
10
12
|
__extends(CustomElement, _super); // private shadowNodes: DisplayObject[] = [];
|
|
11
13
|
|
|
12
14
|
|