(controlIndex)
| 49 | } |
| 50 | |
| 51 | buildShadowOnControl(controlIndex) { |
| 52 | return { |
| 53 | type: 'bool', |
| 54 | title: 'shadowOn', |
| 55 | titleFull: 'shadowOnFull', |
| 56 | target: 'shadowOn', |
| 57 | action: () => { |
| 58 | const btn = this.main.getElemByIdSafe(this.main.activeTool.controls[controlIndex].id); |
| 59 | const state = !(btn.getAttribute('data-value') === 'true'); |
| 60 | this.main.primitiveTool.setShadowOn(state); |
| 61 | btn.setAttribute('data-value', state ? 'true' : 'false'); |
| 62 | setParam('defaultPrimitiveShadowOn', state); |
| 63 | }, |
| 64 | getValue: () => this.main.primitiveTool.shadowOn, |
| 65 | }; |
| 66 | } |
| 67 | |
| 68 | buildPaintBucketControl(controlIndex) { |
| 69 | const action = () => { |
no test coverage detected