canvu-react 0.4.27 → 0.4.29
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 +22 -0
- package/dist/native.cjs.map +1 -1
- package/dist/native.js +22 -0
- package/dist/native.js.map +1 -1
- package/package.json +1 -1
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 CLOUD_TOOL_ICON_PATH = "M17.5 19H8.5a6.5 6.5 0 1 1 6.17-8.55A4.75 4.75 0 0 1 17.5 9.5a4.75 4.75 0 0 1 0 9.5Z";
|
|
3076
|
+
function NativeCloudToolIcon({
|
|
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: CLOUD_TOOL_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(NativeCloudToolIcon, { 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({
|