@likec4/diagram 1.20.0 → 1.20.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.
@@ -13,7 +13,6 @@ function getNodeIntersectionFromCenterToPoint(intersectionNode, target, nodeMarg
13
13
  const nodeCenter = getNodeCenter(intersectionNode);
14
14
  const { width, height } = getNodeDimensions(intersectionNode);
15
15
  const v = new VectorImpl(target.x, target.y).sub(nodeCenter);
16
- console.log(intersectionNode);
17
16
  const xScale = (nodeMargin + (width || 0) / 2) / v.x;
18
17
  const yScale = (nodeMargin + (height || 0) / 2) / v.y;
19
18
  const scale = Math.min(Math.abs(xScale), Math.abs(yScale));
@@ -40,7 +40,6 @@ const SelectElement = ({
40
40
  setTimeout(() => {
41
41
  var _a;
42
42
  const item = (_a = viewport.current) == null ? void 0 : _a.querySelector(`[data-value="${subjectId}"]`);
43
- console.log("item", item);
44
43
  item == null ? void 0 : item.scrollIntoView({ behavior: "instant", block: "nearest" });
45
44
  }, 100);
46
45
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likec4/diagram",
3
- "version": "1.20.0",
3
+ "version": "1.20.1",
4
4
  "license": "MIT",
5
5
  "bugs": "https://github.com/likec4/likec4/issues",
6
6
  "homepage": "https://likec4.dev",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@dagrejs/dagre": "1.1.4",
42
- "@likec4/core": "1.20.0",
42
+ "@likec4/core": "1.20.1",
43
43
  "@mantine/vanilla-extract": "7.15.2",
44
44
  "@react-hookz/web": "^25.0.1",
45
45
  "@tabler/icons-react": "3.29.0",
@@ -67,7 +67,7 @@
67
67
  "react-dom": "^18.0.0 || ^19.0.0"
68
68
  },
69
69
  "devDependencies": {
70
- "@likec4/tsconfig": "1.20.0",
70
+ "@likec4/tsconfig": "1.20.1",
71
71
  "@mantine/core": "7.15.2",
72
72
  "@mantine/hooks": "7.15.2",
73
73
  "@mantine/spotlight": "7.15.2",
@@ -29,7 +29,6 @@ export function getNodeIntersectionFromCenterToPoint(
29
29
  const nodeCenter = getNodeCenter(intersectionNode)
30
30
  const { width, height } = getNodeDimensions(intersectionNode)
31
31
  const v = new VectorImpl(target.x, target.y).sub(nodeCenter)
32
- console.log(intersectionNode)
33
32
  const xScale = (nodeMargin + (width || 0) / 2) / v.x
34
33
  const yScale = (nodeMargin + (height || 0) / 2) / v.y
35
34
 
@@ -57,7 +57,6 @@ export const SelectElement = ({
57
57
  onOpen={() => {
58
58
  setTimeout(() => {
59
59
  const item = viewport.current?.querySelector(`[data-value="${subjectId}"]`)
60
- console.log('item', item)
61
60
  item?.scrollIntoView({ behavior: 'instant', block: 'nearest' })
62
61
  }, 100)
63
62
  }}