BBox.d.ts 654 B

1234567891011121314151617181920212223242526272829
  1. export declare type BBoxData = {
  2. w?: number;
  3. h?: number;
  4. d?: number;
  5. };
  6. export declare class BBox {
  7. static fullWidth: string;
  8. static StyleAdjust: [string, string, number?][];
  9. w: number;
  10. h: number;
  11. d: number;
  12. scale: number;
  13. rscale: number;
  14. L: number;
  15. R: number;
  16. pwidth: string;
  17. ic: number;
  18. sk: number;
  19. dx: number;
  20. static zero(): BBox;
  21. static empty(): BBox;
  22. constructor(def?: BBoxData);
  23. empty(): BBox;
  24. clean(): void;
  25. rescale(scale: number): void;
  26. combine(cbox: BBox, x?: number, y?: number): void;
  27. append(cbox: BBox): void;
  28. updateFrom(cbox: BBox): void;
  29. }