Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(public name: string, private configuration: TemplateConfiguration) {
this.onInit = new Observable<template>();
this.onLoaded = new Observable<template>();
this.onAppended = new Observable<template>();
this.onStateChange = new Observable<template>();
this.isLoaded = false;
/*
if (configuration.id) {
this.parent.id = configuration.id;
}
*/
this.onInit.notifyObservers(this);
let htmlContentPromise = getTemplateAsHtml(configuration);
htmlContentPromise.then(htmlTemplate => {
if (htmlTemplate) {
let compiledTemplate = Handlebars.compile(htmlTemplate);
</template></template></template></template>
constructor() {
this.onSceneInitObservable = new Observable();
this.onEngineInitObservable = new Observable();
this.onModelLoadedObservable = new Observable();
this.onModelLoadProgressObservable = new Observable();
this.onModelLoadErrorObservable = new Observable();
this.onModelAddedObservable = new Observable();
this.onModelRemovedObservable = new Observable();
this.onViewerInitDoneObservable = new Observable();
this.onViewerInitStartedObservable = new Observable();
this.onLoaderInitObservable = new Observable();
this.onFrameRenderedObservable = new Observable();
this.onEnteringVRObservable = new Observable();
this.onExitingVRObservable = new Observable();
}
constructor(public containerElement: HTMLElement) {
this.templates = {};
this.onInit = new Observable<template>();
this.onLoaded = new Observable<template>();
this.onStateChange = new Observable<template>();
this.onAllLoaded = new Observable();
}
</template></template></template>
constructor() {
this.onSceneInitObservable = new Observable();
this.onEngineInitObservable = new Observable();
this.onModelLoadedObservable = new Observable();
this.onModelLoadProgressObservable = new Observable();
this.onModelLoadErrorObservable = new Observable();
this.onModelAddedObservable = new Observable();
this.onModelRemovedObservable = new Observable();
this.onViewerInitDoneObservable = new Observable();
this.onViewerInitStartedObservable = new Observable();
this.onLoaderInitObservable = new Observable();
this.onFrameRenderedObservable = new Observable();
this.onEnteringVRObservable = new Observable();
this.onExitingVRObservable = new Observable();
}
constructor() {
this.onSceneInitObservable = new Observable();
this.onEngineInitObservable = new Observable();
this.onModelLoadedObservable = new Observable();
this.onModelLoadProgressObservable = new Observable();
this.onModelLoadErrorObservable = new Observable();
this.onModelAddedObservable = new Observable();
this.onModelRemovedObservable = new Observable();
this.onViewerInitDoneObservable = new Observable();
this.onViewerInitStartedObservable = new Observable();
this.onLoaderInitObservable = new Observable();
this.onFrameRenderedObservable = new Observable();
this.onEnteringVRObservable = new Observable();
this.onExitingVRObservable = new Observable();
}
constructor(public name: string, private configuration: TemplateConfiguration) {
this.onInit = new Observable<template>();
this.onLoaded = new Observable<template>();
this.onAppended = new Observable<template>();
this.onStateChange = new Observable<template>();
this.isLoaded = false;
/*
if (configuration.id) {
this.parent.id = configuration.id;
}
*/
this.onInit.notifyObservers(this);
let htmlContentPromise = getTemplateAsHtml(configuration);
htmlContentPromise.then(htmlTemplate => {
if (htmlTemplate) {
let compiledTemplate = Handlebars.compile(htmlTemplate);
let config = this.configuration.config || {};
let rawHtml = compiledTemplate(config);
</template></template></template></template>
constructor() {
this.onSceneInitObservable = new Observable();
this.onEngineInitObservable = new Observable();
this.onModelLoadedObservable = new Observable();
this.onModelLoadProgressObservable = new Observable();
this.onModelLoadErrorObservable = new Observable();
this.onModelAddedObservable = new Observable();
this.onModelRemovedObservable = new Observable();
this.onViewerInitDoneObservable = new Observable();
this.onViewerInitStartedObservable = new Observable();
this.onLoaderInitObservable = new Observable();
this.onFrameRenderedObservable = new Observable();
this.onEnteringVRObservable = new Observable();
this.onExitingVRObservable = new Observable();
}
constructor(private _modelConfiguration: IModelConfiguration, private _scene: Scene, disableAutoLoad = false) {
this.onLoadedObservable = new Observable();
this.onLoadErrorObservable = new Observable();
this.onLoadProgressObservable = new Observable();
this._animations = [];
if (!disableAutoLoad) {
this._initLoad();
}
}
constructor(private _modelConfiguration: IModelConfiguration, private _scene: Scene, disableAutoLoad = false) {
this.onLoadedObservable = new Observable();
this.onLoadErrorObservable = new Observable();
this.onLoadProgressObservable = new Observable();
this._animations = [];
if (!disableAutoLoad) {
this._initLoad();
}
}
constructor() {
this.onSceneInitObservable = new Observable();
this.onEngineInitObservable = new Observable();
this.onModelLoadedObservable = new Observable();
this.onModelLoadProgressObservable = new Observable();
this.onModelLoadErrorObservable = new Observable();
this.onModelAddedObservable = new Observable();
this.onModelRemovedObservable = new Observable();
this.onViewerInitDoneObservable = new Observable();
this.onViewerInitStartedObservable = new Observable();
this.onLoaderInitObservable = new Observable();
this.onFrameRenderedObservable = new Observable();
this.onEnteringVRObservable = new Observable();
this.onExitingVRObservable = new Observable();
}