likec4 1.2.0 → 1.2.1
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/__app__/src/lib/webcomponent.mjs +1275 -1896
- package/dist/__app__/src/{main-DtZ0eEaw.js → main-yVRq2dIl.js} +1281 -1905
- package/dist/__app__/src/main.js +1 -1
- package/dist/__app__/src/{view._viewId.d2.lazy-C8c-Acn5.js → view._viewId.d2.lazy-CaQPy48H.js} +2 -2
- package/dist/__app__/src/{view._viewId.dot.lazy-BpvEbzHq.js → view._viewId.dot.lazy-6H3L1GpV.js} +2 -2
- package/dist/__app__/src/{view._viewId.mmd.lazy-Bq7RWCKh.js → view._viewId.mmd.lazy-By6xPESQ.js} +2 -2
- package/dist/__app__/src/{view._viewId.react-legacy.lazy-D-bQPgIi.js → view._viewId.react-legacy.lazy-Cxs6F284.js} +901 -1299
- package/dist/__app__/src/{view_viewId_.css-BFbcQw78.js → view_viewId_.css-LQsQcFpp.js} +5 -9
- package/dist/cli/index.mjs +11 -11
- package/package.json +22 -16
- package/react/LikeC4Browser.d.ts +0 -1
- package/react/LikeC4ViewElement.d.ts +0 -1
- package/react/index.mjs +164 -295
- package/react/styles.d.ts +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as React, j as jsxRuntimeExports, B as Box, t as CopyButton$1, T as Tooltip, A as ActionIcon, I as IconCheck, v as rem, w as IconCopy } from "./main-
|
|
1
|
+
import { q as React, j as jsxRuntimeExports, B as Box, t as CopyButton$1, T as Tooltip, A as ActionIcon, I as IconCheck, v as rem, w as IconCopy } from "./main-yVRq2dIl.js";
|
|
2
2
|
const {
|
|
3
3
|
createElement,
|
|
4
4
|
createContext,
|
|
@@ -194,8 +194,7 @@ function intersects(rectOne, rectTwo, strict) {
|
|
|
194
194
|
return strict ? rectOne.x < rectTwo.x + rectTwo.width && rectOne.x + rectOne.width > rectTwo.x && rectOne.y < rectTwo.y + rectTwo.height && rectOne.y + rectOne.height > rectTwo.y : rectOne.x <= rectTwo.x + rectTwo.width && rectOne.x + rectOne.width >= rectTwo.x && rectOne.y <= rectTwo.y + rectTwo.height && rectOne.y + rectOne.height >= rectTwo.y;
|
|
195
195
|
}
|
|
196
196
|
function compare(a, b) {
|
|
197
|
-
if (a === b)
|
|
198
|
-
throw new Error("Cannot compare node with itself");
|
|
197
|
+
if (a === b) throw new Error("Cannot compare node with itself");
|
|
199
198
|
const ancestors = {
|
|
200
199
|
a: get_ancestors(a),
|
|
201
200
|
b: get_ancestors(b)
|
|
@@ -216,10 +215,8 @@ function compare(a, b) {
|
|
|
216
215
|
let i = children.length;
|
|
217
216
|
for (; i--; ) {
|
|
218
217
|
const child = children[i];
|
|
219
|
-
if (child === furthest_ancestors.a)
|
|
220
|
-
|
|
221
|
-
if (child === furthest_ancestors.b)
|
|
222
|
-
return -1;
|
|
218
|
+
if (child === furthest_ancestors.a) return 1;
|
|
219
|
+
if (child === furthest_ancestors.b) return -1;
|
|
223
220
|
}
|
|
224
221
|
}
|
|
225
222
|
return Math.sign(z_indexes.a - z_indexes.b);
|
|
@@ -238,8 +235,7 @@ function find_stacking_context(nodes) {
|
|
|
238
235
|
let i = nodes.length;
|
|
239
236
|
for (; i--; ) {
|
|
240
237
|
const node = nodes[i];
|
|
241
|
-
if (assert(node, "Missing node"), creates_stacking_context(node))
|
|
242
|
-
return node;
|
|
238
|
+
if (assert(node, "Missing node"), creates_stacking_context(node)) return node;
|
|
243
239
|
}
|
|
244
240
|
return null;
|
|
245
241
|
}
|