@antv/g-lite 2.0.9 → 2.0.10-alpha.0
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/Canvas.d.ts +0 -1
- package/dist/css/cssom/CSSMathOperator.d.ts +1 -1
- package/dist/css/cssom/CSSNumericValue.d.ts +0 -1
- package/dist/css/cssom/CSSStyleValue.d.ts +3 -3
- package/dist/css/parser/transform.d.ts +3 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +176 -111
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +176 -111
- 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/plugins/PrepareRendererPlugin.d.ts +0 -1
- package/dist/preset.d.ts +1 -0
- package/dist/services/RenderingService.d.ts +6 -1
- package/dist/services/SceneGraphService.d.ts +3 -1
- package/dist/services/interfaces.d.ts +1 -1
- package/dist/types.d.ts +61 -1
- package/package.json +1 -1
package/dist/Canvas.d.ts
CHANGED
|
@@ -8,4 +8,4 @@ export declare enum CSSMathOperator {
|
|
|
8
8
|
kClamp = "clamp",
|
|
9
9
|
kInvalid = ""
|
|
10
10
|
}
|
|
11
|
-
export declare function isComparison(op: CSSMathOperator):
|
|
11
|
+
export declare function isComparison(op: CSSMathOperator): op is CSSMathOperator.kMin | CSSMathOperator.kMax | CSSMathOperator.kClamp;
|
|
@@ -33,10 +33,10 @@ export declare const unitTypeToString: (type: UnitType) => "" | "em" | "px" | "d
|
|
|
33
33
|
* Docs @see https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleValue
|
|
34
34
|
*/
|
|
35
35
|
export declare abstract class CSSStyleValue {
|
|
36
|
-
static isAngle(unit: UnitType):
|
|
36
|
+
static isAngle(unit: UnitType): unit is UnitType.kDegrees | UnitType.kRadians | UnitType.kGradians | UnitType.kTurns;
|
|
37
37
|
static isLength(type: UnitType): boolean;
|
|
38
|
-
static isRelativeUnit(type: UnitType):
|
|
39
|
-
static isTime(unit: UnitType):
|
|
38
|
+
static isRelativeUnit(type: UnitType): type is UnitType.kPercentage | UnitType.kEms | UnitType.kRems;
|
|
39
|
+
static isTime(unit: UnitType): unit is UnitType.kMilliseconds | UnitType.kSeconds;
|
|
40
40
|
protected abstract getType(): CSSStyleValueType;
|
|
41
41
|
abstract buildCSSText(n: Nested, p: ParenLess, result: string): string;
|
|
42
42
|
abstract clone(): CSSStyleValue;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { DisplayObject } from '../../display-objects';
|
|
2
2
|
import { CSSUnitValue } from '../cssom';
|
|
3
|
+
import type { TransformArray } from '../../types';
|
|
3
4
|
export interface ParsedTransform {
|
|
4
5
|
t: string;
|
|
5
6
|
d: CSSUnitValue[];
|
|
@@ -9,8 +10,8 @@ export interface ParsedTransform {
|
|
|
9
10
|
* scale(1) scale(1, 2)
|
|
10
11
|
* scaleX(1)
|
|
11
12
|
*/
|
|
12
|
-
export declare function parseTransform(
|
|
13
|
-
export declare function parseTransformUnmemoize(
|
|
13
|
+
export declare function parseTransform(transform: string | TransformArray): ParsedTransform[];
|
|
14
|
+
export declare function parseTransformUnmemoize(transform: string | TransformArray): ParsedTransform[];
|
|
14
15
|
export declare function convertItemToMatrix(item: ParsedTransform): number[];
|
|
15
16
|
export declare const composeMatrix: (translate: any, scale: any, skew: any, quat: any, perspective: any) => number[];
|
|
16
17
|
export declare function mergeTransforms(left: ParsedTransform[], right: ParsedTransform[], target: DisplayObject | null): [number[][], number[][], (d: number[][]) => string];
|
package/dist/index.d.ts
CHANGED