@canvas-harness/core 0.1.21 → 0.1.22
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.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4949,6 +4949,8 @@ var createRenderer = (opts) => {
|
|
|
4949
4949
|
paintBackground(surface.ctx, { viewport, zoom: camera.z, background });
|
|
4950
4950
|
const visible = visibleNodes(camera, viewport);
|
|
4951
4951
|
const isMoving2 = isMoving(interaction);
|
|
4952
|
+
const viewMotion = interaction.mode === "panning" || interaction.mode === "zooming" || interaction.mode === "marqueeing";
|
|
4953
|
+
const isStripRender = !fullRender;
|
|
4952
4954
|
const minOnScreen = MIN_ON_SCREEN_SIZE_PX;
|
|
4953
4955
|
const nextOverlaySet = /* @__PURE__ */ new Set();
|
|
4954
4956
|
let drawn = 0;
|
|
@@ -5037,7 +5039,7 @@ var createRenderer = (opts) => {
|
|
|
5037
5039
|
if (!def) continue;
|
|
5038
5040
|
if (node.w * camera.z < minOnScreen && node.h * camera.z < minOnScreen) continue;
|
|
5039
5041
|
if (camera.z < def.lod.minZoomForPlaceholder) continue;
|
|
5040
|
-
const preferCanvas = camera.z < def.lod.minZoomForReact ||
|
|
5042
|
+
const preferCanvas = camera.z < def.lod.minZoomForReact || viewMotion && isStripRender && !overlaySet.has(node.id);
|
|
5041
5043
|
if (preferCanvas) {
|
|
5042
5044
|
if (paintCustomCanvasFallback(surface.ctx, node, def, scale, renderEnv)) {
|
|
5043
5045
|
drawn++;
|