text.d.ts 783 B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * @fileoverview text
  3. * @author dengfuping_develop@163.com
  4. */
  5. import ShapeBase from './base';
  6. declare class Text extends ShapeBase {
  7. type: string;
  8. canFill: boolean;
  9. canStroke: boolean;
  10. getDefaultAttrs(): {
  11. x: number;
  12. y: number;
  13. text: any;
  14. fontSize: number;
  15. fontFamily: string;
  16. fontStyle: string;
  17. fontWeight: string;
  18. fontVariant: string;
  19. textAlign: string;
  20. textBaseline: string;
  21. lineWidth: number;
  22. lineAppendWidth: number;
  23. strokeOpacity: number;
  24. fillOpacity: number;
  25. matrix: any;
  26. opacity: number;
  27. };
  28. createPath(context: any, targetAttrs: any): void;
  29. _setFont(): void;
  30. _setText(text: any): void;
  31. }
  32. export default Text;