({ state, initStoreState }, { options, containerSize }: OptionsParam)
| 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() { |
nothing calls this directly
no test coverage detected