global-runtime.d.ts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. import type { LayoutRegistry } from './css';
  2. import type { CSSProperty } from './css/CSSProperty';
  3. import { PropertySyntax } from './css/interfaces';
  4. import { DefaultStyleValueRegistry } from './css/StyleValueRegistry';
  5. import type { HTML } from './display-objects';
  6. import { Camera } from './camera';
  7. import type { GeometryAABBUpdater, SceneGraphSelector, SceneGraphService } from './services';
  8. import { OffscreenCanvasCreator, TextService } from './services';
  9. import { Shape } from './types';
  10. export declare const runtime: GlobalRuntime;
  11. export interface GlobalRuntime {
  12. CameraContribution: new () => Camera;
  13. AnimationTimeline: any;
  14. EasingFunction: (...args: any[]) => (t: number) => number;
  15. offscreenCanvas: OffscreenCanvasCreator;
  16. sceneGraphSelector: SceneGraphSelector;
  17. sceneGraphService: SceneGraphService;
  18. textService: TextService;
  19. geometryUpdaterFactory: Record<Shape, GeometryAABBUpdater<any>>;
  20. styleValueRegistry: DefaultStyleValueRegistry;
  21. layoutRegistry: LayoutRegistry;
  22. CSSPropertySyntaxFactory: Record<PropertySyntax, Partial<CSSProperty<any, any>>>;
  23. globalThis: any;
  24. enableCSSParsing: boolean;
  25. nativeHTMLMap: WeakMap<HTMLElement, HTML>;
  26. /**
  27. * Enable using dataset property.
  28. * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset
  29. */
  30. enableDataset: boolean;
  31. /**
  32. * circle.style.r = 100;
  33. */
  34. enableStyleSyntax: boolean;
  35. }
  36. //# sourceMappingURL=global-runtime.d.ts.map