@retikz/core 0.0.1-rc.0 → 0.0.1-rc.2

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.
Files changed (123) hide show
  1. package/dist/es/components/Scope.d.ts +2 -2
  2. package/dist/es/components/Scope.js +8 -6
  3. package/dist/es/components/TikZ.js +2 -2
  4. package/dist/es/components/draw/Draw.d.ts +11 -3
  5. package/dist/es/components/draw/Draw.js +31 -6
  6. package/dist/es/components/draw/InnerDraw.d.ts +7 -3
  7. package/dist/es/components/draw/InnerDraw.js +25 -20
  8. package/dist/es/components/draw/arrow/circle.d.ts +7 -0
  9. package/dist/es/components/draw/arrow/circle.js +20 -0
  10. package/dist/es/components/draw/arrow/index.d.ts +1 -1
  11. package/dist/es/components/draw/arrow/index.js +3 -0
  12. package/dist/es/components/draw/common.js +1 -1
  13. package/dist/es/components/draw/index.js +4 -0
  14. package/dist/es/components/draw/segment/Segment.js +5 -5
  15. package/dist/es/components/draw/segment/index.d.ts +0 -4
  16. package/dist/es/components/draw/segment/index.js +4 -4
  17. package/dist/es/components/draw/segment/useArrow.js +2 -2
  18. package/dist/es/components/draw/segment/useConvertWay.d.ts +1 -1
  19. package/dist/es/components/draw/segment/useConvertWay.js +28 -13
  20. package/dist/es/components/draw/types.d.ts +1 -1
  21. package/dist/es/components/node/InnerNode.d.ts +2 -2
  22. package/dist/es/components/node/InnerNode.js +6 -6
  23. package/dist/es/components/node/Node.d.ts +42 -3
  24. package/dist/es/components/node/Node.js +7 -6
  25. package/dist/es/components/node/_hooks/useNodeConfig.d.ts +1 -1
  26. package/dist/es/components/node/_hooks/useNodeContent.js +6 -3
  27. package/dist/es/components/node/_hooks/useNodeShape.js +2 -2
  28. package/dist/es/components/{pathNode → path-node}/PathNode.d.ts +11 -2
  29. package/dist/es/components/{pathNode → path-node}/PathNode.js +6 -6
  30. package/dist/es/container/Group.d.ts +2 -2
  31. package/dist/es/container/Group.js +5 -4
  32. package/dist/es/container/Surface.d.ts +4 -2
  33. package/dist/es/container/Surface.js +7 -7
  34. package/dist/es/elements/Path.d.ts +2 -2
  35. package/dist/es/elements/Path.js +5 -4
  36. package/dist/es/elements/Rect.d.ts +3 -5
  37. package/dist/es/elements/Rect.js +6 -5
  38. package/dist/es/elements/Text.d.ts +2 -3
  39. package/dist/es/elements/Text.js +7 -7
  40. package/dist/es/hooks/useForceUpdate.d.ts +1 -1
  41. package/dist/es/index.d.ts +4 -4
  42. package/dist/es/index.js +1 -1
  43. package/dist/es/model/equation/line.js +1 -0
  44. package/dist/es/test.d.ts +1 -0
  45. package/dist/es/types/svg/stroke.d.ts +2 -2
  46. package/dist/es/utils/style/stroke.d.ts +4 -3
  47. package/dist/es/utils/style/stroke.js +4 -2
  48. package/dist/lib/components/Scope.cjs +7 -5
  49. package/dist/lib/components/Scope.d.ts +2 -2
  50. package/dist/lib/components/TikZ.cjs +2 -2
  51. package/dist/lib/components/draw/Draw.cjs +31 -6
  52. package/dist/lib/components/draw/Draw.d.ts +11 -3
  53. package/dist/lib/components/draw/InnerDraw.cjs +26 -21
  54. package/dist/lib/components/draw/InnerDraw.d.ts +7 -3
  55. package/dist/lib/components/draw/arrow/circle.cjs +20 -0
  56. package/dist/lib/components/draw/arrow/circle.d.ts +7 -0
  57. package/dist/lib/components/draw/arrow/index.cjs +3 -0
  58. package/dist/lib/components/draw/arrow/index.d.ts +1 -1
  59. package/dist/lib/components/draw/common.cjs +1 -1
  60. package/dist/lib/components/draw/index.cjs +4 -0
  61. package/dist/lib/components/draw/segment/Segment.cjs +7 -7
  62. package/dist/lib/components/draw/segment/index.cjs +6 -6
  63. package/dist/lib/components/draw/segment/index.d.ts +0 -4
  64. package/dist/lib/components/draw/segment/useArrow.cjs +4 -4
  65. package/dist/lib/components/draw/segment/useConvertWay.cjs +32 -17
  66. package/dist/lib/components/draw/segment/useConvertWay.d.ts +1 -1
  67. package/dist/lib/components/draw/types.d.ts +1 -1
  68. package/dist/lib/components/node/InnerNode.cjs +15 -15
  69. package/dist/lib/components/node/InnerNode.d.ts +2 -2
  70. package/dist/lib/components/node/Node.cjs +12 -11
  71. package/dist/lib/components/node/Node.d.ts +42 -3
  72. package/dist/lib/components/node/_hooks/useNodeConfig.cjs +2 -2
  73. package/dist/lib/components/node/_hooks/useNodeConfig.d.ts +1 -1
  74. package/dist/lib/components/node/_hooks/useNodeContent.cjs +9 -6
  75. package/dist/lib/components/node/_hooks/useNodeShape.cjs +4 -4
  76. package/dist/lib/components/{pathNode → path-node}/PathNode.cjs +12 -12
  77. package/dist/lib/components/{pathNode → path-node}/PathNode.d.ts +11 -2
  78. package/dist/lib/components/{pathNode → path-node}/useAnchor.cjs +4 -4
  79. package/dist/lib/container/Group.cjs +5 -4
  80. package/dist/lib/container/Group.d.ts +2 -2
  81. package/dist/lib/container/Surface.cjs +8 -8
  82. package/dist/lib/container/Surface.d.ts +4 -2
  83. package/dist/lib/elements/Path.cjs +5 -4
  84. package/dist/lib/elements/Path.d.ts +2 -2
  85. package/dist/lib/elements/Rect.cjs +6 -5
  86. package/dist/lib/elements/Rect.d.ts +3 -5
  87. package/dist/lib/elements/Text.cjs +8 -8
  88. package/dist/lib/elements/Text.d.ts +2 -3
  89. package/dist/lib/hooks/context/useCalculate.cjs +3 -3
  90. package/dist/lib/hooks/context/useNodes.cjs +3 -3
  91. package/dist/lib/hooks/context/usePath.cjs +3 -3
  92. package/dist/lib/hooks/context/useScope.cjs +3 -3
  93. package/dist/lib/hooks/useForceUpdate.cjs +2 -2
  94. package/dist/lib/hooks/useForceUpdate.d.ts +1 -1
  95. package/dist/lib/index.cjs +1 -1
  96. package/dist/lib/index.d.ts +4 -4
  97. package/dist/lib/model/equation/line.cjs +1 -0
  98. package/dist/lib/test.d.ts +1 -0
  99. package/dist/lib/types/svg/stroke.d.ts +2 -2
  100. package/dist/lib/utils/style/stroke.cjs +4 -2
  101. package/dist/lib/utils/style/stroke.d.ts +4 -3
  102. package/package.json +16 -15
  103. package/dist/es/_virtual/jsx-runtime.js +0 -5
  104. package/dist/es/_virtual/jsx-runtime2.js +0 -4
  105. package/dist/es/_virtual/react-jsx-runtime.development.js +0 -4
  106. package/dist/es/_virtual/react-jsx-runtime.production.js +0 -4
  107. package/dist/es/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.development.js +0 -20
  108. package/dist/es/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.production.js +0 -41
  109. package/dist/es/node_modules/.pnpm/react@19.0.0/node_modules/react/jsx-runtime.js +0 -17
  110. package/dist/lib/_virtual/jsx-runtime.cjs +0 -5
  111. package/dist/lib/_virtual/jsx-runtime2.cjs +0 -4
  112. package/dist/lib/_virtual/react-jsx-runtime.development.cjs +0 -4
  113. package/dist/lib/_virtual/react-jsx-runtime.production.cjs +0 -4
  114. package/dist/lib/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.development.cjs +0 -20
  115. package/dist/lib/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.production.cjs +0 -41
  116. package/dist/lib/node_modules/.pnpm/react@19.0.0/node_modules/react/jsx-runtime.cjs +0 -17
  117. /package/dist/es/components/{pathNode → path-node}/index.d.ts +0 -0
  118. /package/dist/es/components/{pathNode → path-node}/index.js +0 -0
  119. /package/dist/es/components/{pathNode → path-node}/useAnchor.d.ts +0 -0
  120. /package/dist/es/components/{pathNode → path-node}/useAnchor.js +0 -0
  121. /package/dist/lib/components/{pathNode → path-node}/index.cjs +0 -0
  122. /package/dist/lib/components/{pathNode → path-node}/index.d.ts +0 -0
  123. /package/dist/lib/components/{pathNode → path-node}/useAnchor.d.ts +0 -0
@@ -1,17 +0,0 @@
1
- import { __module as jsxRuntime } from "../../../../../_virtual/jsx-runtime2.js";
2
- import { __require as requireReactJsxRuntime_production } from "./cjs/react-jsx-runtime.production.js";
3
- import { __require as requireReactJsxRuntime_development } from "./cjs/react-jsx-runtime.development.js";
4
- var hasRequiredJsxRuntime;
5
- function requireJsxRuntime() {
6
- if (hasRequiredJsxRuntime) return jsxRuntime.exports;
7
- hasRequiredJsxRuntime = 1;
8
- if (true) {
9
- jsxRuntime.exports = requireReactJsxRuntime_production();
10
- } else {
11
- jsxRuntime.exports = requireReactJsxRuntime_development();
12
- }
13
- return jsxRuntime.exports;
14
- }
15
- export {
16
- requireJsxRuntime as __require
17
- };
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("../node_modules/.pnpm/react@19.0.0/node_modules/react/jsx-runtime.cjs");
4
- var jsxRuntimeExports = jsxRuntime.__require();
5
- exports.jsxRuntimeExports = jsxRuntimeExports;
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var jsxRuntime = { exports: {} };
4
- exports.__module = jsxRuntime;
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var reactJsxRuntime_development = {};
4
- exports.__exports = reactJsxRuntime_development;
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var reactJsxRuntime_production = {};
4
- exports.__exports = reactJsxRuntime_production;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const reactJsxRuntime_development = require("../../../../../../_virtual/react-jsx-runtime.development.cjs");
4
- const require$$0 = require("react");
5
- /**
6
- * @license React
7
- * react-jsx-runtime.development.js
8
- *
9
- * Copyright (c) Meta Platforms, Inc. and affiliates.
10
- *
11
- * This source code is licensed under the MIT license found in the
12
- * LICENSE file in the root directory of this source tree.
13
- */
14
- var hasRequiredReactJsxRuntime_development;
15
- function requireReactJsxRuntime_development() {
16
- if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development.__exports;
17
- hasRequiredReactJsxRuntime_development = 1;
18
- return reactJsxRuntime_development.__exports;
19
- }
20
- exports.__require = requireReactJsxRuntime_development;
@@ -1,41 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const reactJsxRuntime_production = require("../../../../../../_virtual/react-jsx-runtime.production.cjs");
4
- /**
5
- * @license React
6
- * react-jsx-runtime.production.js
7
- *
8
- * Copyright (c) Meta Platforms, Inc. and affiliates.
9
- *
10
- * This source code is licensed under the MIT license found in the
11
- * LICENSE file in the root directory of this source tree.
12
- */
13
- var hasRequiredReactJsxRuntime_production;
14
- function requireReactJsxRuntime_production() {
15
- if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production.__exports;
16
- hasRequiredReactJsxRuntime_production = 1;
17
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
18
- function jsxProd(type, config, maybeKey) {
19
- var key = null;
20
- void 0 !== maybeKey && (key = "" + maybeKey);
21
- void 0 !== config.key && (key = "" + config.key);
22
- if ("key" in config) {
23
- maybeKey = {};
24
- for (var propName in config)
25
- "key" !== propName && (maybeKey[propName] = config[propName]);
26
- } else maybeKey = config;
27
- config = maybeKey.ref;
28
- return {
29
- $$typeof: REACT_ELEMENT_TYPE,
30
- type,
31
- key,
32
- ref: void 0 !== config ? config : null,
33
- props: maybeKey
34
- };
35
- }
36
- reactJsxRuntime_production.__exports.Fragment = REACT_FRAGMENT_TYPE;
37
- reactJsxRuntime_production.__exports.jsx = jsxProd;
38
- reactJsxRuntime_production.__exports.jsxs = jsxProd;
39
- return reactJsxRuntime_production.__exports;
40
- }
41
- exports.__require = requireReactJsxRuntime_production;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("../../../../../_virtual/jsx-runtime2.cjs");
4
- const reactJsxRuntime_production = require("./cjs/react-jsx-runtime.production.cjs");
5
- const reactJsxRuntime_development = require("./cjs/react-jsx-runtime.development.cjs");
6
- var hasRequiredJsxRuntime;
7
- function requireJsxRuntime() {
8
- if (hasRequiredJsxRuntime) return jsxRuntime.__module.exports;
9
- hasRequiredJsxRuntime = 1;
10
- if (true) {
11
- jsxRuntime.__module.exports = reactJsxRuntime_production.__require();
12
- } else {
13
- jsxRuntime.__module.exports = reactJsxRuntime_development.__require();
14
- }
15
- return jsxRuntime.__module.exports;
16
- }
17
- exports.__require = requireJsxRuntime;