Skip to content

Commit 7c6589a

Browse files
committed
Merge pull request #169 from plotly/new-build-icons
New build icons
2 parents 4145990 + 7cd149c commit 7c6589a

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Plotly.plot(Tabs.fresh(), [{x:[1,2,3], y:[2,1,2]}]);
7070
**Other npm scripts**:
7171

7272
- `npm run preprocess`: pre-processes the css and svg source file in js. This
73-
script is run automatically on `npm install`.
73+
script must be run manually when updating the css and svg source files.
7474
- `npm run watch`: starts a watchify file watcher just like the test dashboard but
7575
without booting up a server.
7676

@@ -111,7 +111,7 @@ To view the results of a run on CircleCI, download the `build/test_images/` and
111111
- All tasks can be run using [`npm run-srcript`](https://docs.npmjs.com/cli/run-script)
112112
- Tests are `test/`, they are partitioned into `image` and `jasmine` tests
113113
- Test dashboard and image viewer code is in `devtools/`
114-
- Non-distributed, git-ignored built files are in `build/`
114+
- Non-distributed, built files are in `build/` (most files in here are git-ignored, the css and font built files are exceptions)
115115

116116

117117
### Coding style

build/plotcss.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ var rules = {
4242
"X [data-title]:hover:before,X [data-title]:hover:after": "display:block;opacity:1;",
4343
"X [data-title]:before": "content:'';position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;",
4444
"X [data-title]:after": "content:attr(data-title);background:#69738a;color:white;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;",
45+
"X .select-outline": "fill:none;stroke-width:1;shape-rendering:crispEdges;",
46+
"X .select-outline-1": "stroke:white;",
47+
"X .select-outline-2": "stroke:black;stroke-dasharray:2px 2px;",
4548
Y: "font-family:'Open Sans';position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;",
4649
"Y p": "margin:0;",
4750
"Y .notifier-note": "min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,0.9);color:#fff;padding:10px;",

build/ploticon.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,17 @@ module.exports = {
104104
'path': 'm214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z',
105105
'ascent': 850,
106106
'descent': -150
107+
},
108+
'lasso': {
109+
'width': 1031,
110+
'path': 'm1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z',
111+
'ascent': 850,
112+
'descent': -150
113+
},
114+
'selectbox': {
115+
'width': 1000,
116+
'path': 'm0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z',
117+
'ascent': 850,
118+
'descent': -150
107119
}
108120
};

0 commit comments

Comments
 (0)