@antv/g-lite 1.2.7 → 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.
@@ -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
@@ -13738,7 +13738,7 @@ var Text = /** @class */ (function (_super) {
13738
13738
  return _super.call(this, __assign({ type: Shape.TEXT, style: runtime.enableCSSParsing
13739
13739
  ? __assign({ x: '', y: '', text: '', fontSize: '', fontFamily: '', fontStyle: '', fontWeight: '', fontVariant: '', textAlign: '', textBaseline: '', textTransform: '', fill: 'black', letterSpacing: '', lineHeight: '', miterLimit: '',
13740
13740
  // whiteSpace: 'pre',
13741
- 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
13742
13742
  ? {}
13743
13743
  : {
13744
13744
  x: 0,
@@ -13757,8 +13757,6 @@ var Text = /** @class */ (function (_super) {
13757
13757
  leading: 0,
13758
13758
  dx: 0,
13759
13759
  dy: 0,
13760
- isBillboard: false,
13761
- sizeAttenuation: true,
13762
13760
  } }, rest)) || this;
13763
13761
  }
13764
13762
  // lengthAdjust: SVGAnimatedEnumeration;