Skip to content

Commit 93f1781

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 3388249 + 5ea73e9 commit 93f1781

File tree

126 files changed

+100562
-92076
lines changed

Some content is hidden

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

126 files changed

+100562
-92076
lines changed

.eslintrc

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"rules": {
1010
"no-trailing-spaces": [2],
11-
"no-multiple-empty-lines": [2, {"max": 3, "maxEOF": 1}],
11+
"no-multiple-empty-lines": [2, {"max": 2, "maxEOF": 1}],
1212
"linebreak-style": [2, "unix"],
1313
"indent": [2, 4, {"SwitchCase": 1}],
1414
"max-len": [0, 80],
@@ -19,10 +19,18 @@
1919
"comma-style": [2, "last"],
2020
"semi": [2],
2121
"semi-spacing": [2, {"before": false, "after": true}],
22-
"key-spacing": [0, {"beforeColon": false, "afterColon": true}],
22+
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
23+
"keyword-spacing": [2, {"overrides": {
24+
"if": {"after": false},
25+
"for": {"after": false},
26+
"while": {"after": false},
27+
"switch": {"after": false},
28+
"catch": {"after": false}
29+
}}],
2330
"no-spaced-func": [2],
2431
"space-in-parens": [2, "never"],
2532
"space-before-function-paren": [2, "never"],
33+
"space-before-blocks": [2],
2634
"no-multi-spaces": [2],
2735
"space-infix-ops": [0, {"int32Hint": false}],
2836
"quotes": [2, "single"],

CHANGELOG.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,64 @@ https://github.com/plotly/plotly.js/compare/vX.Y.Z...master
99

1010
where X.Y.Z is the semver of most recent plotly.js release.
1111

12+
13+
## [1.6.2] -- 2016-03-03
14+
15+
### Fixed
16+
- SVG overflow property is now properly set for IE11 [#305, #306]
17+
- Hover labels associated with `text` arrays with falsy values are properly
18+
skipped over [#310]
19+
- Snapshot routines now strip browser-only user-select style attributes [#311]
20+
21+
22+
## [1.6.1] -- 2016-03-01
23+
24+
### Fixed
25+
- Legend scroll bars are no longer invalid SVG elements (bug introduced in 1.6.0) [#304]
26+
- Colorscale YlGnBu and YlOrRd are now properly identified [#295]
27+
28+
29+
## [1.6.0] -- 2016-02-29
30+
31+
### Added
32+
- SVG cartesian, 3D, geographic maps and pie charts can now coexist on the same
33+
graph [#246, #258, #289]
34+
- Legends with long item lists are now scrollable (instead of being cropped)
35+
[#243]
36+
- Event `plotly_deselect` is now emitted after double-clicking in `select` and
37+
`lasso` drag modes.
38+
- Event `plotly_doubleclick` is now emitted after double-clicking on SVG cartesian
39+
graphs in `zoom` and `pan` drag modes.
40+
- Layout attributes `dragmode` and `hovermode` can now be set individually in
41+
each scene [#258]
42+
- `Plotly.Plots.resize` now returns a promise. [#253, #262]
43+
44+
### Fixed
45+
46+
- `Plotly.deleteTraces` now properly deletes the last trace of a cartesian
47+
subplot [#289]
48+
- `Plotly.deleteTraces` now works on heatmap, contour, pie, surface, mesh3d and
49+
geo trace types [#289]
50+
- `Plotly.deleteTraces` now properly delete color bars associated with deleted
51+
traces
52+
- Clearing cartesian axes via `relayout` no longer results in an uncaught error
53+
[#289]
54+
- Events `plotly_hover`, `plotly_unhover` and `plotly_click` are properly
55+
emitted on 3D graphs [#240]
56+
- Null and undefined categories are properly skipped over [#286]
57+
- Hover labels on 3D graphs are now properly hidden when `hovermode` is set to
58+
false [#258]
59+
- Multi-scene 3D graphs now set their camera position via their own scene
60+
attributes [#258]
61+
- Toggling `hovermode` on 3D graphs no longer resets the scene domain [#258]
62+
- Resetting the camera position on scenes where the `camera` attribute was
63+
supplied no longer results in an uncaught error [#258]
64+
- Axis attributes `hoverformat`, `tickprefix`, `ticksuffix` are honored even
65+
when `showticklabels` is set to false [#267]
66+
- Config option `doubleClick` set to `'reset'` now properly handles auto-ranged
67+
axes [#285]
68+
69+
1270
## [1.5.2] -- 2016-02-10
1371

1472
### Fixed

build/plotcss.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ var rules = {
88
"X a": "text-decoration:none;",
99
"X a:hover": "text-decoration:none;",
1010
"X .crisp": "shape-rendering:crispEdges;",
11+
"X svg": "overflow:hidden;",
1112
"X svg a": "fill:#447adb;",
1213
"X svg a:hover": "fill:#3c6dc5;",
1314
"X .main-svg": "position:absolute;top:0;left:0;pointer-events:none;",

circle.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ dependencies:
2020
test:
2121
override:
2222
- sudo lxc-attach -n "$(docker inspect --format '{{.Id}}' mytestbed)" -- bash -c "cd /var/www/streambed/image_server/plotly.js && node test/image/compare_pixels_test.js"
23+
- sudo lxc-attach -n "$(docker inspect --format '{{.Id}}' mytestbed)" -- bash -c "cd /var/www/streambed/image_server/plotly.js && node test/image/export_test.js"
2324
- npm run citest-jasmine
2425
- npm run test-bundle
2526
- npm run test-syntax

devtools/test_dashboard/buttons.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ function plotButtons(plots, figDir) {
6565
/*
6666
* Grab the currently loaded plot and make an image - replacing the plot.
6767
*/
68-
if (!gd) return;
68+
if(!gd) return;
6969

7070
var layout = gd.layout;
7171
var data = gd.data;
7272

73-
if (!layout || !data) return;
73+
if(!layout || !data) return;
7474

7575
Plotly.Plots.getSubplotIds(gd._fullLayout, 'gl3d').forEach(function(key) {
7676
var scene = gd._fullLayout[key]._scene;

dist/plotly-geo-assets.js

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

0 commit comments

Comments
 (0)