Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ILayerState

Hierarchy

  • ILayerState

Index

Properties

fill

fill: CanvasFillStrokeStyles["fillStyle"]

填充颜色

opacity

opacity: number

不透明度

rotate

rotate: number

相对旋转角度

用的是角度的数值,不是弧度

scaleX

scaleX: number

横向放大倍率

scaleY

scaleY: number

纵向放大倍率

stroke

stroke: CanvasFillStrokeStyles["strokeStyle"]

描边颜色

strokeWidth

strokeWidth: CanvasPathDrawingStyles["lineWidth"]

描边宽度

visible

visible: boolean

可见

x

x: number

相对坐标 x

单位是 Sketch 实例的 unit

y

y: number

相对坐标 y

单位是 Sketch 实例的 unit