@pie-lib/tools 2.0.2 → 2.0.3-next.0
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/_virtual/_rolldown/runtime.js +11 -0
- package/dist/anchor-utils.d.ts +60 -0
- package/dist/anchor-utils.js +87 -0
- package/dist/anchor.d.ts +13 -0
- package/dist/anchor.js +17 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +5 -0
- package/dist/node_modules/.bun/assert@1.5.1/node_modules/assert/assert.js +174 -0
- package/dist/node_modules/.bun/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js +13 -0
- package/dist/node_modules/.bun/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js +8 -0
- package/dist/node_modules/.bun/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js +8 -0
- package/dist/node_modules/.bun/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js +16 -0
- package/dist/node_modules/.bun/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js +8 -0
- package/dist/node_modules/.bun/call-bound@1.0.4/node_modules/call-bound/index.js +14 -0
- package/dist/node_modules/.bun/degrees-radians@1.0.3/node_modules/degrees-radians/index.js +12 -0
- package/dist/node_modules/.bun/dunder-proto@1.0.1/node_modules/dunder-proto/get.js +19 -0
- package/dist/node_modules/.bun/es-define-property@1.0.1/node_modules/es-define-property/index.js +14 -0
- package/dist/node_modules/.bun/es-errors@1.3.0/node_modules/es-errors/eval.js +8 -0
- package/dist/node_modules/.bun/es-errors@1.3.0/node_modules/es-errors/index.js +8 -0
- package/dist/node_modules/.bun/es-errors@1.3.0/node_modules/es-errors/range.js +8 -0
- package/dist/node_modules/.bun/es-errors@1.3.0/node_modules/es-errors/ref.js +8 -0
- package/dist/node_modules/.bun/es-errors@1.3.0/node_modules/es-errors/syntax.js +8 -0
- package/dist/node_modules/.bun/es-errors@1.3.0/node_modules/es-errors/type.js +8 -0
- package/dist/node_modules/.bun/es-errors@1.3.0/node_modules/es-errors/uri.js +8 -0
- package/dist/node_modules/.bun/es-object-atoms@1.1.2/node_modules/es-object-atoms/index.js +8 -0
- package/dist/node_modules/.bun/function-bind@1.1.2/node_modules/function-bind/implementation.js +34 -0
- package/dist/node_modules/.bun/function-bind@1.1.2/node_modules/function-bind/index.js +10 -0
- package/dist/node_modules/.bun/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js +283 -0
- package/dist/node_modules/.bun/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js +9 -0
- package/dist/node_modules/.bun/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js +8 -0
- package/dist/node_modules/.bun/get-proto@1.0.1/node_modules/get-proto/index.js +19 -0
- package/dist/node_modules/.bun/gopd@1.2.0/node_modules/gopd/gOPD.js +8 -0
- package/dist/node_modules/.bun/gopd@1.2.0/node_modules/gopd/index.js +15 -0
- package/dist/node_modules/.bun/has-symbols@1.1.0/node_modules/has-symbols/index.js +12 -0
- package/dist/node_modules/.bun/has-symbols@1.1.0/node_modules/has-symbols/shams.js +23 -0
- package/dist/node_modules/.bun/hasown@2.0.4/node_modules/hasown/index.js +10 -0
- package/dist/node_modules/.bun/inherits@2.0.3/node_modules/inherits/inherits_browser.js +19 -0
- package/dist/node_modules/.bun/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js +8 -0
- package/dist/node_modules/.bun/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js +8 -0
- package/dist/node_modules/.bun/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js +10 -0
- package/dist/node_modules/.bun/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js +8 -0
- package/dist/node_modules/.bun/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js +8 -0
- package/dist/node_modules/.bun/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js +8 -0
- package/dist/node_modules/.bun/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js +8 -0
- package/dist/node_modules/.bun/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js +12 -0
- package/dist/node_modules/.bun/object-keys@1.1.1/node_modules/object-keys/implementation.js +77 -0
- package/dist/node_modules/.bun/object-keys@1.1.1/node_modules/object-keys/index.js +20 -0
- package/dist/node_modules/.bun/object-keys@1.1.1/node_modules/object-keys/isArguments.js +12 -0
- package/dist/node_modules/.bun/object.assign@4.1.7/node_modules/object.assign/implementation.js +29 -0
- package/dist/node_modules/.bun/object.assign@4.1.7/node_modules/object.assign/polyfill.js +27 -0
- package/dist/node_modules/.bun/radians-degrees@1.0.0/node_modules/radians-degrees/index.js +11 -0
- package/dist/node_modules/.bun/react-portal@4.3.0_6dbf9a050bc9aadb/node_modules/react-portal/es/LegacyPortal.js +77 -0
- package/dist/node_modules/.bun/react-portal@4.3.0_6dbf9a050bc9aadb/node_modules/react-portal/es/Portal.js +55 -0
- package/dist/node_modules/.bun/react-portal@4.3.0_6dbf9a050bc9aadb/node_modules/react-portal/es/PortalCompat.js +9 -0
- package/dist/node_modules/.bun/react-portal@4.3.0_6dbf9a050bc9aadb/node_modules/react-portal/es/utils.js +4 -0
- package/dist/node_modules/.bun/trigonometry-calculator@2.0.0/node_modules/trigonometry-calculator/lib/index.js +53 -0
- package/dist/node_modules/.bun/trigonometry-equations@2.0.1/node_modules/trigonometry-equations/lib/index.js +129 -0
- package/dist/node_modules/.bun/util@0.10.4/node_modules/util/support/isBufferBrowser.js +10 -0
- package/dist/node_modules/.bun/util@0.10.4/node_modules/util/util.js +262 -0
- package/dist/protractor/graphic.d.ts +13 -0
- package/dist/protractor/graphic.js +85 -0
- package/dist/protractor/index.d.ts +29 -0
- package/dist/protractor/index.js +56 -0
- package/dist/rotatable.d.ts +56 -0
- package/dist/rotatable.js +210 -0
- package/dist/ruler/graphic.d.ts +20 -0
- package/dist/ruler/graphic.js +53 -0
- package/dist/ruler/index.d.ts +32 -0
- package/dist/ruler/index.js +77 -0
- package/dist/ruler/unit-type.d.ts +30 -0
- package/dist/ruler/unit-type.js +38 -0
- package/dist/ruler/unit.d.ts +21 -0
- package/dist/ruler/unit.js +69 -0
- package/dist/style-utils.d.ts +12 -0
- package/dist/style-utils.js +5 -0
- package/dist/transform-origin.d.ts +18 -0
- package/dist/transform-origin.js +21 -0
- package/package.json +31 -25
- package/CHANGELOG.json +0 -1
- package/CHANGELOG.md +0 -626
- package/LICENSE.md +0 -5
- package/lib/anchor-utils.js +0 -193
- package/lib/anchor-utils.js.map +0 -1
- package/lib/anchor.js +0 -33
- package/lib/anchor.js.map +0 -1
- package/lib/index.js +0 -33
- package/lib/index.js.map +0 -1
- package/lib/protractor/graphic.js +0 -147
- package/lib/protractor/graphic.js.map +0 -1
- package/lib/protractor/index.js +0 -90
- package/lib/protractor/index.js.map +0 -1
- package/lib/rotatable.js +0 -335
- package/lib/rotatable.js.map +0 -1
- package/lib/ruler/graphic.js +0 -89
- package/lib/ruler/graphic.js.map +0 -1
- package/lib/ruler/index.js +0 -114
- package/lib/ruler/index.js.map +0 -1
- package/lib/ruler/unit-type.js +0 -55
- package/lib/ruler/unit-type.js.map +0 -1
- package/lib/ruler/unit.js +0 -124
- package/lib/ruler/unit.js.map +0 -1
- package/lib/style-utils.js +0 -21
- package/lib/style-utils.js.map +0 -1
- package/lib/transform-origin.js +0 -71
- package/lib/transform-origin.js.map +0 -1
- package/src/__tests__/anchor-utils.test.js +0 -131
- package/src/__tests__/rotatable.test.jsx +0 -263
- package/src/__tests__/transform-origin.test.jsx +0 -24
- package/src/anchor-utils.js +0 -153
- package/src/anchor.jsx +0 -20
- package/src/index.js +0 -6
- package/src/protractor/__tests__/graphic.test.jsx +0 -64
- package/src/protractor/__tests__/index.test.jsx +0 -65
- package/src/protractor/graphic.jsx +0 -82
- package/src/protractor/index.jsx +0 -67
- package/src/rotatable.jsx +0 -290
- package/src/ruler/__tests__/graphic.test.jsx +0 -64
- package/src/ruler/__tests__/index.test.jsx +0 -85
- package/src/ruler/__tests__/unit-type.test.jsx +0 -66
- package/src/ruler/__tests__/unit.test.jsx +0 -68
- package/src/ruler/graphic.jsx +0 -48
- package/src/ruler/index.jsx +0 -78
- package/src/ruler/unit-type.jsx +0 -39
- package/src/ruler/unit.jsx +0 -83
- package/src/style-utils.js +0 -7
- package/src/transform-origin.jsx +0 -60
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_implementation as t } from "./implementation.js";
|
|
3
|
+
//#region ../../../node_modules/.bun/object.assign@4.1.7/node_modules/object.assign/polyfill.js
|
|
4
|
+
var n = /* @__PURE__ */ e(((e, n) => {
|
|
5
|
+
var r = t(), i = function() {
|
|
6
|
+
if (!Object.assign) return !1;
|
|
7
|
+
for (var e = "abcdefghijklmnopqrst", t = e.split(""), n = {}, r = 0; r < t.length; ++r) n[t[r]] = t[r];
|
|
8
|
+
var i = Object.assign({}, n), a = "";
|
|
9
|
+
for (var o in i) a += o;
|
|
10
|
+
return e !== a;
|
|
11
|
+
}, a = function() {
|
|
12
|
+
if (!Object.assign || !Object.preventExtensions) return !1;
|
|
13
|
+
var e = Object.preventExtensions({ 1: 2 });
|
|
14
|
+
try {
|
|
15
|
+
Object.assign(e, "xy");
|
|
16
|
+
} catch {
|
|
17
|
+
return e[1] === "y";
|
|
18
|
+
}
|
|
19
|
+
return !1;
|
|
20
|
+
};
|
|
21
|
+
n.exports = function() {
|
|
22
|
+
return !Object.assign || i() || a() ? r : Object.assign;
|
|
23
|
+
};
|
|
24
|
+
}));
|
|
25
|
+
//#endregion
|
|
26
|
+
export default n();
|
|
27
|
+
export { n as require_polyfill };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/radians-degrees@1.0.0/node_modules/radians-degrees/index.js
|
|
3
|
+
var t = /* @__PURE__ */ e(((e, t) => {
|
|
4
|
+
t.exports = function(e) {
|
|
5
|
+
if (typeof e != "number") throw TypeError("Expected a number");
|
|
6
|
+
return 180 / Math.PI * e;
|
|
7
|
+
};
|
|
8
|
+
}));
|
|
9
|
+
//#endregion
|
|
10
|
+
export default t();
|
|
11
|
+
export { t as require_radians_degrees };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import e from "react";
|
|
2
|
+
import t from "prop-types";
|
|
3
|
+
import n from "react-dom";
|
|
4
|
+
//#region ../../../node_modules/.bun/react-portal@4.3.0+6dbf9a050bc9aadb/node_modules/react-portal/es/LegacyPortal.js
|
|
5
|
+
var r = function() {
|
|
6
|
+
function e(e, t) {
|
|
7
|
+
for (var n = 0; n < t.length; n++) {
|
|
8
|
+
var r = t[n];
|
|
9
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
return function(t, n, r) {
|
|
13
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
14
|
+
};
|
|
15
|
+
}();
|
|
16
|
+
function i(e, t) {
|
|
17
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
18
|
+
}
|
|
19
|
+
function a(e, t) {
|
|
20
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
21
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
22
|
+
}
|
|
23
|
+
function o(e, t) {
|
|
24
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
25
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
26
|
+
value: e,
|
|
27
|
+
enumerable: !1,
|
|
28
|
+
writable: !0,
|
|
29
|
+
configurable: !0
|
|
30
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
31
|
+
}
|
|
32
|
+
var s = function(t) {
|
|
33
|
+
o(s, t);
|
|
34
|
+
function s() {
|
|
35
|
+
return i(this, s), a(this, (s.__proto__ || Object.getPrototypeOf(s)).apply(this, arguments));
|
|
36
|
+
}
|
|
37
|
+
return r(s, [
|
|
38
|
+
{
|
|
39
|
+
key: "componentDidMount",
|
|
40
|
+
value: function() {
|
|
41
|
+
this.renderPortal();
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
key: "componentDidUpdate",
|
|
46
|
+
value: function(e) {
|
|
47
|
+
this.renderPortal();
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
key: "componentWillUnmount",
|
|
52
|
+
value: function() {
|
|
53
|
+
n.unmountComponentAtNode(this.defaultNode || this.props.node), this.defaultNode && document.body.removeChild(this.defaultNode), this.defaultNode = null, this.portal = null;
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
key: "renderPortal",
|
|
58
|
+
value: function(t) {
|
|
59
|
+
!this.props.node && !this.defaultNode && (this.defaultNode = document.createElement("div"), document.body.appendChild(this.defaultNode));
|
|
60
|
+
var r = this.props.children;
|
|
61
|
+
typeof this.props.children.type == "function" && (r = e.cloneElement(this.props.children)), this.portal = n.unstable_renderSubtreeIntoContainer(this, r, this.props.node || this.defaultNode);
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
key: "render",
|
|
66
|
+
value: function() {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
]), s;
|
|
71
|
+
}(e.Component);
|
|
72
|
+
s.propTypes = {
|
|
73
|
+
children: t.node.isRequired,
|
|
74
|
+
node: t.any
|
|
75
|
+
};
|
|
76
|
+
//#endregion
|
|
77
|
+
export { s as default };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { canUseDOM as e } from "./utils.js";
|
|
2
|
+
import t from "react";
|
|
3
|
+
import n from "prop-types";
|
|
4
|
+
import r from "react-dom";
|
|
5
|
+
//#region ../../../node_modules/.bun/react-portal@4.3.0+6dbf9a050bc9aadb/node_modules/react-portal/es/Portal.js
|
|
6
|
+
var i = function() {
|
|
7
|
+
function e(e, t) {
|
|
8
|
+
for (var n = 0; n < t.length; n++) {
|
|
9
|
+
var r = t[n];
|
|
10
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return function(t, n, r) {
|
|
14
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
15
|
+
};
|
|
16
|
+
}();
|
|
17
|
+
function a(e, t) {
|
|
18
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
19
|
+
}
|
|
20
|
+
function o(e, t) {
|
|
21
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
22
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
23
|
+
}
|
|
24
|
+
function s(e, t) {
|
|
25
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
26
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
27
|
+
value: e,
|
|
28
|
+
enumerable: !1,
|
|
29
|
+
writable: !0,
|
|
30
|
+
configurable: !0
|
|
31
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
32
|
+
}
|
|
33
|
+
var c = function(t) {
|
|
34
|
+
s(n, t);
|
|
35
|
+
function n() {
|
|
36
|
+
return a(this, n), o(this, (n.__proto__ || Object.getPrototypeOf(n)).apply(this, arguments));
|
|
37
|
+
}
|
|
38
|
+
return i(n, [{
|
|
39
|
+
key: "componentWillUnmount",
|
|
40
|
+
value: function() {
|
|
41
|
+
this.defaultNode && document.body.removeChild(this.defaultNode), this.defaultNode = null;
|
|
42
|
+
}
|
|
43
|
+
}, {
|
|
44
|
+
key: "render",
|
|
45
|
+
value: function() {
|
|
46
|
+
return e ? (!this.props.node && !this.defaultNode && (this.defaultNode = document.createElement("div"), document.body.appendChild(this.defaultNode)), r.createPortal(this.props.children, this.props.node || this.defaultNode)) : null;
|
|
47
|
+
}
|
|
48
|
+
}]), n;
|
|
49
|
+
}(t.Component);
|
|
50
|
+
c.propTypes = {
|
|
51
|
+
children: n.node.isRequired,
|
|
52
|
+
node: n.any
|
|
53
|
+
};
|
|
54
|
+
//#endregion
|
|
55
|
+
export { c as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import e from "./Portal.js";
|
|
2
|
+
import t from "./LegacyPortal.js";
|
|
3
|
+
import n from "react-dom";
|
|
4
|
+
//#region ../../../node_modules/.bun/react-portal@4.3.0+6dbf9a050bc9aadb/node_modules/react-portal/es/PortalCompat.js
|
|
5
|
+
var r = void 0;
|
|
6
|
+
r = n.createPortal ? e : t;
|
|
7
|
+
var i = r;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { i as default };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { __commonJSMin as e } from "../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_lib as t } from "../../../../trigonometry-equations@2.0.1/node_modules/trigonometry-equations/lib/index.js";
|
|
3
|
+
//#region ../../../node_modules/.bun/trigonometry-calculator@2.0.0/node_modules/trigonometry-calculator/lib/index.js
|
|
4
|
+
var n = /* @__PURE__ */ e(((e) => {
|
|
5
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
6
|
+
var n = Object.assign || function(e) {
|
|
7
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
8
|
+
var n = arguments[t];
|
|
9
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
10
|
+
}
|
|
11
|
+
return e;
|
|
12
|
+
};
|
|
13
|
+
e.trigCalculator = i;
|
|
14
|
+
var r = t();
|
|
15
|
+
function i() {
|
|
16
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.angles, i = t === void 0 ? {} : t, a = e.sides, o = a === void 0 ? {} : a, s = Object.keys(i).length, c = Object.keys(o).length, l = function(e) {
|
|
17
|
+
return Object.keys(o).filter(function(t) {
|
|
18
|
+
return t !== e;
|
|
19
|
+
});
|
|
20
|
+
}, u = function(e, t) {
|
|
21
|
+
return o[e] + o[t];
|
|
22
|
+
}, d = c > 1 && Object.keys(o).reduce(function(e, t) {
|
|
23
|
+
return e && o[t] < l(t).reduce(u);
|
|
24
|
+
}, !0), f = [
|
|
25
|
+
0,
|
|
26
|
+
1,
|
|
27
|
+
2
|
|
28
|
+
].filter(function(e) {
|
|
29
|
+
return i[e] && o[e];
|
|
30
|
+
}), p = null;
|
|
31
|
+
if (c === 3 && d) p = (0, r.angleRule)((0, r.cosineRule)((0, r.cosineRule)({
|
|
32
|
+
angles: i,
|
|
33
|
+
sides: o
|
|
34
|
+
})));
|
|
35
|
+
else if (c === 2 && s === 1) {
|
|
36
|
+
var m = (0, r.ambiguousCaseRule)({
|
|
37
|
+
angles: i,
|
|
38
|
+
sides: o
|
|
39
|
+
});
|
|
40
|
+
p = {
|
|
41
|
+
angles: i,
|
|
42
|
+
sides: o
|
|
43
|
+
}, f.length < 1 && (p = (0, r.cosineRule)(p)), p = (0, r.angleRule)((0, r.sineRule)(p)), f.length >= 1 && (p = (0, r.sineRule)(p)), p = n({}, p, m);
|
|
44
|
+
} else p = c === 1 && s === 2 ? (0, r.sineRule)((0, r.sineRule)((0, r.angleRule)({
|
|
45
|
+
angles: i,
|
|
46
|
+
sides: o
|
|
47
|
+
}))) : { error: "trigCalculator expects a valid pair of angles or sides" };
|
|
48
|
+
return p;
|
|
49
|
+
}
|
|
50
|
+
}));
|
|
51
|
+
//#endregion
|
|
52
|
+
export default n();
|
|
53
|
+
export { n as require_lib };
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { __commonJSMin as e } from "../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_degrees_radians as t } from "../../../../degrees-radians@1.0.3/node_modules/degrees-radians/index.js";
|
|
3
|
+
import { require_radians_degrees as n } from "../../../../radians-degrees@1.0.0/node_modules/radians-degrees/index.js";
|
|
4
|
+
//#region ../../../node_modules/.bun/trigonometry-equations@2.0.1/node_modules/trigonometry-equations/lib/index.js
|
|
5
|
+
var r = /* @__PURE__ */ e(((e) => {
|
|
6
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
7
|
+
var r = Object.assign || function(e) {
|
|
8
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
9
|
+
var n = arguments[t];
|
|
10
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
11
|
+
}
|
|
12
|
+
return e;
|
|
13
|
+
};
|
|
14
|
+
e.cosineRule = c, e.sineRule = l, e.angleRule = u, e.ambiguousCaseRule = d;
|
|
15
|
+
var i = o(t()), a = o(n());
|
|
16
|
+
function o(e) {
|
|
17
|
+
return e && e.__esModule ? e : { default: e };
|
|
18
|
+
}
|
|
19
|
+
function s(e, t, n) {
|
|
20
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
21
|
+
value: n,
|
|
22
|
+
enumerable: !0,
|
|
23
|
+
configurable: !0,
|
|
24
|
+
writable: !0
|
|
25
|
+
}) : e[t] = n, e;
|
|
26
|
+
}
|
|
27
|
+
function c() {
|
|
28
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.angles, n = t === void 0 ? {} : t, o = e.sides, c = o === void 0 ? {} : o, l = e.error, u = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).findAngle;
|
|
29
|
+
if (l) return { error: l };
|
|
30
|
+
if (Object.keys(c).length < 2) return { error: "cosineRule expects at least 2 sides" };
|
|
31
|
+
var d = function(e) {
|
|
32
|
+
return e.reduce(function(e, t) {
|
|
33
|
+
return e * c[t];
|
|
34
|
+
}, 1) * 2;
|
|
35
|
+
}, f = function(e) {
|
|
36
|
+
return e.reduce(function(e, t) {
|
|
37
|
+
return e + c[t] ** 2;
|
|
38
|
+
}, 0);
|
|
39
|
+
}, p = void 0, m = void 0, h = void 0, g = void 0;
|
|
40
|
+
if (Object.keys(c).length === 3) {
|
|
41
|
+
var _ = [
|
|
42
|
+
0,
|
|
43
|
+
1,
|
|
44
|
+
2
|
|
45
|
+
].findIndex(function(e) {
|
|
46
|
+
return !(e in n);
|
|
47
|
+
}), v = u || _, y = [
|
|
48
|
+
0,
|
|
49
|
+
1,
|
|
50
|
+
2
|
|
51
|
+
].filter(function(e) {
|
|
52
|
+
return e !== Number(v);
|
|
53
|
+
}), b = c[v] ** 2, x = f(y);
|
|
54
|
+
p = (0, a.default)(Math.acos((x - b) / d(y))), m = n, h = "angles", g = Number(v);
|
|
55
|
+
} else if (Object.keys(c).length === 2 && Object.keys(n).length === 1) {
|
|
56
|
+
var S = Object.keys(n), C = n[S], w = Object.keys(c), T = d(w) * Math.cos((0, i.default)(C));
|
|
57
|
+
p = Math.sqrt(f(w) - T), m = c, h = "sides", g = S;
|
|
58
|
+
} else return { error: "cosineRule expected 3 sides or 2 sides and 1 angle" };
|
|
59
|
+
var E = s({}, g, p), D = s({}, h, r({}, m, E));
|
|
60
|
+
return r({
|
|
61
|
+
angles: n,
|
|
62
|
+
sides: c
|
|
63
|
+
}, D);
|
|
64
|
+
}
|
|
65
|
+
function l() {
|
|
66
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.angles, n = t === void 0 ? {} : t, o = e.sides, c = o === void 0 ? {} : o, l = e.error;
|
|
67
|
+
if (l) return { error: l };
|
|
68
|
+
var u = function(e) {
|
|
69
|
+
return e in n && e in c;
|
|
70
|
+
}, d = [
|
|
71
|
+
0,
|
|
72
|
+
1,
|
|
73
|
+
2
|
|
74
|
+
].find(function(e) {
|
|
75
|
+
return (e in n || e in c) && !u(e);
|
|
76
|
+
}), f = [
|
|
77
|
+
0,
|
|
78
|
+
1,
|
|
79
|
+
2
|
|
80
|
+
].find(u);
|
|
81
|
+
if (d === void 0) return { error: "sineRule expected an unpaired angle or side" };
|
|
82
|
+
var p = n[f], m = c[f], h = n[d], g = c[d], _ = void 0, v = void 0, y = void 0;
|
|
83
|
+
if (h) _ = m * Math.sin((0, i.default)(h)) / Math.sin((0, i.default)(p)), v = c, y = "sides";
|
|
84
|
+
else if (p !== void 0) _ = (0, a.default)(Math.asin(Math.sin((0, i.default)(p)) / m * g)), v = n, y = "angles";
|
|
85
|
+
else return { error: "sineRule expected an unpaired angle or side" };
|
|
86
|
+
var b = s({}, d, _), x = s({}, y, r({}, v, b));
|
|
87
|
+
return r({
|
|
88
|
+
angles: n,
|
|
89
|
+
sides: c
|
|
90
|
+
}, x);
|
|
91
|
+
}
|
|
92
|
+
function u() {
|
|
93
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.angles, n = t === void 0 ? {} : t, i = e.sides, a = i === void 0 ? {} : i, o = e.error;
|
|
94
|
+
if (o) return { error: o };
|
|
95
|
+
if (Object.keys(n).length !== 2) return { error: "angleRule expects 2 angles" };
|
|
96
|
+
var c = Object.keys(n).map(function(e) {
|
|
97
|
+
return Number(e);
|
|
98
|
+
}), l = { angles: r({}, n, s({}, [
|
|
99
|
+
0,
|
|
100
|
+
1,
|
|
101
|
+
2
|
|
102
|
+
].filter(function(e) {
|
|
103
|
+
return !c.includes(e);
|
|
104
|
+
}), 180 - c.reduce(function(e, t) {
|
|
105
|
+
return e + n[t];
|
|
106
|
+
}, 0))) };
|
|
107
|
+
return r({ sides: a }, l);
|
|
108
|
+
}
|
|
109
|
+
function d() {
|
|
110
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.angles, n = t === void 0 ? {} : t, i = e.sides, a = i === void 0 ? {} : i, o = e.error;
|
|
111
|
+
if (o) return { error: o };
|
|
112
|
+
if (Object.keys(n).length !== 1 || Object.keys(a).length !== 2) return { error: "ambiguousCaseRule expects 1 angle and 2 sides" };
|
|
113
|
+
var c = Object.keys(n).join(), d = c in a, f = d ? l({
|
|
114
|
+
angles: n,
|
|
115
|
+
sides: a
|
|
116
|
+
}) : {
|
|
117
|
+
angles: n,
|
|
118
|
+
sides: a
|
|
119
|
+
}, p = Object.keys(f.angles).find(function(e) {
|
|
120
|
+
return !(e in n);
|
|
121
|
+
}), m = 180 - f.angles[p], h = n[c] < 90, g = Object.keys(a).find(function(e) {
|
|
122
|
+
return e !== c;
|
|
123
|
+
}), _ = a[c] < a[g];
|
|
124
|
+
return !h || !d || !_ || !(m < 180) ? {} : { ambiguous: l(u(r({ angles: r({}, n, s({}, p, m)) }, { sides: a }))) };
|
|
125
|
+
}
|
|
126
|
+
}));
|
|
127
|
+
//#endregion
|
|
128
|
+
export default r();
|
|
129
|
+
export { r as require_lib };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { __commonJSMin as e } from "../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/util@0.10.4/node_modules/util/support/isBufferBrowser.js
|
|
3
|
+
var t = /* @__PURE__ */ e(((e, t) => {
|
|
4
|
+
t.exports = function(e) {
|
|
5
|
+
return e && typeof e == "object" && typeof e.copy == "function" && typeof e.fill == "function" && typeof e.readUInt8 == "function";
|
|
6
|
+
};
|
|
7
|
+
}));
|
|
8
|
+
//#endregion
|
|
9
|
+
export default t();
|
|
10
|
+
export { t as require_isBufferBrowser };
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_isBufferBrowser as t } from "./support/isBufferBrowser.js";
|
|
3
|
+
import { require_inherits_browser as n } from "../../../inherits@2.0.3/node_modules/inherits/inherits_browser.js";
|
|
4
|
+
//#region ../../../node_modules/.bun/util@0.10.4/node_modules/util/util.js
|
|
5
|
+
var r = /* @__PURE__ */ e(((e) => {
|
|
6
|
+
var r = /%[sdj%]/g;
|
|
7
|
+
e.format = function(e) {
|
|
8
|
+
if (!x(e)) {
|
|
9
|
+
for (var t = [], n = 0; n < arguments.length; n++) t.push(o(arguments[n]));
|
|
10
|
+
return t.join(" ");
|
|
11
|
+
}
|
|
12
|
+
for (var n = 1, i = arguments, a = i.length, s = String(e).replace(r, function(e) {
|
|
13
|
+
if (e === "%%") return "%";
|
|
14
|
+
if (n >= a) return e;
|
|
15
|
+
switch (e) {
|
|
16
|
+
case "%s": return String(i[n++]);
|
|
17
|
+
case "%d": return Number(i[n++]);
|
|
18
|
+
case "%j": try {
|
|
19
|
+
return JSON.stringify(i[n++]);
|
|
20
|
+
} catch {
|
|
21
|
+
return "[Circular]";
|
|
22
|
+
}
|
|
23
|
+
default: return e;
|
|
24
|
+
}
|
|
25
|
+
}), c = i[n]; n < a; c = i[++n]) v(c) || !T(c) ? s += " " + c : s += " " + o(c);
|
|
26
|
+
return s;
|
|
27
|
+
}, e.deprecate = function(t, n) {
|
|
28
|
+
if (C(global.process)) return function() {
|
|
29
|
+
return e.deprecate(t, n).apply(this, arguments);
|
|
30
|
+
};
|
|
31
|
+
if (process.noDeprecation === !0) return t;
|
|
32
|
+
var r = !1;
|
|
33
|
+
function i() {
|
|
34
|
+
if (!r) {
|
|
35
|
+
if (process.throwDeprecation) throw Error(n);
|
|
36
|
+
process.traceDeprecation ? console.trace(n) : console.error(n), r = !0;
|
|
37
|
+
}
|
|
38
|
+
return t.apply(this, arguments);
|
|
39
|
+
}
|
|
40
|
+
return i;
|
|
41
|
+
};
|
|
42
|
+
var i = {}, a;
|
|
43
|
+
e.debuglog = function(t) {
|
|
44
|
+
if (C(a) && (a = process.env.NODE_DEBUG || ""), t = t.toUpperCase(), !i[t]) if (RegExp("\\b" + t + "\\b", "i").test(a)) {
|
|
45
|
+
var n = process.pid;
|
|
46
|
+
i[t] = function() {
|
|
47
|
+
var r = e.format.apply(e, arguments);
|
|
48
|
+
console.error("%s %d: %s", t, n, r);
|
|
49
|
+
};
|
|
50
|
+
} else i[t] = function() {};
|
|
51
|
+
return i[t];
|
|
52
|
+
};
|
|
53
|
+
function o(t, n) {
|
|
54
|
+
var r = {
|
|
55
|
+
seen: [],
|
|
56
|
+
stylize: c
|
|
57
|
+
};
|
|
58
|
+
return arguments.length >= 3 && (r.depth = arguments[2]), arguments.length >= 4 && (r.colors = arguments[3]), _(n) ? r.showHidden = n : n && e._extend(r, n), C(r.showHidden) && (r.showHidden = !1), C(r.depth) && (r.depth = 2), C(r.colors) && (r.colors = !1), C(r.customInspect) && (r.customInspect = !0), r.colors && (r.stylize = s), u(r, t, r.depth);
|
|
59
|
+
}
|
|
60
|
+
e.inspect = o, o.colors = {
|
|
61
|
+
bold: [1, 22],
|
|
62
|
+
italic: [3, 23],
|
|
63
|
+
underline: [4, 24],
|
|
64
|
+
inverse: [7, 27],
|
|
65
|
+
white: [37, 39],
|
|
66
|
+
grey: [90, 39],
|
|
67
|
+
black: [30, 39],
|
|
68
|
+
blue: [34, 39],
|
|
69
|
+
cyan: [36, 39],
|
|
70
|
+
green: [32, 39],
|
|
71
|
+
magenta: [35, 39],
|
|
72
|
+
red: [31, 39],
|
|
73
|
+
yellow: [33, 39]
|
|
74
|
+
}, o.styles = {
|
|
75
|
+
special: "cyan",
|
|
76
|
+
number: "yellow",
|
|
77
|
+
boolean: "yellow",
|
|
78
|
+
undefined: "grey",
|
|
79
|
+
null: "bold",
|
|
80
|
+
string: "green",
|
|
81
|
+
date: "magenta",
|
|
82
|
+
regexp: "red"
|
|
83
|
+
};
|
|
84
|
+
function s(e, t) {
|
|
85
|
+
var n = o.styles[t];
|
|
86
|
+
return n ? "\x1B[" + o.colors[n][0] + "m" + e + "\x1B[" + o.colors[n][1] + "m" : e;
|
|
87
|
+
}
|
|
88
|
+
function c(e, t) {
|
|
89
|
+
return e;
|
|
90
|
+
}
|
|
91
|
+
function l(e) {
|
|
92
|
+
var t = {};
|
|
93
|
+
return e.forEach(function(e, n) {
|
|
94
|
+
t[e] = !0;
|
|
95
|
+
}), t;
|
|
96
|
+
}
|
|
97
|
+
function u(t, n, r) {
|
|
98
|
+
if (t.customInspect && n && O(n.inspect) && n.inspect !== e.inspect && !(n.constructor && n.constructor.prototype === n)) {
|
|
99
|
+
var i = n.inspect(r, t);
|
|
100
|
+
return x(i) || (i = u(t, i, r)), i;
|
|
101
|
+
}
|
|
102
|
+
var a = d(t, n);
|
|
103
|
+
if (a) return a;
|
|
104
|
+
var o = Object.keys(n), s = l(o);
|
|
105
|
+
if (t.showHidden && (o = Object.getOwnPropertyNames(n)), D(n) && (o.indexOf("message") >= 0 || o.indexOf("description") >= 0)) return f(n);
|
|
106
|
+
if (o.length === 0) {
|
|
107
|
+
if (O(n)) {
|
|
108
|
+
var c = n.name ? ": " + n.name : "";
|
|
109
|
+
return t.stylize("[Function" + c + "]", "special");
|
|
110
|
+
}
|
|
111
|
+
if (w(n)) return t.stylize(RegExp.prototype.toString.call(n), "regexp");
|
|
112
|
+
if (E(n)) return t.stylize(Date.prototype.toString.call(n), "date");
|
|
113
|
+
if (D(n)) return f(n);
|
|
114
|
+
}
|
|
115
|
+
var _ = "", v = !1, y = ["{", "}"];
|
|
116
|
+
if (g(n) && (v = !0, y = ["[", "]"]), O(n) && (_ = " [Function" + (n.name ? ": " + n.name : "") + "]"), w(n) && (_ = " " + RegExp.prototype.toString.call(n)), E(n) && (_ = " " + Date.prototype.toUTCString.call(n)), D(n) && (_ = " " + f(n)), o.length === 0 && (!v || n.length == 0)) return y[0] + _ + y[1];
|
|
117
|
+
if (r < 0) return w(n) ? t.stylize(RegExp.prototype.toString.call(n), "regexp") : t.stylize("[Object]", "special");
|
|
118
|
+
t.seen.push(n);
|
|
119
|
+
var b = v ? p(t, n, r, s, o) : o.map(function(e) {
|
|
120
|
+
return m(t, n, r, s, e, v);
|
|
121
|
+
});
|
|
122
|
+
return t.seen.pop(), h(b, _, y);
|
|
123
|
+
}
|
|
124
|
+
function d(e, t) {
|
|
125
|
+
if (C(t)) return e.stylize("undefined", "undefined");
|
|
126
|
+
if (x(t)) {
|
|
127
|
+
var n = "'" + JSON.stringify(t).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, "\"") + "'";
|
|
128
|
+
return e.stylize(n, "string");
|
|
129
|
+
}
|
|
130
|
+
if (b(t)) return e.stylize("" + t, "number");
|
|
131
|
+
if (_(t)) return e.stylize("" + t, "boolean");
|
|
132
|
+
if (v(t)) return e.stylize("null", "null");
|
|
133
|
+
}
|
|
134
|
+
function f(e) {
|
|
135
|
+
return "[" + Error.prototype.toString.call(e) + "]";
|
|
136
|
+
}
|
|
137
|
+
function p(e, t, n, r, i) {
|
|
138
|
+
for (var a = [], o = 0, s = t.length; o < s; ++o) P(t, String(o)) ? a.push(m(e, t, n, r, String(o), !0)) : a.push("");
|
|
139
|
+
return i.forEach(function(i) {
|
|
140
|
+
i.match(/^\d+$/) || a.push(m(e, t, n, r, i, !0));
|
|
141
|
+
}), a;
|
|
142
|
+
}
|
|
143
|
+
function m(e, t, n, r, i, a) {
|
|
144
|
+
var o, s, c = Object.getOwnPropertyDescriptor(t, i) || { value: t[i] };
|
|
145
|
+
if (c.get ? s = c.set ? e.stylize("[Getter/Setter]", "special") : e.stylize("[Getter]", "special") : c.set && (s = e.stylize("[Setter]", "special")), P(r, i) || (o = "[" + i + "]"), s || (e.seen.indexOf(c.value) < 0 ? (s = v(n) ? u(e, c.value, null) : u(e, c.value, n - 1), s.indexOf("\n") > -1 && (s = a ? s.split("\n").map(function(e) {
|
|
146
|
+
return " " + e;
|
|
147
|
+
}).join("\n").substr(2) : "\n" + s.split("\n").map(function(e) {
|
|
148
|
+
return " " + e;
|
|
149
|
+
}).join("\n"))) : s = e.stylize("[Circular]", "special")), C(o)) {
|
|
150
|
+
if (a && i.match(/^\d+$/)) return s;
|
|
151
|
+
o = JSON.stringify("" + i), o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (o = o.substr(1, o.length - 2), o = e.stylize(o, "name")) : (o = o.replace(/'/g, "\\'").replace(/\\"/g, "\"").replace(/(^"|"$)/g, "'"), o = e.stylize(o, "string"));
|
|
152
|
+
}
|
|
153
|
+
return o + ": " + s;
|
|
154
|
+
}
|
|
155
|
+
function h(e, t, n) {
|
|
156
|
+
var r = 0;
|
|
157
|
+
return e.reduce(function(e, t) {
|
|
158
|
+
return r++, t.indexOf("\n") >= 0 && r++, e + t.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
159
|
+
}, 0) > 60 ? n[0] + (t === "" ? "" : t + "\n ") + " " + e.join(",\n ") + " " + n[1] : n[0] + t + " " + e.join(", ") + " " + n[1];
|
|
160
|
+
}
|
|
161
|
+
function g(e) {
|
|
162
|
+
return Array.isArray(e);
|
|
163
|
+
}
|
|
164
|
+
e.isArray = g;
|
|
165
|
+
function _(e) {
|
|
166
|
+
return typeof e == "boolean";
|
|
167
|
+
}
|
|
168
|
+
e.isBoolean = _;
|
|
169
|
+
function v(e) {
|
|
170
|
+
return e === null;
|
|
171
|
+
}
|
|
172
|
+
e.isNull = v;
|
|
173
|
+
function y(e) {
|
|
174
|
+
return e == null;
|
|
175
|
+
}
|
|
176
|
+
e.isNullOrUndefined = y;
|
|
177
|
+
function b(e) {
|
|
178
|
+
return typeof e == "number";
|
|
179
|
+
}
|
|
180
|
+
e.isNumber = b;
|
|
181
|
+
function x(e) {
|
|
182
|
+
return typeof e == "string";
|
|
183
|
+
}
|
|
184
|
+
e.isString = x;
|
|
185
|
+
function S(e) {
|
|
186
|
+
return typeof e == "symbol";
|
|
187
|
+
}
|
|
188
|
+
e.isSymbol = S;
|
|
189
|
+
function C(e) {
|
|
190
|
+
return e === void 0;
|
|
191
|
+
}
|
|
192
|
+
e.isUndefined = C;
|
|
193
|
+
function w(e) {
|
|
194
|
+
return T(e) && A(e) === "[object RegExp]";
|
|
195
|
+
}
|
|
196
|
+
e.isRegExp = w;
|
|
197
|
+
function T(e) {
|
|
198
|
+
return typeof e == "object" && !!e;
|
|
199
|
+
}
|
|
200
|
+
e.isObject = T;
|
|
201
|
+
function E(e) {
|
|
202
|
+
return T(e) && A(e) === "[object Date]";
|
|
203
|
+
}
|
|
204
|
+
e.isDate = E;
|
|
205
|
+
function D(e) {
|
|
206
|
+
return T(e) && (A(e) === "[object Error]" || e instanceof Error);
|
|
207
|
+
}
|
|
208
|
+
e.isError = D;
|
|
209
|
+
function O(e) {
|
|
210
|
+
return typeof e == "function";
|
|
211
|
+
}
|
|
212
|
+
e.isFunction = O;
|
|
213
|
+
function k(e) {
|
|
214
|
+
return e === null || typeof e == "boolean" || typeof e == "number" || typeof e == "string" || typeof e == "symbol" || e === void 0;
|
|
215
|
+
}
|
|
216
|
+
e.isPrimitive = k, e.isBuffer = t();
|
|
217
|
+
function A(e) {
|
|
218
|
+
return Object.prototype.toString.call(e);
|
|
219
|
+
}
|
|
220
|
+
function j(e) {
|
|
221
|
+
return e < 10 ? "0" + e.toString(10) : e.toString(10);
|
|
222
|
+
}
|
|
223
|
+
var M = [
|
|
224
|
+
"Jan",
|
|
225
|
+
"Feb",
|
|
226
|
+
"Mar",
|
|
227
|
+
"Apr",
|
|
228
|
+
"May",
|
|
229
|
+
"Jun",
|
|
230
|
+
"Jul",
|
|
231
|
+
"Aug",
|
|
232
|
+
"Sep",
|
|
233
|
+
"Oct",
|
|
234
|
+
"Nov",
|
|
235
|
+
"Dec"
|
|
236
|
+
];
|
|
237
|
+
function N() {
|
|
238
|
+
var e = /* @__PURE__ */ new Date(), t = [
|
|
239
|
+
j(e.getHours()),
|
|
240
|
+
j(e.getMinutes()),
|
|
241
|
+
j(e.getSeconds())
|
|
242
|
+
].join(":");
|
|
243
|
+
return [
|
|
244
|
+
e.getDate(),
|
|
245
|
+
M[e.getMonth()],
|
|
246
|
+
t
|
|
247
|
+
].join(" ");
|
|
248
|
+
}
|
|
249
|
+
e.log = function() {
|
|
250
|
+
console.log("%s - %s", N(), e.format.apply(e, arguments));
|
|
251
|
+
}, e.inherits = n(), e._extend = function(e, t) {
|
|
252
|
+
if (!t || !T(t)) return e;
|
|
253
|
+
for (var n = Object.keys(t), r = n.length; r--;) e[n[r]] = t[n[r]];
|
|
254
|
+
return e;
|
|
255
|
+
};
|
|
256
|
+
function P(e, t) {
|
|
257
|
+
return Object.prototype.hasOwnProperty.call(e, t);
|
|
258
|
+
}
|
|
259
|
+
}));
|
|
260
|
+
//#endregion
|
|
261
|
+
export default r();
|
|
262
|
+
export { r as require_util };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-lib/packages/tools/src/protractor/graphic.jsx
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
import React from 'react';
|
|
10
|
+
export declare class Graphic extends React.PureComponent {
|
|
11
|
+
render(): React.JSX.Element;
|
|
12
|
+
}
|
|
13
|
+
export default Graphic;
|