@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/display-objects/CustomElement.d.ts +0 -2
- package/dist/display-objects/Group.d.ts +0 -4
- package/dist/dom/Element.d.ts +1 -1
- package/dist/index.esm.js +18 -53
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +18 -53
- package/dist/index.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/types.d.ts +1 -8
- package/dist/utils/path.d.ts +0 -1
- package/package.json +1 -1
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, '
|
|
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;
|
package/dist/utils/path.d.ts
CHANGED
|
@@ -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;
|