@antv/g-lite 1.0.3 → 1.0.4

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.d.ts CHANGED
@@ -12,7 +12,7 @@ export * from './dom';
12
12
  export * from './services';
13
13
  export * from './shapes';
14
14
  export * from './types';
15
- export { computeLinearGradient, computeRadialGradient, convertToPath, deg2rad, deg2turn, ERROR_MSG_METHOD_NOT_IMPLEMENTED, getEuler, grad2deg, isBrowser, isFillOrStrokeAffected, rad2deg, setDOMSize, translatePathToString, turn2deg, getAngle, createVec3, findClosestClipPathTarget, getOrCalculatePathTotalLength, definedProps, } from './utils';
15
+ export { computeLinearGradient, computeRadialGradient, convertToPath, deg2rad, deg2turn, ERROR_MSG_METHOD_NOT_IMPLEMENTED, getEuler, grad2deg, decompose, isBrowser, isFillOrStrokeAffected, rad2deg, setDOMSize, translatePathToString, turn2deg, getAngle, createVec3, findClosestClipPathTarget, getOrCalculatePathTotalLength, definedProps, } from './utils';
16
16
  export { RBush };
17
17
  export declare const styleValueRegistry: StyleValueRegistry;
18
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAG3C,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC/F,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,OAAO,EACL,GAAG,EACH,gBAAgB,EAChB,eAAe,EACf,MAAM,EACN,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,SAAS,EAC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EACP,qBAAqB,EACrB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,QAAQ,EACR,mBAAmB,GACpB,MAAM,OAAO,CAAC;AACf,cAAc,mBAAmB,CAAC;AAClC,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,aAAa,EACb,OAAO,EACP,QAAQ,EACR,gCAAgC,EAChC,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAS,EACT,sBAAsB,EACtB,OAAO,EACP,UAAU,EACV,qBAAqB,EACrB,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,yBAAyB,EACzB,6BAA6B,EAC7B,YAAY,GACb,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,KAAK,EAAE,CAAC;AAKjB,eAAO,MAAM,kBAAkB,oBAA8D,CAAC"}
package/dist/index.esm.js CHANGED
@@ -15121,24 +15121,27 @@ var DefaultSceneGraphService = /*#__PURE__*/function () {
15121
15121
  aabb.add(childBounds);
15122
15122
  }
15123
15123
  }
15124
- }); // account for clip path
15124
+ });
15125
15125
 
15126
- var clipped = findClosestClipPathTarget(element);
15126
+ if (render) {
15127
+ // account for clip path
15128
+ var clipped = findClosestClipPathTarget(element);
15127
15129
 
15128
- if (clipped) {
15129
- var clipPathBounds = this.getTransformedGeometryBounds(clipped.style.clipPath, true);
15130
- var transformParentBounds;
15130
+ if (clipped) {
15131
+ var clipPathBounds = this.getTransformedGeometryBounds(clipped.style.clipPath, true);
15132
+ var transformParentBounds;
15131
15133
 
15132
- if (clipPathBounds) {
15133
- transformParentBounds = new AABB(); // intersect with original geometry
15134
+ if (clipPathBounds) {
15135
+ transformParentBounds = new AABB(); // intersect with original geometry
15134
15136
 
15135
- transformParentBounds.setFromTransformedAABB(clipPathBounds, this.getWorldTransform(clipped));
15136
- }
15137
+ transformParentBounds.setFromTransformedAABB(clipPathBounds, this.getWorldTransform(clipped));
15138
+ }
15137
15139
 
15138
- if (!aabb) {
15139
- aabb = transformParentBounds;
15140
- } else if (transformParentBounds) {
15141
- aabb = transformParentBounds.intersection(aabb);
15140
+ if (!aabb) {
15141
+ aabb = transformParentBounds;
15142
+ } else if (transformParentBounds) {
15143
+ aabb = transformParentBounds.intersection(aabb);
15144
+ }
15142
15145
  }
15143
15146
  }
15144
15147
 
@@ -18761,4 +18764,4 @@ GlobalContainer.load(containerModule); // export const sceneGraphService = Globa
18761
18764
 
18762
18765
  var styleValueRegistry = GlobalContainer.get(StyleValueRegistry); // export const displayObjectPool = GlobalContainer.get(DisplayObjectPool);
18763
18766
 
18764
- export { AABB, AbstractRenderer, AbstractRendererPlugin, AnimationTimelineToken, BUILT_IN_PROPERTIES, CSS, CSSGradientValue, CSSKeywordValue, CSSRGB, CSSStyleValue, CSSUnitValue, Camera, CameraContribution, CameraEvent, CameraProjectionMode, CameraTrackingMode, CameraType, Canvas, CanvasConfig, CanvasEvent, Circle, CircleUpdater, ContextService, CustomElement, CustomElementRegistry, CustomEvent, DefaultCamera, DefaultSceneGraphSelector, DefaultSceneGraphService, DisplayObject, DisplayObjectPool, Document, ERROR_MSG_METHOD_NOT_IMPLEMENTED, Element, ElementEvent, Ellipse, EllipseUpdater, EventService, EventTarget, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, Frustum, GeometryAABBUpdater, GeometryUpdaterFactory, GradientType, Group, HTML, Image, LayoutRegistry, Line, LineUpdater, Mask, MutationEvent, Node, OffscreenCanvasCreator, ParseEasingFunction, Path, PathUpdater, Plane, Point, Polygon, Polyline, PolylineUpdater, PropertySyntax, RBushRoot, Rect, RectUpdater, Rectangle, RenderReason, RenderingContext, RenderingPluginContribution, RenderingService, SceneGraphSelector, SceneGraphSelectorFactory, SceneGraphService, Shape, Strategy, StyleValueRegistry, Text, TextService, TextUpdater, UnitType, computeLinearGradient, computeRadialGradient, convertToPath, createVec3, definedProps, deg2rad, deg2turn, findClosestClipPathTarget, getAngle, getEuler, getOrCalculatePathTotalLength, grad2deg, isBrowser, isFillOrStrokeAffected, isPattern, mergeColors, parseColor, parseLength, parsePath, propertyMetadataCache, rad2deg, setDOMSize, styleValueRegistry, translatePathToString, turn2deg };
18767
+ export { AABB, AbstractRenderer, AbstractRendererPlugin, AnimationTimelineToken, BUILT_IN_PROPERTIES, CSS, CSSGradientValue, CSSKeywordValue, CSSRGB, CSSStyleValue, CSSUnitValue, Camera, CameraContribution, CameraEvent, CameraProjectionMode, CameraTrackingMode, CameraType, Canvas, CanvasConfig, CanvasEvent, Circle, CircleUpdater, ContextService, CustomElement, CustomElementRegistry, CustomEvent, DefaultCamera, DefaultSceneGraphSelector, DefaultSceneGraphService, DisplayObject, DisplayObjectPool, Document, ERROR_MSG_METHOD_NOT_IMPLEMENTED, Element, ElementEvent, Ellipse, EllipseUpdater, EventService, EventTarget, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, Frustum, GeometryAABBUpdater, GeometryUpdaterFactory, GradientType, Group, HTML, Image, LayoutRegistry, Line, LineUpdater, Mask, MutationEvent, Node, OffscreenCanvasCreator, ParseEasingFunction, Path, PathUpdater, Plane, Point, Polygon, Polyline, PolylineUpdater, PropertySyntax, RBushRoot, Rect, RectUpdater, Rectangle, RenderReason, RenderingContext, RenderingPluginContribution, RenderingService, SceneGraphSelector, SceneGraphSelectorFactory, SceneGraphService, Shape, Strategy, StyleValueRegistry, Text, TextService, TextUpdater, UnitType, computeLinearGradient, computeRadialGradient, convertToPath, createVec3, decompose, definedProps, deg2rad, deg2turn, findClosestClipPathTarget, getAngle, getEuler, getOrCalculatePathTotalLength, grad2deg, isBrowser, isFillOrStrokeAffected, isPattern, mergeColors, parseColor, parseLength, parsePath, propertyMetadataCache, rad2deg, setDOMSize, styleValueRegistry, translatePathToString, turn2deg };
package/dist/index.js CHANGED
@@ -15096,24 +15096,27 @@ exports.DefaultSceneGraphService = /*#__PURE__*/function () {
15096
15096
  aabb.add(childBounds);
15097
15097
  }
15098
15098
  }
15099
- }); // account for clip path
15099
+ });
15100
15100
 
15101
- var clipped = findClosestClipPathTarget(element);
15101
+ if (render) {
15102
+ // account for clip path
15103
+ var clipped = findClosestClipPathTarget(element);
15102
15104
 
15103
- if (clipped) {
15104
- var clipPathBounds = this.getTransformedGeometryBounds(clipped.style.clipPath, true);
15105
- var transformParentBounds;
15105
+ if (clipped) {
15106
+ var clipPathBounds = this.getTransformedGeometryBounds(clipped.style.clipPath, true);
15107
+ var transformParentBounds;
15106
15108
 
15107
- if (clipPathBounds) {
15108
- transformParentBounds = new AABB(); // intersect with original geometry
15109
+ if (clipPathBounds) {
15110
+ transformParentBounds = new AABB(); // intersect with original geometry
15109
15111
 
15110
- transformParentBounds.setFromTransformedAABB(clipPathBounds, this.getWorldTransform(clipped));
15111
- }
15112
+ transformParentBounds.setFromTransformedAABB(clipPathBounds, this.getWorldTransform(clipped));
15113
+ }
15112
15114
 
15113
- if (!aabb) {
15114
- aabb = transformParentBounds;
15115
- } else if (transformParentBounds) {
15116
- aabb = transformParentBounds.intersection(aabb);
15115
+ if (!aabb) {
15116
+ aabb = transformParentBounds;
15117
+ } else if (transformParentBounds) {
15118
+ aabb = transformParentBounds.intersection(aabb);
15119
+ }
15117
15120
  }
15118
15121
  }
15119
15122
 
@@ -18837,6 +18840,7 @@ exports.computeLinearGradient = computeLinearGradient;
18837
18840
  exports.computeRadialGradient = computeRadialGradient;
18838
18841
  exports.convertToPath = convertToPath;
18839
18842
  exports.createVec3 = createVec3;
18843
+ exports.decompose = decompose;
18840
18844
  exports.definedProps = definedProps;
18841
18845
  exports.deg2rad = deg2rad;
18842
18846
  exports.deg2turn = deg2turn;
package/dist/index.umd.js CHANGED
@@ -25674,24 +25674,27 @@
25674
25674
  aabb.add(childBounds);
25675
25675
  }
25676
25676
  }
25677
- }); // account for clip path
25677
+ });
25678
25678
 
25679
- var clipped = findClosestClipPathTarget(element);
25679
+ if (render) {
25680
+ // account for clip path
25681
+ var clipped = findClosestClipPathTarget(element);
25680
25682
 
25681
- if (clipped) {
25682
- var clipPathBounds = this.getTransformedGeometryBounds(clipped.style.clipPath, true);
25683
- var transformParentBounds;
25683
+ if (clipped) {
25684
+ var clipPathBounds = this.getTransformedGeometryBounds(clipped.style.clipPath, true);
25685
+ var transformParentBounds;
25684
25686
 
25685
- if (clipPathBounds) {
25686
- transformParentBounds = new AABB(); // intersect with original geometry
25687
+ if (clipPathBounds) {
25688
+ transformParentBounds = new AABB(); // intersect with original geometry
25687
25689
 
25688
- transformParentBounds.setFromTransformedAABB(clipPathBounds, this.getWorldTransform(clipped));
25689
- }
25690
+ transformParentBounds.setFromTransformedAABB(clipPathBounds, this.getWorldTransform(clipped));
25691
+ }
25690
25692
 
25691
- if (!aabb) {
25692
- aabb = transformParentBounds;
25693
- } else if (transformParentBounds) {
25694
- aabb = transformParentBounds.intersection(aabb);
25693
+ if (!aabb) {
25694
+ aabb = transformParentBounds;
25695
+ } else if (transformParentBounds) {
25696
+ aabb = transformParentBounds.intersection(aabb);
25697
+ }
25695
25698
  }
25696
25699
  }
25697
25700
 
@@ -29378,6 +29381,7 @@
29378
29381
  exports.computeRadialGradient = computeRadialGradient;
29379
29382
  exports.convertToPath = convertToPath;
29380
29383
  exports.createVec3 = createVec3;
29384
+ exports.decompose = decompose;
29381
29385
  exports.definedProps = definedProps;
29382
29386
  exports.deg2rad = deg2rad;
29383
29387
  exports.deg2turn = deg2turn;