@canvas-harness/core 0.1.8 → 0.1.9
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 +2 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4988,8 +4988,7 @@ var createRenderer = (opts) => {
|
|
|
4988
4988
|
if (excludedNodes?.has(node.id)) continue;
|
|
4989
4989
|
const isEditingThis = editingNodeId === node.id;
|
|
4990
4990
|
if (isDrawablePrimitive(node.type)) {
|
|
4991
|
-
const
|
|
4992
|
-
const useRough = isSolidStroke && roughEnabled && (node.style?.roughness ?? 0) > 0;
|
|
4991
|
+
const useRough = roughEnabled && (node.style?.roughness ?? 0) > 0;
|
|
4993
4992
|
const roughReady = useRough ? getRoughCanvasCtor() !== null : false;
|
|
4994
4993
|
const composite = isCompositePrimitive(node.type);
|
|
4995
4994
|
drawWithNodeTransform(surface.ctx, node, () => {
|
|
@@ -5329,8 +5328,7 @@ var createRenderer = (opts) => {
|
|
|
5329
5328
|
return;
|
|
5330
5329
|
}
|
|
5331
5330
|
if (isDrawablePrimitive(node.type)) {
|
|
5332
|
-
const
|
|
5333
|
-
const useRough = isSolidStroke && dragRoughEnabled && (node.style?.roughness ?? 0) > 0;
|
|
5331
|
+
const useRough = dragRoughEnabled && (node.style?.roughness ?? 0) > 0;
|
|
5334
5332
|
const roughReady = useRough ? getRoughCanvasCtor() !== null : false;
|
|
5335
5333
|
if (useRough && roughReady) {
|
|
5336
5334
|
if (isCompositePrimitive(node.type)) {
|