Skip to content

High performance self-hosted photo and video management solution.

356 B
Raw Blame
import type { CommonPosition } from '#lib/utils/layout-utils.ts';
import type { TimelineAsset } from './types';

export class ViewerAsset {
  position: CommonPosition | undefined = $state.raw();
  asset: TimelineAsset = $state() as TimelineAsset;
  id: string = $derived(this.asset.id);

  constructor(asset: TimelineAsset) {
    this.asset = asset;
  }
}