canvu-react 0.4.27 → 0.4.28

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/native.cjs CHANGED
@@ -3072,6 +3072,25 @@ var DEFAULT_NATIVE_OVERFLOW_TOOL_IDS = [
3072
3072
  "laser",
3073
3073
  "image"
3074
3074
  ];
3075
+ var ARCHITECTURAL_CLOUD_ICON_PATH = "M1.5 12 A 4.94 5.23 0 0 1 9.07 6 A 4.94 5.23 0 0 1 14.93 6 A 4.94 5.23 0 0 1 22.5 12 A 4.94 5.23 0 0 1 14.93 18 A 4.94 5.23 0 0 1 9.07 18 A 4.94 5.23 0 0 1 1.5 12 Z";
3076
+ function NativeArchitecturalCloudIcon({
3077
+ color,
3078
+ size = 19,
3079
+ strokeWidth = 2
3080
+ }) {
3081
+ const scale = size / 24;
3082
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNativeSkia.Canvas, { style: { width: size, height: size }, children: /* @__PURE__ */ jsxRuntime.jsx(reactNativeSkia.Group, { transform: [{ scale }], children: /* @__PURE__ */ jsxRuntime.jsx(
3083
+ reactNativeSkia.Path,
3084
+ {
3085
+ path: ARCHITECTURAL_CLOUD_ICON_PATH,
3086
+ color,
3087
+ style: "stroke",
3088
+ strokeWidth,
3089
+ strokeCap: "round",
3090
+ strokeJoin: "round"
3091
+ }
3092
+ ) }) });
3093
+ }
3075
3094
  var DEFAULT_NATIVE_VECTOR_TOOLS = [
3076
3095
  { id: "hand", label: "Hand", shortcutHint: "H", shortLabel: "H" },
3077
3096
  { id: "select", label: "Select", shortcutHint: "V", shortLabel: "V" },
@@ -3368,6 +3387,9 @@ function renderNativeToolButton(input) {
3368
3387
  );
3369
3388
  }
3370
3389
  function renderNativeToolFallback(tool, foregroundColor, toolLabelStyle) {
3390
+ if (tool.id === "architectural-cloud") {
3391
+ return /* @__PURE__ */ jsxRuntime.jsx(NativeArchitecturalCloudIcon, { color: foregroundColor });
3392
+ }
3371
3393
  return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles2.shortLabel, { color: foregroundColor }, toolLabelStyle], children: tool.shortLabel ?? tool.label.slice(0, 1).toUpperCase() });
3372
3394
  }
3373
3395
  var styles2 = reactNative.StyleSheet.create({