@canvas-harness/core 0.1.14 → 0.1.16
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 +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2595,7 +2595,7 @@ var idleInteractionState = () => ({
|
|
|
2595
2595
|
});
|
|
2596
2596
|
var isMoving = (state) => {
|
|
2597
2597
|
const m = state.mode;
|
|
2598
|
-
return m === "panning" || m === "zooming" || m === "dragging" || m === "resizing" || m === "rotating";
|
|
2598
|
+
return m === "panning" || m === "zooming" || m === "dragging" || m === "resizing" || m === "rotating" || m === "marqueeing";
|
|
2599
2599
|
};
|
|
2600
2600
|
|
|
2601
2601
|
// src/store/inverse-op.ts
|
|
@@ -4344,8 +4344,10 @@ var drawAtomic = (ctx, type, w, h, style, scale, theme, opts) => {
|
|
|
4344
4344
|
if (strokeVisible && !opts?.skipStroke) {
|
|
4345
4345
|
ctx.strokeStyle = stroke;
|
|
4346
4346
|
ctx.lineWidth = Math.max(strokeWidth, 1 / scale);
|
|
4347
|
-
|
|
4347
|
+
const dash = dashPatternFor(style?.strokeStyle, strokeWidth);
|
|
4348
|
+
ctx.setLineDash(dash);
|
|
4348
4349
|
ctx.stroke();
|
|
4350
|
+
if (dash.length > 0) ctx.setLineDash([]);
|
|
4349
4351
|
}
|
|
4350
4352
|
if (needsScope) ctx.restore();
|
|
4351
4353
|
};
|
|
@@ -4903,7 +4905,7 @@ var createRenderer = (opts) => {
|
|
|
4903
4905
|
const excludedEdges = midpointEdgeId !== null ? /* @__PURE__ */ new Set([...baseExcludedEdges ?? [], midpointEdgeId]) : baseExcludedEdges;
|
|
4904
4906
|
paintBackground(surface.ctx, { viewport, zoom: camera.z, background });
|
|
4905
4907
|
const visible = visibleNodes(camera, viewport);
|
|
4906
|
-
const isMoving2 = interaction
|
|
4908
|
+
const isMoving2 = isMoving(interaction);
|
|
4907
4909
|
const minOnScreen = MIN_ON_SCREEN_SIZE_PX;
|
|
4908
4910
|
const nextOverlaySet = /* @__PURE__ */ new Set();
|
|
4909
4911
|
let drawn = 0;
|