Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IStyle

Hierarchy

  • IStyle

Index

Properties

Properties

link

link: { endArrow: 0 | 1; lineWidth: number; linkType: 0 | 1 | 2; startArrow: 0 | 1; stroke: string; text: { fontFamily: string; fontSize: number; stroke: string } }

连接样式

Type declaration

  • endArrow: 0 | 1
  • lineWidth: number
  • linkType: 0 | 1 | 2
  • startArrow: 0 | 1
  • stroke: string
  • text: { fontFamily: string; fontSize: number; stroke: string }
    • fontFamily: string
    • fontSize: number
    • stroke: string

pen

pen: { lineWidth: number; stroke: string }

涂鸦和直线样式

Type declaration

  • lineWidth: number
  • stroke: string

shape

shape: { fill: undefined | string; lineWidth: number; stroke: undefined | string; text: { fill: undefined | string; fontFamily: string; fontSize: number; stroke: string; textAlign: "left" | "right" | "center"; verticalAlign: "top" | "bottom" | "middle" } }

图形样式

Type declaration

  • fill: undefined | string
  • lineWidth: number
  • stroke: undefined | string
  • text: { fill: undefined | string; fontFamily: string; fontSize: number; stroke: string; textAlign: "left" | "right" | "center"; verticalAlign: "top" | "bottom" | "middle" }
    • fill: undefined | string
    • fontFamily: string
    • fontSize: number
    • stroke: string
    • textAlign: "left" | "right" | "center"
    • verticalAlign: "top" | "bottom" | "middle"

text

text: { fill: undefined | string; fontFamily: string; fontSize: number; stroke: string; textAlign: "left" | "right" | "center" }

文本样式

Type declaration

  • fill: undefined | string
  • fontFamily: string
  • fontSize: number
  • stroke: string
  • textAlign: "left" | "right" | "center"