@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
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ChartContextMenu — right-click context menu for the chart canvas.
|
|
3
|
-
*
|
|
4
|
-
* Placed at fixed (x, y) on screen. Clicking outside dismisses it via the
|
|
5
|
-
* transparent backdrop. The parent is responsible for calling onClose.
|
|
6
|
-
*/
|
|
7
1
|
type Props = {
|
|
8
2
|
x: number;
|
|
9
3
|
y: number;
|
|
@@ -13,6 +7,6 @@ type Props = {
|
|
|
13
7
|
onClearIndicators: () => void;
|
|
14
8
|
onResetView: () => void;
|
|
15
9
|
};
|
|
16
|
-
export declare function ChartContextMenu({ x, y, onClose, onSettings, onClearDrawings, onClearIndicators, onResetView, }: Props): import("react").
|
|
10
|
+
export declare function ChartContextMenu({ x, y, onClose, onSettings, onClearDrawings, onClearIndicators, onResetView, }: Props): import("react").ReactPortal | null;
|
|
17
11
|
export {};
|
|
18
12
|
//# sourceMappingURL=ChartContextMenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartContextMenu.d.ts","sourceRoot":"","sources":["../../../src/react/canvas/ChartContextMenu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChartContextMenu.d.ts","sourceRoot":"","sources":["../../../src/react/canvas/ChartContextMenu.tsx"],"names":[],"mappings":"AAiBA,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,EAC/B,CAAC,EACD,CAAC,EACD,OAAO,EACP,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,WAAW,GACZ,EAAE,KAAK,sCAqCP"}
|
package/dist/react/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React11, { forwardRef, useRef, useState, useEffect, useImperativeHandle, useCallback, createContext, useMemo, useContext, useReducer } from 'react';
|
|
2
2
|
import { TextStyle, Application, Container, Graphics, Text, FillGradient, CanvasTextMetrics } from 'pixi.js';
|
|
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
|
// src/react/canvas/ChartCanvas.tsx
|
|
7
7
|
|
|
@@ -18031,7 +18031,7 @@ var DEMONSTRATION_STROKE = "rgba(255, 200, 50, 0.7)";
|
|
|
18031
18031
|
var DEMONSTRATION_COLOR = "var(--crosshair-overlay, rgba(255,255,255,0.75))";
|
|
18032
18032
|
|
|
18033
18033
|
// src/version.ts
|
|
18034
|
-
var FORGECHARTS_VERSION = "1.5.
|
|
18034
|
+
var FORGECHARTS_VERSION = "1.5.48" ;
|
|
18035
18035
|
function applyRuntimeConfig(caps, config) {
|
|
18036
18036
|
if (!config) return caps;
|
|
18037
18037
|
const orderEntry = config.enableOrderEntry === false ? false : caps.orderEntry;
|
|
@@ -21005,60 +21005,64 @@ function ChartContextMenu({
|
|
|
21005
21005
|
onClearIndicators,
|
|
21006
21006
|
onResetView
|
|
21007
21007
|
}) {
|
|
21008
|
-
|
|
21009
|
-
|
|
21010
|
-
|
|
21011
|
-
onClose()
|
|
21012
|
-
|
|
21013
|
-
|
|
21014
|
-
|
|
21015
|
-
|
|
21016
|
-
|
|
21017
|
-
|
|
21018
|
-
|
|
21019
|
-
|
|
21020
|
-
|
|
21021
|
-
|
|
21022
|
-
|
|
21023
|
-
|
|
21024
|
-
|
|
21025
|
-
|
|
21026
|
-
|
|
21027
|
-
"
|
|
21028
|
-
|
|
21029
|
-
|
|
21030
|
-
|
|
21031
|
-
|
|
21032
|
-
|
|
21033
|
-
|
|
21034
|
-
|
|
21035
|
-
|
|
21036
|
-
|
|
21037
|
-
|
|
21038
|
-
|
|
21039
|
-
"
|
|
21040
|
-
|
|
21041
|
-
|
|
21042
|
-
|
|
21043
|
-
|
|
21044
|
-
|
|
21045
|
-
|
|
21046
|
-
|
|
21047
|
-
|
|
21048
|
-
|
|
21049
|
-
|
|
21050
|
-
|
|
21051
|
-
|
|
21052
|
-
|
|
21053
|
-
|
|
21054
|
-
|
|
21055
|
-
|
|
21056
|
-
|
|
21057
|
-
|
|
21058
|
-
|
|
21059
|
-
|
|
21060
|
-
|
|
21061
|
-
|
|
21008
|
+
if (typeof document === "undefined") return null;
|
|
21009
|
+
return createPortal(
|
|
21010
|
+
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
21011
|
+
/* @__PURE__ */ jsx("div", { className: "chart-ctx-backdrop", onClick: onClose, onContextMenu: (e) => {
|
|
21012
|
+
e.preventDefault();
|
|
21013
|
+
onClose();
|
|
21014
|
+
} }),
|
|
21015
|
+
/* @__PURE__ */ jsxs("div", { className: "chart-ctx-menu", style: { left: x, top: y }, children: [
|
|
21016
|
+
/* @__PURE__ */ jsx(
|
|
21017
|
+
"button",
|
|
21018
|
+
{
|
|
21019
|
+
className: "chart-ctx-item",
|
|
21020
|
+
onClick: () => {
|
|
21021
|
+
onSettings();
|
|
21022
|
+
onClose();
|
|
21023
|
+
},
|
|
21024
|
+
children: "Settings\u2026"
|
|
21025
|
+
}
|
|
21026
|
+
),
|
|
21027
|
+
/* @__PURE__ */ jsx("div", { className: "chart-ctx-divider" }),
|
|
21028
|
+
/* @__PURE__ */ jsx(
|
|
21029
|
+
"button",
|
|
21030
|
+
{
|
|
21031
|
+
className: "chart-ctx-item",
|
|
21032
|
+
onClick: () => {
|
|
21033
|
+
onResetView();
|
|
21034
|
+
onClose();
|
|
21035
|
+
},
|
|
21036
|
+
children: "Reset Chart View"
|
|
21037
|
+
}
|
|
21038
|
+
),
|
|
21039
|
+
/* @__PURE__ */ jsx("div", { className: "chart-ctx-divider" }),
|
|
21040
|
+
/* @__PURE__ */ jsx(
|
|
21041
|
+
"button",
|
|
21042
|
+
{
|
|
21043
|
+
className: "chart-ctx-item chart-ctx-item--danger",
|
|
21044
|
+
onClick: () => {
|
|
21045
|
+
onClearIndicators();
|
|
21046
|
+
onClose();
|
|
21047
|
+
},
|
|
21048
|
+
children: "Clear Indicators"
|
|
21049
|
+
}
|
|
21050
|
+
),
|
|
21051
|
+
/* @__PURE__ */ jsx(
|
|
21052
|
+
"button",
|
|
21053
|
+
{
|
|
21054
|
+
className: "chart-ctx-item chart-ctx-item--danger",
|
|
21055
|
+
onClick: () => {
|
|
21056
|
+
onClearDrawings();
|
|
21057
|
+
onClose();
|
|
21058
|
+
},
|
|
21059
|
+
children: "Clear Drawings"
|
|
21060
|
+
}
|
|
21061
|
+
)
|
|
21062
|
+
] })
|
|
21063
|
+
] }),
|
|
21064
|
+
document.body
|
|
21065
|
+
);
|
|
21062
21066
|
}
|
|
21063
21067
|
var SECTIONS = [
|
|
21064
21068
|
{ id: "symbol", label: "Symbol", icon: "\u{1D446}" },
|