控制器

Hierarchy

Constructors

Properties

achors: number[] = []
disableScroll: boolean = false
dispatch: ((event: string, data?: any) => void) = ...

Type declaration

    • (event: string, data?: any): void
    • Parameters

      • event: string
      • Optional data: any

      Returns void

editor: VEditor
events: {} = {}

Type declaration

    paper: SVGGElement
    scale: number = 1
    scaleRatio: number = 0.01
    startPosition: { x: any; y: any }

    Type declaration

    • x: any
    • y: any
    status: string
    svg: SVGSVGElement
    x: number = 0
    y: number = 0

    Methods

    • auto fit to screen

      Parameters

      • center: boolean = true
      • vertical: boolean = true

      Returns void

    • auto fit to screen with scale

      Parameters

      • padding: number = 40

      Returns void

    • Parameters

      • event: string
      • Optional data: any

      Returns void

    • 移动到指定位置

      Parameters

      • x: number
      • y: number

      Returns void

    • 关闭绑定的事件

      Parameters

      • event: string
      • Optional offFunc: Function

      Returns void

    • 箭头

      Parameters

      • event: string
      • func: Function
      • Optional index: number

      Returns void

    • 移动到指定位置

      Parameters

      • x: number
      • y: number

      Returns void

    • 做指定转换

      Parameters

      • newScale: number
      • x: number = 0
      • y: number = 0

      Returns void

    • 缩放

      Parameters

      • newScale: any
      • cx: number = 0
      • cy: number = 0

      Returns void

    • 滚动到指定位置

      Parameters

      • newScale: number

      Returns void

    Generated using TypeDoc