File tree Expand file tree Collapse file tree 4 files changed +17
-2
lines changed Expand file tree Collapse file tree 4 files changed +17
-2
lines changed Original file line number Diff line number Diff line change
1
+ # EPOCH README
2
+
3
+ ## Set up development environment
4
+
5
+ * use node 16: ` nvm use 16 `
6
+ * install canvas support libs with ` brew install pkg-config cairo pango libpng jpeg giflib librsvg `
7
+ * follow instructions in [ CONTRIBUTING.md#Development] ( CONTRIBUTING.md#Development )
Original file line number Diff line number Diff line change 72
72
},
73
73
"dependencies" : {
74
74
"@plotly/d3" : " 3.8.2" ,
75
- "@plotly/d3-sankey" : " 0.7.2 " ,
75
+ "@plotly/d3-sankey" : " ^ 0.7.3 " ,
76
76
"@plotly/d3-sankey-circular" : " 0.33.1" ,
77
77
"@plotly/mapbox-gl" : " 1.13.4" ,
78
78
"@turf/area" : " ^6.4.0" ,
99
99
"has-hover" : " ^1.0.1" ,
100
100
"has-passive-events" : " ^1.0.0" ,
101
101
"is-mobile" : " ^4.0.0" ,
102
+ "mathjax" : " ^3.2.2" ,
102
103
"mouse-change" : " ^1.4.0" ,
103
104
"mouse-event-offset" : " ^3.0.2" ,
104
105
"mouse-wheel" : " ^1.2.0" ,
157
158
"karma-viewport" : " 1.0.2" ,
158
159
"karma-webpack" : " ^5.0.0" ,
159
160
"lodash" : " ^4.17.21" ,
160
- "madge" : " ^6.1 .0" ,
161
+ "madge" : " ^0.6 .0" ,
161
162
"mathjax-v2" : " npm:mathjax@2.7.5" ,
162
163
"mathjax-v3" : " npm:mathjax@^3.2.2" ,
163
164
"minify-stream" : " ^2.1.0" ,
Original file line number Diff line number Diff line change @@ -155,6 +155,8 @@ module.exports = function draw(gd) {
155
155
xPos = ( ( typeof ( d . xref ) === 'string' ) && xIsDomain ) ?
156
156
xa . _length * d . x + xa . _offset :
157
157
xa . r2p ( d . x ) + xa . _offset ;
158
+ } else if ( d . xref == "container" ) {
159
+ xPos = d . x * fullLayout . width ;
158
160
} else {
159
161
xPos = d . x * size . w + size . l ;
160
162
}
@@ -165,11 +167,15 @@ module.exports = function draw(gd) {
165
167
// move up the page
166
168
ya . _length * ( 1 - d . y ) + ya . _offset :
167
169
ya . r2p ( d . y ) + ya . _offset ;
170
+ } else if ( d . yref == "container" ) {
171
+ yPos = ( 1 - d . y ) * fullLayout . height ;
168
172
} else {
169
173
yPos = size . h - d . y * size . h + size . t ;
170
174
}
171
175
yPos += yOffset ;
172
176
177
+ console . log ( d )
178
+
173
179
// Construct the proper aspectRatio attribute
174
180
switch ( d . sizing ) {
175
181
case 'fill' :
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments