barrel exports

This commit is contained in:
Orion Reed 2024-12-18 18:45:06 -05:00
parent 09600e36e5
commit dc348aa633
6 changed files with 44 additions and 5 deletions

View File

@ -1,7 +1,7 @@
import { css, PropertyValues } from '@lit/reactive-element';
import { FolkRope } from './folk-rope.ts';
import { property } from '@lit/reactive-element/decorators.js';
import { Propagator } from '@propagators/index.ts';
import { Propagator } from '@propagators';
export class FolkEventPropagator extends FolkRope {
static override tagName = 'folk-event-propagator';

View File

@ -3,7 +3,7 @@ import { ResizeObserverManager } from '@lib/resize-observer';
import { Point } from '@lib/types';
import { DOMRectTransform, DOMRectTransformReadonly } from '@lib/DOMRectTransform';
import { Vector } from '@lib/Vector';
import { getResizeCursorUrl, getRotateCursorUrl } from '@lib/cursors';
import { getResizeCursorUrl, getRotateCursorUrl } from '@labs/utils/cursors';
import { TransformEvent } from '@lib/TransformEvent';
const resizeObserver = new ResizeObserverManager();

View File

@ -1,9 +1,11 @@
import { FolkShape } from '../labs/folk-shape';
import { ClientRectObserver, ClientRectObserverEntry } from './client-rect-observer';
import {
ClientRectObserver,
ClientRectObserverEntry,
type ClientRectObserverEntryCallback,
} from './client-rect-observer';
import { TransformEvent } from './TransformEvent';
export type ClientRectObserverEntryCallback = (entry: ClientRectObserverEntry) => void;
export type FolkObserverOptions = {
iframeSelector?: string;
};

34
lib/index.ts Normal file
View File

@ -0,0 +1,34 @@
// Animation and timing
export * from './animation-frame-controller';
export * from './rAF';
// Core utilities and types
export * from './types';
export * from './utils';
export * from './Vector';
export * from './Matrix';
// DOM and transformation
export * from './DOMRectTransform';
export * from './TransformEvent';
export * from '../labs/utils/cursors';
// Observers
export * from './client-rect-observer';
export * from './resize-observer';
export * from './folk-observer';
// Integration and effects
export * from './EffectIntegrator';
export * from './collision';
// Base elements and components
export * from './folk-element';
// WebGL utilities
export * from './webgl';
// Template literal tags
export * from './tags';
// Experimental features
export * from './Experimental';

View File

@ -16,8 +16,11 @@
"types": ["@webgpu/types", "@types/node", "bun-types"],
"baseUrl": ".",
"paths": {
"@lib": ["lib"],
"@lib/*": ["lib/*"],
"@labs": ["labs"],
"@labs/*": ["labs/*"],
"@propagators": ["propagators"],
"@propagators/*": ["propagators/*"]
}
},