Showing 1 of 2 files from the diff.

@@ -272,6 +272,7 @@
Loading
272 272
273 273
		const clipboard = new window.ClipboardJS(this.$.copyButton);
274 274
		this._initClipboard(clipboard);
275 +
		this.$.url.addEventListener('dragstart', this._onDrag.bind(this));
275 276
	}
276 277
277 278
	reloadAll() {
@@ -360,6 +361,14 @@
Loading
360 361
	_calcReloadAllDisabled(instances) {
361 362
		return !instances || instances.length <= 0;
362 363
	}
364 +
365 +
	_onDrag(event) {
366 +
		const dragged = event.target;
367 +
		const obsURL = `${dragged.href}?layer-name=${this.graphic.file.replace('.html', '')}&layer-height=${
368 +
			this.graphic.height
369 +
		}&layer-width=${this.graphic.width}`;
370 +
		event.dataTransfer.setData('text/uri-list', obsURL);
371 +
	}
363 372
}
364 373
365 374
customElements.define(NcgGraphic.is, NcgGraphic);
Files Coverage
lib 92.12%
src 0.00%
Project Totals (64 files) 72.22%
Notifications are pending CI completion. Periodically Codecov will check the CI state, when complete notifications will be submitted. Push notifications now.
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading