Create a base view configuration class. (#2225)

This commit is contained in:
Pegah Sarram
2018-11-16 09:56:51 -08:00
committed by Pete Richards
parent 3e7527d55c
commit 74faf1bd48
4 changed files with 120 additions and 77 deletions

View File

@ -126,8 +126,13 @@
};
let style = this.convertPosition(rawPosition);
let id = this.openmct.objects.makeKeyString(panel.domainObject.identifier);
let config = new SubobjectViewConfiguration(
this.newDomainObject, id, panel.hasFrame, rawPosition, openmct);
let config = new SubobjectViewConfiguration({
domainObject: this.newDomainObject,
id: id,
hasFrame: panel.hasFrame,
rawPosition: rawPosition,
openmct: openmct
});
this.layoutItems.push({
id: id,
@ -148,8 +153,12 @@
let id = this.openmct.objects.makeKeyString(alphanumeric.identifier);
this.openmct.objects.get(id).then(domainObject => {
let config = new TelemetryViewConfiguration(
this.newDomainObject, alphanumeric, rawPosition, openmct);
let config = new TelemetryViewConfiguration({
domainObject: this.newDomainObject,
alphanumeric: alphanumeric,
rawPosition: rawPosition,
openmct: openmct
});
this.layoutItems.push({
id: id,