| 1 |
define({ |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
clickMode:true, |
| 21 |
|
| 22 |
clickable:true, |
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
current:null, |
| 27 |
|
| 28 |
|
| 29 |
currentHit:null, |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
angleSnap:1, |
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
zAxis: false, |
| 43 |
zAxisEnabled: true, |
| 44 |
zAngle: 225, |
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
renderHitLines: true, |
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
renderHitLayer:true, |
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
labelSameColor:false, |
| 62 |
|
| 63 |
useSelectedStyle: true, |
| 64 |
|
| 65 |
norm:{ |
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
width:1, |
| 71 |
color:"#000000", |
| 72 |
style:"Solid", |
| 73 |
cap:"round", |
| 74 |
fill:"#CCCCCC" |
| 75 |
}, |
| 76 |
|
| 77 |
selected:{ |
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
width:6, |
| 83 |
color:"#00FF00" |
| 84 |
}, |
| 85 |
|
| 86 |
highlighted:{ |
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
width:6, |
| 91 |
color:"#FF00FF", |
| 92 |
style:"Solid", |
| 93 |
cap:"round", |
| 94 |
fill:"#E11EBB" |
| 95 |
}, |
| 96 |
|
| 97 |
disabled:{ |
| 98 |
|
| 99 |
|
| 100 |
width:1, |
| 101 |
color:"#666666", |
| 102 |
style:"solid", |
| 103 |
cap:"round", |
| 104 |
fill:"#cccccc" |
| 105 |
}, |
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
hitNorm:{ |
| 112 |
|
| 113 |
|
| 114 |
width:6, |
| 115 |
color:{r:0, g:255, b:255, a:0}, |
| 116 |
style:"Solid", |
| 117 |
cap:"round", |
| 118 |
fill:{r:255, g:255, b:255, a:0} |
| 119 |
}, |
| 120 |
hitSelected:{ |
| 121 |
|
| 122 |
|
| 123 |
width:6, |
| 124 |
color:"#FF9900", |
| 125 |
style:"Solid", |
| 126 |
cap:"round", |
| 127 |
fill:{r:255, g:255, b:255, a:0} |
| 128 |
}, |
| 129 |
hitHighlighted:{ |
| 130 |
|
| 131 |
|
| 132 |
width:6, |
| 133 |
color:"#FFFF00", |
| 134 |
style:"Solid", |
| 135 |
cap:"round", |
| 136 |
fill:{r:255, g:255, b:255, a:0} |
| 137 |
}, |
| 138 |
|
| 139 |
|
| 140 |
anchors:{ |
| 141 |
|
| 142 |
|
| 143 |
size:10, |
| 144 |
width:2, |
| 145 |
color:"#999", |
| 146 |
style:"solid", |
| 147 |
fill:"#fff", |
| 148 |
cap:"square", |
| 149 |
minSize:10, |
| 150 |
marginZero:5 |
| 151 |
}, |
| 152 |
arrows:{ |
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
length:30, |
| 159 |
width:16 |
| 160 |
}, |
| 161 |
text:{ |
| 162 |
|
| 163 |
|
| 164 |
minWidth:100, |
| 165 |
deleteEmptyCreate:true, |
| 166 |
deleteEmptyModify:true, |
| 167 |
pad:3, |
| 168 |
size:"18px", |
| 169 |
family:"sans-serif", |
| 170 |
weight:"normal", |
| 171 |
color:"#000000" |
| 172 |
}, |
| 173 |
textDisabled:{ |
| 174 |
|
| 175 |
|
| 176 |
size:"18px", |
| 177 |
family:"sans-serif", |
| 178 |
weight:"normal", |
| 179 |
color:"#cccccc" |
| 180 |
}, |
| 181 |
|
| 182 |
textMode:{ |
| 183 |
|
| 184 |
|
| 185 |
|
| 186 |
create:{ |
| 187 |
width:2, |
| 188 |
style:"dotted", |
| 189 |
color:"#666666", |
| 190 |
fill:null |
| 191 |
}, |
| 192 |
edit:{ |
| 193 |
width:1, |
| 194 |
style:"dashed", |
| 195 |
color:"#666", |
| 196 |
fill:null |
| 197 |
} |
| 198 |
|
| 199 |
}, |
| 200 |
|
| 201 |
button:{ |
| 202 |
norm:{ |
| 203 |
"color": "#cccccc", |
| 204 |
"fill": { |
| 205 |
type:"linear", |
| 206 |
x1:0, x2:0, y1:0, y2:100, |
| 207 |
colors:[ |
| 208 |
{offset:.5, color:"#ffffff"}, |
| 209 |
{offset:1, color:"#e5e5e5"} |
| 210 |
] |
| 211 |
} |
| 212 |
}, |
| 213 |
over:{ |
| 214 |
"fill": { |
| 215 |
type:"linear", |
| 216 |
x1:0, x2:0, y1:0, y2:100, |
| 217 |
colors:[{offset:.5, color:"#ffffff"}, {offset:1, color:"#e1eaf5"}] |
| 218 |
}, |
| 219 |
"color": "#92a0b3" |
| 220 |
}, |
| 221 |
down:{ |
| 222 |
"fill": { |
| 223 |
type:"linear", |
| 224 |
x1:0, x2:0, y1:0, y2:100, |
| 225 |
colors:[{offset:0, color:"#e1eaf5"}, {offset:1, color:"#ffffff"}] |
| 226 |
}, |
| 227 |
"color": "#92a0b3" |
| 228 |
}, |
| 229 |
selected:{ |
| 230 |
"fill": { |
| 231 |
type:"linear", |
| 232 |
x1:0, x2:0, y1:0, y2:100, |
| 233 |
colors:[{offset:0, color:"#97b4bf"}, {offset:1, color:"#c8dae1"}] |
| 234 |
}, |
| 235 |
"color": "#92a0b3" |
| 236 |
}, |
| 237 |
icon:{ |
| 238 |
norm:{ |
| 239 |
fill:null, |
| 240 |
color:"#92a0b3" |
| 241 |
}, |
| 242 |
selected:{ |
| 243 |
fill:"#ffffff", |
| 244 |
color:"#92a0b3" |
| 245 |
} |
| 246 |
} |
| 247 |
}, |
| 248 |
|
| 249 |
copy: function(){ |
| 250 |
|
| 251 |
|
| 252 |
|
| 253 |
|
| 254 |
|
| 255 |
var cpy = function(obj){ |
| 256 |
if(typeof(obj)!="object" || obj===null || obj===undefined){ |
| 257 |
return obj; |
| 258 |
} |
| 259 |
var o; |
| 260 |
if(obj.push){ |
| 261 |
o = []; |
| 262 |
for(var i=0; i<obj.length;i++){ |
| 263 |
o.push(cpy(obj[i])) |
| 264 |
} |
| 265 |
return o; |
| 266 |
} |
| 267 |
o = {}; |
| 268 |
for(var nm in obj){ |
| 269 |
if(nm!="copy"){ |
| 270 |
if(typeof(obj[nm])=="object"){ |
| 271 |
o[nm] = cpy(obj[nm]); |
| 272 |
}else{ |
| 273 |
o[nm] = obj[nm] |
| 274 |
} |
| 275 |
} |
| 276 |
} |
| 277 |
return o; |
| 278 |
}; |
| 279 |
var o = cpy(this); |
| 280 |
o.current = o.norm; |
| 281 |
o.currentHit = o.hitNorm; |
| 282 |
o.currentText = o.text; |
| 283 |
return o; |
| 284 |
} |
| 285 |
|
| 286 |
}); |