@photonviz/react 0.1.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/LICENSE +21 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +135 -0
- package/dist/index.js.map +1 -0
- package/package.json +49 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Photon contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { CSSProperties, ReactNode, RefObject } from 'react';
|
|
3
|
+
import { AreaOptions, BarOptions, LineOptions, PlotOptions, ScatterOptions, YAxisOptions, Plot as Plot$1 } from '@photonviz/core';
|
|
4
|
+
|
|
5
|
+
/** Imperative escape hatch: get a ref + the underlying core Plot instance. */
|
|
6
|
+
declare function usePlot(options?: PlotOptions): [RefObject<HTMLDivElement>, Plot$1 | null];
|
|
7
|
+
interface PlotProps {
|
|
8
|
+
options?: PlotOptions;
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: CSSProperties;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
/** Container component. Children (Line, Scatter, …) register once it mounts. */
|
|
14
|
+
declare function Plot({ options, className, style, children }: PlotProps): react.JSX.Element;
|
|
15
|
+
type LineProps = LineOptions;
|
|
16
|
+
declare function Line({ x, y, color, width, name, yAxis, step, join, decimate }: LineProps): null;
|
|
17
|
+
type ScatterProps = ScatterOptions;
|
|
18
|
+
declare function Scatter({ x, y, color, size, name, yAxis, colorBy }: ScatterProps): null;
|
|
19
|
+
type BarProps = BarOptions;
|
|
20
|
+
declare function Bar({ x, y, base, width, offset, color, name, yAxis }: BarProps): null;
|
|
21
|
+
type AreaProps = AreaOptions;
|
|
22
|
+
declare function Area({ x, y, base, color, name, yAxis }: AreaProps): null;
|
|
23
|
+
interface YAxisProps extends YAxisOptions {
|
|
24
|
+
id: string;
|
|
25
|
+
}
|
|
26
|
+
/** Register an additional Y axis. (Core has no live removal, so it persists.) */
|
|
27
|
+
declare function YAxis({ id, ...opts }: YAxisProps): null;
|
|
28
|
+
|
|
29
|
+
export { Area, type AreaProps, Bar, type BarProps, Line, type LineProps, Plot, type PlotProps, Scatter, type ScatterProps, YAxis, type YAxisProps, usePlot };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
// src/index.tsx
|
|
2
|
+
import {
|
|
3
|
+
Plot as CorePlot
|
|
4
|
+
} from "@photonviz/core";
|
|
5
|
+
import {
|
|
6
|
+
createContext,
|
|
7
|
+
useContext,
|
|
8
|
+
useEffect,
|
|
9
|
+
useRef,
|
|
10
|
+
useState
|
|
11
|
+
} from "react";
|
|
12
|
+
import { jsx } from "react/jsx-runtime";
|
|
13
|
+
var PlotContext = createContext(null);
|
|
14
|
+
function usePlot(options) {
|
|
15
|
+
const ref = useRef(null);
|
|
16
|
+
const [plot, setPlot] = useState(null);
|
|
17
|
+
const optsRef = useRef(options);
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
if (!ref.current) return;
|
|
20
|
+
const p = new CorePlot(ref.current, optsRef.current);
|
|
21
|
+
setPlot(p);
|
|
22
|
+
return () => p.destroy();
|
|
23
|
+
}, []);
|
|
24
|
+
return [ref, plot];
|
|
25
|
+
}
|
|
26
|
+
function Plot({ options, className, style, children }) {
|
|
27
|
+
const [ref, plot] = usePlot(options);
|
|
28
|
+
return /* @__PURE__ */ jsx(
|
|
29
|
+
"div",
|
|
30
|
+
{
|
|
31
|
+
ref,
|
|
32
|
+
className,
|
|
33
|
+
style: { position: "relative", width: "100%", height: "100%", ...style },
|
|
34
|
+
children: /* @__PURE__ */ jsx(PlotContext.Provider, { value: plot, children: plot ? children : null })
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
function Line({ x, y, color, width, name, yAxis, step, join, decimate }) {
|
|
39
|
+
const plot = useContext(PlotContext);
|
|
40
|
+
const layer = useRef(null);
|
|
41
|
+
useEffect(() => {
|
|
42
|
+
if (!plot) return;
|
|
43
|
+
const l = plot.addLine({ x, y, color, width, name, yAxis, step, join, decimate });
|
|
44
|
+
layer.current = l;
|
|
45
|
+
return () => {
|
|
46
|
+
plot.removeLayer(l);
|
|
47
|
+
layer.current = null;
|
|
48
|
+
};
|
|
49
|
+
}, [plot, color, width, name, yAxis, step, join, decimate]);
|
|
50
|
+
useEffect(() => {
|
|
51
|
+
if (layer.current && plot) {
|
|
52
|
+
layer.current.setData(x, y);
|
|
53
|
+
plot.render();
|
|
54
|
+
}
|
|
55
|
+
}, [x, y]);
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
function Scatter({ x, y, color, size, name, yAxis, colorBy }) {
|
|
59
|
+
const plot = useContext(PlotContext);
|
|
60
|
+
const layer = useRef(null);
|
|
61
|
+
useEffect(() => {
|
|
62
|
+
if (!plot) return;
|
|
63
|
+
const l = plot.addScatter({ x, y, color, size, name, yAxis, colorBy });
|
|
64
|
+
layer.current = l;
|
|
65
|
+
return () => {
|
|
66
|
+
plot.removeLayer(l);
|
|
67
|
+
layer.current = null;
|
|
68
|
+
};
|
|
69
|
+
}, [plot, color, size, name, yAxis, colorBy]);
|
|
70
|
+
useEffect(() => {
|
|
71
|
+
if (layer.current && plot) {
|
|
72
|
+
layer.current.setData(x, y);
|
|
73
|
+
plot.render();
|
|
74
|
+
}
|
|
75
|
+
}, [x, y]);
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
function Bar({ x, y, base, width, offset, color, name, yAxis }) {
|
|
79
|
+
const plot = useContext(PlotContext);
|
|
80
|
+
const layer = useRef(null);
|
|
81
|
+
useEffect(() => {
|
|
82
|
+
if (!plot) return;
|
|
83
|
+
const l = plot.addBar({ x, y, base, width, offset, color, name, yAxis });
|
|
84
|
+
layer.current = l;
|
|
85
|
+
return () => {
|
|
86
|
+
plot.removeLayer(l);
|
|
87
|
+
layer.current = null;
|
|
88
|
+
};
|
|
89
|
+
}, [plot, width, offset, color, name, yAxis]);
|
|
90
|
+
useEffect(() => {
|
|
91
|
+
if (layer.current && plot) {
|
|
92
|
+
layer.current.setData(x, y, base);
|
|
93
|
+
plot.render();
|
|
94
|
+
}
|
|
95
|
+
}, [x, y, base]);
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
function Area({ x, y, base, color, name, yAxis }) {
|
|
99
|
+
const plot = useContext(PlotContext);
|
|
100
|
+
const layer = useRef(null);
|
|
101
|
+
useEffect(() => {
|
|
102
|
+
if (!plot) return;
|
|
103
|
+
const l = plot.addArea({ x, y, base, color, name, yAxis });
|
|
104
|
+
layer.current = l;
|
|
105
|
+
return () => {
|
|
106
|
+
plot.removeLayer(l);
|
|
107
|
+
layer.current = null;
|
|
108
|
+
};
|
|
109
|
+
}, [plot, color, name, yAxis]);
|
|
110
|
+
useEffect(() => {
|
|
111
|
+
if (layer.current && plot) {
|
|
112
|
+
layer.current.setData(x, y, base);
|
|
113
|
+
plot.render();
|
|
114
|
+
}
|
|
115
|
+
}, [x, y, base]);
|
|
116
|
+
return null;
|
|
117
|
+
}
|
|
118
|
+
function YAxis({ id, ...opts }) {
|
|
119
|
+
const plot = useContext(PlotContext);
|
|
120
|
+
useEffect(() => {
|
|
121
|
+
if (!plot) return;
|
|
122
|
+
plot.addYAxis(id, opts);
|
|
123
|
+
}, [plot, id]);
|
|
124
|
+
return null;
|
|
125
|
+
}
|
|
126
|
+
export {
|
|
127
|
+
Area,
|
|
128
|
+
Bar,
|
|
129
|
+
Line,
|
|
130
|
+
Plot,
|
|
131
|
+
Scatter,
|
|
132
|
+
YAxis,
|
|
133
|
+
usePlot
|
|
134
|
+
};
|
|
135
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.tsx"],"sourcesContent":["import {\n AreaLayer,\n BarLayer,\n LineLayer,\n Plot as CorePlot,\n ScatterLayer,\n type AreaOptions,\n type BarOptions,\n type LineOptions,\n type PlotOptions,\n type ScatterOptions,\n type YAxisOptions,\n} from \"@photonviz/core\";\nimport {\n createContext,\n useContext,\n useEffect,\n useRef,\n useState,\n type CSSProperties,\n type ReactNode,\n type RefObject,\n} from \"react\";\n\nconst PlotContext = createContext<CorePlot | null>(null);\n\n/** Imperative escape hatch: get a ref + the underlying core Plot instance. */\nexport function usePlot(options?: PlotOptions): [RefObject<HTMLDivElement>, CorePlot | null] {\n const ref = useRef<HTMLDivElement>(null);\n const [plot, setPlot] = useState<CorePlot | null>(null);\n const optsRef = useRef(options);\n useEffect(() => {\n if (!ref.current) return;\n const p = new CorePlot(ref.current, optsRef.current);\n setPlot(p);\n return () => p.destroy();\n }, []);\n return [ref, plot];\n}\n\nexport interface PlotProps {\n options?: PlotOptions;\n className?: string;\n style?: CSSProperties;\n children?: ReactNode;\n}\n\n/** Container component. Children (Line, Scatter, …) register once it mounts. */\nexport function Plot({ options, className, style, children }: PlotProps) {\n const [ref, plot] = usePlot(options);\n return (\n <div\n ref={ref}\n className={className}\n style={{ position: \"relative\", width: \"100%\", height: \"100%\", ...style }}\n >\n <PlotContext.Provider value={plot}>{plot ? children : null}</PlotContext.Provider>\n </div>\n );\n}\n\nexport type LineProps = LineOptions;\n\nexport function Line({ x, y, color, width, name, yAxis, step, join, decimate }: LineProps) {\n const plot = useContext(PlotContext);\n const layer = useRef<LineLayer | null>(null);\n useEffect(() => {\n if (!plot) return;\n const l = plot.addLine({ x, y, color, width, name, yAxis, step, join, decimate });\n layer.current = l;\n return () => {\n plot.removeLayer(l);\n layer.current = null;\n };\n // Structural props → recreate the layer.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [plot, color, width, name, yAxis, step, join, decimate]);\n useEffect(() => {\n if (layer.current && plot) {\n layer.current.setData(x, y);\n plot.render();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [x, y]);\n return null;\n}\n\nexport type ScatterProps = ScatterOptions;\n\nexport function Scatter({ x, y, color, size, name, yAxis, colorBy }: ScatterProps) {\n const plot = useContext(PlotContext);\n const layer = useRef<ScatterLayer | null>(null);\n useEffect(() => {\n if (!plot) return;\n const l = plot.addScatter({ x, y, color, size, name, yAxis, colorBy });\n layer.current = l;\n return () => {\n plot.removeLayer(l);\n layer.current = null;\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [plot, color, size, name, yAxis, colorBy]);\n useEffect(() => {\n if (layer.current && plot) {\n layer.current.setData(x, y);\n plot.render();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [x, y]);\n return null;\n}\n\nexport type BarProps = BarOptions;\n\nexport function Bar({ x, y, base, width, offset, color, name, yAxis }: BarProps) {\n const plot = useContext(PlotContext);\n const layer = useRef<BarLayer | null>(null);\n useEffect(() => {\n if (!plot) return;\n const l = plot.addBar({ x, y, base, width, offset, color, name, yAxis });\n layer.current = l;\n return () => {\n plot.removeLayer(l);\n layer.current = null;\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [plot, width, offset, color, name, yAxis]);\n useEffect(() => {\n if (layer.current && plot) {\n layer.current.setData(x, y, base);\n plot.render();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [x, y, base]);\n return null;\n}\n\nexport type AreaProps = AreaOptions;\n\nexport function Area({ x, y, base, color, name, yAxis }: AreaProps) {\n const plot = useContext(PlotContext);\n const layer = useRef<AreaLayer | null>(null);\n useEffect(() => {\n if (!plot) return;\n const l = plot.addArea({ x, y, base, color, name, yAxis });\n layer.current = l;\n return () => {\n plot.removeLayer(l);\n layer.current = null;\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [plot, color, name, yAxis]);\n useEffect(() => {\n if (layer.current && plot) {\n layer.current.setData(x, y, base);\n plot.render();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [x, y, base]);\n return null;\n}\n\nexport interface YAxisProps extends YAxisOptions {\n id: string;\n}\n\n/** Register an additional Y axis. (Core has no live removal, so it persists.) */\nexport function YAxis({ id, ...opts }: YAxisProps) {\n const plot = useContext(PlotContext);\n useEffect(() => {\n if (!plot) return;\n plot.addYAxis(id, opts);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [plot, id]);\n return null;\n}\n"],"mappings":";AAAA;AAAA,EAIE,QAAQ;AAAA,OAQH;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAIK;AAkCD;AAhCN,IAAM,cAAc,cAA+B,IAAI;AAGhD,SAAS,QAAQ,SAAqE;AAC3F,QAAM,MAAM,OAAuB,IAAI;AACvC,QAAM,CAAC,MAAM,OAAO,IAAI,SAA0B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OAAO,MAAM,MAAM,GAAc;AAClE,QAAM,OAAO,WAAW,WAAW;AACnC,QAAM,QAAQ,OAAyB,IAAI;AAC3C,YAAU,MAAM;AACd,QAAI,CAAC,KAAM;AACX,UAAM,IAAI,KAAK,QAAQ,EAAE,GAAG,GAAG,MAAM,OAAO,MAAM,MAAM,CAAC;AACzD,UAAM,UAAU;AAChB,WAAO,MAAM;AACX,WAAK,YAAY,CAAC;AAClB,YAAM,UAAU;AAAA,IAClB;AAAA,EAEF,GAAG,CAAC,MAAM,OAAO,MAAM,KAAK,CAAC;AAC7B,YAAU,MAAM;AACd,QAAI,MAAM,WAAW,MAAM;AACzB,YAAM,QAAQ,QAAQ,GAAG,GAAG,IAAI;AAChC,WAAK,OAAO;AAAA,IACd;AAAA,EAEF,GAAG,CAAC,GAAG,GAAG,IAAI,CAAC;AACf,SAAO;AACT;AAOO,SAAS,MAAM,EAAE,IAAI,GAAG,KAAK,GAAe;AACjD,QAAM,OAAO,WAAW,WAAW;AACnC,YAAU,MAAM;AACd,QAAI,CAAC,KAAM;AACX,SAAK,SAAS,IAAI,IAAI;AAAA,EAExB,GAAG,CAAC,MAAM,EAAE,CAAC;AACb,SAAO;AACT;","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@photonviz/react",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "React bindings for Photon — WebGL2 scientific plotting",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"sideEffects": false,
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@photonviz/core": "0.1.0"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"react": ">=18"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"react": "^18.3.1",
|
|
27
|
+
"@types/react": "^18.3.12"
|
|
28
|
+
},
|
|
29
|
+
"keywords": [
|
|
30
|
+
"react",
|
|
31
|
+
"webgl2",
|
|
32
|
+
"plot",
|
|
33
|
+
"chart",
|
|
34
|
+
"photon",
|
|
35
|
+
"visualization"
|
|
36
|
+
],
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "git+https://github.com/coredumpdev/photon.git",
|
|
40
|
+
"directory": "packages/react"
|
|
41
|
+
},
|
|
42
|
+
"homepage": "https://github.com/coredumpdev/photon#readme",
|
|
43
|
+
"license": "MIT",
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "tsup",
|
|
46
|
+
"dev": "tsup --watch",
|
|
47
|
+
"typecheck": "tsc --noEmit"
|
|
48
|
+
}
|
|
49
|
+
}
|