@antv/g 5.0.22-alpha.4 → 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 (79) hide show
  1. package/es/css/parser/dimension.d.ts +2 -1
  2. package/es/css/parser/path.d.ts +1 -1
  3. package/es/css/properties/CSSPropertyAnchor.d.ts +4 -2
  4. package/es/css/properties/CSSPropertyAnchor.js +2 -1
  5. package/es/css/properties/CSSPropertyClipPath.d.ts +2 -1
  6. package/es/css/properties/CSSPropertyClipPath.js +1 -1
  7. package/es/css/properties/CSSPropertyColor.d.ts +3 -2
  8. package/es/css/properties/CSSPropertyColor.js +1 -1
  9. package/es/css/properties/CSSPropertyFilter.d.ts +3 -2
  10. package/es/css/properties/CSSPropertyFilter.js +1 -1
  11. package/es/css/properties/CSSPropertyLengthOrPercentage.d.ts +4 -2
  12. package/es/css/properties/CSSPropertyLengthOrPercentage.js +2 -1
  13. package/es/css/properties/CSSPropertyLineDash.d.ts +4 -2
  14. package/es/css/properties/CSSPropertyLineDash.js +1 -1
  15. package/es/css/properties/CSSPropertyLocalPosition.d.ts +4 -2
  16. package/es/css/properties/CSSPropertyLocalPosition.js +1 -1
  17. package/es/css/properties/CSSPropertyOffsetDistance.d.ts +4 -2
  18. package/es/css/properties/CSSPropertyOffsetDistance.js +2 -1
  19. package/es/css/properties/CSSPropertyOffsetPath.d.ts +2 -1
  20. package/es/css/properties/CSSPropertyOpacity.d.ts +3 -2
  21. package/es/css/properties/CSSPropertyOpacity.js +1 -1
  22. package/es/css/properties/CSSPropertyPath.d.ts +3 -2
  23. package/es/css/properties/CSSPropertyPath.js +3 -1
  24. package/es/css/properties/CSSPropertyPoints.d.ts +3 -2
  25. package/es/css/properties/CSSPropertyPoints.js +1 -1
  26. package/es/css/properties/CSSPropertyShadowBlur.d.ts +1 -1
  27. package/es/css/properties/CSSPropertyShadowBlur.js +1 -1
  28. package/es/css/properties/CSSPropertyText.d.ts +3 -2
  29. package/es/css/properties/CSSPropertyText.js +1 -1
  30. package/es/css/properties/CSSPropertyTextTransform.d.ts +2 -1
  31. package/es/css/properties/CSSPropertyTextTransform.js +1 -1
  32. package/es/css/properties/CSSPropertyTransform.d.ts +3 -2
  33. package/es/css/properties/CSSPropertyTransform.js +1 -1
  34. package/es/css/properties/CSSPropertyTransformOrigin.d.ts +3 -2
  35. package/es/css/properties/CSSPropertyTransformOrigin.js +1 -1
  36. package/es/css/properties/CSSPropertyVisibility.d.ts +3 -1
  37. package/es/css/properties/CSSPropertyZIndex.d.ts +4 -2
  38. package/es/css/properties/CSSPropertyZIndex.js +1 -1
  39. package/es/services/aabb/TextUpdater.d.ts +1 -2
  40. package/lib/css/parser/dimension.d.ts +2 -1
  41. package/lib/css/parser/path.d.ts +1 -1
  42. package/lib/css/properties/CSSPropertyAnchor.d.ts +4 -2
  43. package/lib/css/properties/CSSPropertyAnchor.js +5 -3
  44. package/lib/css/properties/CSSPropertyClipPath.d.ts +2 -1
  45. package/lib/css/properties/CSSPropertyClipPath.js +2 -2
  46. package/lib/css/properties/CSSPropertyColor.d.ts +3 -2
  47. package/lib/css/properties/CSSPropertyColor.js +3 -3
  48. package/lib/css/properties/CSSPropertyFilter.d.ts +3 -2
  49. package/lib/css/properties/CSSPropertyFilter.js +2 -2
  50. package/lib/css/properties/CSSPropertyLengthOrPercentage.d.ts +4 -2
  51. package/lib/css/properties/CSSPropertyLengthOrPercentage.js +11 -9
  52. package/lib/css/properties/CSSPropertyLineDash.d.ts +4 -2
  53. package/lib/css/properties/CSSPropertyLineDash.js +3 -3
  54. package/lib/css/properties/CSSPropertyLocalPosition.d.ts +4 -2
  55. package/lib/css/properties/CSSPropertyLocalPosition.js +3 -3
  56. package/lib/css/properties/CSSPropertyOffsetDistance.d.ts +4 -2
  57. package/lib/css/properties/CSSPropertyOffsetDistance.js +6 -4
  58. package/lib/css/properties/CSSPropertyOffsetPath.d.ts +2 -1
  59. package/lib/css/properties/CSSPropertyOpacity.d.ts +3 -2
  60. package/lib/css/properties/CSSPropertyOpacity.js +3 -3
  61. package/lib/css/properties/CSSPropertyPath.d.ts +3 -2
  62. package/lib/css/properties/CSSPropertyPath.js +9 -5
  63. package/lib/css/properties/CSSPropertyPoints.d.ts +3 -2
  64. package/lib/css/properties/CSSPropertyPoints.js +2 -2
  65. package/lib/css/properties/CSSPropertyShadowBlur.d.ts +1 -1
  66. package/lib/css/properties/CSSPropertyShadowBlur.js +2 -2
  67. package/lib/css/properties/CSSPropertyText.d.ts +3 -2
  68. package/lib/css/properties/CSSPropertyText.js +2 -2
  69. package/lib/css/properties/CSSPropertyTextTransform.d.ts +2 -1
  70. package/lib/css/properties/CSSPropertyTextTransform.js +5 -5
  71. package/lib/css/properties/CSSPropertyTransform.d.ts +3 -2
  72. package/lib/css/properties/CSSPropertyTransform.js +22 -22
  73. package/lib/css/properties/CSSPropertyTransformOrigin.d.ts +3 -2
  74. package/lib/css/properties/CSSPropertyTransformOrigin.js +2 -2
  75. package/lib/css/properties/CSSPropertyVisibility.d.ts +3 -1
  76. package/lib/css/properties/CSSPropertyZIndex.d.ts +4 -2
  77. package/lib/css/properties/CSSPropertyZIndex.js +2 -2
  78. package/lib/services/aabb/TextUpdater.d.ts +1 -2
  79. package/package.json +1 -1
@@ -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,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() {
@@ -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;
@@ -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,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[];
@@ -9,16 +9,18 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _ = require("../..");
12
+ var _cssom = require("../cssom");
13
+
14
+ var _parser = require("../parser");
13
15
 
14
16
  var CSSPropertyAnchor = function () {
15
17
  function CSSPropertyAnchor() {
16
- this.parser = _.parseNumberList;
18
+ this.parser = _parser.parseNumberList;
17
19
  }
18
20
 
19
21
  CSSPropertyAnchor.prototype.calculator = function (name, oldParsed, parsed, object) {
20
22
  if (parsed.length === 2) {
21
- return [parsed[0], parsed[1], new _.CSSUnitValue(0)];
23
+ return [parsed[0], parsed[1], new _cssom.CSSUnitValue(0)];
22
24
  }
23
25
 
24
26
  return parsed;
@@ -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
@@ -9,7 +9,7 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _ = require("../..");
12
+ var _services = require("../../services");
13
13
 
14
14
  /**
15
15
  * @see /zh/docs/api/basic/display-object#clippath
@@ -46,7 +46,7 @@ var CSSPropertyClipPath = function () {
46
46
  newClipPath.style.clipPathTargets.push(object);
47
47
  }
48
48
 
49
- (0, _.dirtifyToRoot)(object);
49
+ (0, _services.dirtifyToRoot)(object);
50
50
  return newClipPath;
51
51
  };
52
52
 
@@ -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';
@@ -9,7 +9,7 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _ = require("../..");
12
+ var _parser = require("../parser");
13
13
 
14
14
  var _cssom = require("../cssom");
15
15
 
@@ -18,8 +18,8 @@ var _cssom = require("../cssom");
18
18
  */
19
19
  var CSSPropertyColor = function () {
20
20
  function CSSPropertyColor() {
21
- this.parser = _.parseColor;
22
- this.mixer = _.mergeColors;
21
+ this.parser = _parser.parseColor;
22
+ this.mixer = _parser.mergeColors;
23
23
  }
24
24
 
25
25
  CSSPropertyColor.prototype.calculator = function (name, oldParsed, parsed, object, registry) {
@@ -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
  }
@@ -9,11 +9,11 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _ = require("../..");
12
+ var _parser = require("../parser");
13
13
 
14
14
  var CSSPropertyFilter = function () {
15
15
  function CSSPropertyFilter() {
16
- this.parser = _.parseFilter;
16
+ this.parser = _parser.parseFilter;
17
17
  }
18
18
 
19
19
  CSSPropertyFilter = (0, _tslib.__decorate)([(0, _manaSyringe.singleton)()], 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
  */
@@ -9,15 +9,17 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _ = require("../..");
12
+ var _cssom = require("../cssom");
13
+
14
+ var _parser = require("../parser");
13
15
 
14
16
  /**
15
17
  * <length> & <percentage>
16
18
  */
17
19
  var CSSPropertyLengthOrPercentage = function () {
18
20
  function CSSPropertyLengthOrPercentage() {
19
- this.parser = _.parseLengthOrPercentage;
20
- this.mixer = _.mergeDimensions;
21
+ this.parser = _parser.parseLengthOrPercentage;
22
+ this.mixer = _parser.mergeDimensions;
21
23
  }
22
24
  /**
23
25
  * according to parent's bounds
@@ -28,8 +30,8 @@ var CSSPropertyLengthOrPercentage = function () {
28
30
 
29
31
 
30
32
  CSSPropertyLengthOrPercentage.prototype.calculator = function (name, oldParsed, computed, object, registry) {
31
- if (_.CSSUnitValue.isRelativeUnit(computed.unit)) {
32
- if (computed.unit === _.UnitType.kPercentage) {
33
+ if (_cssom.CSSUnitValue.isRelativeUnit(computed.unit)) {
34
+ if (computed.unit === _cssom.UnitType.kPercentage) {
33
35
  // try to resolve according to parent's geometry bounds
34
36
  // if (object.parentElement) {
35
37
  // // registry.registerParentGeometryBoundsChangedHandler(object, name);
@@ -45,10 +47,10 @@ var CSSPropertyLengthOrPercentage = function () {
45
47
  // // { once: true },
46
48
  // // );
47
49
  // }
48
- return new _.CSSUnitValue(0, 'px');
49
- } else if (computed.unit === _.UnitType.kEms) {
50
+ return new _cssom.CSSUnitValue(0, 'px');
51
+ } else if (computed.unit === _cssom.UnitType.kEms) {
50
52
  // TODO: handle ems
51
- return new _.CSSUnitValue(0, 'px');
53
+ return new _cssom.CSSUnitValue(0, 'px');
52
54
  }
53
55
  } else {
54
56
  // remove listener if exists
@@ -71,7 +73,7 @@ var CSSPropertyLengthOrPercentage = function () {
71
73
  CSSPropertyLengthOrPercentage.prototype.calculateUsedValueWithParentBounds = function (object, name) {
72
74
  var bounds = object.parentElement.getGeometryBounds();
73
75
  var computedValue = object.computedStyle[name].value;
74
- return new _.CSSUnitValue(bounds.halfExtents[this.nameToBoundsIndex(name)] * 2 * computedValue / 100, 'px');
76
+ return new _cssom.CSSUnitValue(bounds.halfExtents[this.nameToBoundsIndex(name)] * 2 * computedValue / 100, 'px');
75
77
  };
76
78
 
77
79
  CSSPropertyLengthOrPercentage = (0, _tslib.__decorate)([(0, _manaSyringe.singleton)()], CSSPropertyLengthOrPercentage);
@@ -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;
@@ -9,12 +9,12 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _ = require("../..");
12
+ var _parser = require("../parser");
13
13
 
14
14
  var CSSPropertyLineDash = function () {
15
15
  function CSSPropertyLineDash() {
16
- this.parser = _.parseDimensionArray;
17
- this.mixer = _.mergeDimensionList;
16
+ this.parser = _parser.parseDimensionArray;
17
+ this.mixer = _parser.mergeDimensionList;
18
18
  }
19
19
 
20
20
  CSSPropertyLineDash.prototype.calculator = function (name, oldParsed, parsed, object) {
@@ -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
@@ -9,7 +9,7 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _ = require("../..");
12
+ var _parser = require("../parser");
13
13
 
14
14
  var _CSSPropertyLengthOrPercentage = require("./CSSPropertyLengthOrPercentage");
15
15
 
@@ -26,12 +26,12 @@ var CSSPropertyLocalPosition = function (_super) {
26
26
  */
27
27
 
28
28
 
29
- _this.parser = _.parseLengthOrPercentage;
29
+ _this.parser = _parser.parseLengthOrPercentage;
30
30
  /**
31
31
  * mix between CSS.px(x)
32
32
  */
33
33
 
34
- _this.mixer = _.mergeDimensions;
34
+ _this.mixer = _parser.mergeDimensions;
35
35
  return _this;
36
36
  }
37
37
  /**
@@ -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];
@@ -9,12 +9,14 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _ = require("../..");
12
+ var _types = require("../../types");
13
+
14
+ var _parser = require("../parser");
13
15
 
14
16
  var CSSPropertyOffsetDistance = function () {
15
17
  function CSSPropertyOffsetDistance() {
16
- this.parser = _.parseNumber;
17
- this.mixer = (0, _.clampedMergeNumbers)(0, 1);
18
+ this.parser = _parser.parseNumber;
19
+ this.mixer = (0, _parser.clampedMergeNumbers)(0, 1);
18
20
  }
19
21
 
20
22
  CSSPropertyOffsetDistance.prototype.postProcessor = function (object) {
@@ -24,7 +26,7 @@ var CSSPropertyOffsetDistance = function () {
24
26
 
25
27
  var offsetPathNodeName = object.attributes.offsetPath.nodeName;
26
28
 
27
- if (offsetPathNodeName === _.Shape.LINE || offsetPathNodeName === _.Shape.PATH || offsetPathNodeName === _.Shape.POLYLINE) {
29
+ if (offsetPathNodeName === _types.Shape.LINE || offsetPathNodeName === _types.Shape.PATH || offsetPathNodeName === _types.Shape.POLYLINE) {
28
30
  var point = object.attributes.offsetPath.getPoint(object.parsedStyle.offsetDistance.value);
29
31
 
30
32
  if (point) {
@@ -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
  */
@@ -9,15 +9,15 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _ = require("../..");
12
+ var _parser = require("../parser");
13
13
 
14
14
  /**
15
15
  * opacity
16
16
  */
17
17
  var CSSPropertyOpacity = function () {
18
18
  function CSSPropertyOpacity() {
19
- this.parser = _.parseNumber;
20
- this.mixer = (0, _.clampedMergeNumbers)(0, 1);
19
+ this.parser = _parser.parseNumber;
20
+ this.mixer = (0, _parser.clampedMergeNumbers)(0, 1);
21
21
  }
22
22
 
23
23
  CSSPropertyOpacity = (0, _tslib.__decorate)([(0, _manaSyringe.singleton)()], CSSPropertyOpacity);
@@ -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
@@ -9,19 +9,23 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _ = require("../..");
12
+ var _shapes = require("../../shapes");
13
+
14
+ var _cssom = require("../cssom");
15
+
16
+ var _parser = require("../parser");
13
17
 
14
18
  var CSSPropertyPath = function () {
15
19
  function CSSPropertyPath() {
16
20
  /**
17
21
  * path2Curve
18
22
  */
19
- this.parser = _.parsePath;
20
- this.mixer = _.mergePaths;
23
+ this.parser = _parser.parsePath;
24
+ this.mixer = _parser.mergePaths;
21
25
  }
22
26
 
23
27
  CSSPropertyPath.prototype.calculator = function (name, oldParsed, parsed) {
24
- if (parsed instanceof _.CSSKeywordValue) {
28
+ if (parsed instanceof _cssom.CSSKeywordValue) {
25
29
  return {
26
30
  absolutePath: [],
27
31
  hasArc: false,
@@ -32,7 +36,7 @@ var CSSPropertyPath = function () {
32
36
  totalLength: 0,
33
37
  curveSegments: [],
34
38
  zCommandIndexes: [],
35
- rect: new _.Rectangle(0, 0, 0, 0)
39
+ rect: new _shapes.Rectangle(0, 0, 0, 0)
36
40
  };
37
41
  }
38
42
 
@@ -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;
@@ -9,11 +9,11 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _ = require("../..");
12
+ var _parser = require("../parser");
13
13
 
14
14
  var CSSPropertyPoints = function () {
15
15
  function CSSPropertyPoints() {
16
- this.parser = _.parsePoints;
16
+ this.parser = _parser.parsePoints;
17
17
  }
18
18
  /**
19
19
  * update local position
@@ -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
  }
@@ -9,7 +9,7 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _ = require("../..");
12
+ var _parser = require("../parser");
13
13
 
14
14
  var _CSSPropertyLengthOrPercentage = require("./CSSPropertyLengthOrPercentage");
15
15
 
@@ -19,7 +19,7 @@ var CSSPropertyShadowBlur = function (_super) {
19
19
  function CSSPropertyShadowBlur() {
20
20
  var _this = _super !== null && _super.apply(this, arguments) || this;
21
21
 
22
- _this.mixer = (0, _.clampedMergeNumbers)(0, Infinity);
22
+ _this.mixer = (0, _parser.clampedMergeNumbers)(0, Infinity);
23
23
  return _this;
24
24
  }
25
25
 
@@ -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;
@@ -9,13 +9,13 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _ = require("../..");
12
+ var _cssom = require("../cssom");
13
13
 
14
14
  var CSSPropertyText = function () {
15
15
  function CSSPropertyText() {}
16
16
 
17
17
  CSSPropertyText.prototype.calculator = function (name, oldParsed, parsed, object) {
18
- if (parsed instanceof _.CSSKeywordValue) {
18
+ if (parsed instanceof _cssom.CSSKeywordValue) {
19
19
  if (parsed.value === 'unset') {
20
20
  return '';
21
21
  } else {
@@ -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
  }
@@ -9,21 +9,21 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _ = require("../..");
12
+ var _types = require("../../types");
13
13
 
14
14
  var CSSPropertyTextTransform = function () {
15
15
  function CSSPropertyTextTransform() {}
16
16
 
17
17
  CSSPropertyTextTransform.prototype.postProcessor = function (o) {
18
- if (o.nodeName === _.Shape.TEXT) {
18
+ if (o.nodeName === _types.Shape.TEXT) {
19
19
  var object = o;
20
20
  var newTextTransform = object.parsedStyle.textTransform.value;
21
21
 
22
- if (newTextTransform === _.TextTransform.CAPITALIZE) {
22
+ if (newTextTransform === _types.TextTransform.CAPITALIZE) {
23
23
  object.style.text = object.style.text.charAt(0).toUpperCase() + object.style.text.slice(1);
24
- } else if (newTextTransform === _.TextTransform.LOWERCASE) {
24
+ } else if (newTextTransform === _types.TextTransform.LOWERCASE) {
25
25
  object.style.text = object.style.text.toLowerCase();
26
- } else if (newTextTransform === _.TextTransform.UPPERCASE) {
26
+ } else if (newTextTransform === _types.TextTransform.UPPERCASE) {
27
27
  object.style.text = object.style.text.toUpperCase(); // } else if (newTextTransform === TextTransform.NONE) {
28
28
  }
29
29
  }
@@ -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
  *
@@ -9,10 +9,10 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _ = require("../..");
13
-
14
12
  var _cssom = require("../cssom");
15
13
 
14
+ var _parser = require("../parser");
15
+
16
16
  // import { uniq } from '@antv/util';
17
17
 
18
18
  /**
@@ -47,8 +47,8 @@ var _cssom = require("../cssom");
47
47
  */
48
48
  var CSSPropertyTransform = function () {
49
49
  function CSSPropertyTransform() {
50
- this.parser = _.parseTransform;
51
- this.mixer = _.mergeTransforms;
50
+ this.parser = _parser.parseTransform;
51
+ this.mixer = _parser.mergeTransforms;
52
52
  }
53
53
 
54
54
  CSSPropertyTransform.prototype.calculator = function (name, oldValue, newValue, object) {
@@ -111,40 +111,40 @@ var CSSPropertyTransform = function () {
111
111
  }) || [1, 1, 1];
112
112
  object.scaleLocal(newScale[0] / oldScale[0], newScale[1] / oldScale[1], newScale[2] / oldScale[2]);
113
113
  } else if (t === 'translate') {
114
- var newTranslation = value && value.d || [_.Opx, _.Opx];
115
- var oldTranslation = old && old.d || [_.Opx, _.Opx];
114
+ var newTranslation = value && value.d || [_parser.Opx, _parser.Opx];
115
+ var oldTranslation = old && old.d || [_parser.Opx, _parser.Opx];
116
116
  object.translateLocal(newTranslation[0].value - oldTranslation[0].value, newTranslation[1].value - oldTranslation[1].value, 0);
117
117
  } else if (t === 'translatex') {
118
- var newTranslation = value && value.d || [_.Opx];
119
- var oldTranslation = old && old.d || [_.Opx];
118
+ var newTranslation = value && value.d || [_parser.Opx];
119
+ var oldTranslation = old && old.d || [_parser.Opx];
120
120
  object.translateLocal(newTranslation[0].value - oldTranslation[0].value, 0, 0);
121
121
  } else if (t === 'translatey') {
122
- var newTranslation = value && value.d || [_.Opx];
123
- var oldTranslation = old && old.d || [_.Opx];
122
+ var newTranslation = value && value.d || [_parser.Opx];
123
+ var oldTranslation = old && old.d || [_parser.Opx];
124
124
  object.translateLocal(0, newTranslation[0].value - oldTranslation[0].value, 0);
125
125
  } else if (t === 'translatez') {
126
- var newTranslation = value && value.d || [_.Opx];
127
- var oldTranslation = old && old.d || [_.Opx];
126
+ var newTranslation = value && value.d || [_parser.Opx];
127
+ var oldTranslation = old && old.d || [_parser.Opx];
128
128
  object.translateLocal(0, 0, newTranslation[0].value - oldTranslation[0].value);
129
129
  } else if (t === 'translate3d') {
130
- var newTranslation = value && value.d || [_.Opx, _.Opx, _.Opx];
131
- var oldTranslation = old && old.d || [_.Opx, _.Opx, _.Opx];
130
+ var newTranslation = value && value.d || [_parser.Opx, _parser.Opx, _parser.Opx];
131
+ var oldTranslation = old && old.d || [_parser.Opx, _parser.Opx, _parser.Opx];
132
132
  object.translateLocal(newTranslation[0].value - oldTranslation[0].value, newTranslation[1].value - oldTranslation[1].value, newTranslation[2].value - oldTranslation[2].value);
133
133
  } else if (t === 'rotate') {
134
- var newAngles = value && value.d || [_.Odeg];
135
- var oldAngles = old && old.d || [_.Odeg];
134
+ var newAngles = value && value.d || [_parser.Odeg];
135
+ var oldAngles = old && old.d || [_parser.Odeg];
136
136
  object.rotateLocal(0, 0, newAngles[0].value - oldAngles[0].value);
137
137
  } else if (t === 'rotatex') {
138
- var newAngles = value && value.d || [_.Odeg];
139
- var oldAngles = old && old.d || [_.Odeg];
138
+ var newAngles = value && value.d || [_parser.Odeg];
139
+ var oldAngles = old && old.d || [_parser.Odeg];
140
140
  object.rotateLocal(newAngles[0].value - oldAngles[0].value, 0, 0);
141
141
  } else if (t === 'rotatey') {
142
- var newAngles = value && value.d || [_.Odeg];
143
- var oldAngles = old && old.d || [_.Odeg];
142
+ var newAngles = value && value.d || [_parser.Odeg];
143
+ var oldAngles = old && old.d || [_parser.Odeg];
144
144
  object.rotateLocal(0, newAngles[0].value - oldAngles[0].value, 0);
145
145
  } else if (t === 'rotatez') {
146
- var newAngles = value && value.d || [_.Odeg];
147
- var oldAngles = old && old.d || [_.Odeg];
146
+ var newAngles = value && value.d || [_parser.Odeg];
147
+ var oldAngles = old && old.d || [_parser.Odeg];
148
148
  object.rotateLocal(0, 0, newAngles[0].value - oldAngles[0].value);
149
149
  } else if (t === 'rotate3d') {// 暂不支持绕指定轴旋转
150
150
  // const newAngles = value && value.d || [Odeg, Odeg, Odeg];
@@ -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
@@ -9,7 +9,7 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _ = require("../..");
12
+ var _parser = require("../parser");
13
13
 
14
14
  /**
15
15
  * @see https://developer.mozilla.org/zh-CN/docs/Web/CSS/transform-origin
@@ -18,7 +18,7 @@ var _ = require("../..");
18
18
  */
19
19
  var CSSPropertyTransformOrigin = function () {
20
20
  function CSSPropertyTransformOrigin() {
21
- this.parser = _.parseTransformOrigin;
21
+ this.parser = _parser.parseTransformOrigin;
22
22
  }
23
23
 
24
24
  CSSPropertyTransformOrigin = (0, _tslib.__decorate)([(0, _manaSyringe.singleton)()], CSSPropertyTransformOrigin);
@@ -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;
@@ -9,11 +9,11 @@ var _tslib = require("tslib");
9
9
 
10
10
  var _manaSyringe = require("mana-syringe");
11
11
 
12
- var _ = require("../..");
12
+ var _parser = require("../parser");
13
13
 
14
14
  var CSSPropertyZIndex = function () {
15
15
  function CSSPropertyZIndex() {
16
- this.parser = _.parseNumber;
16
+ this.parser = _parser.parseNumber;
17
17
  }
18
18
 
19
19
  CSSPropertyZIndex.prototype.postProcessor = function (object) {
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/g",
3
- "version": "5.0.22-alpha.4",
3
+ "version": "5.0.22-alpha.5",
4
4
  "description": "A core module including ECS and DI container.",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",