MCPcopy
hub / github.com/nhn/tui.chart / updateOptions

Function updateOptions

apps/chart/src/store/options.ts:58–70  ·  view source on GitHub ↗
({ state, initStoreState }, { options, containerSize }: OptionsParam)

Source from the content-addressed store, hash-verified

56 this.dispatch('setChartSize', size);
57 },
58 updateOptions({ state, initStoreState }, { options, containerSize }: OptionsParam) {
59 initStoreState.options = deepMergedCopy(initStoreState.options, options);
60 state.originalOptions = deepMergedCopy(state.originalOptions, options);
61
62 const { usingContainerSize, originalOptions } = state;
63 const size = getSize(usingContainerSize, containerSize, {
64 width: originalOptions.chart?.width,
65 height: originalOptions.chart?.height,
66 });
67
68 this.dispatch('setChartSize', size);
69 this.dispatch('initThemeState');
70 },
71 },
72 observe: {
73 updateOptions() {

Callers

nothing calls this directly

Calls 3

deepMergedCopyFunction · 0.90
getSizeFunction · 0.85
dispatchMethod · 0.45

Tested by

no test coverage detected