modern-canvas 0.13.3 → 0.13.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +558 -558
- package/dist/scene/main/CanvasItem.d.ts +3 -1
- package/dist/scene/main/SceneTree.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { ColorValue, WebGLBlendMode, WebGLRenderer } from '../../core';
|
|
1
|
+
import type { Batchable2D, ColorValue, WebGLBlendMode, WebGLRenderer } from '../../core';
|
|
2
|
+
import type { Texture2D } from '../resources';
|
|
2
3
|
import type { CanvasBatchable } from './CanvasContext';
|
|
3
4
|
import type { Node } from './Node';
|
|
4
5
|
import type { TimelineNodeEvents, TimelineNodeProperties } from './TimelineNode';
|
|
@@ -55,5 +56,6 @@ export declare class CanvasItem extends TimelineNode {
|
|
|
55
56
|
protected _repaint(batchables: CanvasBatchable[]): CanvasBatchable[];
|
|
56
57
|
protected _process(delta: number): void;
|
|
57
58
|
protected _updateBatchables(): void;
|
|
59
|
+
protected _handleViewportTexture(batchable: Batchable2D): Texture2D | undefined;
|
|
58
60
|
protected _render(renderer: WebGLRenderer): void;
|
|
59
61
|
}
|
|
@@ -42,8 +42,10 @@ export declare class SceneTree extends MainLoop {
|
|
|
42
42
|
readonly renderStack: RenderStack;
|
|
43
43
|
readonly root: Window;
|
|
44
44
|
protected _backgroundColor: Color;
|
|
45
|
+
protected _previousViewport?: Viewport;
|
|
45
46
|
protected _currentViewport?: Viewport;
|
|
46
47
|
getCurrentViewport(): Viewport | undefined;
|
|
48
|
+
getPreviousViewport(): Viewport | undefined;
|
|
47
49
|
setCurrentViewport(viewport: Viewport | undefined): void;
|
|
48
50
|
constructor(properties?: Partial<SceneTreeProperties>);
|
|
49
51
|
protected _updateProperty(key: string, value: any, oldValue: any): void;
|