Skip to content

Commit 4efb4f2

Browse files
committed
fetched master and resolved conflicts
2 parents b6195fe + aea6b8d commit 4efb4f2

File tree

72 files changed

+2472
-390
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+2472
-390
lines changed

.circleci/config.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ jobs:
8888
command: ./.circleci/test.sh image
8989
- store_artifacts:
9090
path: build
91+
destination: /
9192

9293
test-image2:
9394
docker:
@@ -107,6 +108,7 @@ jobs:
107108
command: ./.circleci/test.sh image2
108109
- store_artifacts:
109110
path: build
111+
destination: /
110112

111113
test-syntax:
112114
docker:
@@ -120,6 +122,34 @@ jobs:
120122
name: Run syntax tests
121123
command: ./.circleci/test.sh syntax
122124

125+
publish:
126+
docker:
127+
- image: circleci/node:10.9.0
128+
working_directory: ~/plotly.js
129+
steps:
130+
- checkout
131+
- attach_workspace:
132+
at: ~/plotly.js
133+
- run:
134+
name: Update plot-schema.json
135+
command: node tasks/bundle_plot_schema.js
136+
- store_artifacts:
137+
path: build/plotly.js
138+
destination: /plotly.js
139+
- store_artifacts:
140+
path: dist/plotly.min.js
141+
destination: /plotly.min.js
142+
- store_artifacts:
143+
path: dist/plot-schema.json
144+
destination: /plot-schema.json
145+
- run:
146+
name: Show URLs to build files
147+
command: |
148+
PROJECT_NUM=45646037
149+
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/plotly.js
150+
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/plotly.min.js
151+
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/plot-schema.json
152+
123153
workflows:
124154
version: 2
125155
build-and-test:
@@ -140,3 +170,6 @@ workflows:
140170
- test-syntax:
141171
requires:
142172
- build
173+
- publish:
174+
requires:
175+
- build

package-lock.json

Lines changed: 46 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
},
5858
"dependencies": {
5959
"3d-view": "^2.0.0",
60-
"@plotly/d3-sankey": "^0.5.0",
60+
"@plotly/d3-sankey": "^0.5.1",
6161
"alpha-shape": "^1.0.0",
6262
"array-range": "^1.0.1",
6363
"canvas-fit": "^1.5.0",
@@ -70,21 +70,21 @@
7070
"es6-promise": "^3.0.2",
7171
"fast-isnumeric": "^1.1.2",
7272
"font-atlas-sdf": "^1.3.3",
73-
"gl-cone3d": "^1.1.0",
73+
"gl-cone3d": "^1.2.0",
7474
"gl-contour2d": "^1.1.4",
75-
"gl-error3d": "^1.0.7",
75+
"gl-error3d": "^1.0.8",
7676
"gl-heatmap2d": "^1.0.4",
77-
"gl-line3d": "^1.1.2",
77+
"gl-line3d": "^1.1.4",
7878
"gl-mat4": "^1.2.0",
79-
"gl-mesh3d": "^2.0.0",
79+
"gl-mesh3d": "^2.0.1",
8080
"gl-plot2d": "^1.3.1",
81-
"gl-plot3d": "^1.5.7",
81+
"gl-plot3d": "^1.5.10",
8282
"gl-pointcloud2d": "^1.0.1",
8383
"gl-scatter3d": "git://github.com/gl-vis/gl-scatter3d.git#8915d2ec6a89b7dc76e216487e82143dbc165c6f",
8484
"gl-select-box": "^1.0.2",
8585
"gl-spikes2d": "^1.0.1",
86-
"gl-streamtube3d": "^1.0.0",
87-
"gl-surface3d": "^1.3.5",
86+
"gl-streamtube3d": "^1.1.0",
87+
"gl-surface3d": "^1.3.6",
8888
"gl-text": "^1.1.6",
8989
"glslify": "^6.3.1",
9090
"has-hover": "^1.0.1",
@@ -102,7 +102,7 @@
102102
"polybooljs": "^1.2.0",
103103
"regl": "^1.3.7",
104104
"regl-error2d": "^2.0.5",
105-
"regl-line2d": "^3.0.11",
105+
"regl-line2d": "^3.0.12",
106106
"regl-scatter2d": "^3.0.6",
107107
"regl-splom": "^1.0.4",
108108
"right-now": "^1.0.0",

src/components/drawing/index.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,7 @@ drawing.fillGroupStyle = function(s) {
198198
s.style('stroke-width', 0)
199199
.each(function(d) {
200200
var shape = d3.select(this);
201-
try {
202-
shape.call(Color.fill, d[0].trace.fillcolor);
203-
}
204-
catch(e) {
205-
Lib.error(e, s);
206-
shape.remove();
207-
}
201+
shape.call(Color.fill, d[0].trace.fillcolor);
208202
});
209203
};
210204

src/lib/loggers.js

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,24 @@ loggers.error = function() {
6161
* apply like other functions do
6262
*/
6363
function apply(f, args) {
64-
if(f.apply) {
65-
f.apply(f, args);
64+
if(f && f.apply) {
65+
try {
66+
// `this` should always be console, since here we're always
67+
// applying a method of the console object.
68+
f.apply(console, args);
69+
return;
70+
}
71+
catch(e) { /* in case apply failed, fall back on the code below */ }
6672
}
67-
else {
68-
for(var i = 0; i < args.length; i++) {
73+
74+
// no apply - just try calling the function on each arg independently
75+
for(var i = 0; i < args.length; i++) {
76+
try {
6977
f(args[i]);
7078
}
79+
catch(e) {
80+
// still fails - last resort simple console.log
81+
console.log(args[i]);
82+
}
7183
}
7284
}

src/plot_api/plot_api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ exports.plot = function(gd, data, layout, config) {
261261
if(regl) {
262262
// Unfortunately, this can happen when relayouting to large
263263
// width/height on some browsers.
264-
if(fullLayout.width !== regl._gl.drawingBufferWidth ||
265-
fullLayout.height !== regl._gl.drawingBufferHeight
264+
if(Math.floor(fullLayout.width) !== regl._gl.drawingBufferWidth ||
265+
Math.floor(fullLayout.height) !== regl._gl.drawingBufferHeight
266266
) {
267267
var msg = 'WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.';
268268
if(drawFrameworkCalls) {

0 commit comments

Comments
 (0)