@sdeverywhere/check-core 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -204,10 +204,28 @@ interface BundleGraphSpec {
204
204
  /** Metadata for the graph that can be used to diff to another graph. */
205
205
  metadata: Map<string, string>;
206
206
  }
207
+ /**
208
+ * Options for configuring a bundle-specific graph view.
209
+ */
210
+ interface BundleGraphViewOptions {
211
+ /** Whether graph updates will be animated (default is false). */
212
+ animated?: boolean;
213
+ /** A hint that indicates the context in which the graph will be displayed. */
214
+ style?: 'thumbnail' | undefined;
215
+ }
207
216
  /**
208
217
  * Allows for displaying a bundle-specific graph.
209
218
  */
210
219
  interface BundleGraphView {
220
+ /**
221
+ * Update the data that is displayed in the graph.
222
+ *
223
+ * @hidden This method is optional; it is not currently used by the report UI, but may be useful
224
+ * for other tools that want to display bundle-specific graphs.
225
+ *
226
+ * @param datasetMap The map of datasets that contain the data to be displayed in the graph.
227
+ */
228
+ updateData?(datasetMap: DatasetMap): void;
211
229
  /** Destroy the underlying graph view and any associated resources. */
212
230
  destroy(): void;
213
231
  }
@@ -215,8 +233,15 @@ interface BundleGraphView {
215
233
  * Wrapper around data that can be used to initialize a graph view.
216
234
  */
217
235
  interface BundleGraphData {
218
- /** Return a graph view that can be attached to the given canvas element. */
219
- createGraphView(canvas: HTMLCanvasElement): BundleGraphView;
236
+ /**
237
+ * Return a graph view that can be attached to the given parent element. The returned
238
+ * `BundleGraphView` instance will already be configured to display the data that was
239
+ * fetched from the model for the associated scenario.
240
+ *
241
+ * @param parent The parent element to which the graph view will be attached.
242
+ * @returns A `BundleGraphView` instance.
243
+ */
244
+ createGraphView(parent: HTMLElement): BundleGraphView;
220
245
  }
221
246
  /**
222
247
  * Describes the model that is contained in this bundle.
@@ -259,10 +284,47 @@ interface BundleModel extends DataSource {
259
284
  /**
260
285
  * Load the data used to display the graph by running the model with inputs
261
286
  * configured for the given scenario.
287
+ *
288
+ * The returned `BundleGraphData` instance will contain the data associated with the
289
+ * given graph. Calling the `createGraphView` method on the `BundleGraphData` instance
290
+ * will create a `BundleGraphView` that is already configured to display the data
291
+ * associated with the graph.
292
+ *
293
+ * This method is optional; if not implemented, custom graphs will not be displayed in
294
+ * the report UI.
295
+ *
296
+ * @param scenarioSpec The scenario spec that defines the inputs for the model run.
297
+ * @param graphId The identifier of the graph for which data will be loaded.
298
+ * @returns The graph data.
299
+ */
300
+ getGraphDataForScenario?(scenarioSpec: ScenarioSpec, graphId: BundleGraphId): Promise<BundleGraphData>;
301
+ /**
302
+ * Return the links to be displayed for the graph in the given scenario.
303
+ *
304
+ * This method is optional; if not implemented, no graph links will be displayed in the report UI.
305
+ *
306
+ * @param scenarioSpec The scenario spec that defines the inputs for the model run.
307
+ * @param graphId The identifier of the graph for which links will be prepared.
308
+ * @returns An array of `LinkItem` instances.
309
+ */
310
+ getGraphLinksForScenario?(scenarioSpec: ScenarioSpec, graphId: BundleGraphId): LinkItem[];
311
+ /**
312
+ * Return a graph view that is attached to the given element and that is prepared to display data
313
+ * for the given graph.
314
+ *
315
+ * Unlike `getGraphDataForScenario`, this method only creates the graph view. The data for the
316
+ * graph must be provided separately by calling the `updateData` method on the `BundleGraphView`
317
+ * instance.
318
+ *
319
+ * @hidden This method is optional; it is not currently used by the report UI, but may be useful
320
+ * for other tools that want to display bundle-specific graphs.
321
+ *
322
+ * @param parent The parent element to which the graph view will be attached.
323
+ * @param graphId The identifier of the graph for which the graph view will be prepared.
324
+ * @param options Optional configuration for the graph view.
325
+ * @returns A `BundleGraphView` instance.
262
326
  */
263
- getGraphDataForScenario(scenarioSpec: ScenarioSpec, graphId: BundleGraphId): Promise<BundleGraphData>;
264
- /** Return the links to be displayed for the graph in the given scenario. */
265
- getGraphLinksForScenario(scenarioSpec: ScenarioSpec, graphId: BundleGraphId): LinkItem[];
327
+ createGraphView?(parent: HTMLElement, graphId: BundleGraphId, options?: BundleGraphViewOptions): BundleGraphView;
266
328
  }
267
329
  /**
268
330
  * Provides access to the model that is contained in this bundle for use in
@@ -1931,4 +1993,4 @@ declare function runSuite(config: Config, callbacks: RunSuiteCallbacks, options?
1931
1993
  */
1932
1994
  declare function suiteSummaryFromReport(suiteReport: SuiteReport, elapsedMillis: number): SuiteSummary;
1933
1995
 
1934
- export { type AllInputsSpec, type Bundle, type BundleGraphData, type BundleGraphDatasetSpec, type BundleGraphId, type BundleGraphSpec, type BundleGraphView, type BundleModel, type CancelRunPerf, type CancelRunSuite, type CancelRunTrace as CancelTrace, type CheckConfig, CheckDataCoordinator, type CheckDataRef, type CheckDataRefKey, type CheckDataRequestKey, type CheckDataset, type CheckDatasetError, type CheckDatasetReport, type CheckGroupReport, type CheckKey, type CheckNameSpec, type CheckOptions, type CheckPredicateOp, type CheckPredicateOpConstantRef, type CheckPredicateOpDataRef, type CheckPredicateOpRef, type CheckPredicateReport, type CheckPredicateSummary, type CheckPredicateTimeOptions, type CheckPredicateTimeRange, type CheckPredicateTimeSingle, type CheckPredicateTimeSpec, type CheckReport, type CheckResult, type CheckResultErrorInfo, type CheckScenario, type CheckScenarioError, type CheckScenarioInputDesc, type CheckScenarioReport, type CheckStatus, type CheckSummary, type CheckTestReport, type ComparisonCategorizedResults, type ComparisonConfig, ComparisonDataCoordinator, type ComparisonDataRequestKey, type ComparisonDataset, type ComparisonDatasetName, type ComparisonDatasetOptions, type ComparisonDatasetSource, type ComparisonDatasetSpec, type ComparisonDatasets, type ComparisonGraphGroup, type ComparisonGraphGroupId, type ComparisonGraphGroupRefSpec, type ComparisonGraphGroupSpec, type ComparisonGraphId, type ComparisonGraphsArraySpec, type ComparisonGraphsPresetSpec, type ComparisonGroup, type ComparisonGroupKey, type ComparisonGroupKind, type ComparisonGroupRoot, type ComparisonGroupScores, type ComparisonGroupSummariesByCategory, type ComparisonGroupSummary, type ComparisonOptions, type ComparisonPlot, type ComparisonReport, type ComparisonReportDetailItem, type ComparisonReportDetailRow, type ComparisonReportOptions, type ComparisonReportSummaryRow, type ComparisonReportSummarySection, type ComparisonResolverError, type ComparisonResolverInvalidValueError, type ComparisonResolverUnknownInputError, type ComparisonResolverUnknownInputSettingGroupError, type ComparisonScenario, type ComparisonScenarioAllInputsSettings, type ComparisonScenarioGroup, type ComparisonScenarioGroupId, type ComparisonScenarioGroupRefSpec, type ComparisonScenarioGroupSpec, type ComparisonScenarioGroupTitle, type ComparisonScenarioId, type ComparisonScenarioInput, type ComparisonScenarioInputAtPositionSpec, type ComparisonScenarioInputAtValueSpec, type ComparisonScenarioInputName, type ComparisonScenarioInputPosition, type ComparisonScenarioInputSettings, type ComparisonScenarioInputSpec, type ComparisonScenarioInputState, type ComparisonScenarioKey, type ComparisonScenarioPresetMatrixSpec, type ComparisonScenarioRefSpec, type ComparisonScenarioSettings, type ComparisonScenarioSpec, type ComparisonScenarioSubtitle, type ComparisonScenarioTitle, type ComparisonScenarioTitleSpec, type ComparisonScenarioWithAllInputsSpec, type ComparisonScenarioWithDistinctInputsSpec, type ComparisonScenarioWithInputsSpec, type ComparisonScenarioWithSettingGroupSpec, type ComparisonScenarios, type ComparisonSortMode, type ComparisonSpecs, type ComparisonSpecsSource, type ComparisonSummary, type ComparisonTestReport, type ComparisonTestSummary, type ComparisonUnresolvedScenarioGroupRef, type ComparisonUnresolvedScenarioRef, type ComparisonUnresolvedView, type ComparisonView, type ComparisonViewBox, type ComparisonViewBoxSpec, type ComparisonViewGraphOrder, type ComparisonViewGraphsSpec, type ComparisonViewGroup, type ComparisonViewGroupSpec, type ComparisonViewGroupTitle, type ComparisonViewGroupWithScenariosSpec, type ComparisonViewGroupWithViewsSpec, type ComparisonViewItemSubtitle, type ComparisonViewItemTitle, type ComparisonViewRow, type ComparisonViewRowSpec, type ComparisonViewRowSubtitle, type ComparisonViewRowTitle, type ComparisonViewSpec, type ComparisonViewSubtitle, type ComparisonViewTitle, type Config, type ConfigInitOptions, type ConfigOptions, type DataSource, type Dataset, type DatasetGroupName, type DatasetKey, type DatasetMap, type DatasetsResult, type DiffPoint, type DiffReport, type DiffValidity, type EncodedImplVars, type EncodedSubscript, type EncodedVarInstance, type EncodedVarType, type EncodedVariable, type GraphComparisonDatasetReport, type GraphComparisonMetadataReport, type GraphComparisonReport, type GraphInclusion, type ImplVar, type ImplVarGroup, type InputAliasName, type InputGroupName, type InputId, type InputPosition, type InputSetting, type InputSettingGroupId, type InputSettingsSpec, type InputVar, type LegendItem, type LinkItem, type LoadedBundle, type ModelSpec, type NamedBundle, type OutputVar, type PerfReport, PerfStats, type PositionSetting, type RelatedItem, type RunPerfCallbacks, type RunPerfOptions, type RunSuiteCallbacks, type RunSuiteOptions, type ScenarioSpec, type ScenarioSpecUid, type SourceName, type SuiteReport, type SuiteSummary, type RunTraceCallbacks as TraceCallbacks, type TraceCompareToBundleOptions, type TraceCompareToExtDataOptions, type TraceDatasetReport, type TraceOptions, type TraceReport, type ValueSetting, type VarId, categorizeComparisonTestSummaries, checkReportFromSummary, checkSummaryFromReport, comparisonSummaryFromReport, createCheckDataCoordinator, createCheckDataCoordinatorForTests, createComparisonDataCoordinator, createConfig, datasetMessage, decodeImplVars, diffDatasets, diffGraphs, encodeImplVars, getScoresForTestSummaries, predicateMessage, runPerf, runSuite, runTrace, scenarioMessage, suiteSummaryFromReport, testSummaryFromReport };
1996
+ export { type AllInputsSpec, type Bundle, type BundleGraphData, type BundleGraphDatasetSpec, type BundleGraphId, type BundleGraphSpec, type BundleGraphView, type BundleGraphViewOptions, type BundleModel, type CancelRunPerf, type CancelRunSuite, type CancelRunTrace as CancelTrace, type CheckConfig, CheckDataCoordinator, type CheckDataRef, type CheckDataRefKey, type CheckDataRequestKey, type CheckDataset, type CheckDatasetError, type CheckDatasetReport, type CheckGroupReport, type CheckKey, type CheckNameSpec, type CheckOptions, type CheckPredicateOp, type CheckPredicateOpConstantRef, type CheckPredicateOpDataRef, type CheckPredicateOpRef, type CheckPredicateReport, type CheckPredicateSummary, type CheckPredicateTimeOptions, type CheckPredicateTimeRange, type CheckPredicateTimeSingle, type CheckPredicateTimeSpec, type CheckReport, type CheckResult, type CheckResultErrorInfo, type CheckScenario, type CheckScenarioError, type CheckScenarioInputDesc, type CheckScenarioReport, type CheckStatus, type CheckSummary, type CheckTestReport, type ComparisonCategorizedResults, type ComparisonConfig, ComparisonDataCoordinator, type ComparisonDataRequestKey, type ComparisonDataset, type ComparisonDatasetName, type ComparisonDatasetOptions, type ComparisonDatasetSource, type ComparisonDatasetSpec, type ComparisonDatasets, type ComparisonGraphGroup, type ComparisonGraphGroupId, type ComparisonGraphGroupRefSpec, type ComparisonGraphGroupSpec, type ComparisonGraphId, type ComparisonGraphsArraySpec, type ComparisonGraphsPresetSpec, type ComparisonGroup, type ComparisonGroupKey, type ComparisonGroupKind, type ComparisonGroupRoot, type ComparisonGroupScores, type ComparisonGroupSummariesByCategory, type ComparisonGroupSummary, type ComparisonOptions, type ComparisonPlot, type ComparisonReport, type ComparisonReportDetailItem, type ComparisonReportDetailRow, type ComparisonReportOptions, type ComparisonReportSummaryRow, type ComparisonReportSummarySection, type ComparisonResolverError, type ComparisonResolverInvalidValueError, type ComparisonResolverUnknownInputError, type ComparisonResolverUnknownInputSettingGroupError, type ComparisonScenario, type ComparisonScenarioAllInputsSettings, type ComparisonScenarioGroup, type ComparisonScenarioGroupId, type ComparisonScenarioGroupRefSpec, type ComparisonScenarioGroupSpec, type ComparisonScenarioGroupTitle, type ComparisonScenarioId, type ComparisonScenarioInput, type ComparisonScenarioInputAtPositionSpec, type ComparisonScenarioInputAtValueSpec, type ComparisonScenarioInputName, type ComparisonScenarioInputPosition, type ComparisonScenarioInputSettings, type ComparisonScenarioInputSpec, type ComparisonScenarioInputState, type ComparisonScenarioKey, type ComparisonScenarioPresetMatrixSpec, type ComparisonScenarioRefSpec, type ComparisonScenarioSettings, type ComparisonScenarioSpec, type ComparisonScenarioSubtitle, type ComparisonScenarioTitle, type ComparisonScenarioTitleSpec, type ComparisonScenarioWithAllInputsSpec, type ComparisonScenarioWithDistinctInputsSpec, type ComparisonScenarioWithInputsSpec, type ComparisonScenarioWithSettingGroupSpec, type ComparisonScenarios, type ComparisonSortMode, type ComparisonSpecs, type ComparisonSpecsSource, type ComparisonSummary, type ComparisonTestReport, type ComparisonTestSummary, type ComparisonUnresolvedScenarioGroupRef, type ComparisonUnresolvedScenarioRef, type ComparisonUnresolvedView, type ComparisonView, type ComparisonViewBox, type ComparisonViewBoxSpec, type ComparisonViewGraphOrder, type ComparisonViewGraphsSpec, type ComparisonViewGroup, type ComparisonViewGroupSpec, type ComparisonViewGroupTitle, type ComparisonViewGroupWithScenariosSpec, type ComparisonViewGroupWithViewsSpec, type ComparisonViewItemSubtitle, type ComparisonViewItemTitle, type ComparisonViewRow, type ComparisonViewRowSpec, type ComparisonViewRowSubtitle, type ComparisonViewRowTitle, type ComparisonViewSpec, type ComparisonViewSubtitle, type ComparisonViewTitle, type Config, type ConfigInitOptions, type ConfigOptions, type DataSource, type Dataset, type DatasetGroupName, type DatasetKey, type DatasetMap, type DatasetsResult, type DiffPoint, type DiffReport, type DiffValidity, type EncodedImplVars, type EncodedSubscript, type EncodedVarInstance, type EncodedVarType, type EncodedVariable, type GraphComparisonDatasetReport, type GraphComparisonMetadataReport, type GraphComparisonReport, type GraphInclusion, type ImplVar, type ImplVarGroup, type InputAliasName, type InputGroupName, type InputId, type InputPosition, type InputSetting, type InputSettingGroupId, type InputSettingsSpec, type InputVar, type LegendItem, type LinkItem, type LoadedBundle, type ModelSpec, type NamedBundle, type OutputVar, type PerfReport, PerfStats, type PositionSetting, type RelatedItem, type RunPerfCallbacks, type RunPerfOptions, type RunSuiteCallbacks, type RunSuiteOptions, type ScenarioSpec, type ScenarioSpecUid, type SourceName, type SuiteReport, type SuiteSummary, type RunTraceCallbacks as TraceCallbacks, type TraceCompareToBundleOptions, type TraceCompareToExtDataOptions, type TraceDatasetReport, type TraceOptions, type TraceReport, type ValueSetting, type VarId, categorizeComparisonTestSummaries, checkReportFromSummary, checkSummaryFromReport, comparisonSummaryFromReport, createCheckDataCoordinator, createCheckDataCoordinatorForTests, createComparisonDataCoordinator, createConfig, datasetMessage, decodeImplVars, diffDatasets, diffGraphs, encodeImplVars, getScoresForTestSummaries, predicateMessage, runPerf, runSuite, runTrace, scenarioMessage, suiteSummaryFromReport, testSummaryFromReport };
package/dist/index.d.ts CHANGED
@@ -204,10 +204,28 @@ interface BundleGraphSpec {
204
204
  /** Metadata for the graph that can be used to diff to another graph. */
205
205
  metadata: Map<string, string>;
206
206
  }
207
+ /**
208
+ * Options for configuring a bundle-specific graph view.
209
+ */
210
+ interface BundleGraphViewOptions {
211
+ /** Whether graph updates will be animated (default is false). */
212
+ animated?: boolean;
213
+ /** A hint that indicates the context in which the graph will be displayed. */
214
+ style?: 'thumbnail' | undefined;
215
+ }
207
216
  /**
208
217
  * Allows for displaying a bundle-specific graph.
209
218
  */
210
219
  interface BundleGraphView {
220
+ /**
221
+ * Update the data that is displayed in the graph.
222
+ *
223
+ * @hidden This method is optional; it is not currently used by the report UI, but may be useful
224
+ * for other tools that want to display bundle-specific graphs.
225
+ *
226
+ * @param datasetMap The map of datasets that contain the data to be displayed in the graph.
227
+ */
228
+ updateData?(datasetMap: DatasetMap): void;
211
229
  /** Destroy the underlying graph view and any associated resources. */
212
230
  destroy(): void;
213
231
  }
@@ -215,8 +233,15 @@ interface BundleGraphView {
215
233
  * Wrapper around data that can be used to initialize a graph view.
216
234
  */
217
235
  interface BundleGraphData {
218
- /** Return a graph view that can be attached to the given canvas element. */
219
- createGraphView(canvas: HTMLCanvasElement): BundleGraphView;
236
+ /**
237
+ * Return a graph view that can be attached to the given parent element. The returned
238
+ * `BundleGraphView` instance will already be configured to display the data that was
239
+ * fetched from the model for the associated scenario.
240
+ *
241
+ * @param parent The parent element to which the graph view will be attached.
242
+ * @returns A `BundleGraphView` instance.
243
+ */
244
+ createGraphView(parent: HTMLElement): BundleGraphView;
220
245
  }
221
246
  /**
222
247
  * Describes the model that is contained in this bundle.
@@ -259,10 +284,47 @@ interface BundleModel extends DataSource {
259
284
  /**
260
285
  * Load the data used to display the graph by running the model with inputs
261
286
  * configured for the given scenario.
287
+ *
288
+ * The returned `BundleGraphData` instance will contain the data associated with the
289
+ * given graph. Calling the `createGraphView` method on the `BundleGraphData` instance
290
+ * will create a `BundleGraphView` that is already configured to display the data
291
+ * associated with the graph.
292
+ *
293
+ * This method is optional; if not implemented, custom graphs will not be displayed in
294
+ * the report UI.
295
+ *
296
+ * @param scenarioSpec The scenario spec that defines the inputs for the model run.
297
+ * @param graphId The identifier of the graph for which data will be loaded.
298
+ * @returns The graph data.
299
+ */
300
+ getGraphDataForScenario?(scenarioSpec: ScenarioSpec, graphId: BundleGraphId): Promise<BundleGraphData>;
301
+ /**
302
+ * Return the links to be displayed for the graph in the given scenario.
303
+ *
304
+ * This method is optional; if not implemented, no graph links will be displayed in the report UI.
305
+ *
306
+ * @param scenarioSpec The scenario spec that defines the inputs for the model run.
307
+ * @param graphId The identifier of the graph for which links will be prepared.
308
+ * @returns An array of `LinkItem` instances.
309
+ */
310
+ getGraphLinksForScenario?(scenarioSpec: ScenarioSpec, graphId: BundleGraphId): LinkItem[];
311
+ /**
312
+ * Return a graph view that is attached to the given element and that is prepared to display data
313
+ * for the given graph.
314
+ *
315
+ * Unlike `getGraphDataForScenario`, this method only creates the graph view. The data for the
316
+ * graph must be provided separately by calling the `updateData` method on the `BundleGraphView`
317
+ * instance.
318
+ *
319
+ * @hidden This method is optional; it is not currently used by the report UI, but may be useful
320
+ * for other tools that want to display bundle-specific graphs.
321
+ *
322
+ * @param parent The parent element to which the graph view will be attached.
323
+ * @param graphId The identifier of the graph for which the graph view will be prepared.
324
+ * @param options Optional configuration for the graph view.
325
+ * @returns A `BundleGraphView` instance.
262
326
  */
263
- getGraphDataForScenario(scenarioSpec: ScenarioSpec, graphId: BundleGraphId): Promise<BundleGraphData>;
264
- /** Return the links to be displayed for the graph in the given scenario. */
265
- getGraphLinksForScenario(scenarioSpec: ScenarioSpec, graphId: BundleGraphId): LinkItem[];
327
+ createGraphView?(parent: HTMLElement, graphId: BundleGraphId, options?: BundleGraphViewOptions): BundleGraphView;
266
328
  }
267
329
  /**
268
330
  * Provides access to the model that is contained in this bundle for use in
@@ -1931,4 +1993,4 @@ declare function runSuite(config: Config, callbacks: RunSuiteCallbacks, options?
1931
1993
  */
1932
1994
  declare function suiteSummaryFromReport(suiteReport: SuiteReport, elapsedMillis: number): SuiteSummary;
1933
1995
 
1934
- export { type AllInputsSpec, type Bundle, type BundleGraphData, type BundleGraphDatasetSpec, type BundleGraphId, type BundleGraphSpec, type BundleGraphView, type BundleModel, type CancelRunPerf, type CancelRunSuite, type CancelRunTrace as CancelTrace, type CheckConfig, CheckDataCoordinator, type CheckDataRef, type CheckDataRefKey, type CheckDataRequestKey, type CheckDataset, type CheckDatasetError, type CheckDatasetReport, type CheckGroupReport, type CheckKey, type CheckNameSpec, type CheckOptions, type CheckPredicateOp, type CheckPredicateOpConstantRef, type CheckPredicateOpDataRef, type CheckPredicateOpRef, type CheckPredicateReport, type CheckPredicateSummary, type CheckPredicateTimeOptions, type CheckPredicateTimeRange, type CheckPredicateTimeSingle, type CheckPredicateTimeSpec, type CheckReport, type CheckResult, type CheckResultErrorInfo, type CheckScenario, type CheckScenarioError, type CheckScenarioInputDesc, type CheckScenarioReport, type CheckStatus, type CheckSummary, type CheckTestReport, type ComparisonCategorizedResults, type ComparisonConfig, ComparisonDataCoordinator, type ComparisonDataRequestKey, type ComparisonDataset, type ComparisonDatasetName, type ComparisonDatasetOptions, type ComparisonDatasetSource, type ComparisonDatasetSpec, type ComparisonDatasets, type ComparisonGraphGroup, type ComparisonGraphGroupId, type ComparisonGraphGroupRefSpec, type ComparisonGraphGroupSpec, type ComparisonGraphId, type ComparisonGraphsArraySpec, type ComparisonGraphsPresetSpec, type ComparisonGroup, type ComparisonGroupKey, type ComparisonGroupKind, type ComparisonGroupRoot, type ComparisonGroupScores, type ComparisonGroupSummariesByCategory, type ComparisonGroupSummary, type ComparisonOptions, type ComparisonPlot, type ComparisonReport, type ComparisonReportDetailItem, type ComparisonReportDetailRow, type ComparisonReportOptions, type ComparisonReportSummaryRow, type ComparisonReportSummarySection, type ComparisonResolverError, type ComparisonResolverInvalidValueError, type ComparisonResolverUnknownInputError, type ComparisonResolverUnknownInputSettingGroupError, type ComparisonScenario, type ComparisonScenarioAllInputsSettings, type ComparisonScenarioGroup, type ComparisonScenarioGroupId, type ComparisonScenarioGroupRefSpec, type ComparisonScenarioGroupSpec, type ComparisonScenarioGroupTitle, type ComparisonScenarioId, type ComparisonScenarioInput, type ComparisonScenarioInputAtPositionSpec, type ComparisonScenarioInputAtValueSpec, type ComparisonScenarioInputName, type ComparisonScenarioInputPosition, type ComparisonScenarioInputSettings, type ComparisonScenarioInputSpec, type ComparisonScenarioInputState, type ComparisonScenarioKey, type ComparisonScenarioPresetMatrixSpec, type ComparisonScenarioRefSpec, type ComparisonScenarioSettings, type ComparisonScenarioSpec, type ComparisonScenarioSubtitle, type ComparisonScenarioTitle, type ComparisonScenarioTitleSpec, type ComparisonScenarioWithAllInputsSpec, type ComparisonScenarioWithDistinctInputsSpec, type ComparisonScenarioWithInputsSpec, type ComparisonScenarioWithSettingGroupSpec, type ComparisonScenarios, type ComparisonSortMode, type ComparisonSpecs, type ComparisonSpecsSource, type ComparisonSummary, type ComparisonTestReport, type ComparisonTestSummary, type ComparisonUnresolvedScenarioGroupRef, type ComparisonUnresolvedScenarioRef, type ComparisonUnresolvedView, type ComparisonView, type ComparisonViewBox, type ComparisonViewBoxSpec, type ComparisonViewGraphOrder, type ComparisonViewGraphsSpec, type ComparisonViewGroup, type ComparisonViewGroupSpec, type ComparisonViewGroupTitle, type ComparisonViewGroupWithScenariosSpec, type ComparisonViewGroupWithViewsSpec, type ComparisonViewItemSubtitle, type ComparisonViewItemTitle, type ComparisonViewRow, type ComparisonViewRowSpec, type ComparisonViewRowSubtitle, type ComparisonViewRowTitle, type ComparisonViewSpec, type ComparisonViewSubtitle, type ComparisonViewTitle, type Config, type ConfigInitOptions, type ConfigOptions, type DataSource, type Dataset, type DatasetGroupName, type DatasetKey, type DatasetMap, type DatasetsResult, type DiffPoint, type DiffReport, type DiffValidity, type EncodedImplVars, type EncodedSubscript, type EncodedVarInstance, type EncodedVarType, type EncodedVariable, type GraphComparisonDatasetReport, type GraphComparisonMetadataReport, type GraphComparisonReport, type GraphInclusion, type ImplVar, type ImplVarGroup, type InputAliasName, type InputGroupName, type InputId, type InputPosition, type InputSetting, type InputSettingGroupId, type InputSettingsSpec, type InputVar, type LegendItem, type LinkItem, type LoadedBundle, type ModelSpec, type NamedBundle, type OutputVar, type PerfReport, PerfStats, type PositionSetting, type RelatedItem, type RunPerfCallbacks, type RunPerfOptions, type RunSuiteCallbacks, type RunSuiteOptions, type ScenarioSpec, type ScenarioSpecUid, type SourceName, type SuiteReport, type SuiteSummary, type RunTraceCallbacks as TraceCallbacks, type TraceCompareToBundleOptions, type TraceCompareToExtDataOptions, type TraceDatasetReport, type TraceOptions, type TraceReport, type ValueSetting, type VarId, categorizeComparisonTestSummaries, checkReportFromSummary, checkSummaryFromReport, comparisonSummaryFromReport, createCheckDataCoordinator, createCheckDataCoordinatorForTests, createComparisonDataCoordinator, createConfig, datasetMessage, decodeImplVars, diffDatasets, diffGraphs, encodeImplVars, getScoresForTestSummaries, predicateMessage, runPerf, runSuite, runTrace, scenarioMessage, suiteSummaryFromReport, testSummaryFromReport };
1996
+ export { type AllInputsSpec, type Bundle, type BundleGraphData, type BundleGraphDatasetSpec, type BundleGraphId, type BundleGraphSpec, type BundleGraphView, type BundleGraphViewOptions, type BundleModel, type CancelRunPerf, type CancelRunSuite, type CancelRunTrace as CancelTrace, type CheckConfig, CheckDataCoordinator, type CheckDataRef, type CheckDataRefKey, type CheckDataRequestKey, type CheckDataset, type CheckDatasetError, type CheckDatasetReport, type CheckGroupReport, type CheckKey, type CheckNameSpec, type CheckOptions, type CheckPredicateOp, type CheckPredicateOpConstantRef, type CheckPredicateOpDataRef, type CheckPredicateOpRef, type CheckPredicateReport, type CheckPredicateSummary, type CheckPredicateTimeOptions, type CheckPredicateTimeRange, type CheckPredicateTimeSingle, type CheckPredicateTimeSpec, type CheckReport, type CheckResult, type CheckResultErrorInfo, type CheckScenario, type CheckScenarioError, type CheckScenarioInputDesc, type CheckScenarioReport, type CheckStatus, type CheckSummary, type CheckTestReport, type ComparisonCategorizedResults, type ComparisonConfig, ComparisonDataCoordinator, type ComparisonDataRequestKey, type ComparisonDataset, type ComparisonDatasetName, type ComparisonDatasetOptions, type ComparisonDatasetSource, type ComparisonDatasetSpec, type ComparisonDatasets, type ComparisonGraphGroup, type ComparisonGraphGroupId, type ComparisonGraphGroupRefSpec, type ComparisonGraphGroupSpec, type ComparisonGraphId, type ComparisonGraphsArraySpec, type ComparisonGraphsPresetSpec, type ComparisonGroup, type ComparisonGroupKey, type ComparisonGroupKind, type ComparisonGroupRoot, type ComparisonGroupScores, type ComparisonGroupSummariesByCategory, type ComparisonGroupSummary, type ComparisonOptions, type ComparisonPlot, type ComparisonReport, type ComparisonReportDetailItem, type ComparisonReportDetailRow, type ComparisonReportOptions, type ComparisonReportSummaryRow, type ComparisonReportSummarySection, type ComparisonResolverError, type ComparisonResolverInvalidValueError, type ComparisonResolverUnknownInputError, type ComparisonResolverUnknownInputSettingGroupError, type ComparisonScenario, type ComparisonScenarioAllInputsSettings, type ComparisonScenarioGroup, type ComparisonScenarioGroupId, type ComparisonScenarioGroupRefSpec, type ComparisonScenarioGroupSpec, type ComparisonScenarioGroupTitle, type ComparisonScenarioId, type ComparisonScenarioInput, type ComparisonScenarioInputAtPositionSpec, type ComparisonScenarioInputAtValueSpec, type ComparisonScenarioInputName, type ComparisonScenarioInputPosition, type ComparisonScenarioInputSettings, type ComparisonScenarioInputSpec, type ComparisonScenarioInputState, type ComparisonScenarioKey, type ComparisonScenarioPresetMatrixSpec, type ComparisonScenarioRefSpec, type ComparisonScenarioSettings, type ComparisonScenarioSpec, type ComparisonScenarioSubtitle, type ComparisonScenarioTitle, type ComparisonScenarioTitleSpec, type ComparisonScenarioWithAllInputsSpec, type ComparisonScenarioWithDistinctInputsSpec, type ComparisonScenarioWithInputsSpec, type ComparisonScenarioWithSettingGroupSpec, type ComparisonScenarios, type ComparisonSortMode, type ComparisonSpecs, type ComparisonSpecsSource, type ComparisonSummary, type ComparisonTestReport, type ComparisonTestSummary, type ComparisonUnresolvedScenarioGroupRef, type ComparisonUnresolvedScenarioRef, type ComparisonUnresolvedView, type ComparisonView, type ComparisonViewBox, type ComparisonViewBoxSpec, type ComparisonViewGraphOrder, type ComparisonViewGraphsSpec, type ComparisonViewGroup, type ComparisonViewGroupSpec, type ComparisonViewGroupTitle, type ComparisonViewGroupWithScenariosSpec, type ComparisonViewGroupWithViewsSpec, type ComparisonViewItemSubtitle, type ComparisonViewItemTitle, type ComparisonViewRow, type ComparisonViewRowSpec, type ComparisonViewRowSubtitle, type ComparisonViewRowTitle, type ComparisonViewSpec, type ComparisonViewSubtitle, type ComparisonViewTitle, type Config, type ConfigInitOptions, type ConfigOptions, type DataSource, type Dataset, type DatasetGroupName, type DatasetKey, type DatasetMap, type DatasetsResult, type DiffPoint, type DiffReport, type DiffValidity, type EncodedImplVars, type EncodedSubscript, type EncodedVarInstance, type EncodedVarType, type EncodedVariable, type GraphComparisonDatasetReport, type GraphComparisonMetadataReport, type GraphComparisonReport, type GraphInclusion, type ImplVar, type ImplVarGroup, type InputAliasName, type InputGroupName, type InputId, type InputPosition, type InputSetting, type InputSettingGroupId, type InputSettingsSpec, type InputVar, type LegendItem, type LinkItem, type LoadedBundle, type ModelSpec, type NamedBundle, type OutputVar, type PerfReport, PerfStats, type PositionSetting, type RelatedItem, type RunPerfCallbacks, type RunPerfOptions, type RunSuiteCallbacks, type RunSuiteOptions, type ScenarioSpec, type ScenarioSpecUid, type SourceName, type SuiteReport, type SuiteSummary, type RunTraceCallbacks as TraceCallbacks, type TraceCompareToBundleOptions, type TraceCompareToExtDataOptions, type TraceDatasetReport, type TraceOptions, type TraceReport, type ValueSetting, type VarId, categorizeComparisonTestSummaries, checkReportFromSummary, checkSummaryFromReport, comparisonSummaryFromReport, createCheckDataCoordinator, createCheckDataCoordinatorForTests, createComparisonDataCoordinator, createConfig, datasetMessage, decodeImplVars, diffDatasets, diffGraphs, encodeImplVars, getScoresForTestSummaries, predicateMessage, runPerf, runSuite, runTrace, scenarioMessage, suiteSummaryFromReport, testSummaryFromReport };
package/dist/index.js CHANGED
@@ -308,7 +308,7 @@ var TaskQueue = class _TaskQueue {
308
308
  };
309
309
  function createExecutor(bundleModelL, bundleModelR) {
310
310
  return {
311
- execute: (task) => __async(this, null, function* () {
311
+ execute: (task) => __async(null, null, function* () {
312
312
  return task.process({
313
313
  L: bundleModelL,
314
314
  R: bundleModelR
@@ -326,7 +326,7 @@ var CheckDataCoordinator = class {
326
326
  const task = {
327
327
  key: requestKey,
328
328
  kind: "check-data-coordinator",
329
- process: (bundleModels) => __async(this, null, function* () {
329
+ process: (bundleModels) => __async(null, null, function* () {
330
330
  const bundleModelR = bundleModels.R;
331
331
  const result = yield bundleModelR.getDatasetsForScenario(scenarioSpec, [datasetKey]);
332
332
  const dataset = result.datasetMap.get(datasetKey);
@@ -2043,7 +2043,7 @@ var ComparisonDataCoordinator = class {
2043
2043
  const task = {
2044
2044
  key: requestKey,
2045
2045
  kind: "comparison-data-coordinator",
2046
- process: (bundleModels) => __async(this, null, function* () {
2046
+ process: (bundleModels) => __async(null, null, function* () {
2047
2047
  const modelL = sourceL === "left" ? bundleModels.L : bundleModels.R;
2048
2048
  const modelR = sourceR === "left" ? bundleModels.L : bundleModels.R;
2049
2049
  let resultL;
@@ -2082,8 +2082,9 @@ var ComparisonDataCoordinator = class {
2082
2082
  requestGraphData(requestKey, sourceL, scenarioSpecL, sourceR, scenarioSpecR, graphId, onResponse) {
2083
2083
  function fetchGraphData(bundleModel, scenarioSpec) {
2084
2084
  return __async(this, null, function* () {
2085
+ var _a;
2085
2086
  if (scenarioSpec) {
2086
- return bundleModel.getGraphDataForScenario(scenarioSpec, graphId);
2087
+ return (_a = bundleModel.getGraphDataForScenario) == null ? void 0 : _a.call(bundleModel, scenarioSpec, graphId);
2087
2088
  } else {
2088
2089
  return void 0;
2089
2090
  }
@@ -2092,7 +2093,7 @@ var ComparisonDataCoordinator = class {
2092
2093
  const task = {
2093
2094
  key: requestKey,
2094
2095
  kind: "comparison-data-coordinator",
2095
- process: (bundleModels) => __async(this, null, function* () {
2096
+ process: (bundleModels) => __async(null, null, function* () {
2096
2097
  const modelL = sourceL === "left" ? bundleModels.L : bundleModels.R;
2097
2098
  const modelR = sourceR === "left" ? bundleModels.L : bundleModels.R;
2098
2099
  let graphDataL;
@@ -4474,9 +4475,10 @@ function handleRenames(origCurrentBundle, renamedDatasetKeys) {
4474
4475
  return invertedRenamedKeys.get(rightKey) || rightKey;
4475
4476
  };
4476
4477
  function wrapModel(origBundleModelR) {
4478
+ var _a, _b, _c;
4477
4479
  return {
4478
4480
  modelSpec: origBundleModelR.modelSpec,
4479
- getDatasetsForScenario: (scenarioSpec, datasetKeys) => __async(this, null, function* () {
4481
+ getDatasetsForScenario: (scenarioSpec, datasetKeys) => __async(null, null, function* () {
4480
4482
  const rightKeys = datasetKeys.map(rightKeyForLeftKey);
4481
4483
  const result = yield origBundleModelR.getDatasetsForScenario(scenarioSpec, rightKeys);
4482
4484
  const mapWithRightKeys = result.datasetMap;
@@ -4490,8 +4492,9 @@ function handleRenames(origCurrentBundle, renamedDatasetKeys) {
4490
4492
  modelRunTime: result.modelRunTime
4491
4493
  };
4492
4494
  }),
4493
- getGraphDataForScenario: origBundleModelR.getGraphDataForScenario.bind(origBundleModelR),
4494
- getGraphLinksForScenario: origBundleModelR.getGraphLinksForScenario.bind(origBundleModelR)
4495
+ getGraphDataForScenario: (_a = origBundleModelR.getGraphDataForScenario) == null ? void 0 : _a.bind(origBundleModelR),
4496
+ getGraphLinksForScenario: (_b = origBundleModelR.getGraphLinksForScenario) == null ? void 0 : _b.bind(origBundleModelR),
4497
+ createGraphView: (_c = origBundleModelR.createGraphView) == null ? void 0 : _c.bind(origBundleModelR)
4495
4498
  };
4496
4499
  }
4497
4500
  const wrappedModels = origCurrentBundle.models.map(wrapModel);