-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathconstants.js
43 lines (37 loc) · 1022 Bytes
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**
* Copyright 2012-2018, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
module.exports = {
attr: 'subplot',
name: 'polar',
axisNames: ['angularaxis', 'radialaxis'],
axisName2dataArray: {angularaxis: 'theta', radialaxis: 'r'},
layerNames: [
'draglayer',
'plotbg',
'backplot',
'angular-grid',
'radial-grid',
'frontplot',
'angular-axis',
'radial-axis',
'angular-line',
'radial-line'
],
radialDragBoxSize: 50,
angularDragBoxSize: 30,
cornerLen: 25,
cornerHalfWidth: 2,
// pixels to move mouse before you stop clamping to starting point
MINDRAG: 8,
// smallest radial distance [px] allowed for a zoombox
MINZOOM: 20,
// distance [px] off (r=0) or (r=radius) where we transition
// from single-sided to two-sided radial zoom
OFFEDGE: 20
};