@antv/g-lite
Advanced tools
Comparing version 1.0.29 to 1.0.30
import type { CanvasContext } from './dom'; | ||
import { GlobalRuntime } from './global-runtime'; | ||
import type { RenderingPlugin } from './services'; | ||
@@ -7,4 +8,4 @@ import type { RendererConfig } from './types'; | ||
context: CanvasContext; | ||
init: () => void; | ||
destroy: () => void; | ||
init: (runtime: GlobalRuntime) => void; | ||
destroy: (runtime: GlobalRuntime) => void; | ||
} | ||
@@ -17,4 +18,4 @@ export declare abstract class AbstractRendererPlugin<T = any> implements RendererPlugin { | ||
abstract name: string; | ||
abstract init(): void; | ||
abstract destroy(): void; | ||
abstract init(runtime: GlobalRuntime): void; | ||
abstract destroy(runtime: GlobalRuntime): void; | ||
} | ||
@@ -21,0 +22,0 @@ export interface IRenderer { |
@@ -14,2 +14,3 @@ import type { IRenderer } from './AbstractRenderer'; | ||
BEFORE_RENDER = "beforerender", | ||
RERENDER = "rerender", | ||
AFTER_RENDER = "afterrender", | ||
@@ -16,0 +17,0 @@ BEFORE_DESTROY = "beforedestroy", |
@@ -8,2 +8,3 @@ import type { mat4, quat, vec2, vec3 } from 'gl-matrix'; | ||
triggerPendingEvents: () => void; | ||
clearPendingEvents: () => void; | ||
updateDisplayObjectDependency: (name: string, oldPath: DisplayObject, newPath: DisplayObject, object: DisplayObject) => void; | ||
@@ -10,0 +11,0 @@ informDependentDisplayObjects: (object: DisplayObject) => void; |
@@ -9,3 +9,3 @@ import type { GlobalRuntime } from '../global-runtime'; | ||
export interface RenderingPlugin { | ||
apply: (context: RenderingPluginContext) => void; | ||
apply: (context: RenderingPluginContext, runtime: GlobalRuntime) => void; | ||
} | ||
@@ -110,3 +110,3 @@ export interface PickingResult { | ||
disableDirtyRectangleRendering(): boolean; | ||
render(canvasConfig: Partial<CanvasConfig>): void; | ||
render(canvasConfig: Partial<CanvasConfig>, rerenderCallback: () => void): void; | ||
private renderDisplayObject; | ||
@@ -113,0 +113,0 @@ destroy(): void; |
@@ -92,2 +92,3 @@ import { mat4, quat, vec2, vec3 } from 'gl-matrix'; | ||
triggerPendingEvents(): void; | ||
clearPendingEvents(): void; | ||
dirtifyToRoot(element: INode, affectChildren?: boolean): void; | ||
@@ -94,0 +95,0 @@ private displayObjectDependencyMap; |
@@ -5,2 +5,3 @@ export declare function DCHECK(bool: boolean): void; | ||
export declare function isFunction(func: any): func is (...args: any[]) => any; | ||
export declare function isSymbol(value: any): value is symbol; | ||
export declare const definedProps: (obj: Record<string, unknown>) => { | ||
@@ -7,0 +8,0 @@ [k: string]: unknown; |
{ | ||
"name": "@antv/g-lite", | ||
"version": "1.0.29", | ||
"version": "1.0.30", | ||
"description": "A core module for rendering engine implements DOM API.", | ||
@@ -53,3 +53,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "0dfd1a4fb89c7398f55ae70c1686cfa7d925002c" | ||
"gitHead": "b9221a0a3f013bc8d2f76d1dad0948ef11052e1b" | ||
} |
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
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
2577047
62477