RectResize.d.ts 988 B

1234567891011121314151617181920212223242526272829303132
  1. import { h, RectNode, RectNodeModel } from '@logicflow/core';
  2. declare class RectResizeModel extends RectNodeModel {
  3. private PCTResizeInfo;
  4. constructor(data: any, graphModel: any);
  5. initNodeData(data: any): void;
  6. getOutlineStyle(): import("@logicflow/core/types/constant/DefaultTheme").OutlineTheme;
  7. getResizeOutlineStyle(): {
  8. fill: string;
  9. stroke: string;
  10. strokeWidth: number;
  11. strokeDasharray: string;
  12. };
  13. getControlPointStyle(): {
  14. width: number;
  15. height: number;
  16. fill: string;
  17. stroke: string;
  18. };
  19. resize(deltaX: any, deltaY: any): void;
  20. enableProportionResize(turnOn?: boolean): void;
  21. }
  22. declare class RectResizeView extends RectNode {
  23. getControlGroup(): h.JSX.Element;
  24. getResizeShape(): h.JSX.Element;
  25. getShape(): h.JSX.Element;
  26. }
  27. declare const RectResize: {
  28. type: string;
  29. view: typeof RectResizeView;
  30. model: typeof RectResizeModel;
  31. };
  32. export default RectResize;