@antv/g 5.0.22-alpha.5 → 5.0.23-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.umd.min.js +30 -0
- package/es/AbstractRenderer.js +8 -1
- package/es/Canvas.d.ts +1 -1
- 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 +306 -170
- 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 +8 -0
- package/es/css/StyleValueRegistry.js +24 -19
- 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 +1 -1
- package/es/css/parser/dimension.js +2 -3
- package/es/css/parser/numeric.js +1 -1
- package/es/css/parser/path.d.ts +2 -2
- package/es/css/parser/path.js +1 -1
- package/es/css/parser/points.js +1 -1
- package/es/css/parser/transform-origin.js +1 -1
- package/es/css/properties/CSSPropertyAnchor.js +3 -1
- package/es/css/properties/CSSPropertyClipPath.js +3 -1
- package/es/css/properties/CSSPropertyColor.js +3 -1
- package/es/css/properties/CSSPropertyFilter.js +3 -1
- package/es/css/properties/CSSPropertyLengthOrPercentage.js +3 -1
- package/es/css/properties/CSSPropertyLineDash.js +3 -1
- package/es/css/properties/CSSPropertyLocalPosition.js +3 -1
- package/es/css/properties/CSSPropertyOffsetDistance.js +3 -1
- package/es/css/properties/CSSPropertyOffsetPath.js +3 -1
- package/es/css/properties/CSSPropertyOpacity.js +3 -1
- package/es/css/properties/CSSPropertyPath.d.ts +14 -2
- package/es/css/properties/CSSPropertyPath.js +3 -1
- package/es/css/properties/CSSPropertyPoints.js +3 -1
- package/es/css/properties/CSSPropertyShadowBlur.js +3 -1
- package/es/css/properties/CSSPropertyText.d.ts +1 -1
- package/es/css/properties/CSSPropertyText.js +4 -2
- package/es/css/properties/CSSPropertyTextTransform.d.ts +3 -3
- package/es/css/properties/CSSPropertyTextTransform.js +3 -1
- package/es/css/properties/CSSPropertyTransform.js +4 -3
- package/es/css/properties/CSSPropertyTransformOrigin.js +3 -1
- package/es/css/properties/CSSPropertyVisibility.js +3 -1
- package/es/css/properties/CSSPropertyZIndex.js +3 -1
- package/es/display-objects/Circle.js +3 -1
- package/es/display-objects/CustomElement.js +3 -1
- package/es/display-objects/DisplayObject.js +10 -8
- 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.d.ts +15 -15
- package/es/display-objects/Path.js +5 -3
- package/es/display-objects/Polygon.d.ts +8 -1
- package/es/display-objects/Polygon.js +3 -1
- package/es/display-objects/Polyline.d.ts +7 -5
- 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 +5 -3
- package/es/dom/Element.js +7 -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 +15 -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.js +3 -1
- package/es/dom/MutationObserver.js +10 -3
- package/es/dom/MutationRecord.js +3 -1
- package/es/dom/Node.js +4 -2
- package/es/plugins/CullingPlugin.d.ts +0 -1
- package/es/plugins/CullingPlugin.js +6 -9
- package/es/plugins/DirtyCheckPlugin.d.ts +1 -1
- package/es/plugins/DirtyCheckPlugin.js +12 -9
- package/es/plugins/EventPlugin.d.ts +1 -1
- package/es/plugins/EventPlugin.js +166 -149
- package/es/plugins/FrustumCullingStrategy.js +3 -1
- package/es/plugins/PrepareRendererPlugin.d.ts +0 -1
- package/es/plugins/PrepareRendererPlugin.js +18 -17
- package/es/services/EventService.d.ts +8 -0
- package/es/services/EventService.js +279 -23
- package/es/services/OffscreenCanvasCreator.js +3 -1
- package/es/services/RenderingService.d.ts +17 -16
- package/es/services/RenderingService.js +21 -18
- package/es/services/SceneGraphSelector.js +3 -1
- package/es/services/SceneGraphService.js +4 -2
- package/es/services/TextService.js +5 -3
- 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.d.ts +3 -3
- package/es/services/aabb/PathUpdater.js +3 -1
- package/es/services/aabb/PolylineUpdater.d.ts +3 -3
- package/es/services/aabb/PolylineUpdater.js +3 -1
- package/es/services/aabb/RectUpdater.js +4 -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 +9 -3
- package/es/utils/assert.d.ts +6 -0
- package/es/utils/assert.js +18 -0
- package/es/utils/custom-easing.js +1 -1
- package/es/utils/event.d.ts +18 -16
- package/es/utils/hooks.d.ts +280 -0
- package/es/utils/hooks.js +753 -0
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.js +2 -1
- package/es/utils/math.d.ts +2 -2
- package/es/utils/math.js +22 -6
- package/es/utils/path.d.ts +1 -1
- package/es/utils/path.js +3 -3
- package/es/utils/string.d.ts +1 -0
- package/es/utils/string.js +8 -0
- package/es/utils/text.js +5 -4
- package/lib/AbstractRenderer.js +8 -1
- package/lib/Canvas.d.ts +1 -1
- 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 +313 -178
- 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 +8 -0
- package/lib/css/StyleValueRegistry.js +27 -20
- 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 +8 -8
- package/lib/css/parser/dimension.d.ts +1 -1
- package/lib/css/parser/dimension.js +8 -9
- package/lib/css/parser/numeric.js +6 -6
- package/lib/css/parser/path.d.ts +2 -2
- package/lib/css/parser/path.js +5 -5
- package/lib/css/parser/points.js +2 -2
- package/lib/css/parser/transform-origin.js +2 -2
- package/lib/css/parser/transform.js +2 -2
- package/lib/css/properties/CSSPropertyAnchor.js +3 -1
- package/lib/css/properties/CSSPropertyClipPath.js +3 -1
- package/lib/css/properties/CSSPropertyColor.js +3 -1
- package/lib/css/properties/CSSPropertyFilter.js +3 -1
- package/lib/css/properties/CSSPropertyLengthOrPercentage.js +3 -1
- package/lib/css/properties/CSSPropertyLineDash.js +3 -1
- package/lib/css/properties/CSSPropertyLocalPosition.js +3 -1
- package/lib/css/properties/CSSPropertyOffsetDistance.js +3 -1
- package/lib/css/properties/CSSPropertyOffsetPath.js +3 -1
- package/lib/css/properties/CSSPropertyOpacity.js +3 -1
- package/lib/css/properties/CSSPropertyPath.d.ts +14 -2
- package/lib/css/properties/CSSPropertyPath.js +3 -1
- package/lib/css/properties/CSSPropertyPoints.js +3 -1
- package/lib/css/properties/CSSPropertyShadowBlur.js +3 -1
- package/lib/css/properties/CSSPropertyText.d.ts +1 -1
- package/lib/css/properties/CSSPropertyText.js +4 -2
- package/lib/css/properties/CSSPropertyTextTransform.d.ts +3 -3
- package/lib/css/properties/CSSPropertyTextTransform.js +3 -1
- package/lib/css/properties/CSSPropertyTransform.js +3 -3
- package/lib/css/properties/CSSPropertyTransformOrigin.js +3 -1
- package/lib/css/properties/CSSPropertyVisibility.js +3 -1
- package/lib/css/properties/CSSPropertyZIndex.js +3 -1
- package/lib/display-objects/Circle.js +3 -1
- package/lib/display-objects/CustomElement.js +3 -1
- package/lib/display-objects/DisplayObject.js +13 -12
- 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.d.ts +15 -15
- package/lib/display-objects/Path.js +7 -5
- package/lib/display-objects/Polygon.d.ts +8 -1
- package/lib/display-objects/Polygon.js +3 -1
- package/lib/display-objects/Polyline.d.ts +7 -5
- 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 +5 -3
- package/lib/dom/Element.js +7 -7
- package/lib/dom/EventTarget.js +14 -12
- 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 +15 -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.js +3 -1
- package/lib/dom/MutationObserver.js +11 -4
- package/lib/dom/MutationRecord.js +3 -1
- package/lib/dom/Node.js +4 -2
- package/lib/index.js +1 -1
- package/lib/plugins/CullingPlugin.d.ts +0 -1
- package/lib/plugins/CullingPlugin.js +7 -9
- package/lib/plugins/DirtyCheckPlugin.d.ts +1 -1
- package/lib/plugins/DirtyCheckPlugin.js +13 -9
- package/lib/plugins/EventPlugin.d.ts +1 -1
- package/lib/plugins/EventPlugin.js +175 -157
- package/lib/plugins/FrustumCullingStrategy.js +3 -1
- package/lib/plugins/PrepareRendererPlugin.d.ts +0 -1
- package/lib/plugins/PrepareRendererPlugin.js +17 -15
- package/lib/services/EventService.d.ts +8 -0
- package/lib/services/EventService.js +279 -22
- package/lib/services/OffscreenCanvasCreator.js +3 -1
- package/lib/services/RenderingService.d.ts +17 -16
- package/lib/services/RenderingService.js +22 -19
- package/lib/services/SceneGraphSelector.js +4 -2
- package/lib/services/SceneGraphService.js +8 -6
- package/lib/services/TextService.js +5 -3
- 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.d.ts +3 -3
- package/lib/services/aabb/PathUpdater.js +3 -1
- package/lib/services/aabb/PolylineUpdater.d.ts +3 -3
- package/lib/services/aabb/PolylineUpdater.js +3 -1
- package/lib/services/aabb/RectUpdater.js +6 -4
- 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 +9 -3
- package/lib/types.js +1 -1
- package/lib/utils/animation.js +3 -2
- package/lib/utils/assert.d.ts +6 -0
- package/lib/utils/assert.js +30 -0
- package/lib/utils/bezier-easing.js +1 -1
- package/lib/utils/custom-easing.js +2 -2
- package/lib/utils/event.d.ts +18 -16
- package/lib/utils/hooks.d.ts +280 -0
- package/lib/utils/hooks.js +759 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +13 -0
- package/lib/utils/math.d.ts +2 -2
- package/lib/utils/math.js +34 -18
- package/lib/utils/path.d.ts +1 -1
- package/lib/utils/path.js +6 -6
- package/lib/utils/string.d.ts +1 -0
- package/lib/utils/string.js +11 -0
- package/lib/utils/text.js +7 -5
- package/package.json +5 -6
package/es/camera/Landmark.d.ts
CHANGED
|
@@ -1,30 +1,23 @@
|
|
|
1
|
-
import { vec3 } from 'gl-matrix';
|
|
2
|
-
import type { Camera } from './Camera';
|
|
1
|
+
import type { mat4, vec3 } from 'gl-matrix';
|
|
3
2
|
/**
|
|
4
3
|
* 保存相机状态,便于后续在多个 Landmark 间移动
|
|
5
4
|
*/
|
|
6
|
-
export
|
|
5
|
+
export interface Landmark {
|
|
7
6
|
name: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
constructor(name: string, c: Camera);
|
|
25
|
-
getPosition(): vec3;
|
|
26
|
-
getFocalPoint(): vec3;
|
|
27
|
-
getRoll(): number;
|
|
28
|
-
getZoom(): number;
|
|
29
|
-
retrieve(c: Camera): void;
|
|
7
|
+
matrix: mat4;
|
|
8
|
+
right: vec3;
|
|
9
|
+
up: vec3;
|
|
10
|
+
forward: vec3;
|
|
11
|
+
position: vec3;
|
|
12
|
+
focalPoint: vec3;
|
|
13
|
+
distanceVector: vec3;
|
|
14
|
+
distance: number;
|
|
15
|
+
dollyingStep: number;
|
|
16
|
+
azimuth: number;
|
|
17
|
+
elevation: number;
|
|
18
|
+
roll: number;
|
|
19
|
+
relAzimuth: number;
|
|
20
|
+
relElevation: number;
|
|
21
|
+
relRoll: number;
|
|
22
|
+
zoom: number;
|
|
30
23
|
}
|
package/es/camera/Landmark.js
CHANGED
|
@@ -1,72 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* 保存相机状态,便于后续在多个 Landmark 间移动
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
var Landmark = function () {
|
|
7
|
-
function Landmark(name, c) {
|
|
8
|
-
this.azimuth = 0;
|
|
9
|
-
this.elevation = 0;
|
|
10
|
-
this.roll = 0;
|
|
11
|
-
this.relAzimuth = 0;
|
|
12
|
-
this.relElevation = 0;
|
|
13
|
-
this.relRoll = 0;
|
|
14
|
-
this.zoom = 1;
|
|
15
|
-
this.name = name;
|
|
16
|
-
this.matrix = mat4.clone(c.matrix);
|
|
17
|
-
this.right = vec3.clone(c.right);
|
|
18
|
-
this.up = vec3.clone(c.up);
|
|
19
|
-
this.forward = vec3.clone(c.forward);
|
|
20
|
-
this.position = vec3.clone(c.position);
|
|
21
|
-
this.focalPoint = vec3.clone(c.focalPoint);
|
|
22
|
-
this.distanceVector = vec3.clone(c.distanceVector);
|
|
23
|
-
this.azimuth = c.azimuth;
|
|
24
|
-
this.elevation = c.elevation;
|
|
25
|
-
this.roll = c.roll;
|
|
26
|
-
this.relAzimuth = c.relAzimuth;
|
|
27
|
-
this.relElevation = c.relElevation;
|
|
28
|
-
this.relRoll = c.relRoll;
|
|
29
|
-
this.dollyingStep = c.dollyingStep;
|
|
30
|
-
this.distance = c.distance;
|
|
31
|
-
this.zoom = c.zoom;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
Landmark.prototype.getPosition = function () {
|
|
35
|
-
return this.position;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
Landmark.prototype.getFocalPoint = function () {
|
|
39
|
-
return this.focalPoint;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
Landmark.prototype.getRoll = function () {
|
|
43
|
-
return this.roll;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
Landmark.prototype.getZoom = function () {
|
|
47
|
-
return this.zoom;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
Landmark.prototype.retrieve = function (c) {
|
|
51
|
-
c.matrix = mat4.copy(c.matrix, this.matrix);
|
|
52
|
-
c.right = vec3.copy(c.right, this.right);
|
|
53
|
-
c.up = vec3.copy(c.up, this.up);
|
|
54
|
-
c.forward = vec3.copy(c.forward, this.forward);
|
|
55
|
-
c.position = vec3.copy(c.position, this.position);
|
|
56
|
-
c.focalPoint = vec3.copy(c.focalPoint, this.focalPoint);
|
|
57
|
-
c.distanceVector = vec3.copy(c.distanceVector, this.distanceVector);
|
|
58
|
-
c.azimuth = this.azimuth;
|
|
59
|
-
c.elevation = this.elevation;
|
|
60
|
-
c.roll = this.roll;
|
|
61
|
-
c.relAzimuth = this.relAzimuth;
|
|
62
|
-
c.relElevation = this.relElevation;
|
|
63
|
-
c.relRoll = this.relRoll;
|
|
64
|
-
c.dollyingStep = this.dollyingStep;
|
|
65
|
-
c.distance = this.distance;
|
|
66
|
-
c.zoom = this.zoom;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
return Landmark;
|
|
70
|
-
}();
|
|
71
|
-
|
|
72
|
-
export { Landmark };
|
|
1
|
+
export {};
|
package/es/canvas-module.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Module, Contribution } from 'mana-syringe';
|
|
2
2
|
import { DirtyCheckPlugin } from './plugins/DirtyCheckPlugin';
|
|
3
3
|
import { CullingPlugin, CullingStrategyContribution } from './plugins/CullingPlugin';
|
|
4
|
-
import { PrepareRendererPlugin } from './plugins/PrepareRendererPlugin';
|
|
5
|
-
|
|
4
|
+
import { PrepareRendererPlugin } from './plugins/PrepareRendererPlugin';
|
|
6
5
|
import { FrustumCullingStrategy } from './plugins/FrustumCullingStrategy';
|
|
7
6
|
import { RenderingPluginContribution, RenderingService } from './services';
|
|
8
7
|
import { EventPlugin } from './plugins/EventPlugin';
|
|
@@ -19,8 +18,7 @@ export var containerModule = Module(function (register) {
|
|
|
19
18
|
register(RenderingService);
|
|
20
19
|
register(EventService);
|
|
21
20
|
register(EventPlugin);
|
|
22
|
-
register(PrepareRendererPlugin);
|
|
23
|
-
|
|
21
|
+
register(PrepareRendererPlugin);
|
|
24
22
|
register(DirtyCheckPlugin);
|
|
25
23
|
register(CullingPlugin);
|
|
26
24
|
register(FrustumCullingStrategy);
|
|
@@ -7,7 +7,9 @@ export var Strategy;
|
|
|
7
7
|
Strategy[Strategy["Standard"] = 0] = "Standard";
|
|
8
8
|
})(Strategy || (Strategy = {}));
|
|
9
9
|
|
|
10
|
-
var Cullable =
|
|
10
|
+
var Cullable =
|
|
11
|
+
/** @class */
|
|
12
|
+
function () {
|
|
11
13
|
function Cullable() {
|
|
12
14
|
this.strategy = Strategy.Standard;
|
|
13
15
|
this.visibilityPlaneMask = -1;
|
package/es/css/LayoutRegistry.js
CHANGED
|
@@ -10,7 +10,9 @@ import { singleton } from 'mana-syringe';
|
|
|
10
10
|
* group.style.display = 'layout(centering)';
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
var LayoutRegistry =
|
|
13
|
+
var LayoutRegistry =
|
|
14
|
+
/** @class */
|
|
15
|
+
function () {
|
|
14
16
|
function LayoutRegistry() {}
|
|
15
17
|
|
|
16
18
|
LayoutRegistry = __decorate([singleton()], LayoutRegistry);
|
|
@@ -6,6 +6,14 @@ export interface PropertyParseOptions {
|
|
|
6
6
|
skipUpdateAttribute: boolean;
|
|
7
7
|
skipParse: boolean;
|
|
8
8
|
}
|
|
9
|
+
export declare const PropertySyntax: {
|
|
10
|
+
COLOR: string;
|
|
11
|
+
PAINT: string;
|
|
12
|
+
NUMBER: string;
|
|
13
|
+
LENGTH: string;
|
|
14
|
+
PERCENTAGE: string;
|
|
15
|
+
LENGTH_PERCENTAGE: string;
|
|
16
|
+
};
|
|
9
17
|
export interface PropertyMetadata {
|
|
10
18
|
name: string;
|
|
11
19
|
/**
|
|
@@ -9,6 +9,14 @@ import { convertPercentUnit } from './parser';
|
|
|
9
9
|
import { CSSPropertyLocalPosition, CSSPropertyOpacity, CSSPropertyColor, CSSPropertyFilter, CSSPropertyLengthOrPercentage, CSSPropertyLineDash, CSSPropertyShadowBlur, CSSPropertyOffsetPath, CSSPropertyOffsetDistance, CSSPropertyAnchor, CSSPropertyZIndex, CSSPropertyTransform, CSSPropertyTransformOrigin, CSSPropertyPath, CSSPropertyClipPath, CSSPropertyPoints, CSSPropertyText, CSSPropertyTextTransform } from './properties';
|
|
10
10
|
import { formatAttribute } from '../utils';
|
|
11
11
|
import { AABB } from '../shapes';
|
|
12
|
+
export var PropertySyntax = {
|
|
13
|
+
COLOR: '<color>',
|
|
14
|
+
PAINT: '<paint>',
|
|
15
|
+
NUMBER: '<number>',
|
|
16
|
+
LENGTH: '<length>',
|
|
17
|
+
PERCENTAGE: '<percentage>',
|
|
18
|
+
LENGTH_PERCENTAGE: '<length> | <percentage>'
|
|
19
|
+
};
|
|
12
20
|
/**
|
|
13
21
|
* Blink used them in code generation(css_properties.json5)
|
|
14
22
|
*/
|
|
@@ -26,7 +34,7 @@ export var BUILT_IN_PROPERTIES = [{
|
|
|
26
34
|
interpolable: true,
|
|
27
35
|
alias: ['cx'],
|
|
28
36
|
defaultValue: '0',
|
|
29
|
-
syntax:
|
|
37
|
+
syntax: PropertySyntax.LENGTH_PERCENTAGE,
|
|
30
38
|
handler: CSSPropertyLocalPosition
|
|
31
39
|
}, {
|
|
32
40
|
// y in local space
|
|
@@ -34,14 +42,14 @@ export var BUILT_IN_PROPERTIES = [{
|
|
|
34
42
|
interpolable: true,
|
|
35
43
|
alias: ['cy'],
|
|
36
44
|
defaultValue: '0',
|
|
37
|
-
syntax:
|
|
45
|
+
syntax: PropertySyntax.LENGTH_PERCENTAGE,
|
|
38
46
|
handler: CSSPropertyLocalPosition
|
|
39
47
|
}, {
|
|
40
48
|
// z in local space
|
|
41
49
|
name: 'z',
|
|
42
50
|
interpolable: true,
|
|
43
51
|
defaultValue: '0',
|
|
44
|
-
syntax:
|
|
52
|
+
syntax: PropertySyntax.LENGTH_PERCENTAGE,
|
|
45
53
|
handler: CSSPropertyLocalPosition
|
|
46
54
|
}, {
|
|
47
55
|
/**
|
|
@@ -51,7 +59,7 @@ export var BUILT_IN_PROPERTIES = [{
|
|
|
51
59
|
name: 'opacity',
|
|
52
60
|
interpolable: true,
|
|
53
61
|
defaultValue: '1',
|
|
54
|
-
syntax:
|
|
62
|
+
syntax: PropertySyntax.NUMBER,
|
|
55
63
|
handler: CSSPropertyOpacity
|
|
56
64
|
}, {
|
|
57
65
|
/**
|
|
@@ -62,7 +70,7 @@ export var BUILT_IN_PROPERTIES = [{
|
|
|
62
70
|
interpolable: true,
|
|
63
71
|
inherited: true,
|
|
64
72
|
defaultValue: '1',
|
|
65
|
-
syntax:
|
|
73
|
+
syntax: PropertySyntax.NUMBER,
|
|
66
74
|
handler: CSSPropertyOpacity
|
|
67
75
|
}, {
|
|
68
76
|
/**
|
|
@@ -73,7 +81,7 @@ export var BUILT_IN_PROPERTIES = [{
|
|
|
73
81
|
interpolable: true,
|
|
74
82
|
inherited: true,
|
|
75
83
|
defaultValue: '1',
|
|
76
|
-
syntax:
|
|
84
|
+
syntax: PropertySyntax.NUMBER,
|
|
77
85
|
handler: CSSPropertyOpacity
|
|
78
86
|
}, {
|
|
79
87
|
/**
|
|
@@ -84,31 +92,31 @@ export var BUILT_IN_PROPERTIES = [{
|
|
|
84
92
|
interpolable: true,
|
|
85
93
|
keywords: ['none'],
|
|
86
94
|
defaultValue: 'none',
|
|
87
|
-
syntax:
|
|
95
|
+
syntax: PropertySyntax.PAINT,
|
|
88
96
|
handler: CSSPropertyColor
|
|
89
97
|
}, {
|
|
90
98
|
name: 'stroke',
|
|
91
99
|
interpolable: true,
|
|
92
100
|
keywords: ['none'],
|
|
93
101
|
defaultValue: 'none',
|
|
94
|
-
syntax:
|
|
102
|
+
syntax: PropertySyntax.PAINT,
|
|
95
103
|
handler: CSSPropertyColor
|
|
96
104
|
}, {
|
|
97
105
|
name: 'shadowColor',
|
|
98
106
|
interpolable: true,
|
|
99
|
-
syntax:
|
|
107
|
+
syntax: PropertySyntax.COLOR,
|
|
100
108
|
handler: CSSPropertyColor
|
|
101
109
|
}, {
|
|
102
110
|
name: 'shadowOffsetX',
|
|
103
111
|
interpolable: true,
|
|
104
112
|
layoutDependent: true,
|
|
105
|
-
syntax:
|
|
113
|
+
syntax: PropertySyntax.LENGTH_PERCENTAGE,
|
|
106
114
|
handler: CSSPropertyLengthOrPercentage
|
|
107
115
|
}, {
|
|
108
116
|
name: 'shadowOffsetY',
|
|
109
117
|
interpolable: true,
|
|
110
118
|
layoutDependent: true,
|
|
111
|
-
syntax:
|
|
119
|
+
syntax: PropertySyntax.LENGTH_PERCENTAGE,
|
|
112
120
|
handler: CSSPropertyLengthOrPercentage
|
|
113
121
|
}, {
|
|
114
122
|
name: 'shadowBlur',
|
|
@@ -125,7 +133,7 @@ export var BUILT_IN_PROPERTIES = [{
|
|
|
125
133
|
defaultValue: '1',
|
|
126
134
|
layoutDependent: true,
|
|
127
135
|
alias: ['strokeWidth'],
|
|
128
|
-
syntax:
|
|
136
|
+
syntax: PropertySyntax.LENGTH_PERCENTAGE,
|
|
129
137
|
handler: CSSPropertyLengthOrPercentage
|
|
130
138
|
}, {
|
|
131
139
|
name: 'lineJoin',
|
|
@@ -224,12 +232,7 @@ export var BUILT_IN_PROPERTIES = [{
|
|
|
224
232
|
parsePriority: 99,
|
|
225
233
|
layoutDependent: true,
|
|
226
234
|
handler: CSSPropertyAnchor
|
|
227
|
-
}, //
|
|
228
|
-
// name: 'origin',
|
|
229
|
-
// layoutDependent: true,
|
|
230
|
-
// handler: CSSPropertyAnchor,
|
|
231
|
-
// },
|
|
232
|
-
// Circle
|
|
235
|
+
}, // Circle
|
|
233
236
|
{
|
|
234
237
|
name: 'r',
|
|
235
238
|
interpolable: true,
|
|
@@ -408,7 +411,9 @@ export var BUILT_IN_PROPERTIES = [{
|
|
|
408
411
|
layoutDependent: true
|
|
409
412
|
}];
|
|
410
413
|
|
|
411
|
-
var StyleValueRegistry =
|
|
414
|
+
var StyleValueRegistry =
|
|
415
|
+
/** @class */
|
|
416
|
+
function () {
|
|
412
417
|
function StyleValueRegistry() {
|
|
413
418
|
/**
|
|
414
419
|
* need recalc later
|
|
@@ -6,7 +6,9 @@ import { CSSStyleValue, CSSStyleValueType } from './CSSStyleValue';
|
|
|
6
6
|
* @see https://drafts.css-houdini.org/css-typed-om-1/#colorvalue-objects
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
var CSSColorValue =
|
|
9
|
+
var CSSColorValue =
|
|
10
|
+
/** @class */
|
|
11
|
+
function (_super) {
|
|
10
12
|
__extends(CSSColorValue, _super);
|
|
11
13
|
|
|
12
14
|
function CSSColorValue(colorSpace) {
|
|
@@ -9,7 +9,9 @@ export var GradientPatternType;
|
|
|
9
9
|
GradientPatternType[GradientPatternType["Pattern"] = 3] = "Pattern";
|
|
10
10
|
})(GradientPatternType || (GradientPatternType = {}));
|
|
11
11
|
|
|
12
|
-
var CSSGradientValue =
|
|
12
|
+
var CSSGradientValue =
|
|
13
|
+
/** @class */
|
|
14
|
+
function (_super) {
|
|
13
15
|
__extends(CSSGradientValue, _super);
|
|
14
16
|
|
|
15
17
|
function CSSGradientValue(type, value) {
|
|
@@ -28,15 +30,15 @@ var CSSGradientValue = function (_super) {
|
|
|
28
30
|
var text = '';
|
|
29
31
|
|
|
30
32
|
if (this.type === GradientPatternType.LinearGradient) {
|
|
31
|
-
text = "linear-gradient("
|
|
33
|
+
text = "linear-gradient(".concat(this.value.steps.map(function (step) {
|
|
32
34
|
return step.join(',');
|
|
33
|
-
}).join(',')
|
|
35
|
+
}).join(','), ")");
|
|
34
36
|
} else if (this.type === GradientPatternType.RadialGradient) {
|
|
35
|
-
text = "radial-gradient("
|
|
37
|
+
text = "radial-gradient(".concat(this.value.steps.map(function (step) {
|
|
36
38
|
return step.join(',');
|
|
37
|
-
}).join(',')
|
|
39
|
+
}).join(','), ")");
|
|
38
40
|
} else if (this.type === GradientPatternType.Pattern) {
|
|
39
|
-
text = "url("
|
|
41
|
+
text = "url(".concat(this.value.src, ")");
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
return result += text;
|
|
@@ -7,7 +7,9 @@ import { CSSStyleValue, CSSStyleValueType } from './CSSStyleValue';
|
|
|
7
7
|
* @see https://chromium.googlesource.com/chromium/src/+/refs/heads/main/third_party/blink/renderer/core/css/cssom/css_keyword_value.idl
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
var CSSKeywordValue =
|
|
10
|
+
var CSSKeywordValue =
|
|
11
|
+
/** @class */
|
|
12
|
+
function (_super) {
|
|
11
13
|
__extends(CSSKeywordValue, _super);
|
|
12
14
|
|
|
13
15
|
function CSSKeywordValue(value) {
|
|
@@ -2,7 +2,9 @@ import { __extends } from "tslib";
|
|
|
2
2
|
import { CSSMathValue } from './CSSMathValue';
|
|
3
3
|
import { CSSNumericValueType, CSSStyleValueType, Nested, ParenLess } from '.';
|
|
4
4
|
|
|
5
|
-
var CSSMathInvert =
|
|
5
|
+
var CSSMathInvert =
|
|
6
|
+
/** @class */
|
|
7
|
+
function (_super) {
|
|
6
8
|
__extends(CSSMathInvert, _super);
|
|
7
9
|
|
|
8
10
|
function CSSMathInvert(value, type) {
|
|
@@ -9,7 +9,9 @@ import { CSSMathVariadic } from './CSSMathVariadic';
|
|
|
9
9
|
import { Nested, ParenLess, CSSNumericValueType, CSSStyleValueType, typeCheck } from '.'; // Represents the maximum of one or more CSSNumericValues.
|
|
10
10
|
// @see https://drafts.css-houdini.org/css-typed-om/#cssmathsum
|
|
11
11
|
|
|
12
|
-
var CSSMathMax =
|
|
12
|
+
var CSSMathMax =
|
|
13
|
+
/** @class */
|
|
14
|
+
function (_super) {
|
|
13
15
|
__extends(CSSMathMax, _super);
|
|
14
16
|
|
|
15
17
|
function CSSMathMax() {
|
|
@@ -10,7 +10,9 @@ import { CSSMathVariadic } from './CSSMathVariadic';
|
|
|
10
10
|
import { CSSNumericValueType, CSSStyleValueType, typeCheck, Nested, ParenLess } from '.'; // Represents the minimum of one or more CSSNumericValues.
|
|
11
11
|
// @see https://drafts.css-houdini.org/css-typed-om/#cssmathsum
|
|
12
12
|
|
|
13
|
-
var CSSMathMin =
|
|
13
|
+
var CSSMathMin =
|
|
14
|
+
/** @class */
|
|
15
|
+
function (_super) {
|
|
14
16
|
__extends(CSSMathMin, _super);
|
|
15
17
|
|
|
16
18
|
function CSSMathMin() {
|
|
@@ -2,7 +2,9 @@ import { __extends } from "tslib";
|
|
|
2
2
|
import { CSSMathValue } from './CSSMathValue';
|
|
3
3
|
import { Nested, ParenLess, CSSStyleValueType } from '.';
|
|
4
4
|
|
|
5
|
-
var CSSMathNegate =
|
|
5
|
+
var CSSMathNegate =
|
|
6
|
+
/** @class */
|
|
7
|
+
function (_super) {
|
|
6
8
|
__extends(CSSMathNegate, _super);
|
|
7
9
|
|
|
8
10
|
function CSSMathNegate(value, type) {
|
|
@@ -7,7 +7,9 @@ import { typeCheck, CSSStyleValueType, CSSNumericValueType, Nested, ParenLess }
|
|
|
7
7
|
* @see https://drafts.css-houdini.org/css-typed-om/#cssmathproduct
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
var CSSMathProduct =
|
|
10
|
+
var CSSMathProduct =
|
|
11
|
+
/** @class */
|
|
12
|
+
function (_super) {
|
|
11
13
|
__extends(CSSMathProduct, _super);
|
|
12
14
|
|
|
13
15
|
function CSSMathProduct() {
|
|
@@ -7,7 +7,9 @@ import { typeCheck, CSSStyleValueType, CSSNumericValueType, Nested, ParenLess }
|
|
|
7
7
|
* @see https://drafts.css-houdini.org/css-typed-om/#cssmathsum
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
var CSSMathSum =
|
|
10
|
+
var CSSMathSum =
|
|
11
|
+
/** @class */
|
|
12
|
+
function (_super) {
|
|
11
13
|
__extends(CSSMathSum, _super);
|
|
12
14
|
|
|
13
15
|
function CSSMathSum() {
|
|
@@ -7,7 +7,9 @@ import { CSSNumericValue } from './CSSNumericValue';
|
|
|
7
7
|
* @see https://chromium.googlesource.com/chromium/src/+/refs/heads/main/third_party/blink/renderer/core/css/cssom/css_math_value.idl
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
var CSSMathValue =
|
|
10
|
+
var CSSMathValue =
|
|
11
|
+
/** @class */
|
|
12
|
+
function (_super) {
|
|
11
13
|
__extends(CSSMathValue, _super);
|
|
12
14
|
|
|
13
15
|
function CSSMathValue() {
|
|
@@ -12,7 +12,9 @@ export function typeCheck(values, op, error) {
|
|
|
12
12
|
return final_type;
|
|
13
13
|
} // Represents an arithmetic operation with one or more CSSNumericValues.
|
|
14
14
|
|
|
15
|
-
var CSSMathVariadic =
|
|
15
|
+
var CSSMathVariadic =
|
|
16
|
+
/** @class */
|
|
17
|
+
function (_super) {
|
|
16
18
|
__extends(CSSMathVariadic, _super);
|
|
17
19
|
|
|
18
20
|
function CSSMathVariadic(values, type) {
|
|
@@ -9,7 +9,9 @@ import { UnitType, CSSStyleValueType, BaseType, baseTypeToString, CSSUnitValue,
|
|
|
9
9
|
* @see https://chromium.googlesource.com/chromium/src/+/refs/heads/main/third_party/blink/renderer/core/css/cssom/css_numeric_value.idl
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
var CSSNumericValue =
|
|
12
|
+
var CSSNumericValue =
|
|
13
|
+
/** @class */
|
|
14
|
+
function (_super) {
|
|
13
15
|
__extends(CSSNumericValue, _super);
|
|
14
16
|
|
|
15
17
|
function CSSNumericValue(type_) {
|
|
@@ -10,7 +10,7 @@ export declare enum BaseType {
|
|
|
10
10
|
kNumBaseTypes = 7
|
|
11
11
|
}
|
|
12
12
|
export declare function unitTypeToBaseType(unit: UnitType): BaseType.kLength | BaseType.kAngle | BaseType.kTime | BaseType.kFrequency | BaseType.kResolution | BaseType.kFlex | BaseType.kPercent;
|
|
13
|
-
export declare function baseTypeToString(baseType: BaseType): "" | "
|
|
13
|
+
export declare function baseTypeToString(baseType: BaseType): "" | "percent" | "length" | "angle" | "time" | "frequency" | "resolution" | "flex";
|
|
14
14
|
export declare class CSSNumericValueType {
|
|
15
15
|
private exponents;
|
|
16
16
|
private numNonZeroEntries;
|
|
@@ -121,7 +121,9 @@ export function baseTypeToString(baseType) {
|
|
|
121
121
|
return '';
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
var CSSNumericValueType =
|
|
124
|
+
var CSSNumericValueType =
|
|
125
|
+
/** @class */
|
|
126
|
+
function () {
|
|
125
127
|
function CSSNumericValueType(unit, exponent) {
|
|
126
128
|
if (unit === void 0) {
|
|
127
129
|
unit = UnitType.kNumber;
|
package/es/css/cssom/CSSRGB.js
CHANGED
|
@@ -6,7 +6,9 @@ import { CSSColorValue } from './CSSColorValue';
|
|
|
6
6
|
* @see https://drafts.css-houdini.org/css-typed-om-1/#cssrgb
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
var CSSRGB =
|
|
9
|
+
var CSSRGB =
|
|
10
|
+
/** @class */
|
|
11
|
+
function (_super) {
|
|
10
12
|
__extends(CSSRGB, _super);
|
|
11
13
|
|
|
12
14
|
function CSSRGB(r, g, b, alpha,
|
|
@@ -37,7 +39,7 @@ var CSSRGB = function (_super) {
|
|
|
37
39
|
};
|
|
38
40
|
|
|
39
41
|
CSSRGB.prototype.buildCSSText = function (n, p, result) {
|
|
40
|
-
return result +
|
|
42
|
+
return result + "rgba(".concat(this.r, ",").concat(this.g, ",").concat(this.b, ",").concat(this.alpha, ")");
|
|
41
43
|
};
|
|
42
44
|
|
|
43
45
|
return CSSRGB;
|
|
@@ -29,7 +29,7 @@ export declare abstract class CSSStyleValue {
|
|
|
29
29
|
static parseAll(propertyName: string, value: string): CSSStyleValue[];
|
|
30
30
|
static unitFromName(name: string): UnitType;
|
|
31
31
|
static unitTypeToUnitCategory(type: UnitType): UnitCategory;
|
|
32
|
-
static unitTypeToString(type: UnitType): "" | "em" | "
|
|
32
|
+
static unitTypeToString(type: UnitType): "" | "em" | "px" | "deg" | "rad" | "grad" | "ms" | "s" | "rem" | "turn" | "%";
|
|
33
33
|
static stringToUnitType(name: string): UnitType;
|
|
34
34
|
static canonicalUnitTypeForCategory(category: UnitCategory): UnitType.kUnknown | UnitType.kNumber | UnitType.kPixels | UnitType.kDegrees | UnitType.kSeconds | UnitType.kHertz | UnitType.kDotsPerPixel;
|
|
35
35
|
/**
|
|
@@ -256,7 +256,9 @@ function parseCSSStyleValue(propertyName, value) {
|
|
|
256
256
|
*/
|
|
257
257
|
|
|
258
258
|
|
|
259
|
-
var CSSStyleValue =
|
|
259
|
+
var CSSStyleValue =
|
|
260
|
+
/** @class */
|
|
261
|
+
function () {
|
|
260
262
|
function CSSStyleValue() {}
|
|
261
263
|
|
|
262
264
|
CSSStyleValue.parse = function (propertyName, value) {
|
|
@@ -6,7 +6,9 @@ import { CSSStyleValue, CSSStyleValueType } from './CSSStyleValue';
|
|
|
6
6
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/CSSTransformValue
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
var CSSTransformValue =
|
|
9
|
+
var CSSTransformValue =
|
|
10
|
+
/** @class */
|
|
11
|
+
function (_super) {
|
|
10
12
|
__extends(CSSTransformValue, _super);
|
|
11
13
|
|
|
12
14
|
function CSSTransformValue(transforms) {
|
|
@@ -8,7 +8,9 @@ import { CSSTransformComponent } from './CSSTransformComponent'; // import { Uni
|
|
|
8
8
|
* @see https://drafts.css-houdini.org/css-typed-om/#csstranslate
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
var CSSTranslate =
|
|
11
|
+
var CSSTranslate =
|
|
12
|
+
/** @class */
|
|
13
|
+
function (_super) {
|
|
12
14
|
__extends(CSSTranslate, _super);
|
|
13
15
|
|
|
14
16
|
function CSSTranslate(x, y, z, is2D) {
|
|
@@ -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
|
}
|