@antv/g-lite
Advanced tools
Comparing version 1.0.63 to 1.0.64
import type { INode } from '../dom/interfaces'; | ||
export declare enum SortReason { | ||
ADDED = 0, | ||
REMOVED = 1, | ||
Z_INDEX_CHANGED = 2 | ||
} | ||
export interface Sortable { | ||
@@ -12,10 +17,11 @@ /** | ||
/** | ||
* index in parent's children | ||
* render order in whole scenegraph | ||
*/ | ||
lastSortedIndex: number; | ||
renderOrder: number; | ||
/** | ||
* render order in whole scenegraph | ||
* dirty children | ||
*/ | ||
renderOrder: number; | ||
dirtyChildren: INode[]; | ||
dirtyReason: SortReason; | ||
} | ||
//# sourceMappingURL=Sortable.d.ts.map |
import EventEmitter from 'eventemitter3'; | ||
import { FederatedEvent } from './FederatedEvent'; | ||
import type { IEventTarget } from './interfaces'; | ||
import type { IEventTarget, EventListenerOrEventListenerObject } from './interfaces'; | ||
/** | ||
@@ -5,0 +5,0 @@ * Objects that can receive events and may have listeners for them. |
@@ -44,6 +44,2 @@ import type RBush from 'rbush'; | ||
BOUNDS_CHANGED = "bounds-changed", | ||
/** | ||
* trigger when z-index changed | ||
*/ | ||
RENDER_ORDER_CHANGED = "render-order-changed", | ||
CULLED = "culled" | ||
@@ -438,2 +434,10 @@ } | ||
} | ||
interface EventListener { | ||
(evt: FederatedEvent): void; | ||
} | ||
interface EventListenerObject { | ||
handleEvent(object: FederatedEvent): void; | ||
} | ||
export type EventListenerOrEventListenerObject = EventListener | EventListenerObject; | ||
export {}; | ||
//# sourceMappingURL=interfaces.d.ts.map |
@@ -38,6 +38,2 @@ import type { GlobalRuntime } from '../global-runtime'; | ||
private zIndexCounter; | ||
/** | ||
* avoid re-creating too many custom events | ||
*/ | ||
private renderOrderChangedEvent; | ||
hooks: { | ||
@@ -113,2 +109,3 @@ /** | ||
private renderDisplayObject; | ||
private sort; | ||
destroy(): void; | ||
@@ -115,0 +112,0 @@ dirtify(): void; |
import { mat4, quat, vec2, vec3 } from 'gl-matrix'; | ||
import type { Transform } from '../components'; | ||
import { Transform } from '../components'; | ||
import type { DisplayObject } from '../display-objects'; | ||
@@ -4,0 +4,0 @@ import type { IElement, INode, IParentNode } from '../dom/interfaces'; |
{ | ||
"name": "@antv/g-lite", | ||
"version": "1.0.63", | ||
"version": "1.0.64", | ||
"description": "A core module for rendering engine implements DOM API.", | ||
@@ -53,3 +53,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "53932c66ed9f2cbc28993e1e359c8df27703fc52" | ||
"gitHead": "4f178de08a4dd27532eeeb459209ddeaa12622d8" | ||
} |
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 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
2395135
58107