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.js CHANGED
@@ -1666,11 +1666,7 @@ function VectorSelectionInspector({
1666
1666
  ...activeToolStyle.strokeOpacity != null ? { strokeOpacity: activeToolStyle.strokeOpacity } : {}
1667
1667
  })
1668
1668
  }
1669
- ),
1670
- /* @__PURE__ */ jsxs("span", { style: { fontWeight: 500, color: "#71717a" }, children: [
1671
- strokeWidth2,
1672
- "px"
1673
- ] })
1669
+ )
1674
1670
  ] }),
1675
1671
  showMarkerOpacity2 && /* @__PURE__ */ jsxs("label", { style: labelStyle, children: [
1676
1672
  "Opacidade (marcador)",
@@ -1776,11 +1772,7 @@ function VectorSelectionInspector({
1776
1772
  strokeWidth: Number(e.target.value)
1777
1773
  })
1778
1774
  }
1779
- ),
1780
- /* @__PURE__ */ jsxs("span", { style: { fontWeight: 500, color: "#71717a" }, children: [
1781
- strokeWidth,
1782
- "px"
1783
- ] })
1775
+ )
1784
1776
  ] }),
1785
1777
  showMarkerOpacity && firstMarker && /* @__PURE__ */ jsxs("label", { style: labelStyle, children: [
1786
1778
  "Opacidade (marcador)",
@@ -7681,10 +7673,10 @@ var VectorViewport = forwardRef(
7681
7673
  return;
7682
7674
  }
7683
7675
  if (!e.shiftKey && cur.length > 0) {
7684
- const selectedArrowOrLine = cur.map((id) => resolved.find((it) => it.id === id)).filter(
7685
- (it) => it != null && !it.locked && (it.toolKind === "line" || it.toolKind === "arrow")
7676
+ const selectedUnlockedItems = cur.map((id) => resolved.find((it) => it.id === id)).filter(
7677
+ (it) => it != null && !it.locked
7686
7678
  );
7687
- if (selectedArrowOrLine.some(
7679
+ if (selectedUnlockedItems.some(
7688
7680
  (it) => pointInSelectedItemBounds(it, worldX, worldY)
7689
7681
  )) {
7690
7682
  const snapshots = {};