Autodesk Forge. learn.forge.viewmodels”改写为“Autodesk Forge学习之viewmodels”,示例如下:
import { BasePropertyChangedEvent } from "./basePropertyChangedEvent";
export class ViewModel extends BasePropertyChangedEvent {
private _initialized = false;
public async initialize(): Promise {}
public isInitialized(): boolean {
return this._initialized;
}
protected setInitialized(): void {
this._initialized = true;
}
}