canvu-react 0.4.28 → 0.4.30
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 +4 -4
- package/dist/native.cjs.map +1 -1
- package/dist/native.js +4 -4
- package/dist/native.js.map +1 -1
- package/dist/react.cjs +3 -2
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +6 -1
- package/dist/react.d.ts +6 -1
- package/dist/react.js +3 -2
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
package/dist/native.cjs
CHANGED
|
@@ -3072,8 +3072,8 @@ var DEFAULT_NATIVE_OVERFLOW_TOOL_IDS = [
|
|
|
3072
3072
|
"laser",
|
|
3073
3073
|
"image"
|
|
3074
3074
|
];
|
|
3075
|
-
var
|
|
3076
|
-
function
|
|
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
3077
|
color,
|
|
3078
3078
|
size = 19,
|
|
3079
3079
|
strokeWidth = 2
|
|
@@ -3082,7 +3082,7 @@ function NativeArchitecturalCloudIcon({
|
|
|
3082
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
3083
|
reactNativeSkia.Path,
|
|
3084
3084
|
{
|
|
3085
|
-
path:
|
|
3085
|
+
path: CLOUD_TOOL_ICON_PATH,
|
|
3086
3086
|
color,
|
|
3087
3087
|
style: "stroke",
|
|
3088
3088
|
strokeWidth,
|
|
@@ -3388,7 +3388,7 @@ function renderNativeToolButton(input) {
|
|
|
3388
3388
|
}
|
|
3389
3389
|
function renderNativeToolFallback(tool, foregroundColor, toolLabelStyle) {
|
|
3390
3390
|
if (tool.id === "architectural-cloud") {
|
|
3391
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3391
|
+
return /* @__PURE__ */ jsxRuntime.jsx(NativeCloudToolIcon, { color: foregroundColor });
|
|
3392
3392
|
}
|
|
3393
3393
|
return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles2.shortLabel, { color: foregroundColor }, toolLabelStyle], children: tool.shortLabel ?? tool.label.slice(0, 1).toUpperCase() });
|
|
3394
3394
|
}
|