@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.
- package/dist/es/components/Scope.d.ts +2 -2
- package/dist/es/components/Scope.js +8 -6
- package/dist/es/components/TikZ.js +2 -2
- package/dist/es/components/draw/Draw.d.ts +11 -3
- package/dist/es/components/draw/Draw.js +31 -6
- package/dist/es/components/draw/InnerDraw.d.ts +7 -3
- package/dist/es/components/draw/InnerDraw.js +25 -20
- package/dist/es/components/draw/arrow/circle.d.ts +7 -0
- package/dist/es/components/draw/arrow/circle.js +20 -0
- package/dist/es/components/draw/arrow/index.d.ts +1 -1
- package/dist/es/components/draw/arrow/index.js +3 -0
- package/dist/es/components/draw/common.js +1 -1
- package/dist/es/components/draw/index.js +4 -0
- package/dist/es/components/draw/segment/Segment.js +5 -5
- package/dist/es/components/draw/segment/index.d.ts +0 -4
- package/dist/es/components/draw/segment/index.js +4 -4
- package/dist/es/components/draw/segment/useArrow.js +2 -2
- package/dist/es/components/draw/segment/useConvertWay.d.ts +1 -1
- package/dist/es/components/draw/segment/useConvertWay.js +28 -13
- package/dist/es/components/draw/types.d.ts +1 -1
- package/dist/es/components/node/InnerNode.d.ts +2 -2
- package/dist/es/components/node/InnerNode.js +6 -6
- package/dist/es/components/node/Node.d.ts +42 -3
- package/dist/es/components/node/Node.js +7 -6
- package/dist/es/components/node/_hooks/useNodeConfig.d.ts +1 -1
- package/dist/es/components/node/_hooks/useNodeContent.js +6 -3
- package/dist/es/components/node/_hooks/useNodeShape.js +2 -2
- package/dist/es/components/{pathNode → path-node}/PathNode.d.ts +11 -2
- package/dist/es/components/{pathNode → path-node}/PathNode.js +6 -6
- package/dist/es/container/Group.d.ts +2 -2
- package/dist/es/container/Group.js +5 -4
- package/dist/es/container/Surface.d.ts +4 -2
- package/dist/es/container/Surface.js +7 -7
- package/dist/es/elements/Path.d.ts +2 -2
- package/dist/es/elements/Path.js +5 -4
- package/dist/es/elements/Rect.d.ts +3 -5
- package/dist/es/elements/Rect.js +6 -5
- package/dist/es/elements/Text.d.ts +2 -3
- package/dist/es/elements/Text.js +7 -7
- package/dist/es/hooks/useForceUpdate.d.ts +1 -1
- package/dist/es/index.d.ts +4 -4
- package/dist/es/index.js +1 -1
- package/dist/es/model/equation/line.js +1 -0
- package/dist/es/test.d.ts +1 -0
- package/dist/es/types/svg/stroke.d.ts +2 -2
- package/dist/es/utils/style/stroke.d.ts +4 -3
- package/dist/es/utils/style/stroke.js +4 -2
- package/dist/lib/components/Scope.cjs +7 -5
- package/dist/lib/components/Scope.d.ts +2 -2
- package/dist/lib/components/TikZ.cjs +2 -2
- package/dist/lib/components/draw/Draw.cjs +31 -6
- package/dist/lib/components/draw/Draw.d.ts +11 -3
- package/dist/lib/components/draw/InnerDraw.cjs +26 -21
- package/dist/lib/components/draw/InnerDraw.d.ts +7 -3
- package/dist/lib/components/draw/arrow/circle.cjs +20 -0
- package/dist/lib/components/draw/arrow/circle.d.ts +7 -0
- package/dist/lib/components/draw/arrow/index.cjs +3 -0
- package/dist/lib/components/draw/arrow/index.d.ts +1 -1
- package/dist/lib/components/draw/common.cjs +1 -1
- package/dist/lib/components/draw/index.cjs +4 -0
- package/dist/lib/components/draw/segment/Segment.cjs +7 -7
- package/dist/lib/components/draw/segment/index.cjs +6 -6
- package/dist/lib/components/draw/segment/index.d.ts +0 -4
- package/dist/lib/components/draw/segment/useArrow.cjs +4 -4
- package/dist/lib/components/draw/segment/useConvertWay.cjs +32 -17
- package/dist/lib/components/draw/segment/useConvertWay.d.ts +1 -1
- package/dist/lib/components/draw/types.d.ts +1 -1
- package/dist/lib/components/node/InnerNode.cjs +15 -15
- package/dist/lib/components/node/InnerNode.d.ts +2 -2
- package/dist/lib/components/node/Node.cjs +12 -11
- package/dist/lib/components/node/Node.d.ts +42 -3
- package/dist/lib/components/node/_hooks/useNodeConfig.cjs +2 -2
- package/dist/lib/components/node/_hooks/useNodeConfig.d.ts +1 -1
- package/dist/lib/components/node/_hooks/useNodeContent.cjs +9 -6
- package/dist/lib/components/node/_hooks/useNodeShape.cjs +4 -4
- package/dist/lib/components/{pathNode → path-node}/PathNode.cjs +12 -12
- package/dist/lib/components/{pathNode → path-node}/PathNode.d.ts +11 -2
- package/dist/lib/components/{pathNode → path-node}/useAnchor.cjs +4 -4
- package/dist/lib/container/Group.cjs +5 -4
- package/dist/lib/container/Group.d.ts +2 -2
- package/dist/lib/container/Surface.cjs +8 -8
- package/dist/lib/container/Surface.d.ts +4 -2
- package/dist/lib/elements/Path.cjs +5 -4
- package/dist/lib/elements/Path.d.ts +2 -2
- package/dist/lib/elements/Rect.cjs +6 -5
- package/dist/lib/elements/Rect.d.ts +3 -5
- package/dist/lib/elements/Text.cjs +8 -8
- package/dist/lib/elements/Text.d.ts +2 -3
- package/dist/lib/hooks/context/useCalculate.cjs +3 -3
- package/dist/lib/hooks/context/useNodes.cjs +3 -3
- package/dist/lib/hooks/context/usePath.cjs +3 -3
- package/dist/lib/hooks/context/useScope.cjs +3 -3
- package/dist/lib/hooks/useForceUpdate.cjs +2 -2
- package/dist/lib/hooks/useForceUpdate.d.ts +1 -1
- package/dist/lib/index.cjs +1 -1
- package/dist/lib/index.d.ts +4 -4
- package/dist/lib/model/equation/line.cjs +1 -0
- package/dist/lib/test.d.ts +1 -0
- package/dist/lib/types/svg/stroke.d.ts +2 -2
- package/dist/lib/utils/style/stroke.cjs +4 -2
- package/dist/lib/utils/style/stroke.d.ts +4 -3
- package/package.json +16 -15
- package/dist/es/_virtual/jsx-runtime.js +0 -5
- package/dist/es/_virtual/jsx-runtime2.js +0 -4
- package/dist/es/_virtual/react-jsx-runtime.development.js +0 -4
- package/dist/es/_virtual/react-jsx-runtime.production.js +0 -4
- package/dist/es/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.development.js +0 -20
- package/dist/es/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.production.js +0 -41
- package/dist/es/node_modules/.pnpm/react@19.0.0/node_modules/react/jsx-runtime.js +0 -17
- package/dist/lib/_virtual/jsx-runtime.cjs +0 -5
- package/dist/lib/_virtual/jsx-runtime2.cjs +0 -4
- package/dist/lib/_virtual/react-jsx-runtime.development.cjs +0 -4
- package/dist/lib/_virtual/react-jsx-runtime.production.cjs +0 -4
- package/dist/lib/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.development.cjs +0 -20
- package/dist/lib/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.production.cjs +0 -41
- package/dist/lib/node_modules/.pnpm/react@19.0.0/node_modules/react/jsx-runtime.cjs +0 -17
- /package/dist/es/components/{pathNode → path-node}/index.d.ts +0 -0
- /package/dist/es/components/{pathNode → path-node}/index.js +0 -0
- /package/dist/es/components/{pathNode → path-node}/useAnchor.d.ts +0 -0
- /package/dist/es/components/{pathNode → path-node}/useAnchor.js +0 -0
- /package/dist/lib/components/{pathNode → path-node}/index.cjs +0 -0
- /package/dist/lib/components/{pathNode → path-node}/index.d.ts +0 -0
- /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,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;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|