INNER CODE UNIT · JavaScript

getSettings

CloudWise-OpenSource/FlyFish · lcapCodeServer/linux/lib/vscode/extensions/image-preview/media/main.js:19

	function getSettings() {
		const element = document.getElementById('image-preview-settings');
		if (element) {
			const data = element.getAttribute('data-settings');
			if (data) {
				return JSON.parse(data);
			}
		}

		throw new Error(`Could not load settings`);
	}

	/**
	 * Enable image-rendering: pixelated for images scaled by more than this.
	 */
	const PIXELATION_THRESHOLD = 3;

	const SCALE_PINCH_FACTOR = 0.075;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…