flag.d.ts 971 B

1234567891011121314151617181920212223
  1. import { KeyValue } from '@antv/x6-common';
  2. import { CellView } from './cell';
  3. export declare class FlagManager {
  4. protected view: CellView;
  5. protected attrs: {
  6. [attr: string]: number;
  7. };
  8. protected flags: {
  9. [name: string]: number;
  10. };
  11. protected bootstrap: FlagManager.Actions;
  12. protected get cell(): import("..").Cell<import("..").Cell.Properties>;
  13. constructor(view: CellView, actions: KeyValue<FlagManager.Actions>, bootstrap?: FlagManager.Actions);
  14. getFlag(label: FlagManager.Actions): number;
  15. hasAction(flag: number, label: FlagManager.Actions): number;
  16. removeAction(flag: number, label: FlagManager.Actions): number;
  17. getBootstrapFlag(): number;
  18. getChangedFlag(): number;
  19. }
  20. export declare namespace FlagManager {
  21. type Action = 'render' | 'update' | 'resize' | 'scale' | 'rotate' | 'translate' | 'ports' | 'tools' | 'source' | 'target' | 'vertices' | 'labels';
  22. type Actions = Action | Action[];
  23. }