Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SGraphPointListInsert

多边形、折线等相关顶点的位置插入命令

author

韩耀龙

Hierarchy

Index

Constructors

constructor

  • 构造函数

    Parameters

    • scene: SGraphScene

      item所在场景

    • item: SGraphItem

      指向item对象

    • pointList: SPoint[]

      顶点数组

    • pos: SPoint

      当前位置

    • Default value index: number | null = null

      索引

    Returns SGraphPointListInsert

Properties

Readonly command

command: string

命令名称

desc

desc: string

index

index: number | null

索引

item

指向item对象

pointList

pointList: SPoint[]

顶点数组

pos

pos: SPoint

当前位置

scene

scene: SGraphScene | null = null

命令所属的场景类

Methods

id

  • id(): number
  • Returns number

mergeWith

  • mergeWith(command: SUndoCommand): boolean
  • Parameters

    • command: SUndoCommand

    Returns boolean

redo

  • redo(): void
  • 执行重做操作执行

    Returns void

toString

  • toString(): string
  • 命令细节描述

    Returns string

undo

  • undo(): void
  • 执行取消操作执行

    Returns void