draw-structure.puml 851 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. @startuml
  2. SPainter "1" *-- "1" SPen
  3. SPainter "1" *-- "1" SBrush
  4. SPainter "1" *-- "1" SFont
  5. SPen "1" -- "1" SColor
  6. SPen "1" -- "1" SGradient
  7. SBrush "1" -- "1" SColor
  8. SBrush "1" -- "1" SGradient
  9. class SPen{
  10. color: SColor
  11. dashOffset: number
  12. lineCapStyle: SLineCapStyle
  13. lineDash: number[] | null
  14. lineJoinStyle: SLineJoinStyle
  15. lineWidth: number
  16. miterLimit: number
  17. }
  18. class SBrush{
  19. color: SColor
  20. type: SBrushType
  21. gradient: SGradient
  22. }
  23. class SColor{
  24. alpha: number
  25. red: number
  26. green: number
  27. blue: number
  28. }
  29. class SGradient{
  30. end: SPoint
  31. start: SPoint
  32. stopList: SGradientStop[]
  33. x1: number
  34. x2: number
  35. y1: number
  36. y2: number
  37. }
  38. class SFont{
  39. name: string
  40. size: number
  41. textAlign: STextAlign
  42. textBaseLine: STextBaseLine
  43. textDirection: STextDirection
  44. }
  45. @enduml