Class EditorView

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(editor: IEditor): EditorView

Parameters

Returns

EditorView

Properties

public active: boolean

public attached: any

public bottomPaddingInLines: number

public charHeight: any

public charWidth: any

public static characterWidthCache: any

public static configDefaults: any

public cursorViews: Array<any>

public editor: IEditor

public gutter: IGutterView

public hScrollMargin: number

public hiddenInput: JQuery

public id: number

public isFocused: any

public lineCache: Array<any>

public lineHeight: any

public lineOverdraw: number

public newCursors: Array<any>

public newSelections: Array<any>

public static nextEditorId: number

public overlayer: JQuery

public pendingChanges: Array<any>

public redrawOnReattach: any

public renderedLines: JQuery

public scrollView: JQuery

public selectionViews: Array<any>

public underlayer: JQuery

public vScrollMargin: number

public verticalScrollbar: JQuery

public verticalScrollbarContent: JQuery

Methods

public addCursorView(cursor: any, options: any): any

Parameters

  • cursor: any
  • options: any

Returns

any

public addSelectionView(selection: any): any

Parameters

  • selection: any

Returns

any

public addSubscription(subscription: any): any

Parameters

  • subscription: any

Returns

any

public afterAttach(onDom: any): any

Parameters

  • onDom: any

Returns

any

public appendToLinesView(view: any): any

Parameters

  • view: any

Returns

any

public autoscroll(suppressAutoscroll?: any): Array<any>

Parameters

  • suppressAutoscroll?: any optional

Returns

Array<any>

public beforeRemove(): any

Returns

any

public bindEventHandlers(view: View)

Parameters

public bindKeys()

public bringHiddenInputIntoView(): JQuery

Returns

JQuery

public buildEmptyLineHtml(showIndentGuide: any, eolInvisibles: any, htmlEolInvisibles: any, indentation: any, editor: any, mini: any): any

Parameters

  • showIndentGuide: any
  • eolInvisibles: any
  • htmlEolInvisibles: any
  • indentation: any
  • editor: any
  • mini: any

Returns

any

public buildHtml(params: any): any

Parameters

  • params: any

Returns

any

public buildHtmlEndOfLineInvisibles(screenLine: any): any

Parameters

  • screenLine: any

Returns

any

public buildIndentation(screenRow: any, editor: any): any

Parameters

  • screenRow: any
  • editor: any

Returns

any

public buildLineElementForScreenRow(screenRow: any): any

Parameters

  • screenRow: any

Returns

any

public buildLineElementsForScreenRows(startRow: any, endRow: any): any

Parameters

  • startRow: any
  • endRow: any

Returns

any

public buildLineHtml(_arg: any): any

Parameters

  • _arg: any

Returns

any

public calculateDimensions(): number

Returns

number

public calculateHeightInLines(): number

Returns

number

public calculateWidthInChars(): number

Returns

number

public checkoutHead(): boolean

Returns

boolean

public static classes(_arg?: { mini?: any; }): string

Parameters

  • _arg?: { mini?: any; } optional

Returns

string

public clearCharacterWidthCache(): any

Returns

any

public clearDirtyRanges(intactRanges: any): any

Parameters

  • intactRanges: any

Returns

any

public clearLine(lineElement: any): any

Parameters

  • lineElement: any

Returns

any

public clearRenderedLines()

public command(eventName: string, handler: any): any

Parameters

  • eventName: string
  • handler: any

Returns

any

public command(eventName: string, selector: any, handler: any): any

Parameters

  • eventName: string
  • selector: any
  • handler: any

Returns

any

public command(eventName: string, selector: any, options: any, handler: any): any

Parameters

  • eventName: string
  • selector: any
  • options: any
  • handler: any

Returns

any

public computeIntactRanges(renderFrom: any, renderTo: any): any

Parameters

  • renderFrom: any
  • renderTo: any

Returns

any

public computeSurroundingEmptyLineChanges(change: any): any

Parameters

  • change: any

Returns

any

public configure(): ISubscription

Returns

ISubscription

public consolidateSelections(e: any): any

Parameters

  • e: any

Returns

any

public static content(params: any)

Parameters

  • params: any

public copyPathToClipboard(): any

Returns

any

public edit(editor: IEditor): any

Parameters

Returns

any

public end(): any

Returns

any

public fillDirtyRanges(intactRanges: any, renderFrom: any, renderTo: any): any

Parameters

  • intactRanges: any
  • renderFrom: any
  • renderTo: any

Returns

any

public getCharacterWidthCache(scopes: any, char: any): any

Parameters

  • scopes: any
  • char: any

Returns

any

public getCursorView(index?: number): any

Parameters

  • index?: number optional

Returns

any

public getCursorViews(): Array<any>

Returns

Array<any>

public getEditor(): IEditor

Returns

IEditor

public getEndOfLineInvisibles(screenLine: any): any

Parameters

  • screenLine: any

Returns

any

public getFirstVisibleScreenRow(): number

Returns

number

public getFontFamily(): string

Returns

string

public getFontSize(): number

Returns

number

public getLastVisibleScreenRow(): number

Returns

number

public getModel(): IEditor

Returns

IEditor

public getPageRows(): number

Returns

number

public getPane(): any

Returns

any

public getPlaceholderText(): string

Returns

string

public getScrollbarWidth(): number

Returns

number

public getSelectionView(index?: number): any

Parameters

  • index?: number optional

Returns

any

public getSelectionViews(): Array<any>

Returns

Array<any>

public getText(): string

Returns

string

public handleEvents()

public handleInputEvents()

public handleScreenLinesChange(change: any): any

Parameters

  • change: any

Returns

any

public highlightCursorLine(): any

Returns

any

public highlightFoldsContainingBufferRange(bufferRange: any): any

Parameters

  • bufferRange: any

Returns

any

public htmlForScreenLine(screenLine: any, screenRow: any): any

Parameters

  • screenLine: any
  • screenRow: any

Returns

any

public htmlForScreenRows(startRow: any, endRow: any): any

Parameters

  • startRow: any
  • endRow: any

Returns

any

public initialize(editorOrOptions: IEditor)

Parameters

public initialize(editorOrOptions?: { editor: AtomCore.IEditor; mini: any; placeholderText: any; })

Parameters

  • editorOrOptions?: { editor: AtomCore.IEditor; mini: any; placeholderText: any; } optional

public initialize(editorOrOptions: {})

Parameters

  • editorOrOptions: {}

public insertText(text: string, options?: any): IRange[]

Parameters

  • text: string
  • options?: any optional

Returns

IRange[]

public isHidden(): boolean

Returns

boolean

public isScreenRowVisible(): boolean

Returns

boolean

public lineElementForScreenRow(screenRow: any): any

Parameters

  • screenRow: any

Returns

any

public logCursorScope(): any

Returns

any

public logRenderedLines(): any

Returns

any

public logScreenLines(start: any, end: any): any

Parameters

  • start: any
  • end: any

Returns

any

public measureToColumn(lineElement: any, tokenizedLine: any, screenColumn: any): any

Parameters

  • lineElement: any
  • tokenizedLine: any
  • screenColumn: any

Returns

any

public pageDown()

public pageUp()

public pixelOffsetForScreenPosition(position: any): any

Parameters

  • position: any

Returns

any

public pixelPositionForBufferPosition(position: any): any

Parameters

  • position: any

Returns

any

public pixelPositionForScreenPosition(position: any): any

Parameters

  • position: any

Returns

any

public popScope(line: any, scopeStack: any): any

Parameters

  • line: any
  • scopeStack: any

Returns

any

public positionLeftForLineAndColumn(lineElement: any, screenRow: any, screenColumn: any): any

Parameters

  • lineElement: any
  • screenRow: any
  • screenColumn: any

Returns

any

public preempt(eventName: any, handler: any): any

Parameters

  • eventName: any
  • handler: any

Returns

any

public pushScope(line: any, scopeStack: any, scope: any): any

Parameters

  • line: any
  • scopeStack: any
  • scope: any

Returns

any

public pushStack(elems: any): any

Parameters

  • elems: any

Returns

any

public recalculateDimensions(): any

Returns

any

public redraw(): any

Returns

any

public remove(selector: any, keepData: any): any

Parameters

  • selector: any
  • keepData: any

Returns

any

public removeAllCursorAndSelectionViews(): Array<any>

Returns

Array<any>

public removeCursorView(cursorView: any): any

Parameters

  • cursorView: any

Returns

any

public removeSelectionView(selectionView: any): any

Parameters

  • selectionView: any

Returns

any

public replaceSelectedText(replaceFn: (str: string) => string): any

Parameters

  • replaceFn: (str: string) => string

Returns

any

public requestDisplayUpdate(): any

Returns

any

public resetDisplay(): any

Returns

any

public saveScrollPositionForEditor(): any

Returns

any

public screenPositionFromMouseEvent(e: any): any

Parameters

  • e: any

Returns

any

public scrollBottom(scrollBottom?: number): any

Parameters

  • scrollBottom?: number optional

Returns

any

public scrollHorizontally(pixelPosition: any): any

Parameters

  • pixelPosition: any

Returns

any

public scrollLeft(scrollLeft?: number): number

Parameters

  • scrollLeft?: number optional

Returns

number

public scrollRight(scrollRight?: number): any

Parameters

  • scrollRight?: number optional

Returns

any

public scrollToBottom(): any

Returns

any

public scrollToBufferPosition(bufferPosition: any, options: any): any

Parameters

  • bufferPosition: any
  • options: any

Returns

any

public scrollToCursorPosition(): any

Returns

any

public scrollToPixelPosition(pixelPosition: any, options: any): any

Parameters

  • pixelPosition: any
  • options: any

Returns

any

public scrollToScreenPosition(screenPosition: any, options: any): any

Parameters

  • screenPosition: any
  • options: any

Returns

any

public scrollTop(scrollTop: number, options?: any): any

Parameters

  • scrollTop: number
  • options?: any optional

Returns

any

public scrollVertically(pixelPosition: any, _arg: any): any

Parameters

  • pixelPosition: any
  • _arg: any

Returns

any

public selectOnMousemoveUntilMouseup(): any

Returns

any

public setCharacterWidthCache(scopes: any, char: any, val: any): any

Parameters

  • scopes: any
  • char: any
  • val: any

Returns

any

public setFontFamily(fontFamily?: string): any

Parameters

  • fontFamily?: string optional

Returns

any

public setFontSize(fontSize: number): any

Parameters

  • fontSize: number

Returns

any

public setHeightInLines(heightInLines: number): number

Parameters

  • heightInLines: number

Returns

number

public setInvisibles(invisibles: { eol: string; space: string; tab: string; cr: string; })

Parameters

  • invisibles: { eol: string; space: string; tab: string; cr: string; }

public setLineHeight(lineHeight: number): any

Parameters

  • lineHeight: number

Returns

any

public setModel(editor: IEditor): any

Parameters

Returns

any

public setPlaceholderText(placeholderText: string)

Parameters

  • placeholderText: string

public setShowIndentGuide(showIndentGuide: boolean)

Parameters

  • showIndentGuide: boolean

public setShowInvisibles(showInvisibles: boolean)

Parameters

  • showInvisibles: boolean

public setSoftWrap(softWrap: boolean): any

Parameters

  • softWrap: boolean

Returns

any

public setText(text: string)

Parameters

  • text: string

public setWidthInChars(widthInChars: number): number

Parameters

  • widthInChars: number

Returns

number

public shouldUpdateCursor(cursorView: any): any

Parameters

  • cursorView: any

Returns

any

public shouldUpdateSelection(selectionView: any): any

Parameters

  • selectionView: any

Returns

any

public showBufferConflictAlert(editor: IEditor): any

Parameters

Returns

any

public splitDown(): any

Returns

any

public splitLeft(): any

Returns

any

public splitRight(): any

Returns

any

public splitUp(): any

Returns

any

public subscribe(eventEmitterOrSubscription: any, args?: Array<any>): any

Parameters

  • eventEmitterOrSubscription: any
  • args?: Array<any> optional

Returns

any

public subscribeToCommand(eventEmitter: any, args?: Array<any>): any

Parameters

  • eventEmitter: any
  • args?: Array<any> optional

Returns

any

public subscribeWith(eventEmitter: any, methodName: string, args: any): any

Parameters

  • eventEmitter: any
  • methodName: string
  • args: any

Returns

any

public syncCursorAnimations(): Array<any>

Returns

Array<any>

public toggleLineCommentsInSelection(): any

Returns

any

public toggleSoftTabs(): any

Returns

any

public toggleSoftWrap(): any

Returns

any

public truncateIntactRanges(intactRanges: any, renderFrom: any, renderTo: any): any

Parameters

  • intactRanges: any
  • renderFrom: any
  • renderTo: any

Returns

any

public unsubscribe(object?: any): any

Parameters

  • object?: any optional

Returns

any

public updateCursorViews(): any

Returns

any

public updateDisplay(options?: any): any

Parameters

  • options?: any optional

Returns

any

public updateLayerDimensions(): any

Returns

any

public updatePaddingOfRenderedLines(): any

Returns

any

public updatePlaceholderText(): any

Returns

any

public updateRenderedLines(scrollViewWidth: any): any

Parameters

  • scrollViewWidth: any

Returns

any

public updateScopeStack(line: any, scopeStack: any, desiredScopes: any): any

Parameters

  • line: any
  • scopeStack: any
  • desiredScopes: any

Returns

any

public updateSelectionViews(): Array<any>

Returns

Array<any>

public wireOutlets(view: View)

Parameters