@pluot/react 0.1.6 → 0.1.8
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 +1474 -1380
- package/dist-tsc/Pluot.d.ts.map +1 -1
- package/dist-tsc/Pluot.js +4 -1
- package/package.json +2 -2
- package/src/Pluot.jsx +4 -0
package/dist-tsc/Pluot.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pluot.d.ts","sourceRoot":"","sources":["../src/Pluot.jsx"],"names":[],"mappings":"AA+CA,
|
|
1
|
+
{"version":3,"file":"Pluot.d.ts","sourceRoot":"","sources":["../src/Pluot.jsx"],"names":[],"mappings":"AA+CA,uCA0aC"}
|
package/dist-tsc/Pluot.js
CHANGED
|
@@ -32,7 +32,7 @@ function normalizePickingResult(data) {
|
|
|
32
32
|
return result;
|
|
33
33
|
}
|
|
34
34
|
export function Pluot(props) {
|
|
35
|
-
const { width: widthProp, height: heightProp, plotId, plotType, store: storeProp, storeName: storeNameProp, stores: storesProp, plotParams, viewMode = "2d", marginBottom = 100.0, marginLeft = 100.0, marginTop = 100.0, marginRight = 100.0, aspectRatioMode = "Contain", // "Ignore", "Contain", "Cover"
|
|
35
|
+
const { schemaVersion = null, width: widthProp, height: heightProp, plotId, plotType, store: storeProp, storeName: storeNameProp, stores: storesProp, plotParams, viewMode = "2d", marginBottom = 100.0, marginLeft = 100.0, marginTop = 100.0, marginRight = 100.0, aspectRatioMode = "Contain", // "Ignore", "Contain", "Cover"
|
|
36
36
|
aspectRatioAlignmentMode = "Start", // "Center", "Start", "End"
|
|
37
37
|
format = "Raster", // "Raster", "Vector"
|
|
38
38
|
minTimeout = 32, maxTimeout = 5000, allowSimultaneousRenders = true, debugMargins = false, cameraMatrix: controlledCameraMatrix = null, setCameraMatrix: setControlledCameraMatrix = null, enablePicking = true, backgroundColor = undefined, } = props;
|
|
@@ -128,6 +128,7 @@ export function Pluot(props) {
|
|
|
128
128
|
// The picking callback.
|
|
129
129
|
const pickFrame = useEffectEvent(async (screenCoordX, screenCoordY) => {
|
|
130
130
|
const renderParams = {
|
|
131
|
+
schema_version: schemaVersion,
|
|
131
132
|
width,
|
|
132
133
|
height,
|
|
133
134
|
format: format,
|
|
@@ -189,6 +190,7 @@ export function Pluot(props) {
|
|
|
189
190
|
isRenderingRef.current = true;
|
|
190
191
|
console.log('wasm.render');
|
|
191
192
|
const renderParams = {
|
|
193
|
+
schema_version: schemaVersion,
|
|
192
194
|
width,
|
|
193
195
|
height,
|
|
194
196
|
format: format,
|
|
@@ -235,6 +237,7 @@ export function Pluot(props) {
|
|
|
235
237
|
}
|
|
236
238
|
svgRef.current.innerHTML = gContents;
|
|
237
239
|
// TODO: check for bailed early
|
|
240
|
+
setBailedEarly(false);
|
|
238
241
|
}
|
|
239
242
|
else {
|
|
240
243
|
// Format: Raster (render to canvas)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluot/react",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.8",
|
|
5
5
|
"description": "React component for visualization with Pluot",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"author": "Mark Keller",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"mouse-wheel": "^1.0.2",
|
|
37
37
|
"lz-string": "^1.5.0",
|
|
38
38
|
"lodash-es": "^4.17.23",
|
|
39
|
-
"@pluot/core": "0.1.
|
|
39
|
+
"@pluot/core": "0.1.8"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"vitest": "^3.2.4",
|
package/src/Pluot.jsx
CHANGED
|
@@ -47,6 +47,7 @@ function normalizePickingResult(data) {
|
|
|
47
47
|
|
|
48
48
|
export function Pluot(props) {
|
|
49
49
|
const {
|
|
50
|
+
schemaVersion = null,
|
|
50
51
|
width: widthProp,
|
|
51
52
|
height: heightProp,
|
|
52
53
|
plotId,
|
|
@@ -183,6 +184,7 @@ export function Pluot(props) {
|
|
|
183
184
|
// The picking callback.
|
|
184
185
|
const pickFrame = useEffectEvent(async (screenCoordX, screenCoordY) => {
|
|
185
186
|
const renderParams = {
|
|
187
|
+
schema_version: schemaVersion,
|
|
186
188
|
width,
|
|
187
189
|
height,
|
|
188
190
|
format: format,
|
|
@@ -258,6 +260,7 @@ export function Pluot(props) {
|
|
|
258
260
|
console.log('wasm.render');
|
|
259
261
|
|
|
260
262
|
const renderParams = {
|
|
263
|
+
schema_version: schemaVersion,
|
|
261
264
|
width,
|
|
262
265
|
height,
|
|
263
266
|
format: format,
|
|
@@ -309,6 +312,7 @@ export function Pluot(props) {
|
|
|
309
312
|
svgRef.current.innerHTML = gContents;
|
|
310
313
|
|
|
311
314
|
// TODO: check for bailed early
|
|
315
|
+
setBailedEarly(false);
|
|
312
316
|
} else {
|
|
313
317
|
// Format: Raster (render to canvas)
|
|
314
318
|
const canvas = canvasRef.current;
|