()
| 108 | // This is to maintain consistently in displaying images (if we hadn't used HTML). |
| 109 | // See src/vs/workbench/contrib/notebook/browser/view/output/transforms/richTransform.ts |
| 110 | const saveAs = () => { |
| 111 | if (this.props.ctx.postMessage) { |
| 112 | this.props.ctx.postMessage({ |
| 113 | type: 'saveImageAs', |
| 114 | outputId: this.props.outputId, |
| 115 | mimeType: this.props.mimeType |
| 116 | } as SaveImageAs); |
| 117 | } |
| 118 | }; |
| 119 | const openPlot = () => { |
| 120 | if (this.props.ctx.postMessage) { |
| 121 | this.props.ctx.postMessage({ |
nothing calls this directly
no test coverage detected