@antv/g-lite
Advanced tools
Comparing version 1.2.21 to 1.3.0-next.0
@@ -9,4 +9,4 @@ import { Rect } from '../..'; | ||
image: string | CanvasImageSource | Rect; | ||
repetition: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat'; | ||
transform: string; | ||
repetition?: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat'; | ||
transform?: string; | ||
} | ||
@@ -13,0 +13,0 @@ export declare function isCSSGradientValue(object: any): object is CSSGradientValue; |
@@ -1,2 +0,2 @@ | ||
import type { DisplayObject } from '../../display-objects'; | ||
import { DisplayObject } from '../../display-objects'; | ||
import type { CSSUnitValue } from '../cssom'; | ||
@@ -3,0 +3,0 @@ import type { CSSProperty } from '../CSSProperty'; |
import type { AbsoluteArray } from '@antv/util'; | ||
import type { DisplayObject, ParsedPathStyleProps } from '../../display-objects'; | ||
import type { ParsedPathStyleProps } from '../../display-objects'; | ||
import { Rectangle } from '../../shapes'; | ||
@@ -23,6 +23,2 @@ import type { CSSProperty } from '../CSSProperty'; | ||
mixer: typeof mergePaths; | ||
/** | ||
* update local position | ||
*/ | ||
postProcessor(object: DisplayObject, attributes: string[]): void; | ||
} |
@@ -1,2 +0,1 @@ | ||
import type { DisplayObject } from '../../display-objects'; | ||
import type { CSSProperty } from '../CSSProperty'; | ||
@@ -14,7 +13,3 @@ import { parsePoints, mergePoints } from '../parser/points'; | ||
parser: typeof parsePoints; | ||
/** | ||
* update local position | ||
*/ | ||
postProcessor(object: DisplayObject, attributes: string[]): void; | ||
mixer: typeof mergePoints; | ||
} |
@@ -8,3 +8,2 @@ export * from './CSSPropertyAngle'; | ||
export * from './CSSPropertyLengthOrPercentage14'; | ||
export * from './CSSPropertyLocalPosition'; | ||
export * from './CSSPropertyMarker'; | ||
@@ -11,0 +10,0 @@ export * from './CSSPropertyNumber'; |
@@ -62,4 +62,2 @@ import type { DisplayObjectConfig } from '../dom'; | ||
z2?: number; | ||
defX: number; | ||
defY: number; | ||
isBillboard?: boolean; | ||
@@ -66,0 +64,0 @@ isSizeAttenuation?: boolean; |
@@ -5,5 +5,7 @@ import type { Circle, ParsedCircleStyleProps } from '../../display-objects/Circle'; | ||
update(parsedStyle: ParsedCircleStyleProps, object: Circle): { | ||
width: number; | ||
height: number; | ||
cx: number; | ||
cy: number; | ||
hwidth: number; | ||
hheight: number; | ||
}; | ||
} |
@@ -5,5 +5,7 @@ import type { Ellipse, ParsedEllipseStyleProps } from '../../display-objects/Ellipse'; | ||
update(parsedStyle: ParsedEllipseStyleProps, object: Ellipse): { | ||
width: number; | ||
height: number; | ||
cx: number; | ||
cy: number; | ||
hwidth: number; | ||
hheight: number; | ||
}; | ||
} |
@@ -5,9 +5,9 @@ import type { DisplayObject } from '../../display-objects/DisplayObject'; | ||
update: (parsedStyle: T, object: DisplayObject) => { | ||
width: number; | ||
height: number; | ||
depth?: number; | ||
offsetX?: number; | ||
offsetY?: number; | ||
offsetZ?: number; | ||
cx: number; | ||
cy: number; | ||
cz?: number; | ||
hwidth: number; | ||
hheight: number; | ||
hdepth?: number; | ||
}; | ||
} |
@@ -5,5 +5,7 @@ import type { ParsedLineStyleProps } from '../../display-objects/Line'; | ||
update(parsedStyle: ParsedLineStyleProps): { | ||
width: number; | ||
height: number; | ||
cx: number; | ||
cy: number; | ||
hwidth: number; | ||
hheight: number; | ||
}; | ||
} |
@@ -5,5 +5,7 @@ import type { ParsedPathStyleProps } from '../../display-objects'; | ||
update(parsedStyle: ParsedPathStyleProps): { | ||
width: number; | ||
height: number; | ||
cx: number; | ||
cy: number; | ||
hwidth: number; | ||
hheight: number; | ||
}; | ||
} |
@@ -5,5 +5,7 @@ import type { ParsedPolylineStyleProps } from '../../display-objects'; | ||
update(parsedStyle: ParsedPolylineStyleProps): { | ||
width: number; | ||
height: number; | ||
cx: number; | ||
cy: number; | ||
hwidth: number; | ||
hheight: number; | ||
}; | ||
} |
@@ -5,5 +5,7 @@ import type { Group, Image, ParsedImageStyleProps, Rect } from '../../display-objects'; | ||
update(parsedStyle: ParsedImageStyleProps, object: Image | Rect | Group): { | ||
width: number; | ||
height: number; | ||
cx: number; | ||
cy: number; | ||
hwidth: number; | ||
hheight: number; | ||
}; | ||
} |
@@ -9,16 +9,7 @@ import type { DisplayObject, ParsedTextStyleProps } from '../../display-objects'; | ||
update(parsedStyle: ParsedTextStyleProps, object: DisplayObject): { | ||
width: number; | ||
height: number; | ||
x: number; | ||
y: number; | ||
offsetX: number; | ||
offsetY: number; | ||
} | { | ||
width: number; | ||
height: number; | ||
offsetX: number; | ||
offsetY: number; | ||
x?: undefined; | ||
y?: undefined; | ||
hwidth: number; | ||
hheight: number; | ||
cx: number; | ||
cy: number; | ||
}; | ||
} |
@@ -194,7 +194,2 @@ import type { vec2, vec3 } from 'gl-matrix'; | ||
/** | ||
* x according to definition, eg. Line's x1/x2, Polyline's points | ||
*/ | ||
defX?: number; | ||
defY?: number; | ||
/** | ||
* offset relative to initial definition | ||
@@ -201,0 +196,0 @@ */ |
@@ -96,3 +96,3 @@ /** | ||
export declare const parseGradient: (code: string) => GradientNode[]; | ||
export declare function computeLinearGradient(width: number, height: number, angle: CSSUnitValue): { | ||
export declare function computeLinearGradient(min: [number, number], width: number, height: number, angle: CSSUnitValue): { | ||
x1: number; | ||
@@ -103,3 +103,3 @@ y1: number; | ||
}; | ||
export declare function computeRadialGradient(width: number, height: number, cx: CSSUnitValue, cy: CSSUnitValue, size?: CSSUnitValue | CSSKeywordValue): { | ||
export declare function computeRadialGradient(min: [number, number], width: number, height: number, cx: CSSUnitValue, cy: CSSUnitValue, size?: CSSUnitValue | CSSKeywordValue): { | ||
x: number; | ||
@@ -106,0 +106,0 @@ y: number; |
@@ -25,2 +25,2 @@ import type { AbsoluteArray } from '@antv/util'; | ||
export declare function convertToPath(object: Circle | Ellipse | Rect | Line | Polyline | Polygon | Path, transform?: mat4): string; | ||
export declare function translatePathToString(absolutePath: AbsoluteArray, defX: number, defY: number, startOffsetX?: number, startOffsetY?: number, endOffsetX?: number, endOffsetY?: number): string; | ||
export declare function translatePathToString(absolutePath: AbsoluteArray, startOffsetX?: number, startOffsetY?: number, endOffsetX?: number, endOffsetY?: number): string; |
{ | ||
"name": "@antv/g-lite", | ||
"version": "1.2.21", | ||
"version": "1.3.0-next.0", | ||
"description": "A core module for rendering engine implements DOM API.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3350168
36946
1