Class: Workspace

Workspace

new epiviz.workspaces.Workspace(id, name, content)

workspaces/workspace.js, line 23
Name Type Description
id string nullable
name string
content Object

Members

static,constantepiviz.workspaces.Workspace.DEFAULT_WORKSPACE_NAMEstring

Methods

staticepiviz.workspaces.Workspace.fromRawObject(o, chartFactory, config){epiviz.workspaces.Workspace}

workspaces/workspace.js, line 500
Name Type Description
o Object
chartFactory epiviz.ui.charts.ChartFactory
config epiviz.Config
Returns:
Type Description
epiviz.workspaces.Workspace

changed(){boolean}

workspaces/workspace.js, line 305
Returns:
Type Description
boolean

chartAdded(id, type, properties, chartsOrder)

workspaces/workspace.js, line 150
Name Type Description
id string
type epiviz.ui.charts.ChartType
properties epiviz.ui.charts.VisualizationProperties
chartsOrder Object.<epiviz.ui.charts.VisualizationType.DisplayType, Array.<string>>

chartColorsChanged(chartId, colors)

workspaces/workspace.js, line 203
Name Type Description
chartId string
colors epiviz.ui.charts.ColorPalette

chartCustomSettingsChanged(chartId, customSettingsValues)

workspaces/workspace.js, line 256
Name Type Description
chartId string
customSettingsValues Object.<string, *>

chartMarginsChanged(chartId, margins)

workspaces/workspace.js, line 192
Name Type Description
chartId
margins

chartMarkersModified(chartId, markers)

workspaces/workspace.js, line 242
Name Type Description
chartId string
markers Array.<epiviz.ui.charts.markers.VisualizationMarker>

chartMethodsModified(chartId, modifiedMethods)

workspaces/workspace.js, line 214
Name Type Description
chartId string
modifiedMethods Object.<string, string>

chartMethodsReset(chartId)

workspaces/workspace.js, line 229
Name Type Description
chartId string

chartRemoved(id, chartsOrder)

workspaces/workspace.js, line 166
Name Type Description
id string
chartsOrder Object.<epiviz.ui.charts.VisualizationType.DisplayType, Array.<string>>

charts(){Object.<epiviz.ui.charts.VisualizationType.DisplayType, Array.<{id: string, type: epiviz.ui.charts.ChartType, properties: epiviz.ui.charts.VisualizationProperties}>>}

workspaces/workspace.js, line 117
Returns:
Type Description
Object.<epiviz.ui.charts.VisualizationType.DisplayType, Array.<{id: string, type: epiviz.ui.charts.ChartType, properties: epiviz.ui.charts.VisualizationProperties}>>

chartSizeChanged(chartId, width, height)

workspaces/workspace.js, line 179
Name Type Description
chartId string
width number | string
height number | string

chartsOrder(){Object.<epiviz.ui.charts.VisualizationType.DisplayType, Array.<string>>}

workspaces/workspace.js, line 133
Returns:
Type Description
Object.<epiviz.ui.charts.VisualizationType.DisplayType, Array.<string>>

chartsOrderChanged(chartsOrder)

workspaces/workspace.js, line 297
Name Type Description
chartsOrder Object.<epiviz.ui.charts.VisualizationType.DisplayType, Array.<string>>

computedMeasurements(){epiviz.measurements.MeasurementSet}

workspaces/workspace.js, line 140
Returns:
Type Description
epiviz.measurements.MeasurementSet

computedMeasurementsAdded(measurements)

workspaces/workspace.js, line 277
Name Type Description
measurements epiviz.measurements.MeasurementSet

computedMeasurementsRemoved(measurements)

workspaces/workspace.js, line 287
Name Type Description
measurements epiviz.measurements.MeasurementSet

copy(name, id)

workspaces/workspace.js, line 328

Creates a copy of the current workspace, with a new id and new name

.

Creates a copy of the current workspace, with a new id and new name

Name Type Description
name string
id string optional

id(){string}

workspaces/workspace.js, line 96
Returns:
Type Description
string

locationChanged(range)

workspaces/workspace.js, line 266
Name Type Description
range epiviz.datatypes.GenomicRange

name(){string}

workspaces/workspace.js, line 103
Returns:
Type Description
string

onContentChanged(){epiviz.events.Event.<epiviz.workspaces.Workspace>}

workspaces/workspace.js, line 598
Returns:
Type Description
epiviz.events.Event.<epiviz.workspaces.Workspace>

range(){epiviz.datatypes.GenomicRange}

workspaces/workspace.js, line 110
Returns:
Type Description
epiviz.datatypes.GenomicRange

raw(config)

workspaces/workspace.js, line 367
Name Type Description
config epiviz.Config optional
Returns:
{{ id: ?string, name: string, content: { range: {seqName: string, start: number, width: number}, measurements: Array.<{ id: string, name: string, type: epiviz.measurements.Measurement.Type, datasourceId: string, datasourceGroup: string, dataprovider: string, formula: string, defaultChartType: ?string, annotation: ?Object., minValue: ?number, maxValue: ?number, metadata: ?Array. }>, charts: Object., datasource: string, datasourceGroup: string, dataprovider: string, annotation: Object., defaultChartType: string, minSelectedMeasurements: number, customData: * }, colors: Array.|{id: string, name: string, colors: Array.}, modifiedMethods: Object., chartMarkers: Array. }>>}}}

resetChanged()

workspaces/workspace.js, line 311
comments powered by Disqus