@antv/g-lite
Advanced tools
Comparing version 1.3.0-next.12 to 1.3.0-next.13
import type { CurveArray, PathArray } from '@antv/util'; | ||
import type { ParsedPathStyleProps } from '../../display-objects'; | ||
import type { IElement } from '../../dom'; | ||
export declare function parsePath(path: string | PathArray): ParsedPathStyleProps['path']; | ||
export declare function mergePaths(left: ParsedPathStyleProps['path'], right: ParsedPathStyleProps['path'], object?: IElement): [CurveArray, CurveArray, (b: CurveArray) => CurveArray]; | ||
export declare function parsePath(path: string | PathArray): ParsedPathStyleProps['d']; | ||
export declare function mergePaths(left: ParsedPathStyleProps['d'], right: ParsedPathStyleProps['d'], object?: IElement): [CurveArray, CurveArray, (b: CurveArray) => CurveArray]; |
@@ -6,3 +6,3 @@ import type { AbsoluteArray } from '@antv/util'; | ||
import { mergePaths, parsePath } from '../parser/path'; | ||
export declare class CSSPropertyPath implements Partial<CSSProperty<ParsedPathStyleProps['path'], ParsedPathStyleProps['path']>> { | ||
export declare class CSSPropertyPath implements Partial<CSSProperty<ParsedPathStyleProps['d'], ParsedPathStyleProps['d']>> { | ||
/** | ||
@@ -13,3 +13,3 @@ * path2Curve | ||
parserWithCSSDisabled: typeof parsePath; | ||
calculator(name: string, oldParsed: ParsedPathStyleProps['path'], parsed: ParsedPathStyleProps['path']): { | ||
calculator(name: string, oldParsed: ParsedPathStyleProps['d'], parsed: ParsedPathStyleProps['d']): { | ||
absolutePath: AbsoluteArray; | ||
@@ -16,0 +16,0 @@ hasArc: boolean; |
@@ -8,3 +8,2 @@ import type { DisplayObjectConfig } from '../dom'; | ||
z?: number; | ||
img?: string | HTMLImageElement; | ||
src?: string | HTMLImageElement; | ||
@@ -34,3 +33,2 @@ width?: number | string; | ||
z?: number; | ||
img?: string | HTMLImageElement; | ||
src?: string | HTMLImageElement; | ||
@@ -37,0 +35,0 @@ width?: number; |
@@ -8,3 +8,2 @@ import type { AbsoluteArray, AbsoluteSegment, CurveArray, PathArray } from '@antv/util'; | ||
export interface PathStyleProps extends BaseStyleProps { | ||
path?: string | PathArray; | ||
d?: string | PathArray; | ||
@@ -73,3 +72,3 @@ /** | ||
export interface ParsedPathStyleProps extends ParsedBaseStyleProps { | ||
path: { | ||
d: { | ||
absolutePath: AbsoluteArray; | ||
@@ -84,12 +83,2 @@ hasArc: boolean; | ||
}; | ||
d?: { | ||
absolutePath: AbsoluteArray; | ||
hasArc: boolean; | ||
segments: PathSegment[]; | ||
polygons: [number, number][][]; | ||
polylines: [number, number][][]; | ||
curve: CurveArray; | ||
totalLength: number; | ||
rect: Rectangle; | ||
}; | ||
markerStart?: DisplayObject | null; | ||
@@ -96,0 +85,0 @@ markerMid?: DisplayObject | null; |
@@ -9,2 +9,3 @@ import type { RenderingPlugin, RenderingPluginContext } from '../services'; | ||
private toSync; | ||
private isFirstTimeRendering; | ||
private syncing; | ||
@@ -11,0 +12,0 @@ apply(context: RenderingPluginContext): void; |
@@ -175,3 +175,3 @@ import type { IRenderer } from './AbstractRenderer'; | ||
} | ||
export interface ParsedBaseStyleProps extends Omit<BaseStyleProps, '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' | 'points' | 'shadowColor' | 'transform' | 'transformOrigin' | 'miterLimit' | 'filter' | 'opacity' | 'fillOpacity' | 'strokeOpacity'> { | ||
opacity?: number; | ||
@@ -178,0 +178,0 @@ fillOpacity?: number; |
{ | ||
"name": "@antv/g-lite", | ||
"version": "1.3.0-next.12", | ||
"version": "1.3.0-next.13", | ||
"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
3361422
36947