Skip to main content
Version: Next

OverlayGridSettings

Index

Constructors

constructor

Properties

color

color: string = AST_DEFAULT_COLOR

gapX

gapX: number = 0.2

gapY

gapY: number = 0.2

hasCustomColor

hasCustomColor: boolean = false

hasCustomGap

hasCustomGap: boolean = false

isVisible

isVisible: boolean = PreferenceStore.Instance.isAstGridVisible

width

width: number = 1

Accessors

styleString

  • get styleString(): string
  • Returns string

Methods

setColor

  • setColor(color: string): void
  • Parameters

    • color: string

    Returns void

setCustomColor

  • setCustomColor(hasCustomColor: boolean): void
  • Parameters

    • hasCustomColor: boolean

    Returns void

setCustomGap

  • setCustomGap(hasCustomGap?: boolean): void
  • Parameters

    • hasCustomGap: boolean = true

    Returns void

setGapX

  • setGapX(gap: number): void
  • Parameters

    • gap: number

    Returns void

setGapY

  • setGapY(gap: number): void
  • Parameters

    • gap: number

    Returns void

setVisible

  • setVisible(isVisible?: boolean): void
  • Parameters

    • isVisible: boolean = true

    Returns void

setWidth

  • setWidth(width: number): void
  • Parameters

    • width: number

    Returns void