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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201
|
JXG.Options = {
showCopyright : false,
showNavigation : true,
takeSizeFromFile : false,
renderer: 'svg',
takeFirst : false,
grid : {
hasGrid : false,
gridX : 1,
gridY : 1,
gridColor : '#C0C0C0',
gridOpacity : '0.5',
gridDash : true,
snapToGrid : false,
snapSizeX : 2,
snapSizeY : 2
},
navbar: {
strokeColor: '#bbb',
fillColor: 'none',
padding: '2px',
position: 'absolute',
fontSize: '10px',
cursor: 'pointer',
zIndex: '100',
right: '5px',
bottom: '5px'
},
zoom : {
factor : 1.25
},
elements : {
strokeColor: '#6BBA70',
highlightStrokeColor: '#84e68a',
fillColor: 'none',
highlightFillColor: 'none',
strokeOpacity: 1,
highlightStrokeOpacity: 1,
fillOpacity: 1,
highlightFillOpacity: 1,
strokeWidth: '2px',
withLabel: false,
draft : {
draft : false,
color : '#565656',
opacity : 0.8,
strokeWidth : '1px'
}
},
point : {
withLabel: true,
face : 'o',
size : 3,
fillColor : '#B02B2C',
highlightFillColor : '#db3637',
strokeWidth: '2px',
strokeColor : '#B02B2C',
highlightStrokeColor : '#db3637',
zoom: false,
showInfobox: true
},
line : {
firstArrow : false,
lastArrow : false,
straightFirst : true,
straightLast : true,
fillColor : '#000000',
highlightFillColor : 'none',
strokeColor : '#4096EE',
highlightStrokeColor : '#45a1ff',
ticks : {
drawLabels : true,
drawZero : false,
insertTicks : false,
minTicksDistance : 50,
maxTicksDistance : 300,
minorHeight : 4,
majorHeight : 10,
minorTicks : 4,
defaultDistance : 1
},
labelOffsets: [10,10]
},
axis : {
strokeColor : '#aaa',
highlightStrokeColor : '#aaa'
},
circle : {
fillColor : 'none',
highlightFillColor : 'none',
strokeColor : '#0000ff',
highlightStrokeColor : '#C3D9FF'
},
conic : {
fillColor : 'none',
highlightFillColor : 'none',
strokeColor : '#0000ff',
highlightStrokeColor : '#C3D9FF'
},
angle : {
withLabel:true,
radius : 1.0,
fillColor : '#FF7F00',
highlightFillColor : '#FF7F00',
strokeColor : '#FF7F00',
textColor : '#0000FF',
fillOpacity : 0.3,
highlightFillOpacity : 0.3
},
/* special arc options */
arc : {
firstArrow : false,
lastArrow : false,
fillColor : 'none',
highlightFillColor : 'none',
strokeColor : '#0000ff',
highlightStrokeColor : '#C3D9FF'
},
/* special polygon options */
polygon : {
fillColor : '#6BBA70',
highlightFillColor : '#6BBA70',
fillOpacity : 0.3,
highlightFillOpacity : 0.3
},
/* special sector options */
sector : {
fillColor: '#00FF00',
highlightFillColor: '#00FF00',
fillOpacity: 0.3,
highlightFillOpacity: 0.3
},
/* special text options */
text : {
fontSize : 11,
strokeColor : 'gray',
useASCIIMathML : false,
useMathJax : false,
defaultDisplay : 'html' //'html' or 'internal'
},
/* special curve options */
curve : {
strokeWidth : '2px',
strokeColor : '#6BBA70',
RDPsmoothing : false, // Apply the Ramen-Douglas-Peuker algorithm
numberPointsHigh : 1600, // Number of points on curves after mouseUp
numberPointsLow : 400, // Number of points on curves after mousemove
doAdvancedPlot : true // Use the algorithm by Gillam and Hohenwarter
// It is much slower, but the result is better
},
precision : {
touch : 30,
mouse : 4,
epsilon : 0.0001,
hasPoint : 4
},
// Default ordering of the layers
layer : {
numlayers:20, // only important in SVG
text : 9,
point : 9,
arc : 8,
line : 7,
circle: 6,
curve : 5,
polygon: 4,
sector: 3,
angle : 3,
grid : 1,
image : 0
},
locus : {
translateToOrigin: false,
translateTo10: false,
stretch: false,
toOrigin: null,
to10: null
}
};
|