@awcrotwell/motion
Version:
Motion allows you to build reactive, real-time frontend UI components in your Amber application using pure Crystal that are reusable, testable & encapsulated. For brevity, we will call them MotionComponents.
21 lines (20 loc) • 663 B
TypeScript
import AttributeTracker from './AttributeTracker';
import Consumer from './Consumer';
import IClient from './interfaces/client_interface';
export default class Client {
_componentSelector: string;
keyAttribute: string;
stateAttribute: string;
motionAttribute: string;
logging: boolean;
_componentTracker: AttributeTracker;
_motionTracker: AttributeTracker;
root: HTMLDocument;
shutdownBeforeUnload: boolean;
consumer: Consumer;
constructor(options: IClient);
log(...args: Array<any>): void;
findComponent(element: HTMLElement): HTMLElement | undefined;
shutdown(): void;
getExtraDataForEvent(): void;
}