@antv/g-lite
Advanced tools
Comparing version 1.3.0-next.0 to 1.3.0-next.1
@@ -5,4 +5,2 @@ import type { DisplayObjectConfig } from '../dom'; | ||
export interface BaseCustomElementStyleProps extends BaseStyleProps { | ||
x?: number | string; | ||
y?: number | string; | ||
} | ||
@@ -9,0 +7,0 @@ /** |
@@ -6,4 +6,2 @@ import type { CSSUnitValue } from '../css'; | ||
export interface GroupStyleProps extends BaseStyleProps { | ||
x?: number | string; | ||
y?: number | string; | ||
width?: number | string; | ||
@@ -13,4 +11,2 @@ height?: number | string; | ||
export interface ParsedGroupStyleProps extends ParsedBaseStyleProps { | ||
x: CSSUnitValue; | ||
y: CSSUnitValue; | ||
width?: CSSUnitValue; | ||
@@ -17,0 +13,0 @@ height?: CSSUnitValue; |
@@ -195,3 +195,3 @@ import type { Cullable, Geometry, RBushNode, Renderable, Sortable, Transform } from '../components'; | ||
*/ | ||
setAttribute<Key extends keyof StyleProps>(attributeName: Key, value: StyleProps[Key], force?: boolean): void; | ||
setAttribute<Key extends keyof StyleProps>(attributeName: Key, value: StyleProps[Key], force?: boolean, memoize?: boolean): void; | ||
getAttributeNS(namespace: string, localName: string): string; | ||
@@ -198,0 +198,0 @@ getAttributeNode(qualifiedName: string): Attr; |
@@ -1,2 +0,1 @@ | ||
import type { vec2, vec3 } from 'gl-matrix'; | ||
import type { IRenderer } from './AbstractRenderer'; | ||
@@ -44,7 +43,2 @@ import type { CSSGlobalKeywords, CSSGradientValue, CSSRGB, CSSUnitValue } from './css'; | ||
/** | ||
* how do we define the 'position' of a shape? | ||
* eg. the default anchor of a Rect is top-left, we can change it to its' center [0.5, 0.5]. | ||
*/ | ||
anchor?: vec2 | vec3 | string; | ||
/** | ||
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/visibility | ||
@@ -182,3 +176,3 @@ */ | ||
} | ||
export interface ParsedBaseStyleProps extends Omit<BaseStyleProps, 'anchor' | 'fill' | 'stroke' | 'lineWidth' | 'increasedLineWidthForHitTesting' | 'lineDash' | 'path' | 'points' | 'shadowColor' | 'transform' | 'transformOrigin' | 'miterLimit' | 'filter' | 'opacity' | 'fillOpacity' | 'strokeOpacity'> { | ||
export interface ParsedBaseStyleProps extends Omit<BaseStyleProps, 'fill' | 'stroke' | 'lineWidth' | 'increasedLineWidthForHitTesting' | 'lineDash' | 'path' | 'points' | 'shadowColor' | 'transform' | 'transformOrigin' | 'miterLimit' | 'filter' | 'opacity' | 'fillOpacity' | 'strokeOpacity'> { | ||
opacity?: number; | ||
@@ -190,3 +184,2 @@ fillOpacity?: number; | ||
lineDash?: [number, number]; | ||
anchor?: [number, number, number]; | ||
transform: ParsedTransform[]; | ||
@@ -193,0 +186,0 @@ transformOrigin?: [CSSUnitValue, CSSUnitValue, CSSUnitValue]; |
@@ -21,3 +21,2 @@ import type { AbsoluteArray } from '@antv/util'; | ||
* * transform & origin | ||
* * anchor | ||
* * lineWidth | ||
@@ -24,0 +23,0 @@ */ |
{ | ||
"name": "@antv/g-lite", | ||
"version": "1.3.0-next.0", | ||
"version": "1.3.0-next.1", | ||
"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
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
3348229
36862