@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 CHANGED
@@ -4990,8 +4990,7 @@ var createRenderer = (opts) => {
4990
4990
  if (excludedNodes?.has(node.id)) continue;
4991
4991
  const isEditingThis = editingNodeId === node.id;
4992
4992
  if (isDrawablePrimitive(node.type)) {
4993
- const isSolidStroke = (node.style?.strokeStyle ?? "solid") === "solid";
4994
- const useRough = isSolidStroke && roughEnabled && (node.style?.roughness ?? 0) > 0;
4993
+ const useRough = roughEnabled && (node.style?.roughness ?? 0) > 0;
4995
4994
  const roughReady = useRough ? getRoughCanvasCtor() !== null : false;
4996
4995
  const composite = isCompositePrimitive(node.type);
4997
4996
  drawWithNodeTransform(surface.ctx, node, () => {
@@ -5331,8 +5330,7 @@ var createRenderer = (opts) => {
5331
5330
  return;
5332
5331
  }
5333
5332
  if (isDrawablePrimitive(node.type)) {
5334
- const isSolidStroke = (node.style?.strokeStyle ?? "solid") === "solid";
5335
- const useRough = isSolidStroke && dragRoughEnabled && (node.style?.roughness ?? 0) > 0;
5333
+ const useRough = dragRoughEnabled && (node.style?.roughness ?? 0) > 0;
5336
5334
  const roughReady = useRough ? getRoughCanvasCtor() !== null : false;
5337
5335
  if (useRough && roughReady) {
5338
5336
  if (isCompositePrimitive(node.type)) {