Skip to content
Permalink
Browse files

Fixes #122 Copy andreas gamma fix into src files. Rebuild dist.

  • Loading branch information...
jamesleesaunders committed Nov 4, 2019
1 parent dc66494 commit 699d68a72995744ad99ef3eb0ad4e6e45f6aecf9
@@ -1392,7 +1392,7 @@
return labelInset * d * tickPadding + (labelInset + 1) / 2 * tickSize * tickDirectionVector[i];
})).append("Billboard").attr("axisOfRotation", "0 0 0").append("Shape").call(makeSolid, "black").append("Text").attr("string", function (d) {
return "\"" + tickFormat(d) + "\"";
}).append("FontStyle").attr("quality", 4).attr("size", 1.3).attr("family", "\"SANS\"").attr("style", "BOLD").attr("justify", "\"MIDDLE\" \"MIDDLE\"").merge(labels);
}).append("FontStyle").attr("size", 1.3).attr("family", "\"SANS\"").attr("style", "BOLD").attr("justify", "\"MIDDLE\" \"MIDDLE\"").merge(labels);

labels.transition().attr("translation", function (t) {
return axisDirectionVector.map(function (a) {
@@ -2831,7 +2831,7 @@
return offset + " " + offset + " " + offset;
}).append("Shape").call(makeSolid, color).append("Text").attr("string", function (d) {
return d.key;
}).append("FontStyle").attr("quality", 4).attr("size", 1).attr("family", "SANS").attr("style", "BOLD").attr("justify", "START");
}).append("FontStyle").attr("size", 1).attr("family", "SANS").attr("style", "BOLD").attr("justify", "START");

label.merge(labelSelect);

@@ -4929,10 +4929,10 @@

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
// Disable gamma correction
scene.append("Environment").attr("gammaCorrectionDefault", "none");

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

// Add layer groups
@@ -5189,10 +5189,11 @@

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
// Disable gamma correction
scene.append("Environment").attr("gammaCorrectionDefault", "none");

scene.append("Background").attr("groundColor", "1 1 1").attr("skyColor", "1 1 1");
// 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
var layers = ["axis", "bars"];
@@ -5427,9 +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
// 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
@@ -5655,9 +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
// 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
@@ -5902,9 +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
// 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
@@ -6112,9 +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
// 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
@@ -6370,9 +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
// 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
@@ -6684,9 +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
// 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
@@ -6974,9 +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
// 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
@@ -7215,9 +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
// 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

Large diffs are not rendered by default.

BIN +92 Bytes (100%) dist/d3-x3d.zip
Binary file not shown.
@@ -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")
@@ -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");
@@ -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");
@@ -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");
@@ -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");
@@ -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");
@@ -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");
@@ -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");
@@ -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");
@@ -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");

0 comments on commit 699d68a

Please sign in to comment.
You can’t perform that action at this time.