提交 74c67338 编写于 作者: A Alex Dima

bump version in monaco-editor-core

上级 c3b50044
{
"name": "monaco-editor-core",
"version": "0.2.1",
"version": "0.2.2",
"description": "A browser based code editor",
"main": "index.js",
"scripts": {
......
......@@ -29,7 +29,7 @@ export class TextModel extends OrderGuaranteeEventEmitter implements editorCommo
trimAutoWhitespace: DEFAULT_TRIM_AUTO_WHITESPACE,
};
protected _lines:ModelLine[];
/*protected*/ _lines:ModelLine[];
protected _EOL:string;
protected _isDisposed:boolean;
protected _isDisposing:boolean;
......
......@@ -1707,6 +1707,22 @@ declare module monaco.editor {
* Create a valid range.
*/
validateRange(range: IRange): Range;
/**
* Converts the position to a zero-based offset.
*
* The position will be [adjusted](#TextDocument.validatePosition).
*
* @param position A position.
* @return A valid zero-based offset.
*/
getOffsetAt(position: IPosition): number;
/**
* Converts a zero-based offset to a position.
*
* @param offset A zero-based offset.
* @return A valid [position](#Position).
*/
getPositionAt(offset: number): Position;
/**
* Get a range covering the entire model
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册