rename lib directory

This commit is contained in:
“chrisshank” 2024-12-17 23:53:06 -08:00
parent 31dcc528c1
commit 82f8c36da6
117 changed files with 108 additions and 107 deletions

View File

@ -45,8 +45,8 @@
</folk-distance-field>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-distance-field.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-distance-field.ts';
</script>
</body>
</html>

View File

@ -89,8 +89,8 @@
</folk-sand>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-sand.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-sand.ts';
document.querySelector('folk-sand').onMaterialChange = (materialNumber) => {
document.querySelector('key-helper button[active]').removeAttribute('active');

View File

@ -22,8 +22,8 @@
</head>
<body>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-distance-field.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-distance-field.ts';
const d = document.createElement('folk-distance-field');
const geometries = [];

View File

@ -22,7 +22,7 @@
</head>
<body>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../lib/standalone/folk-shape.ts';
const geometries = [];

View File

@ -84,8 +84,8 @@
<folk-rope source="#box1" target="#box2"></folk-rope>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-rope.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-rope.ts';
</script>
</body>
</html>

View File

@ -133,7 +133,7 @@
</main>
<script type="module">
import '../src/common/iframe-script.ts';
import '../lib/common/iframe-script.ts';
</script>
</body>
</html>

View File

@ -64,7 +64,7 @@
<folk-shape x="100" y="300" width="50" height="50"></folk-shape>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../lib/standalone/folk-shape.ts';
const geos = document.querySelectorAll('folk-shape');

View File

@ -53,9 +53,9 @@
</folk-shape>
<script type="module">
import '../src/standalone/folk-shape.ts';
import './src/folk-metronome.ts';
import '../src/standalone/folk-event-propagator.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-event-propagator.ts';
</script>
</body>
</html>

View File

@ -100,7 +100,7 @@
</main>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../lib/standalone/folk-shape.ts';
function copyStyles(from, to) {
const styles = getComputedStyle(from);

View File

@ -1,5 +1,5 @@
import { FolkShape } from '../../src/folk-shape.ts';
import { FolkArrow } from '../../src/folk-arrow.ts';
import { FolkShape } from '../../lib/folk-shape.ts';
import { FolkArrow } from '../../lib/folk-arrow.ts';
import { FileSaver } from '../src/file-system.ts';
declare global {

View File

@ -105,8 +105,8 @@
<folk-shape x="500" y="100" width="30" height="70"></folk-shape>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-sand.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-sand.ts';
document.querySelector('folk-sand').onMaterialChange = (materialNumber) => {
document.querySelector('key-helper button[active]').removeAttribute('active');

View File

@ -39,8 +39,8 @@
<folk-rope source="iframe#frame1 #box1" target="iframe#frame2 #box2"></folk-rope>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-rope.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-rope.ts';
</script>
</body>
</html>

View File

@ -62,7 +62,7 @@
<folk-xanadu source="iframe#frame1 p:nth-child(6)" target="iframe#frame2 p:nth-child(4)"></folk-xanadu>
<script type="module">
import '../src/standalone/folk-xanadu.ts';
import '../lib/standalone/folk-xanadu.ts';
</script>
</body>
</html>

View File

@ -51,8 +51,8 @@ rotation: from.x/10"
></folk-event-propagator>
<script type="module">
import '../src/standalone/folk-shape.ts';
import { FolkEventPropagator } from '../src/standalone/folk-event-propagator.ts';
import '../lib/standalone/folk-shape.ts';
import { FolkEventPropagator } from '../lib/standalone/folk-event-propagator.ts';
class CutTool {
entry() {

View File

@ -49,11 +49,11 @@
<folk-physics sources="#shape1, #shape2, #shape3, #shape4, #shape5, #shape6, #shape7, #shape8"></folk-physics>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-arrow.ts';
import '../src/standalone/folk-rope.ts';
import '../src/standalone/folk-graph.ts';
import '../src/standalone/folk-physics.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-arrow.ts';
import '../lib/standalone/folk-rope.ts';
import '../lib/standalone/folk-graph.ts';
import '../lib/standalone/folk-physics.ts';
</script>
</body>
</html>

View File

@ -106,10 +106,10 @@
></folk-event-propagator>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-llm.ts';
import './src/folk-timer.ts';
import '../src/standalone/folk-event-propagator.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-llm.ts';
import '../lib/standalone/folk-event-propagator.ts';
</script>
</body>
</html>

View File

@ -54,8 +54,8 @@ rotation: from.x"
></folk-event-propagator>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-event-propagator.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-event-propagator.ts';
let timeout = -1;
let isBlowing = false;

View File

@ -45,8 +45,8 @@ rotation: from.x/10"
></folk-event-propagator>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-event-propagator.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-event-propagator.ts';
</script>
</body>
</html>

View File

@ -72,8 +72,8 @@
<script type="module">
import 'https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.18.0/cdn/components/qr-code/qr-code.js';
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-event-propagator.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-event-propagator.ts';
const ropeMode = document.querySelector('input[type="checkbox"]');

View File

@ -47,10 +47,10 @@
</folk-graph>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-arrow.ts';
import '../src/standalone/folk-rope.ts';
import '../src/standalone/folk-graph.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-arrow.ts';
import '../lib/standalone/folk-rope.ts';
import '../lib/standalone/folk-graph.ts';
</script>
</body>
</html>

View File

@ -23,8 +23,8 @@
<body>
<button on:click="DRAW">Draw</button>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-ink.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-ink.ts';
const drawButton = document.querySelector('button');

View File

@ -123,8 +123,8 @@
</folk-shape>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-spreadsheet.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-spreadsheet.ts';
</script>
</body>
</html>

View File

@ -58,7 +58,7 @@
<folk-shape x="100" y="300" width="50" height="50" rotation="45"></folk-shape>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../lib/standalone/folk-shape.ts';
// Check for moveBefore support
if (!Element.prototype.moveBefore) {

View File

@ -78,8 +78,8 @@
<script type="module">
import './src/record-player.ts';
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-event-propagator.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-event-propagator.ts';
</script>
</body>
</html>

View File

@ -41,9 +41,9 @@
</folk-physics>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-physics.ts';
import '../src/standalone/folk-event-propagator.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-physics.ts';
import '../lib/standalone/folk-event-propagator.ts';
</script>
</body>
</html>

View File

@ -54,8 +54,8 @@
<folk-shape x="300" y="350" width="60" height="90" rotation="45"></folk-shape>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-projector.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-projector.ts';
const projector = document.querySelector('folk-projector');

View File

@ -88,12 +88,12 @@
></folk-event-propagator>
<script type="module">
import '../src/standalone/folk-shape.ts';
import { FolkMap } from '../src/standalone/folk-map.ts';
import { FolkWeather } from './src/folk-weather.ts';
import { GeoWiki } from './src/geo-wiki.ts';
import { FolkCluster } from '../src/standalone/folk-proximity.ts';
import '../src/standalone/folk-event-propagator.ts';
import { FolkWeather } from './src/folk-weather.ts';
import '../lib/standalone/folk-shape.ts';
import { FolkMap } from '../lib/standalone/folk-map.ts';
import { FolkCluster } from '../lib/standalone/folk-proximity.ts';
import '../lib/standalone/folk-event-propagator.ts';
FolkCluster.registerElement({
constructor: FolkMap,

View File

@ -75,11 +75,11 @@
</folk-proximity>
<script type="module">
import '../src/standalone/folk-shape.ts';
import { FolkMap } from '../src/standalone/folk-map.ts';
import { FolkWeather } from './src/folk-weather.ts';
import { GeoWiki } from './src/geo-wiki.ts';
import { FolkCluster } from '../src/standalone/folk-proximity.ts';
import { FolkWeather } from './src/folk-weather.ts';
import '../lib/standalone/folk-shape.ts';
import { FolkMap } from '../lib/standalone/folk-map.ts';
import { FolkCluster } from '../lib/standalone/folk-proximity.ts';
FolkCluster.registerElement({
constructor: FolkMap,

View File

@ -60,9 +60,9 @@
</folk-shape>
<script type="module">
import '../src/standalone/folk-shape.ts';
import './src/record-player.ts';
import { aabbIntersection } from '../src/common/collision.ts';
import '../lib/standalone/folk-shape.ts';
import { aabbIntersection } from '../lib/common/collision.ts';
let proximityDistance = 150;
const proximitySet = new Set();

View File

@ -37,8 +37,8 @@
<folk-space-radial sources="folk-shape"> </folk-space-radial>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-space-radial.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-space-radial.ts';
</script>
</body>
</html>

View File

@ -89,8 +89,8 @@
</folk-shape> -->
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-arrow.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-arrow.ts';
</script>
</body>
</html>

View File

@ -144,8 +144,8 @@
<folk-arrow source="#box1" target="#box3"></folk-arrow>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-arrow.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-arrow.ts';
document.body.querySelectorAll('folk-shape').forEach((el, i) => (el.style.viewTransitionName = `g${i}`));
document.body.querySelectorAll('folk-arrow').forEach((el, i) => (el.style.viewTransitionName = `c${i}`));

View File

@ -49,8 +49,8 @@
<folk-shape x="400" y="275" width="50" height="50"></folk-shape>
<script type="module">
import { FolkShape } from '../src/standalone/folk-shape.ts';
import { aabbHitDetection } from '../src/common/collision.ts';
import { FolkShape } from '../lib/standalone/folk-shape.ts';
import { aabbHitDetection } from '../lib/common/collision.ts';
const shapes = Array.from(document.querySelectorAll('folk-shape, p'));

View File

@ -29,7 +29,7 @@
<folk-shape x="100" y="300" width="50" height="50" rotation="45"></folk-shape>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../lib/standalone/folk-shape.ts';
</script>
</body>
</html>

View File

@ -48,8 +48,8 @@
</folk-space>
<script type="module">
import '../src/standalone/folk-space.ts';
import '../src/standalone/folk-shape.ts';
import '../lib/standalone/folk-space.ts';
import '../lib/standalone/folk-shape.ts';
document.addEventListener('click', () => window.space.transition());
</script>

View File

@ -163,9 +163,9 @@
</folk-shape>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-arrow.ts';
import '../src/standalone/folk-spreadsheet.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-arrow.ts';
import '../lib/standalone/folk-spreadsheet.ts';
let isProjected = false;
const button = document.querySelector('button');

View File

@ -162,10 +162,10 @@
></folk-event-propagator>
<script type="module">
import '../src/standalone/folk-map.ts';
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-event-propagator.ts';
import '../src/standalone/folk-spreadsheet.ts';
import '../lib/standalone/folk-map.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-event-propagator.ts';
import '../lib/standalone/folk-spreadsheet.ts';
</script>
</body>
</html>

View File

@ -41,8 +41,8 @@
</folk-space-projector>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-space-projector.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-space-projector.ts';
</script>
</body>
</html>

View File

@ -1,4 +1,4 @@
import { FolkElement } from '../../src/common/folk-element';
import { FolkElement } from '../../lib/common/folk-element';
declare global {
interface HTMLElementTagNameMap {

View File

@ -1,4 +1,4 @@
import { FolkElement } from '../../src/common/folk-element';
import { FolkElement } from '../../lib/common/folk-element';
declare global {
interface HTMLElementTagNameMap {

View File

@ -1,4 +1,4 @@
import { html } from '../../src/common/tags';
import { html } from '../../lib/common/tags';
interface Weather {
temperature: string;

View File

@ -1,5 +1,5 @@
// Ported from https://github.com/bitu467/record-player
import { css, html } from '../../src/common/tags';
import { css, html } from '../../lib/common/tags';
const styles = css`
::slotted(*) {

View File

@ -29,9 +29,9 @@
<folk-arrow source="#box1" target="#box2"></folk-arrow>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-arrow.ts';
import '../src/common/iframe-script.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-arrow.ts';
import '../lib/common/iframe-script.ts';
</script>
</body>
</html>

View File

@ -43,8 +43,8 @@
<folk-rope source="#box1" target="#box4"></folk-rope>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-rope.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-rope.ts';
</script>
</body>
</html>

View File

@ -52,11 +52,11 @@
</folk-toolset>
<script type="module">
import '../src/standalone/folk-event-propagator.ts';
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-distance-field.ts';
import '../src/standalone/folk-sand.ts';
import '../src/standalone/folk-toolset.ts';
import '../lib/standalone/folk-event-propagator.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-distance-field.ts';
import '../lib/standalone/folk-sand.ts';
import '../lib/standalone/folk-toolset.ts';
</script>
</body>
</html>

View File

@ -45,8 +45,8 @@
</folk-hull>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-hull.ts';
import '../lib/standalone/folk-shape.ts';
import '../lib/standalone/folk-hull.ts';
</script>
</body>
</html>

View File

@ -201,8 +201,8 @@
<folk-xanadu source="folk-shape[name='1'] [link='2']" target="folk-shape[name='2'] [link='2']"></folk-xanadu>
<script type="module">
import '../src/standalone/folk-xanadu.ts';
import '../src/standalone/folk-shape.ts';
import '../lib/standalone/folk-xanadu.ts';
import '../lib/standalone/folk-shape.ts';
</script>
</body>
</html>

View File

@ -1,4 +1,4 @@
// Adopted from: https://github.com/pshihn/bezier-points/blob/master/src/index.ts
// Adopted from: https://github.com/pshihn/bezier-points/blob/master/lib/index.ts
import type { Point } from './types.ts';
import { Vector } from './Vector.ts';

Some files were not shown because too many files have changed in this diff Show More