@nabeeltahirdeveloper/chart-sdk 1.0.0 → 1.0.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.
- package/dist/chart-sdk.es.js +15 -6
- package/dist/chart-sdk.umd.js +4 -4
- package/package.json +1 -1
package/dist/chart-sdk.es.js
CHANGED
|
@@ -10269,8 +10269,8 @@ const Rs = {
|
|
|
10269
10269
|
return s;
|
|
10270
10270
|
}, mf = ({ children: s, baseUrl: t }) => {
|
|
10271
10271
|
const e = t || typeof import.meta < "u" && "http://localhost:8000" || "http://localhost:8000";
|
|
10272
|
-
_t(() => {
|
|
10273
|
-
Rs.setBaseUrl(e)
|
|
10272
|
+
Iu(e), _t(() => {
|
|
10273
|
+
Rs.setBaseUrl(e);
|
|
10274
10274
|
}, [e]);
|
|
10275
10275
|
const [i, n] = Et("CADJPY"), [r, o] = Et("M1"), [h, l] = Et([]), [a, c] = Et(!0), [u, p] = Et([]), [g, d] = Et(!1), [f, m] = Et(1e5), [w, C] = Et(null), [M, O] = Et([]), [H, Z] = Et(!0), [X, it] = Et(!1), [Q, At] = Et(!0), [$t, Ut] = Et("candles"), [Ft, ut] = Et(!1), tt = at(null), nt = at(/* @__PURE__ */ new Map()), rt = at(null), Lt = 1e3, vt = Ze(async () => {
|
|
10276
10276
|
try {
|
|
@@ -12045,12 +12045,15 @@ const Sf = Ao(function({
|
|
|
12045
12045
|
}
|
|
12046
12046
|
}), K.current = [];
|
|
12047
12047
|
}) : void 0;
|
|
12048
|
-
}, [mt, j]), /* @__PURE__ */ De("div", {
|
|
12048
|
+
}, [mt, j]), /* @__PURE__ */ De("div", { style: { flex: 1, display: "flex", flexDirection: "column", backgroundColor: "#0F1720", minWidth: 0, overflow: "hidden", width: "100%", height: "100%" }, children: /* @__PURE__ */ De(
|
|
12049
12049
|
"div",
|
|
12050
12050
|
{
|
|
12051
12051
|
ref: h,
|
|
12052
|
-
className: "flex-1 w-full h-full relative",
|
|
12053
12052
|
style: {
|
|
12053
|
+
flex: 1,
|
|
12054
|
+
width: "100%",
|
|
12055
|
+
height: "100%",
|
|
12056
|
+
position: "relative",
|
|
12054
12057
|
cursor: tt === 1 || tt !== null ? "crosshair" : "default",
|
|
12055
12058
|
minHeight: 0,
|
|
12056
12059
|
minWidth: 0
|
|
@@ -12061,13 +12064,19 @@ const Sf = Ao(function({
|
|
|
12061
12064
|
children: yt && C?.type === "trendline" && C?.point1 && C?.point2 && O.length === 2 && /* @__PURE__ */ De(
|
|
12062
12065
|
"div",
|
|
12063
12066
|
{
|
|
12064
|
-
|
|
12067
|
+
style: { position: "absolute", inset: 0, zIndex: 20, pointerEvents: "none" },
|
|
12065
12068
|
"aria-hidden": !0,
|
|
12066
12069
|
children: O.map((b, y) => /* @__PURE__ */ De(
|
|
12067
12070
|
"div",
|
|
12068
12071
|
{
|
|
12069
|
-
className: "absolute w-[10px] h-[10px] rounded-full border-2 border-white bg-[#22c55e] shadow",
|
|
12070
12072
|
style: {
|
|
12073
|
+
position: "absolute",
|
|
12074
|
+
width: 10,
|
|
12075
|
+
height: 10,
|
|
12076
|
+
borderRadius: "50%",
|
|
12077
|
+
border: "2px solid white",
|
|
12078
|
+
backgroundColor: "#22c55e",
|
|
12079
|
+
boxShadow: "0 1px 3px rgba(0,0,0,0.3)",
|
|
12071
12080
|
left: b.x - 5,
|
|
12072
12081
|
top: b.y - 5
|
|
12073
12082
|
}
|