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 +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.js
CHANGED
|
@@ -3066,6 +3066,25 @@ var DEFAULT_NATIVE_OVERFLOW_TOOL_IDS = [
|
|
|
3066
3066
|
"laser",
|
|
3067
3067
|
"image"
|
|
3068
3068
|
];
|
|
3069
|
+
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";
|
|
3070
|
+
function NativeArchitecturalCloudIcon({
|
|
3071
|
+
color,
|
|
3072
|
+
size = 19,
|
|
3073
|
+
strokeWidth = 2
|
|
3074
|
+
}) {
|
|
3075
|
+
const scale = size / 24;
|
|
3076
|
+
return /* @__PURE__ */ jsx(Canvas, { style: { width: size, height: size }, children: /* @__PURE__ */ jsx(Group, { transform: [{ scale }], children: /* @__PURE__ */ jsx(
|
|
3077
|
+
Path,
|
|
3078
|
+
{
|
|
3079
|
+
path: ARCHITECTURAL_CLOUD_ICON_PATH,
|
|
3080
|
+
color,
|
|
3081
|
+
style: "stroke",
|
|
3082
|
+
strokeWidth,
|
|
3083
|
+
strokeCap: "round",
|
|
3084
|
+
strokeJoin: "round"
|
|
3085
|
+
}
|
|
3086
|
+
) }) });
|
|
3087
|
+
}
|
|
3069
3088
|
var DEFAULT_NATIVE_VECTOR_TOOLS = [
|
|
3070
3089
|
{ id: "hand", label: "Hand", shortcutHint: "H", shortLabel: "H" },
|
|
3071
3090
|
{ id: "select", label: "Select", shortcutHint: "V", shortLabel: "V" },
|
|
@@ -3362,6 +3381,9 @@ function renderNativeToolButton(input) {
|
|
|
3362
3381
|
);
|
|
3363
3382
|
}
|
|
3364
3383
|
function renderNativeToolFallback(tool, foregroundColor, toolLabelStyle) {
|
|
3384
|
+
if (tool.id === "architectural-cloud") {
|
|
3385
|
+
return /* @__PURE__ */ jsx(NativeArchitecturalCloudIcon, { color: foregroundColor });
|
|
3386
|
+
}
|
|
3365
3387
|
return /* @__PURE__ */ jsx(Text$1, { style: [styles2.shortLabel, { color: foregroundColor }, toolLabelStyle], children: tool.shortLabel ?? tool.label.slice(0, 1).toUpperCase() });
|
|
3366
3388
|
}
|
|
3367
3389
|
var styles2 = StyleSheet.create({
|