core: rename prettier config and run prettier

main
Buddy 3 months ago
parent fcfcdbfb7a
commit 4d27c8eaac

@ -1,7 +0,0 @@
{
"semi": true,
"trailingComma": "all",
"singleQuote": true,
"printWidth": 100,
"tabWidth": 2
}

@ -0,0 +1,7 @@
export default {
semi: true,
trailingComma: "all",
singleQuote: true,
printWidth: 100,
tabWidth: 2,
}

@ -84,14 +84,34 @@ const PROPS = {
zoomDelta: { kind: 'num', attr: 'zoom-delta', default: 1 }, zoomDelta: { kind: 'num', attr: 'zoom-delta', default: 1 },
keyboardPanDelta: { kind: 'num', attr: 'keyboard-pan-delta', default: 80 }, keyboardPanDelta: { kind: 'num', attr: 'keyboard-pan-delta', default: 80 },
wheelDebounceTime: { kind: 'num', attr: 'wheel-debounce-time', default: 40 }, wheelDebounceTime: { kind: 'num', attr: 'wheel-debounce-time', default: 40 },
wheelPxPerZoomLevel: { kind: 'num', attr: 'wheel-px-per-zoom-level', default: 60 }, wheelPxPerZoomLevel: {
inertiaDeceleration: { kind: 'num', attr: 'inertia-deceleration', default: 3000 }, kind: 'num',
inertiaMaxSpeed: { kind: 'num', attr: 'inertia-max-speed', default: Infinity }, attr: 'wheel-px-per-zoom-level',
default: 60,
},
inertiaDeceleration: {
kind: 'num',
attr: 'inertia-deceleration',
default: 3000,
},
inertiaMaxSpeed: {
kind: 'num',
attr: 'inertia-max-speed',
default: Infinity,
},
easeLinearity: { kind: 'num', attr: 'ease-linearity', default: 0.2 }, easeLinearity: { kind: 'num', attr: 'ease-linearity', default: 0.2 },
maxBoundsViscosity: { kind: 'num', attr: 'max-bounds-viscosity', default: 0 }, maxBoundsViscosity: { kind: 'num', attr: 'max-bounds-viscosity', default: 0 },
tapTolerance: { kind: 'num', attr: 'tap-tolerance', default: 15 }, tapTolerance: { kind: 'num', attr: 'tap-tolerance', default: 15 },
zoomAnimationThreshold: { kind: 'num', attr: 'zoom-animation-threshold', default: 4 }, zoomAnimationThreshold: {
transform3DLimit: { kind: 'num', attr: 'transform-3d-limit', default: 8388608 }, kind: 'num',
attr: 'zoom-animation-threshold',
default: 4,
},
transform3DLimit: {
kind: 'num',
attr: 'transform-3d-limit',
default: 8388608,
},
// Boolean defaults-true → disable-* attribute; handler-based options have live mapSet // Boolean defaults-true → disable-* attribute; handler-based options have live mapSet
scrollWheelZoom: { scrollWheelZoom: {
@ -131,8 +151,14 @@ const PROPS = {
inertia: { kind: 'bool-off', attr: 'disable-inertia' }, inertia: { kind: 'bool-off', attr: 'disable-inertia' },
zoomAnimation: { kind: 'bool-off', attr: 'disable-zoom-animation' }, zoomAnimation: { kind: 'bool-off', attr: 'disable-zoom-animation' },
fadeAnimation: { kind: 'bool-off', attr: 'disable-fade-animation' }, fadeAnimation: { kind: 'bool-off', attr: 'disable-fade-animation' },
markerZoomAnimation: { kind: 'bool-off', attr: 'disable-marker-zoom-animation' }, markerZoomAnimation: {
bounceAtZoomLimits: { kind: 'bool-off', attr: 'disable-bounce-at-zoom-limits' }, kind: 'bool-off',
attr: 'disable-marker-zoom-animation',
},
bounceAtZoomLimits: {
kind: 'bool-off',
attr: 'disable-bounce-at-zoom-limits',
},
tapHold: { kind: 'bool-off', attr: 'disable-tap-hold' }, tapHold: { kind: 'bool-off', attr: 'disable-tap-hold' },
// Boolean defaults-false → normal attribute // Boolean defaults-false → normal attribute

@ -57,7 +57,11 @@ export class LeafletPopup extends TypedBase {
this.#observer = new MutationObserver(() => { this.#observer = new MutationObserver(() => {
this.#obj?.setContent(this.innerHTML); this.#obj?.setContent(this.innerHTML);
}); });
this.#observer.observe(this, { childList: true, characterData: true, subtree: true }); this.#observer.observe(this, {
childList: true,
characterData: true,
subtree: true,
});
} }
disconnectedCallback() { disconnectedCallback() {

@ -56,7 +56,11 @@ export class LeafletTooltip extends TypedBase {
this.#observer = new MutationObserver(() => { this.#observer = new MutationObserver(() => {
this.#obj?.setContent(this.innerHTML); this.#obj?.setContent(this.innerHTML);
}); });
this.#observer.observe(this, { childList: true, characterData: true, subtree: true }); this.#observer.observe(this, {
childList: true,
characterData: true,
subtree: true,
});
} }
disconnectedCallback() { disconnectedCallback() {

Loading…
Cancel
Save