@antv/g 5.0.22-alpha.2 → 5.0.22-alpha.5

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.
Files changed (119) hide show
  1. package/es/Canvas.d.ts +0 -3
  2. package/es/css/CSSProperty.d.ts +1 -1
  3. package/es/css/StyleValueRegistry.d.ts +2 -1
  4. package/es/css/StyleValueRegistry.js +5 -4
  5. package/es/css/parser/dimension.d.ts +2 -1
  6. package/es/css/parser/path.d.ts +1 -1
  7. package/es/css/parser/transform-origin.d.ts +1 -1
  8. package/es/css/parser/transform-origin.js +2 -2
  9. package/es/css/properties/CSSPropertyAnchor.d.ts +4 -2
  10. package/es/css/properties/CSSPropertyAnchor.js +2 -1
  11. package/es/css/properties/CSSPropertyClipPath.d.ts +2 -1
  12. package/es/css/properties/CSSPropertyClipPath.js +1 -1
  13. package/es/css/properties/CSSPropertyColor.d.ts +3 -2
  14. package/es/css/properties/CSSPropertyColor.js +1 -1
  15. package/es/css/properties/CSSPropertyFilter.d.ts +3 -2
  16. package/es/css/properties/CSSPropertyFilter.js +1 -1
  17. package/es/css/properties/CSSPropertyLengthOrPercentage.d.ts +4 -2
  18. package/es/css/properties/CSSPropertyLengthOrPercentage.js +2 -1
  19. package/es/css/properties/CSSPropertyLineDash.d.ts +4 -2
  20. package/es/css/properties/CSSPropertyLineDash.js +1 -1
  21. package/es/css/properties/CSSPropertyLocalPosition.d.ts +4 -2
  22. package/es/css/properties/CSSPropertyLocalPosition.js +1 -1
  23. package/es/css/properties/CSSPropertyOffsetDistance.d.ts +4 -2
  24. package/es/css/properties/CSSPropertyOffsetDistance.js +2 -1
  25. package/es/css/properties/CSSPropertyOffsetPath.d.ts +2 -1
  26. package/es/css/properties/CSSPropertyOpacity.d.ts +3 -2
  27. package/es/css/properties/CSSPropertyOpacity.js +1 -1
  28. package/es/css/properties/CSSPropertyPath.d.ts +3 -2
  29. package/es/css/properties/CSSPropertyPath.js +3 -1
  30. package/es/css/properties/CSSPropertyPoints.d.ts +3 -2
  31. package/es/css/properties/CSSPropertyPoints.js +1 -1
  32. package/es/css/properties/CSSPropertyShadowBlur.d.ts +1 -1
  33. package/es/css/properties/CSSPropertyShadowBlur.js +1 -1
  34. package/es/css/properties/CSSPropertyText.d.ts +3 -2
  35. package/es/css/properties/CSSPropertyText.js +1 -1
  36. package/es/css/properties/CSSPropertyTextTransform.d.ts +2 -1
  37. package/es/css/properties/CSSPropertyTextTransform.js +1 -1
  38. package/es/css/properties/CSSPropertyTransform.d.ts +3 -2
  39. package/es/css/properties/CSSPropertyTransform.js +1 -1
  40. package/es/css/properties/CSSPropertyTransformOrigin.d.ts +3 -2
  41. package/es/css/properties/CSSPropertyTransformOrigin.js +1 -1
  42. package/es/css/properties/CSSPropertyVisibility.d.ts +3 -1
  43. package/es/css/properties/CSSPropertyZIndex.d.ts +4 -2
  44. package/es/css/properties/CSSPropertyZIndex.js +1 -1
  45. package/es/dom/Element.js +1 -1
  46. package/es/dom/MutationEvent.d.ts +1 -1
  47. package/es/dom/MutationObserver.d.ts +2 -1
  48. package/es/dom/MutationObserver.js +1 -1
  49. package/es/dom/MutationRecord.d.ts +1 -1
  50. package/es/dom/Node.js +1 -1
  51. package/es/dom/interfaces.d.ts +2 -1
  52. package/es/plugins/FrustumCullingStrategy.js +1 -1
  53. package/es/plugins/PrepareRendererPlugin.d.ts +1 -1
  54. package/es/services/RenderingService.d.ts +2 -2
  55. package/es/services/TextService.d.ts +2 -2
  56. package/es/services/TextService.js +2 -1
  57. package/es/services/aabb/TextUpdater.d.ts +1 -2
  58. package/es/types.d.ts +1 -2
  59. package/es/utils/path.d.ts +1 -1
  60. package/lib/Canvas.d.ts +0 -3
  61. package/lib/css/CSSProperty.d.ts +1 -1
  62. package/lib/css/StyleValueRegistry.d.ts +2 -1
  63. package/lib/css/StyleValueRegistry.js +14 -8
  64. package/lib/css/parser/dimension.d.ts +2 -1
  65. package/lib/css/parser/path.d.ts +1 -1
  66. package/lib/css/parser/transform-origin.d.ts +1 -1
  67. package/lib/css/parser/transform-origin.js +5 -3
  68. package/lib/css/properties/CSSPropertyAnchor.d.ts +4 -2
  69. package/lib/css/properties/CSSPropertyAnchor.js +5 -3
  70. package/lib/css/properties/CSSPropertyClipPath.d.ts +2 -1
  71. package/lib/css/properties/CSSPropertyClipPath.js +2 -2
  72. package/lib/css/properties/CSSPropertyColor.d.ts +3 -2
  73. package/lib/css/properties/CSSPropertyColor.js +3 -3
  74. package/lib/css/properties/CSSPropertyFilter.d.ts +3 -2
  75. package/lib/css/properties/CSSPropertyFilter.js +2 -2
  76. package/lib/css/properties/CSSPropertyLengthOrPercentage.d.ts +4 -2
  77. package/lib/css/properties/CSSPropertyLengthOrPercentage.js +11 -9
  78. package/lib/css/properties/CSSPropertyLineDash.d.ts +4 -2
  79. package/lib/css/properties/CSSPropertyLineDash.js +3 -3
  80. package/lib/css/properties/CSSPropertyLocalPosition.d.ts +4 -2
  81. package/lib/css/properties/CSSPropertyLocalPosition.js +3 -3
  82. package/lib/css/properties/CSSPropertyOffsetDistance.d.ts +4 -2
  83. package/lib/css/properties/CSSPropertyOffsetDistance.js +6 -4
  84. package/lib/css/properties/CSSPropertyOffsetPath.d.ts +2 -1
  85. package/lib/css/properties/CSSPropertyOpacity.d.ts +3 -2
  86. package/lib/css/properties/CSSPropertyOpacity.js +3 -3
  87. package/lib/css/properties/CSSPropertyPath.d.ts +3 -2
  88. package/lib/css/properties/CSSPropertyPath.js +9 -5
  89. package/lib/css/properties/CSSPropertyPoints.d.ts +3 -2
  90. package/lib/css/properties/CSSPropertyPoints.js +2 -2
  91. package/lib/css/properties/CSSPropertyShadowBlur.d.ts +1 -1
  92. package/lib/css/properties/CSSPropertyShadowBlur.js +2 -2
  93. package/lib/css/properties/CSSPropertyText.d.ts +3 -2
  94. package/lib/css/properties/CSSPropertyText.js +2 -2
  95. package/lib/css/properties/CSSPropertyTextTransform.d.ts +2 -1
  96. package/lib/css/properties/CSSPropertyTextTransform.js +5 -5
  97. package/lib/css/properties/CSSPropertyTransform.d.ts +3 -2
  98. package/lib/css/properties/CSSPropertyTransform.js +22 -22
  99. package/lib/css/properties/CSSPropertyTransformOrigin.d.ts +3 -2
  100. package/lib/css/properties/CSSPropertyTransformOrigin.js +2 -2
  101. package/lib/css/properties/CSSPropertyVisibility.d.ts +3 -1
  102. package/lib/css/properties/CSSPropertyZIndex.d.ts +4 -2
  103. package/lib/css/properties/CSSPropertyZIndex.js +2 -2
  104. package/lib/dom/Element.js +3 -3
  105. package/lib/dom/MutationEvent.d.ts +1 -1
  106. package/lib/dom/MutationObserver.d.ts +2 -1
  107. package/lib/dom/MutationObserver.js +11 -11
  108. package/lib/dom/MutationRecord.d.ts +1 -1
  109. package/lib/dom/Node.js +4 -4
  110. package/lib/dom/interfaces.d.ts +2 -1
  111. package/lib/plugins/FrustumCullingStrategy.js +2 -2
  112. package/lib/plugins/PrepareRendererPlugin.d.ts +1 -1
  113. package/lib/services/RenderingService.d.ts +2 -2
  114. package/lib/services/TextService.d.ts +2 -2
  115. package/lib/services/TextService.js +5 -3
  116. package/lib/services/aabb/TextUpdater.d.ts +1 -2
  117. package/lib/types.d.ts +1 -2
  118. package/lib/utils/path.d.ts +1 -1
  119. package/package.json +1 -1
package/es/Canvas.d.ts CHANGED
@@ -107,9 +107,6 @@ export declare class Canvas extends EventTarget implements ICanvas {
107
107
  getRenderingContext(): RenderingContext;
108
108
  getStats(): {
109
109
  total: number;
110
- /**
111
- * window.document
112
- */
113
110
  rendered: number;
114
111
  renderedOnscreen: number;
115
112
  };
@@ -1,4 +1,4 @@
1
- import type { IElement } from '..';
1
+ import type { IElement } from '../dom';
2
2
  import type { StyleValueRegistry } from './StyleValueRegistry';
3
3
  export declare type Interpolatable = number | boolean | number[] | boolean[];
4
4
  declare type CSSPropertyMixer<Parsed = any, T extends Interpolatable = any> = (left: Parsed, right: Parsed, displayObject: IElement | null) => [T, T, (i: T) => string | any] | undefined;
@@ -1,4 +1,5 @@
1
- import type { DisplayObject, BaseStyleProps } from '..';
1
+ import type { DisplayObject } from '../display-objects';
2
+ import type { BaseStyleProps } from '../types';
2
3
  import { CSSStyleValue } from './cssom';
3
4
  export declare type CSSGlobalKeywords = 'unset' | 'initial' | 'inherit' | '';
4
5
  export interface PropertyParseOptions {
@@ -1,13 +1,14 @@
1
1
  import { __decorate, __metadata, __read, __spreadArray } from "tslib";
2
2
  import { postConstruct, singleton, GlobalContainer } from 'mana-syringe';
3
3
  import { vec3 } from 'gl-matrix';
4
- import { ElementEvent } from '..';
5
- import { dirtifyToRoot, Shape, GeometryUpdaterFactory, AABB } from '..';
6
- import { CSSStyleValue, CSSUnitValue } from './cssom';
7
- import { CSSKeywordValue } from './cssom';
4
+ import { dirtifyToRoot, GeometryUpdaterFactory } from '../services';
5
+ import { ElementEvent } from '../dom';
6
+ import { Shape } from '../types';
7
+ import { CSSKeywordValue, CSSStyleValue, CSSUnitValue } from './cssom';
8
8
  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
+ import { AABB } from '../shapes';
11
12
  /**
12
13
  * Blink used them in code generation(css_properties.json5)
13
14
  */
@@ -1,4 +1,5 @@
1
- import type { DisplayObject, IElement } from '../..';
1
+ import { 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,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[]];
@@ -1,4 +1,4 @@
1
- import { CSSUnitValue } from '..';
1
+ import { CSSUnitValue } from '../cssom';
2
2
  /**
3
3
  * @see https://developer.mozilla.org/zh-CN/docs/Web/CSS/transform-origin
4
4
  * eg. 'center' 'top left' '50px 50px'
@@ -1,6 +1,6 @@
1
1
  import { isString } from '@antv/util';
2
- import { CSSUnitValue } from '..';
3
- import { parseLengthOrPercentage } from '..';
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, DisplayObject } from '../..';
2
- import { CSSUnitValue, parseNumberList } from '../..';
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,6 +1,7 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { singleton } from 'mana-syringe';
3
- import { CSSUnitValue, parseNumberList } from '../..';
3
+ import { CSSUnitValue } from '../cssom';
4
+ import { parseNumberList } from '../parser';
4
5
 
5
6
  var CSSPropertyAnchor = function () {
6
7
  function CSSPropertyAnchor() {
@@ -1,4 +1,5 @@
1
- import type { CSSProperty, DisplayObject } from '../..';
1
+ import type { CSSProperty } from '../CSSProperty';
2
+ import type { DisplayObject } from '../../display-objects';
2
3
  /**
3
4
  * @see /zh/docs/api/basic/display-object#clippath
4
5
  * @example
@@ -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
@@ -1,5 +1,6 @@
1
- import type { CSSProperty, DisplayObject } from '../..';
2
- import { parseColor, mergeColors } from '../..';
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,6 +1,6 @@
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
@@ -1,5 +1,6 @@
1
- import type { CSSProperty, ParsedFilterStyleProperty } from '../..';
2
- import { parseFilter } from '../..';
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,6 +1,6 @@
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
5
  var CSSPropertyFilter = function () {
6
6
  function CSSPropertyFilter() {
@@ -1,6 +1,8 @@
1
- import { CSSUnitValue, mergeDimensions } from '../..';
1
+ import { CSSUnitValue } from '../cssom';
2
+ import { mergeDimensions } from '../parser';
2
3
  import type { StyleValueRegistry } from '../StyleValueRegistry';
3
- import type { DisplayObject, CSSProperty } from '../..';
4
+ import type { DisplayObject } from '../../display-objects';
5
+ import type { CSSProperty } from '../CSSProperty';
4
6
  /**
5
7
  * <length> & <percentage>
6
8
  */
@@ -1,6 +1,7 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { singleton } from 'mana-syringe';
3
- import { UnitType, CSSUnitValue, parseLengthOrPercentage, mergeDimensions } from '../..';
3
+ import { UnitType, CSSUnitValue } from '../cssom';
4
+ import { parseLengthOrPercentage, mergeDimensions } from '../parser';
4
5
  /**
5
6
  * <length> & <percentage>
6
7
  */
@@ -1,5 +1,7 @@
1
- import type { CSSProperty, CSSUnitValue, DisplayObject } from '../..';
2
- import { parseDimensionArray, mergeDimensionList } from '../..';
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,6 +1,6 @@
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
5
  var CSSPropertyLineDash = function () {
6
6
  function CSSPropertyLineDash() {
@@ -1,5 +1,7 @@
1
- import type { CSSUnitValue, CSSProperty, DisplayObject } from '../..';
2
- import { mergeDimensions } from '../..';
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,6 +1,6 @@
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
@@ -1,5 +1,7 @@
1
- import type { CSSUnitValue, CSSProperty, DisplayObject } from '../..';
2
- import { parseNumber } from '../..';
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,6 +1,7 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { singleton } from 'mana-syringe';
3
- import { parseNumber, clampedMergeNumbers, Shape } from '../..';
3
+ import { Shape } from '../../types';
4
+ import { parseNumber, clampedMergeNumbers } from '../parser';
4
5
 
5
6
  var CSSPropertyOffsetDistance = function () {
6
7
  function CSSPropertyOffsetDistance() {
@@ -1,4 +1,5 @@
1
- import type { CSSProperty, DisplayObject } from '../..';
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,5 +1,6 @@
1
- import type { CSSUnitValue, CSSProperty } from '../..';
2
- import { parseNumber } from '../..';
1
+ import type { CSSUnitValue } from '../cssom';
2
+ import type { CSSProperty } from '../CSSProperty';
3
+ import { parseNumber } from '../parser';
3
4
  /**
4
5
  * opacity
5
6
  */
@@ -1,6 +1,6 @@
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
  */
@@ -1,5 +1,6 @@
1
- import type { DisplayObject, CSSProperty, ParsedPathStyleProps } from '../..';
2
- import { parsePath, mergePaths } from '../..';
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,6 +1,8 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { singleton } from 'mana-syringe';
3
- import { parsePath, mergePaths, CSSKeywordValue, Rectangle } from '../..';
3
+ import { Rectangle } from '../../shapes';
4
+ import { CSSKeywordValue } from '../cssom';
5
+ import { parsePath, mergePaths } from '../parser';
4
6
 
5
7
  var CSSPropertyPath = function () {
6
8
  function CSSPropertyPath() {
@@ -1,5 +1,6 @@
1
- import type { CSSProperty, DisplayObject } from '../..';
2
- import { parsePoints } from '../..';
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,6 +1,6 @@
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
5
  var CSSPropertyPoints = function () {
6
6
  function CSSPropertyPoints() {
@@ -1,4 +1,4 @@
1
1
  import { CSSPropertyLengthOrPercentage } from './CSSPropertyLengthOrPercentage';
2
2
  export declare class CSSPropertyShadowBlur extends CSSPropertyLengthOrPercentage {
3
- mixer: (left: import("../..").CSSUnitValue, right: import("../..").CSSUnitValue) => [number, number, (i: number) => string];
3
+ mixer: (left: import("..").CSSUnitValue, right: import("..").CSSUnitValue) => [number, number, (i: number) => string];
4
4
  }
@@ -1,6 +1,6 @@
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
6
  var CSSPropertyShadowBlur = function (_super) {
@@ -1,5 +1,6 @@
1
- import type { CSSProperty, DisplayObject } from '../..';
2
- import { CSSKeywordValue } from '../..';
1
+ import type { CSSProperty } from '../CSSProperty';
2
+ import { CSSKeywordValue } from '../cssom';
3
+ import { 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,6 +1,6 @@
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
5
  var CSSPropertyText = function () {
6
6
  function CSSPropertyText() {}
@@ -1,4 +1,5 @@
1
- import type { CSSProperty, ParsedPathStyleProps, DisplayObject } from '../..';
1
+ import { CSSProperty } from '../CSSProperty';
2
+ import { 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,6 +1,6 @@
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
5
  var CSSPropertyTextTransform = function () {
6
6
  function CSSPropertyTextTransform() {}
@@ -1,5 +1,6 @@
1
- import type { CSSProperty, DisplayObject } from '../..';
2
- import { parseTransform, mergeTransforms } from '../..';
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
1
  import { __decorate } from "tslib"; // import { uniq } from '@antv/util';
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
  *
@@ -1,5 +1,6 @@
1
- import type { CSSProperty, CSSUnitValue } from '../..';
2
- import { parseTransformOrigin } from '../..';
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,6 +1,6 @@
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
@@ -1,4 +1,6 @@
1
- import type { CSSKeywordValue, CSSProperty, DisplayObject } from '../..';
1
+ import type { CSSProperty } from '../CSSProperty';
2
+ import type { CSSKeywordValue } from '../cssom';
3
+ import type { DisplayObject } from '../../display-objects';
2
4
  /**
3
5
  * should
4
6
  *
@@ -1,5 +1,7 @@
1
- import type { CSSProperty, CSSUnitValue, DisplayObject } from '../..';
2
- import { parseNumber } from '../..';
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,6 +1,6 @@
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
5
  var CSSPropertyZIndex = function () {
6
6
  function CSSPropertyZIndex() {
package/es/dom/Element.js CHANGED
@@ -6,7 +6,7 @@ import { Cullable, Geometry, Renderable, Transform, Sortable } from '../componen
6
6
  import { Node } from './Node';
7
7
  import { ElementEvent } from './interfaces';
8
8
  import { formatAttribute } from '../utils';
9
- import { MutationEvent } from '..';
9
+ import { MutationEvent } from './MutationEvent';
10
10
  var entityCounter = 0;
11
11
  /**
12
12
  * Has following capabilities:
@@ -1,4 +1,4 @@
1
- import type { ElementEvent, IElement } from '..';
1
+ import type { ElementEvent, IElement } from './interfaces';
2
2
  import { FederatedEvent } from './FederatedEvent';
3
3
  export declare class MutationEvent extends FederatedEvent {
4
4
  relatedNode: IElement;
@@ -1,4 +1,5 @@
1
- import type { IElement, DisplayObject } from '..';
1
+ import type { IElement } from './interfaces';
2
+ import type { DisplayObject } from '../display-objects';
2
3
  import { MutationEvent } from './MutationEvent';
3
4
  import { MutationRecord } from './MutationRecord';
4
5
  export declare class Registration {
@@ -1,4 +1,4 @@
1
- import { ElementEvent } from '..';
1
+ import { ElementEvent } from './interfaces';
2
2
  import { MutationEvent } from './MutationEvent';
3
3
  import { MutationRecord } from './MutationRecord';
4
4
  var uidCounter = 0;
@@ -1,4 +1,4 @@
1
- import type { IElement } from '..';
1
+ import type { IElement } from './interfaces';
2
2
  export declare class MutationRecord {
3
3
  type: MutationRecordType;
4
4
  target: IElement;
package/es/dom/Node.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { __extends, __values } from "tslib";
2
- import { Shape } from '..'; // import { Text } from '../display-objects/Text';
2
+ import { Shape } from '../types'; // import { Text } from '../display-objects/Text';
3
3
 
4
4
  import { EventTarget } from './EventTarget';
5
5
  /**
@@ -3,7 +3,8 @@ import type { AnimationTimeline } from './AnimationTimeline';
3
3
  import type { BaseStyleProps, Shape } from '../types';
4
4
  import type { FederatedEvent } from './FederatedEvent';
5
5
  import type { CustomElementRegistry } from './CustomElementRegistry';
6
- import type { CanvasConfig, DisplayObject, InteractivePointerEvent } from '..';
6
+ import type { CanvasConfig, InteractivePointerEvent } from '../types';
7
+ import type { DisplayObject } from '../display-objects';
7
8
  import type { PointLike } from '../shapes';
8
9
  import type { Camera } from '../camera';
9
10
  import type { ContextService, EventService, RenderingService } from '../services';
@@ -4,7 +4,7 @@ import { vec3 } from 'gl-matrix';
4
4
  import { CullingStrategyContribution } from './CullingPlugin';
5
5
  import { AABB, Mask } from '../shapes';
6
6
  import { DefaultCamera, Camera } from '../camera/Camera';
7
- import { Shape } from '..'; // group is not a 2d shape
7
+ import { Shape } from '../types'; // group is not a 2d shape
8
8
 
9
9
  var shape2D = [Shape.CIRCLE, Shape.ELLIPSE, Shape.IMAGE, Shape.RECT, Shape.LINE, Shape.POLYLINE, Shape.POLYGON, Shape.TEXT, Shape.PATH, Shape.HTML];
10
10
 
@@ -1,4 +1,4 @@
1
- import type { RenderingService, RenderingPlugin } from '../services/RenderingService';
1
+ import type { RenderingService, RenderingPlugin } from '../services';
2
2
  export declare class PrepareRendererPlugin implements RenderingPlugin {
3
3
  static tag: string;
4
4
  private renderingContext;
@@ -1,7 +1,7 @@
1
1
  import { Syringe } from 'mana-syringe';
2
2
  import { SyncHook, SyncWaterfallHook, AsyncParallelHook, AsyncSeriesWaterfallHook } from 'tapable';
3
- import type { CanvasConfig, DisplayObject } from '..';
4
- import type { EventPosition, InteractivePointerEvent } from '../types';
3
+ import type { DisplayObject } from '../display-objects';
4
+ import type { CanvasConfig, EventPosition, InteractivePointerEvent } from '../types';
5
5
  export interface RenderingPlugin {
6
6
  apply: (renderer: RenderingService) => void;
7
7
  }
@@ -1,6 +1,6 @@
1
1
  /// <reference types="offscreencanvas" />
2
- import type { ParsedTextStyleProps } from '..';
3
- import { Rectangle } from '..';
2
+ import type { ParsedTextStyleProps } from '../display-objects';
3
+ import { Rectangle } from '../shapes';
4
4
  export interface TextMetrics {
5
5
  font: string;
6
6
  width: number;
@@ -1,6 +1,7 @@
1
1
  import { __decorate, __metadata, __read, __spreadArray } from "tslib";
2
2
  import { singleton, inject } from 'mana-syringe';
3
- import { toFontString, Rectangle } from '..';
3
+ import { toFontString } from '../utils';
4
+ import { Rectangle } from '../shapes';
4
5
  import { OffscreenCanvasCreator } from './OffscreenCanvasCreator';
5
6
  var TEXT_METRICS = {
6
7
  MetricsString: '|ÉqÅ',
@@ -1,6 +1,5 @@
1
1
  import { GeometryAABBUpdater } from './interfaces';
2
- import type { ParsedTextStyleProps } from '../../display-objects/Text';
3
- import type { DisplayObject } from '../..';
2
+ import type { DisplayObject, ParsedTextStyleProps } from '../../display-objects';
4
3
  export declare class TextUpdater implements GeometryAABBUpdater<ParsedTextStyleProps> {
5
4
  private textService;
6
5
  private isReadyToMeasure;
package/es/types.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  /// <reference types="offscreencanvas" />
2
2
  import type { vec2, vec3 } from 'gl-matrix';
3
- import type { ParsedPathStyleProps, ParsedPolylineStyleProps } from './display-objects';
4
- import type { DisplayObject } from './display-objects';
3
+ import type { DisplayObject, ParsedPathStyleProps, ParsedPolylineStyleProps } from './display-objects';
5
4
  import type { IRenderer } from './AbstractRenderer';
6
5
  import type { CSSGlobalKeywords, CSSGradientValue, CSSKeywordValue, CSSRGB, CSSUnitValue } from './css';
7
6
  import { Syringe } from 'mana-syringe';
@@ -1,4 +1,4 @@
1
- import type { DisplayObject } from '../display-objects/DisplayObject';
1
+ import type { DisplayObject } from '../display-objects';
2
2
  import type { PathCommand } from '../types';
3
3
  export declare function equalizeSegments(path1: PathCommand[], path2: PathCommand[], TL?: number): PathCommand[][];
4
4
  export declare function getDrawDirection(pathArray: PathCommand[]): boolean;
package/lib/Canvas.d.ts CHANGED
@@ -107,9 +107,6 @@ export declare class Canvas extends EventTarget implements ICanvas {
107
107
  getRenderingContext(): RenderingContext;
108
108
  getStats(): {
109
109
  total: number;
110
- /**
111
- * window.document
112
- */
113
110
  rendered: number;
114
111
  renderedOnscreen: number;
115
112
  };
@@ -1,4 +1,4 @@
1
- import type { IElement } from '..';
1
+ import type { IElement } from '../dom';
2
2
  import type { StyleValueRegistry } from './StyleValueRegistry';
3
3
  export declare type Interpolatable = number | boolean | number[] | boolean[];
4
4
  declare type CSSPropertyMixer<Parsed = any, T extends Interpolatable = any> = (left: Parsed, right: Parsed, displayObject: IElement | null) => [T, T, (i: T) => string | any] | undefined;
@@ -1,4 +1,5 @@
1
- import type { DisplayObject, BaseStyleProps } from '..';
1
+ import type { DisplayObject } from '../display-objects';
2
+ import type { BaseStyleProps } from '../types';
2
3
  import { CSSStyleValue } from './cssom';
3
4
  export declare type CSSGlobalKeywords = 'unset' | 'initial' | 'inherit' | '';
4
5
  export interface PropertyParseOptions {