@antv/g-lite 1.2.6 → 1.2.8

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.
@@ -20,8 +20,4 @@ export interface Renderable {
20
20
  * dirty rectangle flag
21
21
  */
22
22
  dirty: boolean;
23
- /**
24
- * Rendering with other renderers, eg. simple Path/Polyline should be treated as instanced Line.
25
- */
26
- proxyNodeName: string;
27
23
  }
@@ -10,6 +10,8 @@ export interface ImageStyleProps extends BaseStyleProps {
10
10
  width?: number | string;
11
11
  height?: number | string;
12
12
  isBillboard?: boolean;
13
+ billboardRotation?: number;
14
+ isSizeAttenuation?: boolean;
13
15
  }
14
16
  export interface ParsedImageStyleProps extends ParsedBaseStyleProps {
15
17
  x: number;
@@ -20,6 +22,8 @@ export interface ParsedImageStyleProps extends ParsedBaseStyleProps {
20
22
  width?: number;
21
23
  height?: number;
22
24
  isBillboard?: boolean;
25
+ billboardRotation?: number;
26
+ isSizeAttenuation?: boolean;
23
27
  }
24
28
  export declare class Image extends DisplayObject<ImageStyleProps, ParsedImageStyleProps> {
25
29
  constructor({ style, ...rest }?: DisplayObjectConfig<ImageStyleProps>);
@@ -2,7 +2,7 @@ import type { DisplayObjectConfig } from '../dom';
2
2
  import type { BaseStyleProps, ParsedBaseStyleProps } from '../types';
3
3
  import { DisplayObject } from './DisplayObject';
4
4
  export interface PolygonStyleProps extends BaseStyleProps {
5
- points: [number, number][];
5
+ points: ([number, number] | [number, number, number])[];
6
6
  /**
7
7
  * marker will be positioned at the first point
8
8
  */
@@ -24,7 +24,7 @@ export interface PolygonStyleProps extends BaseStyleProps {
24
24
  }
25
25
  export interface ParsedPolygonStyleProps extends ParsedBaseStyleProps {
26
26
  points: {
27
- points: [number, number][];
27
+ points: ([number, number] | [number, number, number])[];
28
28
  segments: [number, number][];
29
29
  totalLength: number;
30
30
  };
@@ -4,7 +4,7 @@ import type { BaseStyleProps, ParsedBaseStyleProps } from '../types';
4
4
  import type { DisplayObject } from './DisplayObject';
5
5
  import { Polygon } from './Polygon';
6
6
  export interface PolylineStyleProps extends BaseStyleProps {
7
- points: [number, number][];
7
+ points: ([number, number] | [number, number, number])[];
8
8
  /**
9
9
  * marker will be positioned at the first point
10
10
  */
@@ -25,7 +25,7 @@ export interface PolylineStyleProps extends BaseStyleProps {
25
25
  }
26
26
  export interface ParsedPolylineStyleProps extends ParsedBaseStyleProps {
27
27
  points: {
28
- points: [number, number][];
28
+ points: ([number, number] | [number, number, number])[];
29
29
  segments: [number, number][];
30
30
  totalLength: number;
31
31
  };
@@ -12,10 +12,14 @@ export interface TextStyleProps extends BaseStyleProps {
12
12
  * Always face the camera.
13
13
  */
14
14
  isBillboard?: boolean;
15
+ /**
16
+ * The rotation of the billboard in radians.
17
+ */
18
+ billboardRotation?: number;
15
19
  /**
16
20
  * Whether the size of the sprite is attenuated by the camera depth. (Perspective camera only.)
17
21
  */
18
- sizeAttenuation?: boolean;
22
+ isSizeAttenuation?: boolean;
19
23
  text: number | string;
20
24
  /**
21
25
  * The text-align property sets the horizontal alignment of the inline-level content.
@@ -136,7 +140,8 @@ export interface ParsedTextStyleProps extends ParsedBaseStyleProps {
136
140
  y: number;
137
141
  z?: number;
138
142
  isBillboard?: boolean;
139
- sizeAttenuation?: boolean;
143
+ billboardRotation?: number;
144
+ isSizeAttenuation?: boolean;
140
145
  text: string;
141
146
  textAlign?: 'start' | 'center' | 'middle' | 'end' | 'left' | 'right';
142
147
  textBaseline?: 'top' | 'hanging' | 'middle' | 'alphabetic' | 'ideographic' | 'bottom';
package/dist/index.esm.js CHANGED
@@ -11607,7 +11607,6 @@ var Element = /** @class */ (function (_super) {
11607
11607
  renderBoundsDirty: true,
11608
11608
  dirtyRenderBounds: undefined,
11609
11609
  dirty: false,
11610
- proxyNodeName: undefined,
11611
11610
  };
11612
11611
  _this.cullable = {
11613
11612
  strategy: Strategy.Standard,
@@ -13739,7 +13738,7 @@ var Text = /** @class */ (function (_super) {
13739
13738
  return _super.call(this, __assign({ type: Shape.TEXT, style: runtime.enableCSSParsing
13740
13739
  ? __assign({ x: '', y: '', text: '', fontSize: '', fontFamily: '', fontStyle: '', fontWeight: '', fontVariant: '', textAlign: '', textBaseline: '', textTransform: '', fill: 'black', letterSpacing: '', lineHeight: '', miterLimit: '',
13741
13740
  // whiteSpace: 'pre',
13742
- wordWrap: false, wordWrapWidth: 0, leading: 0, dx: '', dy: '', isBillboard: false, sizeAttenuation: true }, style) : __assign({ fill: 'black' }, style), initialParsedStyle: runtime.enableCSSParsing
13741
+ wordWrap: false, wordWrapWidth: 0, leading: 0, dx: '', dy: '' }, style) : __assign({ fill: 'black' }, style), initialParsedStyle: runtime.enableCSSParsing
13743
13742
  ? {}
13744
13743
  : {
13745
13744
  x: 0,
@@ -13758,8 +13757,6 @@ var Text = /** @class */ (function (_super) {
13758
13757
  leading: 0,
13759
13758
  dx: 0,
13760
13759
  dy: 0,
13761
- isBillboard: false,
13762
- sizeAttenuation: true,
13763
13760
  } }, rest)) || this;
13764
13761
  }
13765
13762
  // lengthAdjust: SVGAnimatedEnumeration;