base.d.ts 704 B

123456789101112131415161718192021222324
  1. import { Node } from '../model';
  2. export declare class Base<Properties extends Node.Properties = Node.Properties> extends Node<Properties> {
  3. get label(): string | undefined | null;
  4. set label(val: string | undefined | null);
  5. getLabel(): string;
  6. setLabel(label?: string | null, options?: Node.SetOptions): this;
  7. removeLabel(): this;
  8. }
  9. export declare namespace Base {
  10. const bodyAttr: {
  11. fill: string;
  12. stroke: string;
  13. strokeWidth: number;
  14. };
  15. const labelAttr: {
  16. fontSize: number;
  17. fill: string;
  18. refX: number;
  19. refY: number;
  20. textAnchor: string;
  21. textVerticalAnchor: string;
  22. fontFamily: string;
  23. };
  24. }