core: rename prettier config and run prettier
This commit is contained in:
parent
fcfcdbfb7a
commit
4d27c8eaac
@ -1,7 +0,0 @@
|
||||
{
|
||||
"semi": true,
|
||||
"trailingComma": "all",
|
||||
"singleQuote": true,
|
||||
"printWidth": 100,
|
||||
"tabWidth": 2
|
||||
}
|
||||
7
prettier.config.js
Normal file
7
prettier.config.js
Normal file
@ -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 },
|
||||
keyboardPanDelta: { kind: 'num', attr: 'keyboard-pan-delta', default: 80 },
|
||||
wheelDebounceTime: { kind: 'num', attr: 'wheel-debounce-time', default: 40 },
|
||||
wheelPxPerZoomLevel: { kind: 'num', 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 },
|
||||
wheelPxPerZoomLevel: {
|
||||
kind: 'num',
|
||||
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 },
|
||||
maxBoundsViscosity: { kind: 'num', attr: 'max-bounds-viscosity', default: 0 },
|
||||
tapTolerance: { kind: 'num', attr: 'tap-tolerance', default: 15 },
|
||||
zoomAnimationThreshold: { kind: 'num', attr: 'zoom-animation-threshold', default: 4 },
|
||||
transform3DLimit: { kind: 'num', attr: 'transform-3d-limit', default: 8388608 },
|
||||
zoomAnimationThreshold: {
|
||||
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
|
||||
scrollWheelZoom: {
|
||||
@ -131,8 +151,14 @@ const PROPS = {
|
||||
inertia: { kind: 'bool-off', attr: 'disable-inertia' },
|
||||
zoomAnimation: { kind: 'bool-off', attr: 'disable-zoom-animation' },
|
||||
fadeAnimation: { kind: 'bool-off', attr: 'disable-fade-animation' },
|
||||
markerZoomAnimation: { kind: 'bool-off', attr: 'disable-marker-zoom-animation' },
|
||||
bounceAtZoomLimits: { kind: 'bool-off', attr: 'disable-bounce-at-zoom-limits' },
|
||||
markerZoomAnimation: {
|
||||
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' },
|
||||
|
||||
// Boolean defaults-false → normal attribute
|
||||
|
||||
@ -57,7 +57,11 @@ export class LeafletPopup extends TypedBase {
|
||||
this.#observer = new MutationObserver(() => {
|
||||
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() {
|
||||
|
||||
@ -56,7 +56,11 @@ export class LeafletTooltip extends TypedBase {
|
||||
this.#observer = new MutationObserver(() => {
|
||||
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() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user