()
| 291 | } |
| 292 | |
| 293 | get_topg_transform() { |
| 294 | if (this.parent.autoLayout) { |
| 295 | if (this.vertical) { |
| 296 | if (this.side === 'right') { |
| 297 | return ( |
| 298 | 'translate(' + String(this.parent.width + this.autoOffset) + ', 0)' |
| 299 | ); |
| 300 | } |
| 301 | return ( |
| 302 | 'translate(' + String(-this.bar_height - this.autoOffset) + ', 0)' |
| 303 | ); |
| 304 | } else { |
| 305 | if (this.side === 'top') { |
| 306 | return ( |
| 307 | 'translate(0, ' + String(-this.bar_height - this.autoOffset) + ')' |
| 308 | ); |
| 309 | } |
| 310 | return ( |
| 311 | 'translate(0, ' + String(this.parent.height + this.autoOffset) + ')' |
| 312 | ); |
| 313 | } |
| 314 | } |
| 315 | |
| 316 | const em = 12; |
| 317 | if (this.vertical) { |
| 318 | if (this.side === 'right') { |
| 319 | return ( |
| 320 | 'translate(' + |
| 321 | String( |
| 322 | this.get_basic_transform() + this.margin.right / 2 - this.bar_height |
| 323 | ) + |
| 324 | ', 0)' |
| 325 | ); |
| 326 | } |
| 327 | return ( |
| 328 | 'translate(' + |
| 329 | String( |
| 330 | this.get_basic_transform() - this.margin.left / 2 + this.bar_height |
| 331 | ) + |
| 332 | ', 0)' |
| 333 | ); |
| 334 | } else { |
| 335 | if (this.side === 'top') { |
| 336 | return ( |
| 337 | 'translate(0, ' + |
| 338 | String( |
| 339 | this.get_basic_transform() - |
| 340 | this.margin.top + |
| 341 | this.bar_height + |
| 342 | 2 * em |
| 343 | ) + |
| 344 | ')' |
| 345 | ); |
| 346 | } |
| 347 | return ( |
| 348 | 'translate(0, ' + |
| 349 | String( |
| 350 | this.get_basic_transform() + |
no test coverage detected