11"use strict" ;
2- ( self [ "webpackChunkboajs_dev" ] = self [ "webpackChunkboajs_dev" ] || [ ] ) . push ( [ [ 518 ] , {
2+ ( self [ "webpackChunkboajs_dev" ] = self [ "webpackChunkboajs_dev" ] || [ ] ) . push ( [ [ 1329 ] , {
33
4- /***/ 518 :
4+ /***/ 1329 :
55/***/ ( ( __unused_webpack___webpack_module__ , __webpack_exports__ , __webpack_require__ ) => {
66
77/* harmony export */ __webpack_require__ . d ( __webpack_exports__ , {
88/* harmony export */ diagram : ( ) => ( /* binding */ diagram )
99/* harmony export */ } ) ;
10- /* harmony import */ var _mermaid_2490e8f2_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__ ( 3566 ) ;
11- /* harmony import */ var _createText_4a4f35c9_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__ ( 5914 ) ;
10+ /* harmony import */ var _mermaid_b5860b54_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__ ( 6079 ) ;
11+ /* harmony import */ var _createText_2e5e7dd3_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__ ( 9312 ) ;
1212/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__ ( 6312 ) ;
1313/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__ ( 4353 ) ;
1414/* harmony import */ var _braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__ ( 6750 ) ;
@@ -707,7 +707,7 @@ class TextDimensionCalculatorWithFont {
707707 } ;
708708 const elem = this . parentGroup . append ( "g" ) . attr ( "visibility" , "hidden" ) . attr ( "font-size" , fontSize ) ;
709709 for ( const t of texts ) {
710- const bbox = ( 0 , _createText_4a4f35c9_js__WEBPACK_IMPORTED_MODULE_4__ . c ) ( elem , 1 , t ) ;
710+ const bbox = ( 0 , _createText_2e5e7dd3_js__WEBPACK_IMPORTED_MODULE_4__ . c ) ( elem , 1 , t ) ;
711711 const width = bbox ? bbox . width : t . length * fontSize ;
712712 const height = bbox ? bbox . height : fontSize ;
713713 dimension . width = Math . max ( dimension . width , width ) ;
@@ -1079,7 +1079,7 @@ class BandAxis extends BaseAxis {
10791079 }
10801080 recalculateScale ( ) {
10811081 this . scale = ( 0 , d3__WEBPACK_IMPORTED_MODULE_0__ /* .scaleBand */ . WH ) ( ) . domain ( this . categories ) . range ( this . getRange ( ) ) . paddingInner ( 1 ) . paddingOuter ( 0 ) . align ( 0.5 ) ;
1082- _mermaid_2490e8f2_js__WEBPACK_IMPORTED_MODULE_5__ . l . trace ( "BandAxis axis final categories, range: " , this . categories , this . getRange ( ) ) ;
1082+ _mermaid_b5860b54_js__WEBPACK_IMPORTED_MODULE_5__ . l . trace ( "BandAxis axis final categories, range: " , this . categories , this . getRange ( ) ) ;
10831083 }
10841084 getTickValues ( ) {
10851085 return this . categories ;
@@ -1520,14 +1520,14 @@ let plotColorPalette = xyChartThemeConfig.plotColorPalette.split(",").map((color
15201520let hasSetXAxis = false ;
15211521let hasSetYAxis = false ;
15221522function getChartDefaultThemeConfig ( ) {
1523- const defaultThemeVariables = ( 0 , _mermaid_2490e8f2_js__WEBPACK_IMPORTED_MODULE_5__ . E ) ( ) ;
1524- const config = ( 0 , _mermaid_2490e8f2_js__WEBPACK_IMPORTED_MODULE_5__ . F ) ( ) ;
1525- return ( 0 , _mermaid_2490e8f2_js__WEBPACK_IMPORTED_MODULE_5__ . C ) ( defaultThemeVariables . xyChart , config . themeVariables . xyChart ) ;
1523+ const defaultThemeVariables = ( 0 , _mermaid_b5860b54_js__WEBPACK_IMPORTED_MODULE_5__ . E ) ( ) ;
1524+ const config = ( 0 , _mermaid_b5860b54_js__WEBPACK_IMPORTED_MODULE_5__ . F ) ( ) ;
1525+ return ( 0 , _mermaid_b5860b54_js__WEBPACK_IMPORTED_MODULE_5__ . C ) ( defaultThemeVariables . xyChart , config . themeVariables . xyChart ) ;
15261526}
15271527function getChartDefaultConfig ( ) {
1528- const config = ( 0 , _mermaid_2490e8f2_js__WEBPACK_IMPORTED_MODULE_5__ . F ) ( ) ;
1529- return ( 0 , _mermaid_2490e8f2_js__WEBPACK_IMPORTED_MODULE_5__ . C ) (
1530- _mermaid_2490e8f2_js__WEBPACK_IMPORTED_MODULE_5__ . B . xyChart ,
1528+ const config = ( 0 , _mermaid_b5860b54_js__WEBPACK_IMPORTED_MODULE_5__ . F ) ( ) ;
1529+ return ( 0 , _mermaid_b5860b54_js__WEBPACK_IMPORTED_MODULE_5__ . C ) (
1530+ _mermaid_b5860b54_js__WEBPACK_IMPORTED_MODULE_5__ . B . xyChart ,
15311531 config . xyChart
15321532 ) ;
15331533}
@@ -1549,8 +1549,8 @@ function getChartDefaultData() {
15491549 } ;
15501550}
15511551function textSanitizer ( text ) {
1552- const config = ( 0 , _mermaid_2490e8f2_js__WEBPACK_IMPORTED_MODULE_5__ . F ) ( ) ;
1553- return ( 0 , _mermaid_2490e8f2_js__WEBPACK_IMPORTED_MODULE_5__ . d ) ( text . trim ( ) , config ) ;
1552+ const config = ( 0 , _mermaid_b5860b54_js__WEBPACK_IMPORTED_MODULE_5__ . F ) ( ) ;
1553+ return ( 0 , _mermaid_b5860b54_js__WEBPACK_IMPORTED_MODULE_5__ . d ) ( text . trim ( ) , config ) ;
15541554}
15551555function setTmpSVGG ( SVGG ) {
15561556 tmpSVGGroup = SVGG ;
@@ -1650,7 +1650,7 @@ function getDrawableElem() {
16501650 if ( xyChartData . plots . length === 0 ) {
16511651 throw Error ( "No Plot to render, please provide a plot with some data" ) ;
16521652 }
1653- xyChartData . title = ( 0 , _mermaid_2490e8f2_js__WEBPACK_IMPORTED_MODULE_5__ . t ) ( ) ;
1653+ xyChartData . title = ( 0 , _mermaid_b5860b54_js__WEBPACK_IMPORTED_MODULE_5__ . t ) ( ) ;
16541654 return XYChartBuilder . build ( xyChartConfig , xyChartData , xyChartThemeConfig , tmpSVGGroup ) ;
16551655}
16561656function getChartThemeConfig ( ) {
@@ -1660,7 +1660,7 @@ function getChartConfig() {
16601660 return xyChartConfig ;
16611661}
16621662const clear = function ( ) {
1663- ( 0 , _mermaid_2490e8f2_js__WEBPACK_IMPORTED_MODULE_5__ . v ) ( ) ;
1663+ ( 0 , _mermaid_b5860b54_js__WEBPACK_IMPORTED_MODULE_5__ . v ) ( ) ;
16641664 plotIndex = 0 ;
16651665 xyChartConfig = getChartDefaultConfig ( ) ;
16661666 xyChartData = getChartDefaultData ( ) ;
@@ -1672,12 +1672,12 @@ const clear = function() {
16721672const db = {
16731673 getDrawableElem,
16741674 clear,
1675- setAccTitle : _mermaid_2490e8f2_js__WEBPACK_IMPORTED_MODULE_5__ . s ,
1676- getAccTitle : _mermaid_2490e8f2_js__WEBPACK_IMPORTED_MODULE_5__ . g ,
1677- setDiagramTitle : _mermaid_2490e8f2_js__WEBPACK_IMPORTED_MODULE_5__ . q ,
1678- getDiagramTitle : _mermaid_2490e8f2_js__WEBPACK_IMPORTED_MODULE_5__ . t ,
1679- getAccDescription : _mermaid_2490e8f2_js__WEBPACK_IMPORTED_MODULE_5__ . a ,
1680- setAccDescription : _mermaid_2490e8f2_js__WEBPACK_IMPORTED_MODULE_5__ . b ,
1675+ setAccTitle : _mermaid_b5860b54_js__WEBPACK_IMPORTED_MODULE_5__ . s ,
1676+ getAccTitle : _mermaid_b5860b54_js__WEBPACK_IMPORTED_MODULE_5__ . g ,
1677+ setDiagramTitle : _mermaid_b5860b54_js__WEBPACK_IMPORTED_MODULE_5__ . q ,
1678+ getDiagramTitle : _mermaid_b5860b54_js__WEBPACK_IMPORTED_MODULE_5__ . t ,
1679+ getAccDescription : _mermaid_b5860b54_js__WEBPACK_IMPORTED_MODULE_5__ . a ,
1680+ setAccDescription : _mermaid_b5860b54_js__WEBPACK_IMPORTED_MODULE_5__ . b ,
16811681 setOrientation,
16821682 setXAxisTitle,
16831683 setXAxisRangeData,
@@ -1703,11 +1703,11 @@ const draw = (txt, id, _version, diagObj) => {
17031703 function getTextTransformation ( data ) {
17041704 return `translate(${ data . x } , ${ data . y } ) rotate(${ data . rotation || 0 } )` ;
17051705 }
1706- _mermaid_2490e8f2_js__WEBPACK_IMPORTED_MODULE_5__ . l . debug ( "Rendering xychart chart\n" + txt ) ;
1707- const svg = ( 0 , _mermaid_2490e8f2_js__WEBPACK_IMPORTED_MODULE_5__ . A ) ( id ) ;
1706+ _mermaid_b5860b54_js__WEBPACK_IMPORTED_MODULE_5__ . l . debug ( "Rendering xychart chart\n" + txt ) ;
1707+ const svg = ( 0 , _mermaid_b5860b54_js__WEBPACK_IMPORTED_MODULE_5__ . A ) ( id ) ;
17081708 const group = svg . append ( "g" ) . attr ( "class" , "main" ) ;
17091709 const background = group . append ( "rect" ) . attr ( "width" , chartConfig . width ) . attr ( "height" , chartConfig . height ) . attr ( "class" , "background" ) ;
1710- ( 0 , _mermaid_2490e8f2_js__WEBPACK_IMPORTED_MODULE_5__ . i ) ( svg , chartConfig . height , chartConfig . width , true ) ;
1710+ ( 0 , _mermaid_b5860b54_js__WEBPACK_IMPORTED_MODULE_5__ . i ) ( svg , chartConfig . height , chartConfig . width , true ) ;
17111711 svg . attr ( "viewBox" , `0 0 ${ chartConfig . width } ${ chartConfig . height } ` ) ;
17121712 background . attr ( "fill" , themeConfig . backgroundColor ) ;
17131713 db2 . setTmpSVGG ( svg . append ( "g" ) . attr ( "class" , "mermaid-tmp-group" ) ) ;
0 commit comments