Showing 1 of 3 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() {
@@ -357,6 +358,14 @@
Loading
357 358
	_calcReloadAllDisabled(instances) {
358 359
		return !instances || instances.length <= 0;
359 360
	}
361 +
362 +
	_onDrag(event) {
363 +
		const dragged = event.target;
364 +
		const obsURL = `${dragged.href}?layer-name=${this.graphic.file.replace('.html', '')}&layer-height=${
365 +
			this.graphic.height
366 +
		}&layer-width=${this.graphic.width}`;
367 +
		event.dataTransfer.setData('text/uri-list', obsURL);
368 +
	}
360 369
}
361 370
362 371
customElements.define(NcgGraphic.is, NcgGraphic);
Files Coverage
lib 91.98%
src 86.12%
Project Totals (64 files) 90.73%
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