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

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.
@@ -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,7 +1,7 @@
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 '..';
4
+ import { ElementEvent } from '../dom';
5
5
  import { dirtifyToRoot, Shape, GeometryUpdaterFactory, AABB } from '..';
6
6
  import { CSSStyleValue, CSSUnitValue } from './cssom';
7
7
  import { CSSKeywordValue } from './cssom';
@@ -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
 
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 { 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;
@@ -11,6 +11,8 @@ var _manaSyringe = require("mana-syringe");
11
11
 
12
12
  var _glMatrix = require("gl-matrix");
13
13
 
14
+ var _dom = require("../dom");
15
+
14
16
  var _ = require("..");
15
17
 
16
18
  var _cssom = require("./cssom");
@@ -878,7 +880,7 @@ var StyleValueRegistry = function () {
878
880
  usedOriginXValue -= (anchor && anchor[0].value || 0) * geometry_1.contentBounds.halfExtents[0] * 2;
879
881
  usedOriginYValue -= (anchor && anchor[1].value || 0) * geometry_1.contentBounds.halfExtents[1] * 2;
880
882
  object.setOrigin(usedOriginXValue, usedOriginYValue);
881
- object.emit(_.ElementEvent.GEOMETRY_BOUNDS_CHANGED, {});
883
+ object.emit(_dom.ElementEvent.GEOMETRY_BOUNDS_CHANGED, {});
882
884
  (0, _.dirtifyToRoot)(object);
883
885
  }
884
886
  };
@@ -17,10 +17,10 @@ var _shapes = require("../shapes");
17
17
 
18
18
  var _Camera = require("../camera/Camera");
19
19
 
20
- var _ = require("..");
20
+ var _types = require("../types");
21
21
 
22
22
  // group is not a 2d shape
23
- var shape2D = [_.Shape.CIRCLE, _.Shape.ELLIPSE, _.Shape.IMAGE, _.Shape.RECT, _.Shape.LINE, _.Shape.POLYLINE, _.Shape.POLYGON, _.Shape.TEXT, _.Shape.PATH, _.Shape.HTML];
23
+ var shape2D = [_types.Shape.CIRCLE, _types.Shape.ELLIPSE, _types.Shape.IMAGE, _types.Shape.RECT, _types.Shape.LINE, _types.Shape.POLYLINE, _types.Shape.POLYGON, _types.Shape.TEXT, _types.Shape.PATH, _types.Shape.HTML];
24
24
 
25
25
  var FrustumCullingStrategy = function () {
26
26
  function FrustumCullingStrategy() {}
package/lib/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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/g",
3
- "version": "5.0.22-alpha.2",
3
+ "version": "5.0.22-alpha.3",
4
4
  "description": "A core module including ECS and DI container.",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",