@vitessce/gl 2.0.3 → 3.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/{deflate.04b04545.mjs → deflate-36830437.js} +2 -2
- package/dist/{index.9aaafdeb.mjs → index-d34ff949.js} +13285 -10710
- package/dist/index.js +33 -0
- package/dist/{jpeg.060c9bc0.mjs → jpeg-a66190dc.js} +1 -1
- package/dist/{lerc.62b02b29.mjs → lerc-21af7ec8.js} +76 -5
- package/dist/{lzw.19cdd4de.mjs → lzw-76194936.js} +1 -1
- package/dist/{packbits.03fc75de.mjs → packbits-bf7850c4.js} +1 -1
- package/dist/{pako.esm.0e57f323.mjs → pako.esm-68f84e2a.js} +97 -15
- package/dist/{raw.739ce163.mjs → raw-05d82ade.js} +1 -1
- package/dist/{webimage.4e868fb9.mjs → webimage-1ceac06a.js} +1 -1
- package/dist-tsc/BitmaskLayer.d.ts +74 -0
- package/dist-tsc/BitmaskLayer.d.ts.map +1 -0
- package/dist-tsc/BitmaskLayer.js +142 -0
- package/dist-tsc/HeatmapBitmapLayer.d.ts +93 -0
- package/dist-tsc/HeatmapBitmapLayer.d.ts.map +1 -0
- package/dist-tsc/HeatmapBitmapLayer.js +123 -0
- package/dist-tsc/HeatmapCompositeTextLayer.d.ts +11 -0
- package/dist-tsc/HeatmapCompositeTextLayer.d.ts.map +1 -0
- package/dist-tsc/HeatmapCompositeTextLayer.js +129 -0
- package/dist-tsc/PaddedExpressionHeatmapBitmapLayer.d.ts +93 -0
- package/dist-tsc/PaddedExpressionHeatmapBitmapLayer.d.ts.map +1 -0
- package/dist-tsc/PaddedExpressionHeatmapBitmapLayer.js +129 -0
- package/dist-tsc/PixelatedBitmapLayer.d.ts +10 -0
- package/dist-tsc/PixelatedBitmapLayer.d.ts.map +1 -0
- package/dist-tsc/PixelatedBitmapLayer.js +26 -0
- package/dist-tsc/ScaledExpressionExtension/ScaledExpressionExtension.d.ts +62 -0
- package/dist-tsc/ScaledExpressionExtension/ScaledExpressionExtension.d.ts.map +1 -0
- package/dist-tsc/ScaledExpressionExtension/ScaledExpressionExtension.js +105 -0
- package/dist-tsc/ScaledExpressionExtension/index.d.ts +3 -0
- package/dist-tsc/ScaledExpressionExtension/index.d.ts.map +1 -0
- package/dist-tsc/ScaledExpressionExtension/index.js +2 -0
- package/dist-tsc/ScaledExpressionExtension/shader-module.d.ts +17 -0
- package/dist-tsc/ScaledExpressionExtension/shader-module.d.ts.map +1 -0
- package/dist-tsc/ScaledExpressionExtension/shader-module.js +32 -0
- package/dist-tsc/SelectionExtension/SelectionExtension.d.ts +18 -0
- package/dist-tsc/SelectionExtension/SelectionExtension.d.ts.map +1 -0
- package/dist-tsc/SelectionExtension/SelectionExtension.js +31 -0
- package/dist-tsc/SelectionExtension/index.d.ts +3 -0
- package/dist-tsc/SelectionExtension/index.d.ts.map +1 -0
- package/dist-tsc/SelectionExtension/index.js +2 -0
- package/dist-tsc/SelectionExtension/shader-module.d.ts +12 -0
- package/dist-tsc/SelectionExtension/shader-module.d.ts.map +1 -0
- package/dist-tsc/SelectionExtension/shader-module.js +20 -0
- package/dist-tsc/SelectionLayer.d.ts +15 -0
- package/dist-tsc/SelectionLayer.d.ts.map +1 -0
- package/dist-tsc/SelectionLayer.js +157 -0
- package/dist-tsc/bitmask-layer-shaders.d.ts +3 -0
- package/dist-tsc/bitmask-layer-shaders.d.ts.map +1 -0
- package/dist-tsc/bitmask-layer-shaders.js +90 -0
- package/dist-tsc/constants.d.ts +8 -0
- package/dist-tsc/constants.d.ts.map +1 -0
- package/dist-tsc/constants.js +11 -0
- package/dist-tsc/deck.d.ts +2 -0
- package/dist-tsc/deck.d.ts.map +1 -0
- package/dist-tsc/deck.js +4 -0
- package/dist-tsc/glsl/index.d.ts +2 -0
- package/dist-tsc/glsl/index.d.ts.map +1 -0
- package/dist-tsc/glsl/index.js +340 -0
- package/dist-tsc/heatmap-bitmap-layer-shaders.d.ts +13 -0
- package/dist-tsc/heatmap-bitmap-layer-shaders.d.ts.map +1 -0
- package/dist-tsc/heatmap-bitmap-layer-shaders.js +109 -0
- package/dist-tsc/heatmap-constants.d.ts +20 -0
- package/dist-tsc/heatmap-constants.d.ts.map +1 -0
- package/dist-tsc/heatmap-constants.js +27 -0
- package/dist-tsc/index.d.ts +14 -0
- package/dist-tsc/index.d.ts.map +1 -0
- package/dist-tsc/index.js +16 -13
- package/dist-tsc/luma.d.ts +2 -0
- package/dist-tsc/luma.d.ts.map +1 -0
- package/dist-tsc/luma.js +2 -0
- package/dist-tsc/padded-expression-heatmap-bitmap-layer-shaders.d.ts +13 -0
- package/dist-tsc/padded-expression-heatmap-bitmap-layer-shaders.d.ts.map +1 -0
- package/dist-tsc/padded-expression-heatmap-bitmap-layer-shaders.js +143 -0
- package/dist-tsc/selection-utils.d.ts +19 -0
- package/dist-tsc/selection-utils.d.ts.map +1 -0
- package/dist-tsc/selection-utils.js +92 -0
- package/dist-tsc/viv.d.ts +2 -0
- package/dist-tsc/viv.d.ts.map +1 -0
- package/dist-tsc/viv.js +3 -0
- package/package.json +16 -7
- package/src/BitmaskLayer.js +14 -4
- package/src/HeatmapBitmapLayer.js +3 -3
- package/src/HeatmapCompositeTextLayer.js +1 -1
- package/src/PaddedExpressionHeatmapBitmapLayer.js +3 -3
- package/src/PixelatedBitmapLayer.js +1 -1
- package/src/ScaledExpressionExtension/ScaledExpressionExtension.js +2 -2
- package/src/ScaledExpressionExtension/index.js +1 -1
- package/src/ScaledExpressionExtension/shader-module.js +1 -1
- package/src/SelectionExtension/SelectionExtension.js +1 -1
- package/src/SelectionExtension/index.js +1 -1
- package/src/SelectionLayer.js +1 -12
- package/src/bitmask-layer-shaders.js +1 -1
- package/src/heatmap-bitmap-layer-shaders.js +1 -1
- package/src/index.js +16 -13
- package/src/padded-expression-heatmap-bitmap-layer-shaders.js +1 -1
- package/src/selection-utils.js +1 -1
- package/dist/index.mjs +0 -33
|
@@ -2,13 +2,13 @@ import GL from '@luma.gl/constants'; // eslint-disable-line import/no-extraneous
|
|
|
2
2
|
import { _mergeShaders, project32, picking } from '@deck.gl/core'; // eslint-disable-line import/no-extraneous-dependencies
|
|
3
3
|
import { BitmapLayer } from '@deck.gl/layers'; // eslint-disable-line import/no-extraneous-dependencies
|
|
4
4
|
import { Texture2D } from '@luma.gl/core';
|
|
5
|
-
import { PIXELATED_TEXTURE_PARAMETERS, TILE_SIZE } from './heatmap-constants';
|
|
5
|
+
import { PIXELATED_TEXTURE_PARAMETERS, TILE_SIZE } from './heatmap-constants.js';
|
|
6
6
|
import {
|
|
7
7
|
GLSL_COLORMAPS,
|
|
8
8
|
GLSL_COLORMAP_DEFAULT,
|
|
9
9
|
COLORMAP_SHADER_PLACEHOLDER,
|
|
10
|
-
} from './constants';
|
|
11
|
-
import { vertexShader, fragmentShader } from './heatmap-bitmap-layer-shaders';
|
|
10
|
+
} from './constants.js';
|
|
11
|
+
import { vertexShader, fragmentShader } from './heatmap-bitmap-layer-shaders.js';
|
|
12
12
|
|
|
13
13
|
const defaultProps = {
|
|
14
14
|
image: { type: 'object', value: null, async: true },
|
|
@@ -3,9 +3,9 @@ import GL from '@luma.gl/constants'; // eslint-disable-line import/no-extraneous
|
|
|
3
3
|
import { _mergeShaders, project32, picking } from '@deck.gl/core'; // eslint-disable-line import/no-extraneous-dependencies
|
|
4
4
|
import { BitmapLayer } from '@deck.gl/layers'; // eslint-disable-line import/no-extraneous-dependencies
|
|
5
5
|
import { Texture2D } from '@luma.gl/core';
|
|
6
|
-
import { PIXELATED_TEXTURE_PARAMETERS, TILE_SIZE, DATA_TEXTURE_SIZE } from './heatmap-constants';
|
|
7
|
-
import { GLSL_COLORMAPS, GLSL_COLORMAP_DEFAULT, COLORMAP_SHADER_PLACEHOLDER } from './constants';
|
|
8
|
-
import { vertexShader, fragmentShader } from './padded-expression-heatmap-bitmap-layer-shaders';
|
|
6
|
+
import { PIXELATED_TEXTURE_PARAMETERS, TILE_SIZE, DATA_TEXTURE_SIZE } from './heatmap-constants.js';
|
|
7
|
+
import { GLSL_COLORMAPS, GLSL_COLORMAP_DEFAULT, COLORMAP_SHADER_PLACEHOLDER } from './constants.js';
|
|
8
|
+
import { vertexShader, fragmentShader } from './padded-expression-heatmap-bitmap-layer-shaders.js';
|
|
9
9
|
|
|
10
10
|
const defaultProps = {
|
|
11
11
|
image: { type: 'object', value: null, async: true },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BitmapLayer } from '@deck.gl/layers'; // eslint-disable-line import/no-extraneous-dependencies
|
|
2
2
|
import { CompositeLayer } from '@deck.gl/core'; // eslint-disable-line import/no-extraneous-dependencies
|
|
3
|
-
import { PIXELATED_TEXTURE_PARAMETERS } from './heatmap-constants';
|
|
3
|
+
import { PIXELATED_TEXTURE_PARAMETERS } from './heatmap-constants.js';
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
// These are the same defaultProps as for BitmapLayer.
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
3
3
|
import GL from '@luma.gl/constants';
|
|
4
4
|
import { LayerExtension } from '@deck.gl/core';
|
|
5
|
-
import { GLSL_COLORMAPS, GLSL_COLORMAP_DEFAULT, COLORMAP_SHADER_PLACEHOLDER } from '../constants';
|
|
6
|
-
import module from './shader-module';
|
|
5
|
+
import { GLSL_COLORMAPS, GLSL_COLORMAP_DEFAULT, COLORMAP_SHADER_PLACEHOLDER } from '../constants.js';
|
|
6
|
+
import module from './shader-module.js';
|
|
7
7
|
|
|
8
8
|
const defaultProps = {
|
|
9
9
|
colormap: { type: 'string', value: GLSL_COLORMAP_DEFAULT, compare: true },
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
3
3
|
import GL from '@luma.gl/constants';
|
|
4
4
|
import { LayerExtension } from '@deck.gl/core';
|
|
5
|
-
import module from './shader-module';
|
|
5
|
+
import module from './shader-module.js';
|
|
6
6
|
|
|
7
7
|
export default class SelectionExtension extends LayerExtension {
|
|
8
8
|
// eslint-disable-next-line class-methods-use-this
|
package/src/SelectionLayer.js
CHANGED
|
@@ -11,20 +11,11 @@ import booleanPointInPolygon from '@turf/boolean-point-in-polygon';
|
|
|
11
11
|
import { ScatterplotLayer } from '@deck.gl/layers';
|
|
12
12
|
import { SELECTION_TYPE } from 'nebula.gl';
|
|
13
13
|
import { EditableGeoJsonLayer } from '@nebula.gl/layers';
|
|
14
|
-
import {
|
|
14
|
+
import { DrawPolygonByDraggingMode, ViewMode } from '@nebula.gl/edit-modes';
|
|
15
15
|
|
|
16
16
|
const EDIT_TYPE_ADD = 'addFeature';
|
|
17
17
|
const EDIT_TYPE_CLEAR = 'clearFeatures';
|
|
18
18
|
|
|
19
|
-
// Customize the click handlers for the rectangle and polygon tools,
|
|
20
|
-
// so that clicking triggers the `onEdit` callback.
|
|
21
|
-
class ClickableDrawRectangleMode extends DrawRectangleMode {
|
|
22
|
-
// eslint-disable-next-line class-methods-use-this
|
|
23
|
-
handleClick(event, props) {
|
|
24
|
-
props.onEdit({ editType: EDIT_TYPE_CLEAR });
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
19
|
class ClickableDrawPolygonByDraggingMode extends DrawPolygonByDraggingMode {
|
|
29
20
|
// eslint-disable-next-line class-methods-use-this
|
|
30
21
|
handleClick(event, props) {
|
|
@@ -33,12 +24,10 @@ class ClickableDrawPolygonByDraggingMode extends DrawPolygonByDraggingMode {
|
|
|
33
24
|
}
|
|
34
25
|
|
|
35
26
|
const MODE_MAP = {
|
|
36
|
-
[SELECTION_TYPE.RECTANGLE]: ClickableDrawRectangleMode,
|
|
37
27
|
[SELECTION_TYPE.POLYGON]: ClickableDrawPolygonByDraggingMode,
|
|
38
28
|
};
|
|
39
29
|
|
|
40
30
|
const defaultProps = {
|
|
41
|
-
selectionType: SELECTION_TYPE.RECTANGLE,
|
|
42
31
|
layerIds: [],
|
|
43
32
|
onSelect: () => {},
|
|
44
33
|
};
|
package/src/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
// Selection Layers
|
|
2
|
-
export { getSelectionLayers } from './selection-utils';
|
|
2
|
+
export { getSelectionLayers } from './selection-utils.js';
|
|
3
3
|
|
|
4
4
|
// Heatmap Layers
|
|
5
|
-
export { default as HeatmapBitmapLayer } from './HeatmapBitmapLayer';
|
|
6
|
-
export { default as PixelatedBitmapLayer } from './PixelatedBitmapLayer';
|
|
7
|
-
export { default as HeatmapCompositeTextLayer } from './HeatmapCompositeTextLayer';
|
|
8
|
-
export { default as PaddedExpressionHeatmapBitmapLayer } from './PaddedExpressionHeatmapBitmapLayer';
|
|
5
|
+
export { default as HeatmapBitmapLayer } from './HeatmapBitmapLayer.js';
|
|
6
|
+
export { default as PixelatedBitmapLayer } from './PixelatedBitmapLayer.js';
|
|
7
|
+
export { default as HeatmapCompositeTextLayer } from './HeatmapCompositeTextLayer.js';
|
|
8
|
+
export { default as PaddedExpressionHeatmapBitmapLayer } from './PaddedExpressionHeatmapBitmapLayer.js';
|
|
9
9
|
|
|
10
10
|
export {
|
|
11
11
|
GLSL_COLORMAPS, GLSL_COLORMAP_DEFAULT, DEFAULT_GL_OPTIONS, SELECTION_TYPE,
|
|
12
|
-
} from './constants';
|
|
12
|
+
} from './constants.js';
|
|
13
13
|
|
|
14
14
|
// Layer extensions
|
|
15
|
-
export { default as ScaledExpressionExtension } from './ScaledExpressionExtension';
|
|
16
|
-
export { default as SelectionExtension } from './SelectionExtension';
|
|
17
|
-
export { default as BitmaskLayer } from './BitmaskLayer';
|
|
15
|
+
export { default as ScaledExpressionExtension } from './ScaledExpressionExtension/index.js';
|
|
16
|
+
export { default as SelectionExtension } from './SelectionExtension/index.js';
|
|
17
|
+
export { default as BitmaskLayer } from './BitmaskLayer.js';
|
|
18
18
|
|
|
19
19
|
export {
|
|
20
20
|
TILE_SIZE, MAX_ROW_AGG, MIN_ROW_AGG,
|
|
@@ -27,7 +27,10 @@ export {
|
|
|
27
27
|
AXIS_PADDING,
|
|
28
28
|
AXIS_MIN_SIZE,
|
|
29
29
|
AXIS_MAX_SIZE,
|
|
30
|
-
} from './heatmap-constants';
|
|
31
|
-
|
|
32
|
-
export * as
|
|
33
|
-
|
|
30
|
+
} from './heatmap-constants.js';
|
|
31
|
+
// eslint-disable-next-line react-refresh/only-export-components
|
|
32
|
+
export * as viv from './viv.js';
|
|
33
|
+
// eslint-disable-next-line react-refresh/only-export-components
|
|
34
|
+
export * as luma from './luma.js';
|
|
35
|
+
// eslint-disable-next-line react-refresh/only-export-components
|
|
36
|
+
export * as deck from './deck.js';
|
package/src/selection-utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { COORDINATE_SYSTEM } from '@deck.gl/core'; // eslint-disable-line import/no-extraneous-dependencies
|
|
2
2
|
import { DataFilterExtension } from '@deck.gl/extensions'; // eslint-disable-line import/no-extraneous-dependencies
|
|
3
|
-
import SelectionLayer from './SelectionLayer';
|
|
3
|
+
import SelectionLayer from './SelectionLayer.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Convert a DeckGL layer ID to a "base" layer ID for selection.
|
package/dist/index.mjs
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { e as distEs6 } from "./index.9aaafdeb.mjs";
|
|
2
|
-
import { m, l, A, p, o, n, h, C, j, D, G, d, H, b, M, i, k, c, P, S, f, T, r, g, q, v } from "./index.9aaafdeb.mjs";
|
|
3
|
-
import "react";
|
|
4
|
-
const SELECTION_TYPE = distEs6.SELECTION_TYPE;
|
|
5
|
-
export {
|
|
6
|
-
m as AXIS_FONT_FAMILY,
|
|
7
|
-
l as AXIS_LABEL_TEXT_SIZE,
|
|
8
|
-
A as AXIS_MARGIN,
|
|
9
|
-
p as AXIS_MAX_SIZE,
|
|
10
|
-
o as AXIS_MIN_SIZE,
|
|
11
|
-
n as AXIS_PADDING,
|
|
12
|
-
h as BitmaskLayer,
|
|
13
|
-
C as COLOR_BAR_SIZE,
|
|
14
|
-
j as DATA_TEXTURE_SIZE,
|
|
15
|
-
D as DEFAULT_GL_OPTIONS,
|
|
16
|
-
G as GLSL_COLORMAPS,
|
|
17
|
-
d as GLSL_COLORMAP_DEFAULT,
|
|
18
|
-
H as HeatmapBitmapLayer,
|
|
19
|
-
b as HeatmapCompositeTextLayer,
|
|
20
|
-
M as MAX_ROW_AGG,
|
|
21
|
-
i as MIN_ROW_AGG,
|
|
22
|
-
k as PIXELATED_TEXTURE_PARAMETERS,
|
|
23
|
-
c as PaddedExpressionHeatmapBitmapLayer,
|
|
24
|
-
P as PixelatedBitmapLayer,
|
|
25
|
-
SELECTION_TYPE,
|
|
26
|
-
S as ScaledExpressionExtension,
|
|
27
|
-
f as SelectionExtension,
|
|
28
|
-
T as TILE_SIZE,
|
|
29
|
-
r as deck,
|
|
30
|
-
g as getSelectionLayers,
|
|
31
|
-
q as luma,
|
|
32
|
-
v as viv
|
|
33
|
-
};
|