本文整理匯總了TypeScript中vs/editor/browser/viewParts/overviewRuler/overviewRulerImpl.OverviewRulerImpl類的典型用法代碼示例。如果您正苦於以下問題:TypeScript OverviewRulerImpl類的具體用法?TypeScript OverviewRulerImpl怎麽用?TypeScript OverviewRulerImpl使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了OverviewRulerImpl類的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: onConfigurationChanged
public onConfigurationChanged(e: viewEvents.ViewConfigurationChangedEvent): boolean {
if (e.lineHeight) {
this._overviewRuler.setLineHeight(this._context.configuration.editor.lineHeight, true);
}
if (e.pixelRatio) {
this._overviewRuler.setPixelRatio(this._context.configuration.editor.pixelRatio, true);
}
return true;
}
示例2: onConfigurationChanged
public onConfigurationChanged(e: viewEvents.ViewConfigurationChangedEvent): boolean {
if (e.lineHeight) {
this._overviewRuler.setLineHeight(this._context.configuration.editor.lineHeight, true);
return true;
}
if (e.viewInfo.canUseTranslate3d) {
this._overviewRuler.setCanUseTranslate3d(this._context.configuration.editor.viewInfo.canUseTranslate3d, true);
return true;
}
return false;
}
示例3: onConfigurationChanged
public onConfigurationChanged(e:EditorCommon.IConfigurationChangedEvent): boolean {
if (e.lineHeight) {
this._overviewRuler.setLineHeight(this._context.configuration.editor.lineHeight, true);
return true;
}
return false;
}
示例4: setZones
public setZones(zones:EditorBrowser.IOverviewRulerZone[]): void {
this._overviewRuler.setZones(zones, true);
}
示例5: setLayout
public setLayout(position:EditorCommon.IOverviewRulerPosition): void {
this._overviewRuler.setLayout(position, true);
}
示例6: getDomNode
public getDomNode(): HTMLElement {
return this._overviewRuler.getDomNode();
}
示例7: onScrollHeightChanged
public onScrollHeightChanged(scrollHeight:number): boolean {
this._overviewRuler.setScrollHeight(scrollHeight, true);
return true;
}
示例8: dispose
public dispose(): void {
this._context.removeEventHandler(this);
this._overviewRuler.dispose();
}
示例9: setZones
public setZones(zones:OverviewRulerZone[]): void {
this._overviewRuler.setZones(zones, true);
}
示例10: setLayout
public setLayout(position:OverviewRulerPosition): void {
this._overviewRuler.setLayout(position, true);
}