You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/viewers/PictureInPictureViewer.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ import { GLOBAL_SLIDER_DIMENSION_FIELDS } from '../constants';
22
22
* @param {Object} props.overview Allows you to pass settings into the OverviewView: { scale, margin, position, minimumWidth, maximumWidth,
23
23
* boundingBoxColor, boundingBoxOutlineWidth, viewportOutlineColor, viewportOutlineWidth}. See http://viv.gehlenborglab.org/#overviewview for defaults.
24
24
* @param {Boolean} props.overviewOn Whether or not to show the OverviewView.
25
-
* @param {Object} [props.hoverHooks] Object including utility hooks - an object with key handleValue like { handleValue: (valueArray) => {}, handleCoordinate: (coordinate) => {}} where valueArray
25
+
* @param {import('./VivViewer').HoverHooks} [props.hoverHooks] Object including utility hooks - an object with key handleValue like { handleValue: (valueArray) => {}, handleCoordinate: (coordinate) => {}} where valueArray
26
26
* has the pixel values for the image under the hover location and coordinate is the coordinate in the image from which the values are picked.
27
27
* @param {Array} [props.viewStates] Array of objects like [{ target: [x, y, 0], zoom: -zoom, id: DETAIL_VIEW_ID }] for setting where the viewer looks (optional - this is inferred from height/width/loader
28
28
* internally by default using getDefaultInitialViewState).
@@ -41,7 +41,7 @@ import { GLOBAL_SLIDER_DIMENSION_FIELDS } from '../constants';
41
41
* @param {import('./VivViewer').ViewStateChange} [props.onViewStateChange] Callback that returns the deck.gl view state (https://deck.gl/docs/api-reference/core/deck#onviewstatechange).
42
42
* @param {import('./VivViewer').Hover} [props.onHover] Callback that returns the picking info and the event (https://deck.gl/docs/api-reference/core/layer#onhover
* @param {Array} [props.transitionFields] A string array indicating which fields require a transition: Default: ['t', 'z'].
44
+
* @param {Array} [props.transitionFields] A string array indicating which fields require a transition when making a new selection: Default: ['t', 'z'].
Copy file name to clipboardExpand all lines: src/viewers/SideBySideViewer.js
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ import { GLOBAL_SLIDER_DIMENSION_FIELDS } from '../constants';
23
23
* @param {number} [props.lensSelection] Numeric index of the channel to be focused on by the lens (default 0).
24
24
* @param {Array} [props.lensBorderColor] RGB color of the border of the lens (default [255, 255, 255]).
25
25
* @param {number} [props.lensBorderRadius] Percentage of the radius of the lens for a border (default 0.02).
26
+
* @param {number} [props.lensRadius] Pixel radius of the lens (default: 100).
26
27
* @param {Array} [props.transparentColor] An RGB (0-255 range) color to be considered "transparent" if provided.
27
28
* In other words, any fragment shader output equal transparentColor (before applying opacity) will have opacity 0.
28
29
* This parameter only needs to be a truthy value when using colormaps because each colormap has its own transparent color that is calculated on the shader.
* This component handles rendering the various views within the DeckGL contenxt.
28
-
* @param {Object} props
29
-
* @param {Array} props.layerProps Props for the layers in each view.
30
-
* @param {Array} props.randomize Whether or not to randomize which view goes first (for dynamic rendering).
31
-
* @param {VivView} props.views Various VivViews to render.
32
-
* @param {Array} props.viewStates List of objects like [{ target: [x, y, 0], zoom: -zoom, id: 'left' }, { target: [x, y, 0], zoom: -zoom, id: 'right' }]
33
-
* @param {ViewStateChange} [props.onViewStateChange] Callback that returns the deck.gl view state (https://deck.gl/docs/api-reference/core/deck#onviewstatechange).
34
-
* @param {Hover} [props.onHover] Callback that returns the picking info and the event (https://deck.gl/docs/api-reference/core/layer#onhover
29
+
* @callback HandleValue
30
+
* @param {Array.<number>} valueArray pixel values for the image under the hover location
31
+
* @ignore
32
+
*/
33
+
34
+
/**
35
+
* @callback HandleCoordinate
36
+
* @param {Object} coordnate The coordinate in the image from which the values are picked.
37
+
* @ignore
38
+
*/
39
+
40
+
/**
41
+
* @typedef HoverHooks
42
+
* @type {object}
43
+
* @property {HandleValue} handleValue
44
+
* @property {HandleCoordinate} handleCoordinate
45
+
* @ignore
46
+
*/
47
+
48
+
/**
49
+
* @typedef LayerProps
50
+
* @type {object}
51
+
* @property {Array} layerProps Props for the layers in each view.
52
+
* @property {boolean} [randomize] Whether or not to randomize which view goes first (for dynamic rendering of multiple linked views).
53
+
* @property {Array.<import('../views').VivView>} views Various `VivView`s to render.
54
+
* @property {Array.<object>} viewStates List of objects like [{ target: [x, y, 0], zoom: -zoom, id: 'left' }, { target: [x, y, 0], zoom: -zoom, id: 'right' }]
55
+
* @property {ViewStateChange} [onViewStateChange] Callback that returns the deck.gl view state (https://deck.gl/docs/api-reference/core/deck#onviewstatechange).
56
+
* @property {Hover} [onHover] Callback that returns the picking info and the event (https://deck.gl/docs/api-reference/core/layer#onhover
0 commit comments