当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript ScrollableElement.updateClassName方法代码示例

本文整理汇总了TypeScript中vs/base/browser/ui/scrollbar/scrollableElement.ScrollableElement.updateClassName方法的典型用法代码示例。如果您正苦于以下问题:TypeScript ScrollableElement.updateClassName方法的具体用法?TypeScript ScrollableElement.updateClassName怎么用?TypeScript ScrollableElement.updateClassName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在vs/base/browser/ui/scrollbar/scrollableElement.ScrollableElement的用法示例。


在下文中一共展示了ScrollableElement.updateClassName方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1:

		this.toDispose.push(this.configuration.onDidChange((e: IConfigurationChangedEvent) => {
			this.scrollbar.updateClassName(ClassNames.SCROLLABLE_ELEMENT + ' ' + this.configuration.editor.viewInfo.theme);
			if (e.viewInfo.scrollbar || e.viewInfo.canUseTranslate3d) {
				let newOpts: ScrollableElementChangeOptions = {
					canUseTranslate3d: this.configuration.editor.viewInfo.canUseTranslate3d,
					handleMouseWheel: this.configuration.editor.viewInfo.scrollbar.handleMouseWheel,
					mouseWheelScrollSensitivity: this.configuration.editor.viewInfo.scrollbar.mouseWheelScrollSensitivity
				};
				this.scrollbar.updateOptions(newOpts);
			}
		}));
开发者ID:StateFarmIns,项目名称:vscode,代码行数:11,代码来源:scrollManager.ts

示例2:

		this.toDispose.push(this.configuration.onDidChange((e:IConfigurationChangedEvent) => {
			this.scrollbar.updateClassName(this.configuration.editor.theme);
			if (e.scrollbar) {
				let newOpts:ScrollableElementChangeOptions = {
					canUseTranslate3d: true,
					handleMouseWheel: this.configuration.editor.scrollbar.handleMouseWheel,
					mouseWheelScrollSensitivity: this.configuration.editor.scrollbar.mouseWheelScrollSensitivity
				};
				this.scrollbar.updateOptions(newOpts);
			}
		}));
开发者ID:yxbdali,项目名称:vscode,代码行数:11,代码来源:scrollManager.ts

示例3: onConfigurationChanged

	public onConfigurationChanged(e: viewEvents.ViewConfigurationChangedEvent): boolean {
		const viewInfo = this._context.configuration.editor.viewInfo;

		this.scrollbar.updateClassName(ClassNames.SCROLLABLE_ELEMENT + ' ' + viewInfo.theme);
		if (e.viewInfo.scrollbar || e.viewInfo.canUseTranslate3d) {
			let newOpts: ScrollableElementChangeOptions = {
				canUseTranslate3d: viewInfo.canUseTranslate3d,
				handleMouseWheel: viewInfo.scrollbar.handleMouseWheel,
				mouseWheelScrollSensitivity: viewInfo.scrollbar.mouseWheelScrollSensitivity
			};
			this.scrollbar.updateOptions(newOpts);
		}
		if (e.layoutInfo) {
			this._setLayout();
		}
		return true;
	}
开发者ID:yuit,项目名称:vscode,代码行数:17,代码来源:editorScrollbar.ts

示例4:

		this.toDispose.push(this.configuration.onDidChange((e:IConfigurationChangedEvent) => {
			this.scrollbar.updateClassName(this.configuration.editor.theme);
			if (e.scrollbar) {
				this.scrollbar.updateOptions(this.configuration.editor.scrollbar);
			}
		}));
开发者ID:Clizhuowei,项目名称:vscode,代码行数:6,代码来源:scrollManager.ts

示例5: onThemeChanged

	public onThemeChanged(e: viewEvents.ViewThemeChangedEvent): boolean {
		this.scrollbar.updateClassName('editor-scrollable' + ' ' + getThemeTypeSelector(this._context.theme.type));
		return true;
	}
开发者ID:hungys,项目名称:vscode,代码行数:4,代码来源:editorScrollbar.ts


注:本文中的vs/base/browser/ui/scrollbar/scrollableElement.ScrollableElement.updateClassName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。