Skip to content

Commit

Permalink
Merge branch 'gammaCorrection'
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesleesaunders committed Nov 4, 2019
2 parents 307a183 + 699d68a commit 48566b6
Show file tree
Hide file tree
Showing 13 changed files with 89 additions and 1 deletion.
39 changes: 39 additions & 0 deletions dist/d3-x3d.js
Expand Up @@ -4929,6 +4929,9 @@

x3d.attr("width", width + "px").attr("height", height + "px").attr("showLog", debug ? "true" : "false").attr("showStat", debug ? "true" : "false").attr("useGeoCache", false);

// Disable gamma correction
scene.append("Environment").attr("gammaCorrectionDefault", "none");

// Add a white background
scene.append("Background").attr("groundColor", "1 1 1").attr("skyColor", "1 1 1");

Expand Down Expand Up @@ -5186,6 +5189,10 @@

x3d.attr("width", width + "px").attr("useGeoCache", false).attr("height", height + "px").attr("showLog", debug ? "true" : "false").attr("showStat", debug ? "true" : "false");

// Disable gamma correction
scene.append("Environment").attr("gammaCorrectionDefault", "none");

// Add a white background
scene.append("Background").attr("groundColor", "1 1 1").attr("skyColor", "1 1 1");

// Update the chart dimensions and add layer groups
Expand Down Expand Up @@ -5421,6 +5428,10 @@

x3d.attr("width", width + "px").attr("useGeoCache", false).attr("height", height + "px").attr("showLog", debug ? "true" : "false").attr("showStat", debug ? "true" : "false");

// Disable gamma correction
scene.append("Environment").attr("gammaCorrectionDefault", "none");

// Add a white background
scene.append("Background").attr("groundColor", "1 1 1").attr("skyColor", "1 1 1");

// Update the chart dimensions and add layer groups
Expand Down Expand Up @@ -5646,6 +5657,10 @@

x3d.attr("width", width + "px").attr("useGeoCache", false).attr("height", height + "px").attr("showLog", debug ? "true" : "false").attr("showStat", debug ? "true" : "false");

// Disable gamma correction
scene.append("Environment").attr("gammaCorrectionDefault", "none");

// Add a white background
scene.append("Background").attr("groundColor", "1 1 1").attr("skyColor", "1 1 1");

// Update the chart dimensions and add layer groups
Expand Down Expand Up @@ -5890,6 +5905,10 @@

x3d.attr("width", width + "px").attr("useGeoCache", false).attr("height", height + "px").attr("showLog", debug ? "true" : "false").attr("showStat", debug ? "true" : "false");

// Disable gamma correction
scene.append("Environment").attr("gammaCorrectionDefault", "none");

// Add a white background
scene.append("Background").attr("groundColor", "1 1 1").attr("skyColor", "1 1 1");

// Update the chart dimensions and add layer groups
Expand Down Expand Up @@ -6097,6 +6116,10 @@

x3d.attr("width", width + "px").attr("useGeoCache", false).attr("height", height + "px").attr("showLog", debug ? "true" : "false").attr("showStat", debug ? "true" : "false");

// Disable gamma correction
scene.append("Environment").attr("gammaCorrectionDefault", "none");

// Add a white background
scene.append("Background").attr("groundColor", "1 1 1").attr("skyColor", "1 1 1");

// Update the chart dimensions and add layer groups
Expand Down Expand Up @@ -6352,6 +6375,10 @@

x3d.attr("width", width + "px").attr("useGeoCache", false).attr("height", height + "px").attr("showLog", debug ? "true" : "false").attr("showStat", debug ? "true" : "false");

// Disable gamma correction
scene.append("Environment").attr("gammaCorrectionDefault", "none");

// Add a white background
scene.append("Background").attr("groundColor", "1 1 1").attr("skyColor", "1 1 1");

// Update the chart dimensions and add layer groups
Expand Down Expand Up @@ -6663,6 +6690,10 @@

x3d.attr("width", width + "px").attr("useGeoCache", false).attr("height", height + "px").attr("showLog", debug ? "true" : "false").attr("showStat", debug ? "true" : "false");

// Disable gamma correction
scene.append("Environment").attr("gammaCorrectionDefault", "none");

// Add a white background
scene.append("Background").attr("groundColor", "1 1 1").attr("skyColor", "1 1 1");

// Update the chart dimensions and add layer groups
Expand Down Expand Up @@ -6950,6 +6981,10 @@

x3d.attr("width", width + "px").attr("useGeoCache", false).attr("height", height + "px").attr("showLog", debug ? "true" : "false").attr("showStat", debug ? "true" : "false");

// Disable gamma correction
scene.append("Environment").attr("gammaCorrectionDefault", "none");

// Add a white background
scene.append("Background").attr("groundColor", "1 1 1").attr("skyColor", "1 1 1");

// Update the chart dimensions and add layer groups
Expand Down Expand Up @@ -7188,6 +7223,10 @@

x3d.attr("width", width + "px").attr("useGeoCache", false).attr("height", height + "px").attr("showLog", debug ? "true" : "false").attr("showStat", debug ? "true" : "false");

// Disable gamma correction
scene.append("Environment").attr("gammaCorrectionDefault", "none");

// Add a white background
scene.append("Background").attr("groundColor", "1 1 1").attr("skyColor", "1 1 1");

// Update the chart dimensions and add layer groups
Expand Down
2 changes: 1 addition & 1 deletion dist/d3-x3d.min.js

Large diffs are not rendered by default.

Binary file modified dist/d3-x3d.zip
Binary file not shown.
4 changes: 4 additions & 0 deletions src/chart/areaChartMultiSeries.js
Expand Up @@ -93,6 +93,10 @@ export default function() {
.attr("showStat", debug ? "true" : "false")
.attr("useGeoCache", false);

// Disable gamma correction
scene.append("Environment")
.attr("gammaCorrectionDefault", "none");

// Add a white background
scene.append("Background")
.attr("groundColor", "1 1 1")
Expand Down
5 changes: 5 additions & 0 deletions src/chart/barChartMultiSeries.js
Expand Up @@ -95,6 +95,11 @@ export default function() {
.attr("showLog", debug ? "true" : "false")
.attr("showStat", debug ? "true" : "false");

// Disable gamma correction
scene.append("Environment")
.attr("gammaCorrectionDefault", "none");

// Add a white background
scene.append("Background")
.attr("groundColor", "1 1 1")
.attr("skyColor", "1 1 1");
Expand Down
5 changes: 5 additions & 0 deletions src/chart/barChartVertical.js
Expand Up @@ -89,6 +89,11 @@ export default function() {
.attr("showLog", debug ? "true" : "false")
.attr("showStat", debug ? "true" : "false");

// Disable gamma correction
scene.append("Environment")
.attr("gammaCorrectionDefault", "none");

// Add a white background
scene.append("Background")
.attr("groundColor", "1 1 1")
.attr("skyColor", "1 1 1");
Expand Down
5 changes: 5 additions & 0 deletions src/chart/bubbleChart.js
Expand Up @@ -97,6 +97,11 @@ export default function() {
.attr("showLog", debug ? "true" : "false")
.attr("showStat", debug ? "true" : "false");

// Disable gamma correction
scene.append("Environment")
.attr("gammaCorrectionDefault", "none");

// Add a white background
scene.append("Background")
.attr("groundColor", "1 1 1")
.attr("skyColor", "1 1 1");
Expand Down
5 changes: 5 additions & 0 deletions src/chart/crosshairPlot.js
Expand Up @@ -82,6 +82,11 @@ export default function() {
.attr("showLog", debug ? "true" : "false")
.attr("showStat", debug ? "true" : "false");

// Disable gamma correction
scene.append("Environment")
.attr("gammaCorrectionDefault", "none");

// Add a white background
scene.append("Background")
.attr("groundColor", "1 1 1")
.attr("skyColor", "1 1 1");
Expand Down
5 changes: 5 additions & 0 deletions src/chart/ribbonChartMultiSeries.js
Expand Up @@ -94,6 +94,11 @@ export default function() {
.attr("showLog", debug ? "true" : "false")
.attr("showStat", debug ? "true" : "false");

// Disable gamma correction
scene.append("Environment")
.attr("gammaCorrectionDefault", "none");

// Add a white background
scene.append("Background")
.attr("groundColor", "1 1 1")
.attr("skyColor", "1 1 1");
Expand Down
5 changes: 5 additions & 0 deletions src/chart/scatterPlot.js
Expand Up @@ -106,6 +106,11 @@ export default function() {
.attr("showLog", debug ? "true" : "false")
.attr("showStat", debug ? "true" : "false");

// Disable gamma correction
scene.append("Environment")
.attr("gammaCorrectionDefault", "none");

// Add a white background
scene.append("Background")
.attr("groundColor", "1 1 1")
.attr("skyColor", "1 1 1");
Expand Down
5 changes: 5 additions & 0 deletions src/chart/surfacePlot.js
Expand Up @@ -91,6 +91,11 @@ export default function() {
.attr("showLog", debug ? "true" : "false")
.attr("showStat", debug ? "true" : "false");

// Disable gamma correction
scene.append("Environment")
.attr("gammaCorrectionDefault", "none");

// Add a white background
scene.append("Background")
.attr("groundColor", "1 1 1")
.attr("skyColor", "1 1 1");
Expand Down
5 changes: 5 additions & 0 deletions src/chart/vectorFieldChart.js
Expand Up @@ -145,6 +145,11 @@ export default function() {
.attr("showLog", debug ? "true" : "false")
.attr("showStat", debug ? "true" : "false");

// Disable gamma correction
scene.append("Environment")
.attr("gammaCorrectionDefault", "none");

// Add a white background
scene.append("Background")
.attr("groundColor", "1 1 1")
.attr("skyColor", "1 1 1");
Expand Down
5 changes: 5 additions & 0 deletions src/chart/volumeSliceChart.js
Expand Up @@ -68,6 +68,11 @@ export default function() {
.attr("showLog", debug ? "true" : "false")
.attr("showStat", debug ? "true" : "false");

// Disable gamma correction
scene.append("Environment")
.attr("gammaCorrectionDefault", "none");

// Add a white background
scene.append("Background")
.attr("groundColor", "1 1 1")
.attr("skyColor", "1 1 1");
Expand Down

0 comments on commit 48566b6

Please sign in to comment.