@mirage-engine/core 0.3.1 → 0.3.3
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/CHANGELOG.md +13 -0
- package/dist/mirage-engine.js +658 -633
- package/dist/mirage-engine.umd.js +15 -15
- package/dist/src/renderer/Renderer.d.ts +4 -0
- package/dist/src/store/TextureLifecycleManager.d.ts +2 -2
- package/dist/src/types/config.d.ts +9 -0
- package/package.json +3 -3
- package/src/core/Syncer.ts +3 -0
- package/src/renderer/Renderer.ts +61 -28
- package/src/store/TextureLifecycleManager.ts +26 -18
- package/src/types/config.ts +9 -0
package/src/types/config.ts
CHANGED
|
@@ -25,6 +25,15 @@ interface BaseConfig {
|
|
|
25
25
|
|
|
26
26
|
export interface OverlayConfig extends BaseConfig {
|
|
27
27
|
mode?: "overlay";
|
|
28
|
+
/**
|
|
29
|
+
* Defines the render size of the canvas and camera behavior.
|
|
30
|
+
* 'viewport' (default) is optimized for long scrollable pages by allocating canvas size
|
|
31
|
+
* to the current screen viewport only, significantly improving performance (60fps).
|
|
32
|
+
* 'document' allocates the canvas size to match the full height of the target element,
|
|
33
|
+
* which can cause performance drops on very tall documents but might be necessary
|
|
34
|
+
* for specific visual needs.
|
|
35
|
+
*/
|
|
36
|
+
canvasSize?: "viewport" | "document";
|
|
28
37
|
}
|
|
29
38
|
|
|
30
39
|
export interface DuplicateConfig extends BaseConfig {
|