canvu-react 0.3.16 → 0.3.17

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/react.cjs CHANGED
@@ -1673,11 +1673,7 @@ function VectorSelectionInspector({
1673
1673
  ...activeToolStyle.strokeOpacity != null ? { strokeOpacity: activeToolStyle.strokeOpacity } : {}
1674
1674
  })
1675
1675
  }
1676
- ),
1677
- /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { fontWeight: 500, color: "#71717a" }, children: [
1678
- strokeWidth2,
1679
- "px"
1680
- ] })
1676
+ )
1681
1677
  ] }),
1682
1678
  showMarkerOpacity2 && /* @__PURE__ */ jsxRuntime.jsxs("label", { style: labelStyle, children: [
1683
1679
  "Opacidade (marcador)",
@@ -1783,11 +1779,7 @@ function VectorSelectionInspector({
1783
1779
  strokeWidth: Number(e.target.value)
1784
1780
  })
1785
1781
  }
1786
- ),
1787
- /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { fontWeight: 500, color: "#71717a" }, children: [
1788
- strokeWidth,
1789
- "px"
1790
- ] })
1782
+ )
1791
1783
  ] }),
1792
1784
  showMarkerOpacity && firstMarker && /* @__PURE__ */ jsxRuntime.jsxs("label", { style: labelStyle, children: [
1793
1785
  "Opacidade (marcador)",
@@ -7688,10 +7680,10 @@ var VectorViewport = react.forwardRef(
7688
7680
  return;
7689
7681
  }
7690
7682
  if (!e.shiftKey && cur.length > 0) {
7691
- const selectedArrowOrLine = cur.map((id) => resolved.find((it) => it.id === id)).filter(
7692
- (it) => it != null && !it.locked && (it.toolKind === "line" || it.toolKind === "arrow")
7683
+ const selectedUnlockedItems = cur.map((id) => resolved.find((it) => it.id === id)).filter(
7684
+ (it) => it != null && !it.locked
7693
7685
  );
7694
- if (selectedArrowOrLine.some(
7686
+ if (selectedUnlockedItems.some(
7695
7687
  (it) => pointInSelectedItemBounds(it, worldX, worldY)
7696
7688
  )) {
7697
7689
  const snapshots = {};