rename register to define
This commit is contained in:
parent
c34790d3af
commit
17450f64b9
|
|
@ -68,7 +68,7 @@
|
|||
<script type="module">
|
||||
import { FolkGeometry } from '../src/canvas/fc-geometry.ts';
|
||||
|
||||
FolkGeometry.register();
|
||||
FolkGeometry.define();
|
||||
|
||||
const geos = document.querySelectorAll('fc-geometry');
|
||||
|
||||
|
|
|
|||
|
|
@ -37,8 +37,8 @@
|
|||
import { FolkConnection } from '../src/arrows/fc-connection.ts';
|
||||
import '../src/arrows/iframe-script.ts';
|
||||
|
||||
FolkGeometry.register();
|
||||
FolkConnection.register();
|
||||
FolkGeometry.define();
|
||||
FolkConnection.define();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -65,10 +65,10 @@
|
|||
import { FolkMetronome } from '../src/folk-metronome.ts';
|
||||
import { EventPropagator } from '../src/arrows/event-propagator.ts';
|
||||
|
||||
FolkGeometry.register();
|
||||
FolkLLM.register();
|
||||
FolkMetronome.register();
|
||||
EventPropagator.register();
|
||||
FolkGeometry.define();
|
||||
FolkLLM.define();
|
||||
FolkMetronome.define();
|
||||
EventPropagator.define();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -45,77 +45,64 @@
|
|||
<h1>My article</h1>
|
||||
<p>
|
||||
<span
|
||||
>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
|
||||
eiusmod tempor incididunt ut labore et dolore magna aliqua.</span
|
||||
>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
|
||||
magna aliqua.</span
|
||||
>
|
||||
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi
|
||||
ut aliquip ex ea commodo consequat. Duis aute irure dolor in
|
||||
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
|
||||
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa
|
||||
qui officia deserunt mollit anim id est laborum.
|
||||
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis
|
||||
aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
|
||||
occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
||||
</p>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
|
||||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
|
||||
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
|
||||
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
|
||||
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
|
||||
occaecat cupidatat non proident, sunt in culpa qui officia deserunt
|
||||
mollit anim id est laborum.
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
|
||||
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
||||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
|
||||
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est
|
||||
laborum.
|
||||
</p>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
|
||||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
|
||||
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
|
||||
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
|
||||
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
|
||||
occaecat cupidatat non proident, sunt in culpa qui officia deserunt
|
||||
mollit anim id est laborum.
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
|
||||
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
||||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
|
||||
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est
|
||||
laborum.
|
||||
</p>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
|
||||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
|
||||
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
|
||||
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
|
||||
velit esse cillum dolore eu fugiat nulla pariatur.
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
|
||||
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
||||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
|
||||
pariatur.
|
||||
<span
|
||||
>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui
|
||||
officia deserunt mollit anim id est laborum.</span
|
||||
>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est
|
||||
laborum.</span
|
||||
>
|
||||
</p>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
|
||||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
|
||||
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
|
||||
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
|
||||
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
|
||||
occaecat cupidatat non proident, sunt in culpa qui officia deserunt
|
||||
mollit anim id est laborum.
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
|
||||
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
||||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
|
||||
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est
|
||||
laborum.
|
||||
</p>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet,>consectetur adipiscing elit, sed do eiusmod
|
||||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
|
||||
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
|
||||
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
|
||||
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
|
||||
occaecat cupidatat non proident, sunt in culpa qui officia deserunt
|
||||
mollit anim id est laborum.
|
||||
Lorem ipsum dolor sit amet,>consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
|
||||
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
||||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
|
||||
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est
|
||||
laborum.
|
||||
</p>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
|
||||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
|
||||
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
|
||||
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
|
||||
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
|
||||
occaecat cupidatat non proident, sunt in culpa qui officia deserunt
|
||||
mollit anim id est laborum.
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
|
||||
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
||||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
|
||||
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est
|
||||
laborum.
|
||||
</p>
|
||||
</main>
|
||||
|
||||
<script type="module">
|
||||
import { FolkGeometry } from '../src/canvas/fc-geometry.ts';
|
||||
|
||||
FolkGeometry.register();
|
||||
FolkGeometry.define();
|
||||
|
||||
function copyStyles(from, to) {
|
||||
const styles = getComputedStyle(from);
|
||||
|
|
@ -128,8 +115,7 @@
|
|||
}
|
||||
|
||||
document.addEventListener('click', ({ target }) => {
|
||||
if (target.closest('fc-geometry') || target.matches('body, html'))
|
||||
return;
|
||||
if (target.closest('fc-geometry') || target.matches('body, html')) return;
|
||||
|
||||
const rect = target.getBoundingClientRect();
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ declare global {
|
|||
class FolkThought extends HTMLElement {
|
||||
static tagName = 'fc-thought';
|
||||
|
||||
static register() {
|
||||
static define() {
|
||||
customElements.define(this.tagName, this);
|
||||
}
|
||||
|
||||
|
|
@ -44,9 +44,9 @@ class FolkThought extends HTMLElement {
|
|||
}
|
||||
}
|
||||
|
||||
FolkGeometry.register();
|
||||
FolkThought.register();
|
||||
FolkConnection.register();
|
||||
FolkGeometry.define();
|
||||
FolkThought.define();
|
||||
FolkConnection.define();
|
||||
|
||||
interface Thought {
|
||||
id: string;
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
import { FolkGeometry } from '../src/canvas/fc-geometry.ts';
|
||||
import { collisionDetection } from '../src/collision.ts';
|
||||
|
||||
FolkGeometry.register();
|
||||
FolkGeometry.define();
|
||||
|
||||
const geometryElements = document.querySelectorAll('fc-geometry');
|
||||
|
||||
|
|
|
|||
|
|
@ -55,8 +55,8 @@ rotate: from.x"
|
|||
import { FolkGeometry } from '../src/canvas/fc-geometry.ts';
|
||||
import { EventPropagator } from '../src/arrows/event-propagator.ts';
|
||||
|
||||
FolkGeometry.register();
|
||||
EventPropagator.register();
|
||||
FolkGeometry.define();
|
||||
EventPropagator.define();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -39,8 +39,8 @@
|
|||
import { FolkGeometry } from '../src/canvas/fc-geometry.ts';
|
||||
import { FolkHull } from '../src/folk-hull.ts';
|
||||
|
||||
FolkGeometry.register();
|
||||
FolkHull.register();
|
||||
FolkGeometry.define();
|
||||
FolkHull.define();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -47,8 +47,8 @@
|
|||
import { FolkGeometry } from '../src/canvas/fc-geometry.ts';
|
||||
import { FolkRope } from '../src/arrows/fc-rope.ts';
|
||||
|
||||
FolkGeometry.register();
|
||||
FolkRope.register();
|
||||
FolkGeometry.define();
|
||||
FolkRope.define();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@
|
|||
import { FolkGeometry } from '../src/canvas/fc-geometry.ts';
|
||||
import { FolkInk } from '../src/folk-ink.ts';
|
||||
|
||||
FolkGeometry.register();
|
||||
FolkInk.register();
|
||||
FolkGeometry.define();
|
||||
FolkInk.define();
|
||||
|
||||
const drawButton = document.querySelector('button');
|
||||
|
||||
|
|
|
|||
|
|
@ -112,10 +112,10 @@
|
|||
import { FolkTimer } from '../src/folk-timer.ts';
|
||||
import { EventPropagator } from '../src/arrows/event-propagator.ts';
|
||||
|
||||
FolkGeometry.register();
|
||||
FolkLLM.register();
|
||||
FolkTimer.register();
|
||||
EventPropagator.register();
|
||||
FolkGeometry.define();
|
||||
FolkLLM.define();
|
||||
FolkTimer.define();
|
||||
EventPropagator.define();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
<script type="module">
|
||||
import { FolkGeometry } from '../src/canvas/fc-geometry.ts';
|
||||
|
||||
FolkGeometry.register();
|
||||
FolkGeometry.define();
|
||||
|
||||
const geometries = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@
|
|||
background: white;
|
||||
border: solid 2px black;
|
||||
border-radius: 5px;
|
||||
padding: 1rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
|
@ -80,16 +81,16 @@
|
|||
import { FolkWeather } from '../src/folk-weather.ts';
|
||||
import { FolkCluster, FolkProximity } from '../src/folk-proximity.ts';
|
||||
|
||||
FolkGeometry.register();
|
||||
FolkMap.register();
|
||||
FolkCluster.register();
|
||||
FolkProximity.register();
|
||||
FolkWeather.register();
|
||||
FolkGeometry.define();
|
||||
FolkMap.define();
|
||||
FolkCluster.define();
|
||||
FolkProximity.define();
|
||||
FolkWeather.define();
|
||||
|
||||
class GeoWiki extends HTMLElement {
|
||||
static tagName = 'geo-wiki';
|
||||
|
||||
static register() {
|
||||
static define() {
|
||||
customElements.define(this.tagName, this);
|
||||
}
|
||||
|
||||
|
|
@ -149,7 +150,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
GeoWiki.register();
|
||||
GeoWiki.define();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -64,8 +64,8 @@
|
|||
import { RecordPlayer } from '../src/music/record-player.ts';
|
||||
import { collisionDetection } from '../src/collision.ts';
|
||||
|
||||
FolkGeometry.register();
|
||||
RecordPlayer.register();
|
||||
FolkGeometry.define();
|
||||
RecordPlayer.define();
|
||||
|
||||
/**
|
||||
sips -c 326 276 --cropOffset 1 1 *.png --out pngs/
|
||||
|
|
|
|||
|
|
@ -153,8 +153,8 @@
|
|||
import { FolkGeometry } from '../src/canvas/fc-geometry.ts';
|
||||
import { FolkConnection } from '../src/arrows/fc-connection.ts';
|
||||
|
||||
FolkGeometry.register();
|
||||
FolkConnection.register();
|
||||
FolkGeometry.define();
|
||||
FolkConnection.define();
|
||||
|
||||
document.body.querySelectorAll('fc-geometry').forEach((el, i) => (el.style.viewTransitionName = `g${i}`));
|
||||
document.body.querySelectorAll('fc-connection').forEach((el, i) => (el.style.viewTransitionName = `c${i}`));
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
<script type="module">
|
||||
import { FolkGeometry } from '../src/canvas/fc-geometry.ts';
|
||||
|
||||
FolkGeometry.register();
|
||||
FolkGeometry.define();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -170,9 +170,9 @@
|
|||
import { FolkConnection } from '../src/arrows/fc-connection.ts';
|
||||
import { FolkSpreadsheet } from '../src/folk-spreadsheet.ts';
|
||||
|
||||
FolkGeometry.register();
|
||||
FolkConnection.register();
|
||||
FolkSpreadsheet.register();
|
||||
FolkGeometry.define();
|
||||
FolkConnection.define();
|
||||
FolkSpreadsheet.define();
|
||||
|
||||
let isProjected = false;
|
||||
const button = document.querySelector('button');
|
||||
|
|
|
|||
|
|
@ -171,10 +171,10 @@
|
|||
import { EventPropagator } from '../src/arrows/event-propagator.ts';
|
||||
import { FolkSpreadsheet } from '../src/folk-spreadsheet.ts';
|
||||
|
||||
FolkMap.register();
|
||||
FolkGeometry.register();
|
||||
FolkSpreadsheet.register();
|
||||
EventPropagator.register();
|
||||
FolkMap.define();
|
||||
FolkGeometry.define();
|
||||
FolkSpreadsheet.define();
|
||||
EventPropagator.define();
|
||||
|
||||
window.round = (number, digits = 0) => {
|
||||
const base = Number('1'.padEnd(digits + 1, '0'));
|
||||
|
|
|
|||
|
|
@ -126,8 +126,8 @@
|
|||
import { FolkGeometry } from '../src/canvas/fc-geometry.ts';
|
||||
import { FolkSpreadsheet } from '../src/folk-spreadsheet.ts';
|
||||
|
||||
FolkGeometry.register();
|
||||
FolkSpreadsheet.register();
|
||||
FolkGeometry.define();
|
||||
FolkSpreadsheet.define();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -41,8 +41,8 @@
|
|||
import { FolkGeometry } from '../src/canvas/fc-geometry.ts';
|
||||
import { FolkRope } from '../src/arrows/fc-rope.ts';
|
||||
|
||||
FolkGeometry.register();
|
||||
FolkRope.register();
|
||||
FolkGeometry.define();
|
||||
FolkRope.define();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@
|
|||
<script type="module">
|
||||
import { FolkXanadu } from '../src/folk-xanadu.ts';
|
||||
|
||||
FolkXanadu.register();
|
||||
FolkXanadu.define();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -204,8 +204,8 @@
|
|||
import { FolkXanadu } from '../src/folk-xanadu.ts';
|
||||
import { FolkGeometry } from '../src/canvas/fc-geometry.ts';
|
||||
|
||||
FolkGeometry.register();
|
||||
FolkXanadu.register();
|
||||
FolkGeometry.define();
|
||||
FolkXanadu.define();
|
||||
|
||||
// class AnimatedXanaduLink extends FolkXanadu {
|
||||
// sourceAnimation = null;
|
||||
|
|
@ -266,7 +266,7 @@
|
|||
// }
|
||||
// }
|
||||
|
||||
// AnimatedXanaduLink.register();
|
||||
// AnimatedXanaduLink.define();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ function parseCSSSelector(selector: string): string[] {
|
|||
export class AbstractArrow extends HTMLElement {
|
||||
static tagName = 'abstract-arrow';
|
||||
|
||||
static register() {
|
||||
static define() {
|
||||
customElements.define(this.tagName, this);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ declare global {
|
|||
export class FolkGeometry extends HTMLElement {
|
||||
static tagName = 'fc-geometry';
|
||||
|
||||
static register() {
|
||||
static define() {
|
||||
customElements.define(this.tagName, this);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ declare global {
|
|||
export class FolkInk extends HTMLElement {
|
||||
static tagName = 'folk-ink';
|
||||
|
||||
static register() {
|
||||
static define() {
|
||||
customElements.define(this.tagName, this);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ declare global {
|
|||
export class FolkLLM extends HTMLElement {
|
||||
static tagName = 'folk-llm';
|
||||
|
||||
static register() {
|
||||
static define() {
|
||||
customElements.define(this.tagName, this);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ export class RecenterEvent extends Event {
|
|||
export class FolkMap extends HTMLElement {
|
||||
static tagName = 'folk-map';
|
||||
|
||||
static register() {
|
||||
static define() {
|
||||
customElements.define(this.tagName, this);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ declare global {
|
|||
export class FolkMetronome extends HTMLElement {
|
||||
static tagName = 'folk-metronome';
|
||||
|
||||
static register() {
|
||||
static define() {
|
||||
customElements.define(this.tagName, this);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { collisionDetection } from './collision';
|
|||
import { FolkHull } from './folk-hull';
|
||||
import { FolkGeometry } from './canvas/fc-geometry.ts';
|
||||
|
||||
// TODO dont hard code this
|
||||
// TODO don't hard code this
|
||||
const PROXIMITY = 50;
|
||||
|
||||
declare global {
|
||||
|
|
@ -46,7 +46,7 @@ export class FolkCluster extends FolkHull {
|
|||
export class FolkProximity extends HTMLElement {
|
||||
static tagName = 'folk-proximity';
|
||||
|
||||
static register() {
|
||||
static define() {
|
||||
customElements.define(this.tagName, this);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ declare global {
|
|||
export class FolkSet extends HTMLElement {
|
||||
static tagName = 'folk-set';
|
||||
|
||||
static register() {
|
||||
static define() {
|
||||
customElements.define(this.tagName, this);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -152,9 +152,9 @@ declare global {
|
|||
export class FolkSpreadsheet extends HTMLElement {
|
||||
static tagName = 'folk-spreadsheet';
|
||||
|
||||
static register() {
|
||||
FolkSpreadSheetCell.register();
|
||||
FolkSpreadsheetHeader.register();
|
||||
static define() {
|
||||
FolkSpreadSheetCell.define();
|
||||
FolkSpreadsheetHeader.define();
|
||||
customElements.define(this.tagName, this);
|
||||
}
|
||||
|
||||
|
|
@ -346,7 +346,7 @@ declare global {
|
|||
export class FolkSpreadsheetHeader extends HTMLElement {
|
||||
static tagName = 's-header';
|
||||
|
||||
static register() {
|
||||
static define() {
|
||||
customElements.define(this.tagName, this);
|
||||
}
|
||||
|
||||
|
|
@ -376,7 +376,7 @@ declare global {
|
|||
export class FolkSpreadSheetCell extends HTMLElement {
|
||||
static tagName = 'folk-cell';
|
||||
|
||||
static register() {
|
||||
static define() {
|
||||
customElements.define(this.tagName, this);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ declare global {
|
|||
export class FolkTimer extends HTMLElement {
|
||||
static tagName = 'folk-timer';
|
||||
|
||||
static register() {
|
||||
static define() {
|
||||
customElements.define(this.tagName, this);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ declare global {
|
|||
export class FolkWeather extends HTMLElement {
|
||||
static tagName = 'folk-weather';
|
||||
|
||||
static register() {
|
||||
static define() {
|
||||
customElements.define(this.tagName, this);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -218,7 +218,7 @@ styles.replaceSync(`
|
|||
export class RecordPlayer extends HTMLElement {
|
||||
static tagName = 'record-player';
|
||||
|
||||
static register() {
|
||||
static define() {
|
||||
customElements.define(this.tagName, this);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue