Lines Matching defs:svg
4 * @param {string} svg The SVG data to save
37 #svg = '';
57 this.#saveCallback = (svg) => this.#saveMediaFile(mediaid, svg);
66 this.#svg = await response.text();
80 this.#saveCallback = (svg) => this.#saveEmbed(pageid, position, length, svg);
94 this.#svg = await response.text();
107 * @param {string} svg The SVG raw data to edit, empty for new file
110 editMemory(svg, callback) {
111 this.#svg = svg;
120 * @param {string} svg The SVG raw data to save
123 async #saveMediaFile(mediaid, svg) {
129 body: svg,
143 * @param {string} svg The SVG raw data to save
146 async #saveEmbed(pageid, position, length, svg) {
154 body.set('svg', svg);
168 * @param {string} svg
172 async #savePngCache(svg, png) {
177 body.set('svg', svg);
241 this.#diagramsEditor.contentWindow.postMessage(JSON.stringify({action: 'load', xml: this.#svg}), '*');
244 this.#svg = '';
257 if (msg.format === 'svg') {
258 this.#svg = this.#decodeDataUri(msg.data);
271 let ok = await this.#savePngCache(this.#svg, png);
276 ok = await this.#saveCallback(this.#svg);