@@ -8,6 +8,7 @@ import FontUtils from '@styles/utils/FontUtils';
88import type ChildrenProps from '@src/types/utils/ChildrenProps' ;
99import { computeEmbeddedMaxWidth , isChildOfTaskTitle } from './htmlEngineUtils' ;
1010import htmlRenderers from './HTMLRenderers' ;
11+ import VICTORY_HTML_ELEMENT_MODELS from './HTMLRenderers/VictoryChartRenderer/victoryHtmlElementModels' ;
1112
1213type BaseHTMLEngineProviderProps = ChildrenProps & {
1314 /** Whether text elements should be selectable */
@@ -200,38 +201,7 @@ function BaseHTMLEngineProvider({textSelectable = false, children, enableExperim
200201 tagName : 'sparkles-icon' ,
201202 contentModel : HTMLContentModel . mixed ,
202203 } ) ,
203- victorychart : HTMLElementModel . fromCustomModel ( {
204- tagName : 'victorychart' ,
205- contentModel : HTMLContentModel . block ,
206- } ) ,
207- victorybar : HTMLElementModel . fromCustomModel ( {
208- tagName : 'victorybar' ,
209- contentModel : HTMLContentModel . block ,
210- } ) ,
211- victoryline : HTMLElementModel . fromCustomModel ( {
212- tagName : 'victoryline' ,
213- contentModel : HTMLContentModel . block ,
214- } ) ,
215- victoryaxis : HTMLElementModel . fromCustomModel ( {
216- tagName : 'victoryaxis' ,
217- contentModel : HTMLContentModel . block ,
218- } ) ,
219- victorylabel : HTMLElementModel . fromCustomModel ( {
220- tagName : 'victorylabel' ,
221- contentModel : HTMLContentModel . textual ,
222- } ) ,
223- victorylegend : HTMLElementModel . fromCustomModel ( {
224- tagName : 'victorylegend' ,
225- contentModel : HTMLContentModel . block ,
226- } ) ,
227- victorygroup : HTMLElementModel . fromCustomModel ( {
228- tagName : 'victorygroup' ,
229- contentModel : HTMLContentModel . block ,
230- } ) ,
231- victorypie : HTMLElementModel . fromCustomModel ( {
232- tagName : 'victorypie' ,
233- contentModel : HTMLContentModel . block ,
234- } ) ,
204+ ...VICTORY_HTML_ELEMENT_MODELS ,
235205 } ) ,
236206 [
237207 styles . taskTitleMenuItem ,
0 commit comments