@antv/g-lite
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -0,13 +1,18 @@ | ||
import type { CSSKeywordValue } from './CSSKeywordValue'; | ||
import type { CSSUnitValue } from './CSSNumericValue'; | ||
import { CSSStyleValue, CSSStyleValueType } from './CSSStyleValue'; | ||
import type { Nested, ParenLess } from './types'; | ||
export interface LinearColorStop { | ||
offset: CSSUnitValue; | ||
color: string; | ||
} | ||
export interface LinearGradient { | ||
angle: number; | ||
steps: [number, string][]; | ||
hash: string; | ||
angle: CSSUnitValue; | ||
steps: LinearColorStop[]; | ||
} | ||
export interface RadialGradient { | ||
cx: number; | ||
cy: number; | ||
steps: [number, string][]; | ||
hash: string; | ||
cx: CSSUnitValue; | ||
cy: CSSUnitValue; | ||
size?: CSSUnitValue | CSSKeywordValue; | ||
steps: LinearColorStop[]; | ||
} | ||
@@ -14,0 +19,0 @@ export declare enum GradientType { |
@@ -7,2 +7,3 @@ import type { Cullable, Geometry, RBushNode, Renderable, Sortable, Transform } from '../components'; | ||
import { Node } from './Node'; | ||
export declare function resetEntityCounter(): void; | ||
/** | ||
@@ -9,0 +10,0 @@ * Has following capabilities: |
@@ -23,2 +23,3 @@ import type { RenderingPlugin } from '../services'; | ||
private onPointerMove; | ||
private getViewportXY; | ||
private bootstrapEvent; | ||
@@ -25,0 +26,0 @@ private normalizeWheelEvent; |
@@ -280,2 +280,6 @@ import { Syringe } from 'mana-syringe'; | ||
/** | ||
* Should we account for CSS Transform applied on container? | ||
*/ | ||
supportsCSSTransform?: boolean; | ||
/** | ||
* 画布宽度 | ||
@@ -282,0 +286,0 @@ */ |
@@ -5,2 +5,3 @@ /** | ||
*/ | ||
import { CSSKeywordValue, CSSUnitValue } from '../css'; | ||
export interface LinearGradientNode { | ||
@@ -96,3 +97,3 @@ type: 'linear-gradient'; | ||
export declare const parseGradient: (code: string) => GradientNode[]; | ||
export declare function computeLinearGradient(width: number, height: number, angle: number): { | ||
export declare function computeLinearGradient(width: number, height: number, angle: CSSUnitValue): { | ||
x1: number; | ||
@@ -103,3 +104,3 @@ y1: number; | ||
}; | ||
export declare function computeRadialGradient(width: number, height: number, cx: number, cy: number): { | ||
export declare function computeRadialGradient(width: number, height: number, cx: CSSUnitValue, cy: CSSUnitValue, size?: CSSUnitValue | CSSKeywordValue): { | ||
x: number; | ||
@@ -106,0 +107,0 @@ y: number; |
{ | ||
"name": "@antv/g-lite", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "A core module for rendering engine implements DOM API.", | ||
@@ -32,3 +32,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@antv/g-math": "^1.7.17", | ||
"@antv/g-math": "^1.7.18", | ||
"@antv/util": "^3.2.4", | ||
@@ -54,3 +54,3 @@ "@types/offscreencanvas": "^2019.6.4", | ||
}, | ||
"gitHead": "b9d42d3b3b4bef20ce3bee3c953d2be7999d7f1e" | ||
"gitHead": "396bb46d0e7fea8689a8ca03b6862bd2c189c685" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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 too big to display
Sorry, the diff of this file is too big to display
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 not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2759856
63949
Updated@antv/g-math@^1.7.18