likec4 1.2.0 → 1.2.1-next

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.
@@ -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-DtZ0eEaw.js";
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
- return 1;
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
  }