Skip to content

IMouseTargetMargin

原文链接

https://microsoft.github.io/monaco-editor/docs.html#interfaces/editor.IMouseTargetMargin.html

ts
interface IMouseTargetMargin {
    detail: IMouseTargetMarginData;
    element: HTMLElement;
    mouseColumn: number;
    position: Position;
    range: Range;
    type: GUTTER_GLYPH_MARGIN | GUTTER_LINE_NUMBERS | GUTTER_LINE_DECORATIONS;
}

detail

element

  • 类型:HTMLElement
  • 描述:鼠标目标元素

mouseColumn

  • 类型:number
  • 描述:鼠标列

position

range

  • 类型:Range
  • 描述:鼠标范围

type