-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Volume - new gl3d trace #3488
Merged
Volume - new gl3d trace #3488
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
3a39fd8
adding volume4d new trace
archmoj e3a59da
opacityscale as 2d array
archmoj c138d9d
correct volume baselines
archmoj 5dbe037
volume4d > volume
archmoj f141868
new baselines
archmoj b1170a9
add multi trace mock and add it to mock list
archmoj 1a49fa2
baseline for multiple volume traces
archmoj e0b786c
revised the colorscale of datacube mock
archmoj 76dae20
updated baseline with revised colorscale
archmoj fb502bd
bring isosurface draws to front and added a mock with mri data
archmoj c74daad
enter mri data
archmoj ea92715
revised mri mock
archmoj b07aa6a
fixup test
archmoj 48909e0
using new shader and mock with two volume traces in one cube
archmoj 02f171f
correct baseline using new shader
archmoj 3b7320f
added new baseline
archmoj 1ec0941
mock and baseline changes
archmoj 51035f9
exclude mri to run on CI
archmoj 7a13bde
removed mri baseline
archmoj 7249f8f
new volume mock with aspect ratio and opacityscale
archmoj 601baaa
added a draft baseline for new mock
archmoj 3580015
disable more volume mocks to run CI
archmoj 2052e9b
correct baseline
archmoj 3c0dc06
settings to speedup mesh normal calc
archmoj 04aa645
correct baselines using flatshading nomalization algo and try mri to …
archmoj dce3209
removed mri mock to run CI
archmoj fe9968e
dont run gl3d_volume_between-ranges to run on CI
archmoj 9681682
resolved conflicts and revised code based on comments
archmoj 1bb5ade
tweak image test to run for volume only
archmoj 94bfc50
fixed filter condition for image test
archmoj 4542518
rm mri mock
archmoj c2a703f
Merge branch 'master' into volume-dev
archmoj 3511f6c
dont run volume mocks on ci
archmoj 401e390
Merge remote-tracking branch 'origin/master'
archmoj 913c6e6
reduce opacityscale and move to volume folder - pass 1
archmoj 64652f9
revised min opacity in palettes
archmoj e82a826
reduced opacityscale code - updated baseline - revised jasmine test
archmoj 320485f
add hovertext support
archmoj 5da5cd7
Merge remote-tracking branch 'origin/master' into volume4d to apply n…
archmoj d35f69a
Merge remote-tracking branch 'origin/master' into volume4d
archmoj e6b0efd
run volume image test on CI
archmoj 0aa25f0
reset batch wait to 500
archmoj 77f7317
fixup volume default to coerce volume attributes and dflt - switch pr…
archmoj af17adc
revised isosurface default function exports
archmoj 130da2f
add volume and isosurface to the gl3d partial bundle list
archmoj 01a9426
revert unwanted scattergl changes in the previous commit
archmoj e23b2c3
reduced volume mock data
archmoj 4a9987d
bump gl-mesh3d 2.1.0
archmoj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* Copyright 2012-2019, Plotly, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
module.exports = require('../src/traces/volume'); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
/** | ||
* Copyright 2012-2019, Plotly, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
var colorscaleAttrs = require('../../components/colorscale/attributes'); | ||
var isosurfaceAttrs = require('../isosurface/attributes'); | ||
var baseAttrs = require('../../plots/attributes'); | ||
|
||
var extendFlat = require('../../lib/extend').extendFlat; | ||
var overrideAll = require('../../plot_api/edit_types').overrideAll; | ||
|
||
var attrs = module.exports = overrideAll(extendFlat({ | ||
x: isosurfaceAttrs.x, | ||
y: isosurfaceAttrs.y, | ||
z: isosurfaceAttrs.z, | ||
value: isosurfaceAttrs.value, | ||
isomin: isosurfaceAttrs.isomin, | ||
isomax: isosurfaceAttrs.isomax, | ||
surface: isosurfaceAttrs.surface, | ||
spaceframe: { | ||
show: { | ||
valType: 'boolean', | ||
role: 'info', | ||
dflt: false, | ||
description: [ | ||
'Displays/hides tetrahedron shapes between minimum and', | ||
'maximum iso-values. Often useful when either caps or', | ||
'surfaces are disabled or filled with values less than 1.' | ||
].join(' ') | ||
}, | ||
fill: { | ||
valType: 'number', | ||
role: 'style', | ||
min: 0, | ||
max: 1, | ||
dflt: 1, | ||
description: [ | ||
'Sets the fill ratio of the `spaceframe` elements. The default fill value', | ||
'is 1 meaning that they are entirely shaded. Applying a `fill` ratio less', | ||
'than one would allow the creation of openings parallel to the edges.' | ||
].join(' ') | ||
} | ||
}, | ||
|
||
slices: isosurfaceAttrs.slices, | ||
caps: isosurfaceAttrs.caps, | ||
text: isosurfaceAttrs.text, | ||
hovertext: isosurfaceAttrs.hovertext, | ||
hovertemplate: isosurfaceAttrs.hovertemplate | ||
}, | ||
|
||
colorscaleAttrs('', { | ||
colorAttr: '`value`', | ||
showScaleDflt: true, | ||
editTypeOverride: 'calc' | ||
}), { | ||
|
||
colorbar: isosurfaceAttrs.colorbar, | ||
opacity: isosurfaceAttrs.opacity, | ||
opacityscale: { | ||
valType: 'any', | ||
role: 'style', | ||
editType: 'calc', | ||
description: [ | ||
'Sets the opacityscale.', | ||
' The opacityscale must be an array containing', | ||
' arrays mapping a normalized value to an opacity value.', | ||
' At minimum, a mapping for the lowest (0) and highest (1)', | ||
' values are required. For example,', | ||
' `[[0, 1], [0.5, 0.2], [1, 1]]` means that higher/lower values would have', | ||
' higher opacity values and those in the middle would be more transparent', | ||
' Alternatively, `opacityscale` may be a palette name string', | ||
' of the following list: \'min\', \'max\', \'extremes\' and \'uniform\'.', | ||
' The default is \'uniform\'.' | ||
].join('') | ||
}, | ||
|
||
lightposition: isosurfaceAttrs.lightposition, | ||
lighting: isosurfaceAttrs.lighting, | ||
flatshading: isosurfaceAttrs.flatshading, | ||
contour: isosurfaceAttrs.contour, | ||
|
||
hoverinfo: extendFlat({}, baseAttrs.hoverinfo) | ||
}), 'calc', 'nested'); | ||
|
||
attrs.x.editType = attrs.y.editType = attrs.z.editType = attrs.value.editType = 'calc+clearAxisTypes'; | ||
attrs.transforms = undefined; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ha. I see the
spaceframe.fill
is different forvolume
. Nice touch!