@forgecharts/sdk 1.5.47 → 1.5.48
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/index.js +60 -56
- package/dist/index.js.map +1 -1
- package/dist/internal.js +60 -56
- package/dist/internal.js.map +1 -1
- package/dist/react/canvas/ChartContextMenu.d.ts +1 -7
- package/dist/react/canvas/ChartContextMenu.d.ts.map +1 -1
- package/dist/react/index.js +60 -56
- package/dist/react/index.js.map +1 -1
- package/dist/react/internal.js +60 -56
- package/dist/react/internal.js.map +1 -1
- package/package.json +1 -1
package/dist/internal.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TextStyle, Application, Container, Graphics, Text, FillGradient, CanvasTextMetrics } from 'pixi.js';
|
|
2
2
|
import { forwardRef, useRef, useState, useEffect, useImperativeHandle, useCallback, createContext, useMemo, useContext } from 'react';
|
|
3
3
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
4
|
-
import ReactDOM from 'react-dom';
|
|
4
|
+
import ReactDOM, { createPortal } from 'react-dom';
|
|
5
5
|
|
|
6
6
|
// ../shared/src/time/timeframeRegistry.ts
|
|
7
7
|
function isCalendarTimeframe(key) {
|
|
@@ -21292,60 +21292,64 @@ function ChartContextMenu({
|
|
|
21292
21292
|
onClearIndicators,
|
|
21293
21293
|
onResetView
|
|
21294
21294
|
}) {
|
|
21295
|
-
|
|
21296
|
-
|
|
21297
|
-
|
|
21298
|
-
onClose()
|
|
21299
|
-
|
|
21300
|
-
|
|
21301
|
-
|
|
21302
|
-
|
|
21303
|
-
|
|
21304
|
-
|
|
21305
|
-
|
|
21306
|
-
|
|
21307
|
-
|
|
21308
|
-
|
|
21309
|
-
|
|
21310
|
-
|
|
21311
|
-
|
|
21312
|
-
|
|
21313
|
-
|
|
21314
|
-
"
|
|
21315
|
-
|
|
21316
|
-
|
|
21317
|
-
|
|
21318
|
-
|
|
21319
|
-
|
|
21320
|
-
|
|
21321
|
-
|
|
21322
|
-
|
|
21323
|
-
|
|
21324
|
-
|
|
21325
|
-
|
|
21326
|
-
"
|
|
21327
|
-
|
|
21328
|
-
|
|
21329
|
-
|
|
21330
|
-
|
|
21331
|
-
|
|
21332
|
-
|
|
21333
|
-
|
|
21334
|
-
|
|
21335
|
-
|
|
21336
|
-
|
|
21337
|
-
|
|
21338
|
-
|
|
21339
|
-
|
|
21340
|
-
|
|
21341
|
-
|
|
21342
|
-
|
|
21343
|
-
|
|
21344
|
-
|
|
21345
|
-
|
|
21346
|
-
|
|
21347
|
-
|
|
21348
|
-
|
|
21295
|
+
if (typeof document === "undefined") return null;
|
|
21296
|
+
return createPortal(
|
|
21297
|
+
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
21298
|
+
/* @__PURE__ */ jsx("div", { className: "chart-ctx-backdrop", onClick: onClose, onContextMenu: (e) => {
|
|
21299
|
+
e.preventDefault();
|
|
21300
|
+
onClose();
|
|
21301
|
+
} }),
|
|
21302
|
+
/* @__PURE__ */ jsxs("div", { className: "chart-ctx-menu", style: { left: x, top: y }, children: [
|
|
21303
|
+
/* @__PURE__ */ jsx(
|
|
21304
|
+
"button",
|
|
21305
|
+
{
|
|
21306
|
+
className: "chart-ctx-item",
|
|
21307
|
+
onClick: () => {
|
|
21308
|
+
onSettings();
|
|
21309
|
+
onClose();
|
|
21310
|
+
},
|
|
21311
|
+
children: "Settings\u2026"
|
|
21312
|
+
}
|
|
21313
|
+
),
|
|
21314
|
+
/* @__PURE__ */ jsx("div", { className: "chart-ctx-divider" }),
|
|
21315
|
+
/* @__PURE__ */ jsx(
|
|
21316
|
+
"button",
|
|
21317
|
+
{
|
|
21318
|
+
className: "chart-ctx-item",
|
|
21319
|
+
onClick: () => {
|
|
21320
|
+
onResetView();
|
|
21321
|
+
onClose();
|
|
21322
|
+
},
|
|
21323
|
+
children: "Reset Chart View"
|
|
21324
|
+
}
|
|
21325
|
+
),
|
|
21326
|
+
/* @__PURE__ */ jsx("div", { className: "chart-ctx-divider" }),
|
|
21327
|
+
/* @__PURE__ */ jsx(
|
|
21328
|
+
"button",
|
|
21329
|
+
{
|
|
21330
|
+
className: "chart-ctx-item chart-ctx-item--danger",
|
|
21331
|
+
onClick: () => {
|
|
21332
|
+
onClearIndicators();
|
|
21333
|
+
onClose();
|
|
21334
|
+
},
|
|
21335
|
+
children: "Clear Indicators"
|
|
21336
|
+
}
|
|
21337
|
+
),
|
|
21338
|
+
/* @__PURE__ */ jsx(
|
|
21339
|
+
"button",
|
|
21340
|
+
{
|
|
21341
|
+
className: "chart-ctx-item chart-ctx-item--danger",
|
|
21342
|
+
onClick: () => {
|
|
21343
|
+
onClearDrawings();
|
|
21344
|
+
onClose();
|
|
21345
|
+
},
|
|
21346
|
+
children: "Clear Drawings"
|
|
21347
|
+
}
|
|
21348
|
+
)
|
|
21349
|
+
] })
|
|
21350
|
+
] }),
|
|
21351
|
+
document.body
|
|
21352
|
+
);
|
|
21349
21353
|
}
|
|
21350
21354
|
var SECTIONS = [
|
|
21351
21355
|
{ id: "symbol", label: "Symbol", icon: "\u{1D446}" },
|
|
@@ -25523,7 +25527,7 @@ var demonstrationTool = {
|
|
|
25523
25527
|
};
|
|
25524
25528
|
|
|
25525
25529
|
// src/version.ts
|
|
25526
|
-
var FORGECHARTS_VERSION = "1.5.
|
|
25530
|
+
var FORGECHARTS_VERSION = "1.5.48" ;
|
|
25527
25531
|
|
|
25528
25532
|
// src/compatibility.ts
|
|
25529
25533
|
var MIN_KIT_API = 1;
|