@antv/g-lite 1.3.0-next.0 → 1.3.0-next.2

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/types.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import type { vec2, vec3 } from 'gl-matrix';
2
1
  import type { IRenderer } from './AbstractRenderer';
3
2
  import type { CSSGlobalKeywords, CSSGradientValue, CSSRGB, CSSUnitValue } from './css';
4
3
  import type { ParsedFilterStyleProperty, ParsedTransform, Pattern } from './css/parser';
@@ -40,11 +39,6 @@ export interface BaseStyleProps {
40
39
  * @see https://developer.mozilla.org/en-US/docs/Web/CSS/transform-origin
41
40
  */
42
41
  transformOrigin?: string;
43
- /**
44
- * how do we define the 'position' of a shape?
45
- * eg. the default anchor of a Rect is top-left, we can change it to its' center [0.5, 0.5].
46
- */
47
- anchor?: vec2 | vec3 | string;
48
42
  /**
49
43
  * @see https://developer.mozilla.org/en-US/docs/Web/CSS/visibility
50
44
  */
@@ -178,14 +172,13 @@ export interface BaseStyleProps {
178
172
  */
179
173
  droppable?: boolean;
180
174
  }
181
- export interface ParsedBaseStyleProps extends Omit<BaseStyleProps, 'anchor' | 'fill' | 'stroke' | 'lineWidth' | 'increasedLineWidthForHitTesting' | 'lineDash' | 'path' | 'points' | 'shadowColor' | 'transform' | 'transformOrigin' | 'miterLimit' | 'filter' | 'opacity' | 'fillOpacity' | 'strokeOpacity'> {
175
+ export interface ParsedBaseStyleProps extends Omit<BaseStyleProps, 'fill' | 'stroke' | 'lineWidth' | 'increasedLineWidthForHitTesting' | 'lineDash' | 'path' | 'points' | 'shadowColor' | 'transform' | 'transformOrigin' | 'miterLimit' | 'filter' | 'opacity' | 'fillOpacity' | 'strokeOpacity'> {
182
176
  opacity?: number;
183
177
  fillOpacity?: number;
184
178
  strokeOpacity?: number;
185
179
  fill?: CSSRGB | CSSGradientValue[] | Pattern;
186
180
  stroke?: CSSRGB | CSSGradientValue[] | Pattern;
187
181
  lineDash?: [number, number];
188
- anchor?: [number, number, number];
189
182
  transform: ParsedTransform[];
190
183
  transformOrigin?: [CSSUnitValue, CSSUnitValue, CSSUnitValue];
191
184
  lineWidth?: number;
@@ -18,7 +18,6 @@ export declare function path2Segments(path: AbsoluteArray): PathSegment[];
18
18
  /**
19
19
  * convert object to path, should account for:
20
20
  * * transform & origin
21
- * * anchor
22
21
  * * lineWidth
23
22
  */
24
23
  export declare function convertToPath(object: Circle | Ellipse | Rect | Line | Polyline | Polygon | Path, transform?: mat4): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/g-lite",
3
- "version": "1.3.0-next.0",
3
+ "version": "1.3.0-next.2",
4
4
  "description": "A core module for rendering engine implements DOM API.",
5
5
  "keywords": [
6
6
  "antv",