@orangelogic/design-system 2.162.0 → 2.164.0
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/library/chunks/{AxisLabelRadial.lE2gKah-.js → AxisLabelRadial.fe7zjixN.js} +1 -1
- package/library/chunks/{BaseColumnSeries.B57B3iHh.js → BaseColumnSeries.8Mpxz385.js} +1 -1
- package/library/chunks/{CandlestickSeries.CmmI426l.js → CandlestickSeries.DuadaOTa.js} +19 -19
- package/library/chunks/{Circle.DAhHYhrc.js → Circle.6LomW0ej.js} +1 -1
- package/library/chunks/{ColumnSeries.DBgXk-b4.js → ColumnSeries.D1NLfRh5.js} +2 -2
- package/library/chunks/{EditableAxisLabel.C6H99qiS.js → EditableAxisLabel.Bi9vxLDV.js} +2 -2
- package/library/chunks/{EditableLabel.B7HB7Cu4.js → EditableLabel.CMR3O9E-.js} +1 -1
- package/library/chunks/{Gradient.DHhBnhFd.js → Gradient.CquE8_a4.js} +1 -1
- package/library/chunks/{LinearGradient.CGx00O8B.js → LinearGradient.CVN1VJp-.js} +9 -9
- package/library/chunks/{Picture.DYltTVSo.js → Picture.BYTZ_I8g.js} +1 -1
- package/library/chunks/{Polygon.BCrxKagx.js → Polygon.CU2sMltE.js} +1 -1
- package/library/chunks/{ProgressPie.CXksPJFv.js → ProgressPie.Dd74dbmm.js} +6 -6
- package/library/chunks/{RadialLabel.BYH69FGU.js → RadialLabel.7ka6ND-t.js} +1 -1
- package/library/chunks/{Scrollbar.DEv50o4R.js → Scrollbar.DqUnZReo.js} +1 -1
- package/library/chunks/Slice.BVI8rfHI.js +34 -0
- package/library/chunks/{Slider.BX8g2iGv.js → Slider.DtjYaJOw.js} +1 -1
- package/library/chunks/{SpriteResizer.CfIBMSp3.js → SpriteResizer.Ci2Wt2YJ.js} +11 -11
- package/library/chunks/{Triangle.CNY8-QfL.js → Triangle.C75emy3D.js} +1 -1
- package/library/chunks/{ZoomTools.6jZrzA7x.js → ZoomTools.CA9mtHI8.js} +2 -2
- package/library/chunks/_arrayEach.DU4X1H_a.js +8 -0
- package/library/chunks/_baseClone.BHNjfIdS.js +215 -0
- package/library/chunks/_baseEach.DQk0As2f.js +32 -0
- package/library/chunks/{_baseIteratee.BdKyHJ5i.js → _baseIteratee.sC2wLi2m.js} +3 -2
- package/library/chunks/{_baseUniq.je-HWbb3.js → _baseUniq.lwMgmtt2.js} +16 -15
- package/library/chunks/_baseXor.DixEm6JQ.js +35 -0
- package/library/chunks/_flatRest.D3ZVApI5.js +30 -0
- package/library/chunks/abnfDiagram-VRR7QNED.DKqYa5p7.js +89 -0
- package/library/chunks/{am-chart.CqdmTS0P.js → am-chart.Cr-vMjcY.js} +1577 -1727
- package/library/chunks/{animation.S74lUDDc.js → animation.BD-1xugN.js} +1 -1
- package/library/chunks/arc.xqNd6x9S.js +84 -0
- package/library/chunks/architectureDiagram-ZJ3FMSHR.CBIOk9Kp.js +4757 -0
- package/library/chunks/{asset-link-format.DLAzKfhk.js → asset-link-format.0q_MQOYh.js} +691 -635
- package/library/chunks/asset-link-format.ClaYu_v8.js +7 -0
- package/library/chunks/blockDiagram-677ZJIJ3.CeQxLPwj.js +2428 -0
- package/library/chunks/{button.8syoJXYs.js → button.DGyqdBou.js} +2 -2
- package/library/chunks/c4Diagram-LMCZKHZV.B73xdpNh.js +1580 -0
- package/library/chunks/{capitalize.BTYI3NfM.js → capitalize.CIBKBL10.js} +1 -1
- package/library/chunks/{cardinal.BCA_LB0u.js → cardinal.BXTAeOLk.js} +1 -0
- package/library/chunks/cardinalClosed.Mdce1x5M.js +59 -0
- package/library/chunks/channel.s_XjcUYI.js +5 -0
- package/library/chunks/chunk-2Q5K7J3B.Dy1Z-bMH.js +15 -0
- package/library/chunks/chunk-32BRIVSS.BbIrVi3j.js +71 -0
- package/library/chunks/chunk-5VM5RSS4.D0-lddDM.js +19 -0
- package/library/chunks/chunk-EX3LRPZG.L693y8d4.js +1412 -0
- package/library/chunks/chunk-JWPE2WC7.BV0i4LDu.js +8 -0
- package/library/chunks/chunk-MOJQB5TN.BZstBMYC.js +664 -0
- package/library/chunks/chunk-RYQCIY6F.BMsuG7ya.js +314 -0
- package/library/chunks/chunk-V7JOEXUC.DcJlyQO0.js +1537 -0
- package/library/chunks/chunk-VR4S4FIN.BpryBs7q.js +19 -0
- package/library/chunks/chunk-XXDRQBXY.CSOjab1V.js +11 -0
- package/library/chunks/classDiagram-OUVF2IWQ.Dvz7CNwe.js +18 -0
- package/library/chunks/classDiagram-v2-EOCWNBFH.Dvz7CNwe.js +18 -0
- package/library/chunks/cloneDeep.B-5z5SI3.js +51 -0
- package/library/chunks/{color-swatch-group.CLv1LSZy.js → color-swatch-group.ChP9amU9.js} +2576 -2723
- package/library/chunks/{color-swatch.DsWP2fd-.js → color-swatch.QsHoy_K1.js} +1 -1
- package/library/chunks/{colorPicker.GYgA76kc.js → colorPicker.Cg6Zxf8f.js} +5 -5
- package/library/chunks/{confirm-popover.C-eHPJaU.js → confirm-popover.D8mdy6KG.js} +2 -2
- package/library/chunks/constant.BQ4UJ-kW.js +12 -0
- package/library/chunks/cose-bilkent-JH36ORCC.cfzS2XsK.js +2612 -0
- package/library/chunks/cynefin-VYW2F7L2.c7H5z9nQ.js +23790 -0
- package/library/chunks/cynefinDiagram-TSTJHNR4.C8SgNXWI.js +299 -0
- package/library/chunks/cytoscape.esm.Cbrwqewp.js +18786 -0
- package/library/chunks/dagre-VKFMJZFB.D5B1cAri.js +343 -0
- package/library/chunks/debounce.Bv1rtE8D.js +55 -0
- package/library/chunks/defaultLocale.CPy_WVtp.js +171 -0
- package/library/chunks/descending.AD5n-tFs.js +10 -0
- package/library/chunks/diagram-FQU43EPY.DJukDcLl.js +466 -0
- package/library/chunks/diagram-G47NLZAW.BBOvcbcR.js +316 -0
- package/library/chunks/diagram-NH7WQ7WH.DOpRwmC2.js +142 -0
- package/library/chunks/diagram-OA4YK3LP.Dm5WJs91.js +350 -0
- package/library/chunks/diagram-WEI45ONY.COuzdmSR.js +217 -0
- package/library/chunks/{dialog.Bzf4-IgH.js → dialog.05FgdLBZ.js} +2 -2
- package/library/chunks/{document-viewer.CGyOG1yw.js → document-viewer.Cng07M-1.js} +7 -7
- package/library/chunks/{dot-pagination.BdZc-K0r.js → dot-pagination.Pg9O0nIh.js} +1 -1
- package/library/chunks/ebnfDiagram-CCIWWBDH.Dz-QBH6Y.js +111 -0
- package/library/chunks/erDiagram-Q63AITRT.sSw_w-2B.js +913 -0
- package/library/chunks/{exporting.DQhKH1BX.js → exporting.Djsoh75g.js} +11 -11
- package/library/chunks/flow.aZRVH3p1.js +1304 -0
- package/library/chunks/flowDiagram-23GEKE2U.CMMbuUHf.js +1642 -0
- package/library/chunks/{folder-select.BKAuh4GE.js → folder-select.Dw1ZKZAq.js} +160 -140
- package/library/chunks/{gantt.tu-w6fQ5.js → gantt.Bv6_3H9y.js} +22 -22
- package/library/chunks/ganttDiagram-NO4QXBWP.DZdwd0O4.js +2715 -0
- package/library/chunks/gitGraphDiagram-IHSO6WYX.F6mwS3uS.js +818 -0
- package/library/chunks/graph.XHMI5hta.js +653 -0
- package/library/chunks/{header.e1FLwywx.js → header.DDI0MfJA.js} +1 -1
- package/library/chunks/{hierarchy.CTnBzzmQ.js → hierarchy.C4LxmFxx.js} +836 -904
- package/library/chunks/{hub-connection.CA_wS_wh.js → hub-connection.BtevPWYb.js} +1 -1
- package/library/chunks/{icon-button.DbVIFgu7.js → icon-button.BwmMJ0bI.js} +1 -1
- package/library/chunks/{icon.mxNZ85k0.js → icon.D5iM9wXS.js} +1 -1
- package/library/chunks/{iframe.DcHjOcLG.js → iframe.Cc-xZIm_.js} +1 -1
- package/library/chunks/{image.5mhGPvMN.js → image.BgODrAzQ.js} +2 -2
- package/library/chunks/{image.QVlPFadX.js → image.Y5c_hFx8.js} +1 -1
- package/library/chunks/{index.BVDhdCk-.js → index.2SOQHTpX.js} +23 -23
- package/library/chunks/index.BDn1QW8J.js +167 -0
- package/library/chunks/{index.DcjJFMlq.js → index.CrhRU5m8.js} +284 -273
- package/library/chunks/index.thKLME8E.js +77 -0
- package/library/chunks/infoDiagram-FWYZ7A6U.BnktKL7i.js +24 -0
- package/library/chunks/init.DjUOC4st.js +16 -0
- package/library/chunks/{input.BcyLZUmv.js → input.DOorVTYZ.js} +2 -2
- package/library/chunks/isArrayLikeObject.D7afXo-f.js +86 -0
- package/library/chunks/isEmpty.DtTJTUcf.js +27 -0
- package/library/chunks/ishikawaDiagram-FXEZZL3T.CFp-9Kes.js +621 -0
- package/library/chunks/journeyDiagram-5HDEW3XC.BxO1aPu_.js +837 -0
- package/library/chunks/{json.D7WeFaJm.js → json.Dz5QFEi5.js} +3 -3
- package/library/chunks/kanban-definition-HUTT4EX6.Bk8vmLFK.js +724 -0
- package/library/chunks/katex.DoRnZ_sp.js +11682 -0
- package/library/chunks/layout.DZcMFKol.js +1446 -0
- package/library/chunks/line.DP-iSN_J.js +157 -0
- package/library/chunks/linear.TNHhsH1m.js +215 -0
- package/library/chunks/{map.BjtxEozr.js → map.CBcV0WVq.js} +100 -105
- package/library/chunks/map.DJnohTgl.js +18 -0
- package/library/chunks/markdown.I1AJG75v.js +4180 -0
- package/library/chunks/math.D2lKC7md.js +22 -0
- package/library/chunks/mermaid.core.Dspbw7Ig.js +13598 -0
- package/library/chunks/mindmap-definition-LN4V7U3C.DuCBBYwE.js +808 -0
- package/library/chunks/{number.CtCaI0T_.js → number.Cx2ncfJJ.js} +2 -2
- package/library/chunks/{option.qN3aaqVI.js → option.DyNR1vzy.js} +2 -2
- package/library/chunks/ordinal.bqVaUip-.js +61 -0
- package/library/chunks/{pagination.Cupa46TN.js → pagination.qFmncShC.js} +5 -5
- package/library/chunks/pegDiagram-2B236MQR.DQrkEdJr.js +97 -0
- package/library/chunks/{percent.D_CkaRGb.js → percent.D8mkiJ2G.js} +17 -17
- package/library/chunks/pieDiagram-ENE6RG2P.B6nPW8Pj.js +212 -0
- package/library/chunks/position-picker.DjnhxIKF.js +4 -0
- package/library/chunks/quadrantDiagram-ABIIQ3AL.BFy9moxz.js +1026 -0
- package/library/chunks/{radar.BMKaNvJH.js → radar.B3p5bRix.js} +78 -129
- package/library/chunks/railroadDiagram-RFXS5EU6.CSao8YZX.js +79 -0
- package/library/chunks/range.DdOGybNB.js +9 -0
- package/library/chunks/requirementDiagram-TGXJPOKE.CjpliZnF.js +882 -0
- package/library/chunks/sankey.BR94A-8L.js +294 -0
- package/library/chunks/sankeyDiagram-HTMAVEWB.D8aAxVGe.js +564 -0
- package/library/chunks/select.C6_sM3Pr.js +7 -0
- package/library/chunks/sequenceDiagram-DBY2YBRQ.Cu9MV3h-.js +2891 -0
- package/library/chunks/sizeCapture-X5ZJPWSS.BDByEFcW.js +46 -0
- package/library/chunks/{sliceGrouper.C-t5ZRrz.js → sliceGrouper.CcRqQhZX.js} +1 -1
- package/library/chunks/stateDiagram-2N3HPSRC.DvrAW9Ck.js +267 -0
- package/library/chunks/stateDiagram-v2-6OUMAXLB.CFfuaFM1.js +18 -0
- package/library/chunks/step.almIqwJ6.js +51 -0
- package/library/chunks/{stock.vF_pji1F.js → stock.CQbn6zW4.js} +9 -9
- package/library/chunks/swimlanes-5IMT3BWC.AtMD47q7.js +5332 -0
- package/library/chunks/swimlanesDiagram-G3AALYLV.26A1eX7s.js +15 -0
- package/library/chunks/{tab-group.kSg5_10g.js → tab-group.1Y71_aN8.js} +3 -3
- package/library/chunks/{time.DWfbnPnM.js → time.DYWuX2id.js} +1 -1
- package/library/chunks/timeline-definition-FHXFAJF6.CYSh6xl5.js +1058 -0
- package/library/chunks/{timeline.gWu0up6r.js → timeline.Czz_uBEd.js} +33 -32
- package/library/chunks/toNumber.MuDz8DgU.js +31 -0
- package/library/chunks/{toString.Dcbz5jVT.js → toString.B1zKIiZc.js} +1 -1
- package/library/chunks/{toast.TDU3wVhq.js → toast.CXEAfCvN.js} +1 -1
- package/library/chunks/transformation.8uLv6uwG.js +264 -0
- package/library/chunks/{tree.C2dPd6gt.js → tree.vn5sHbdt.js} +123 -117
- package/library/chunks/value.BXEGBVFV.js +44 -0
- package/library/chunks/{venn.BVBe-JXs.js → venn.B5Jl-c4i.js} +2 -2
- package/library/chunks/vennDiagram-L72KCM5P.CSk1WWlu.js +1581 -0
- package/library/chunks/wardleyDiagram-EHGQE667.C7UzXYG7.js +675 -0
- package/library/chunks/{watch.DOt4Mabe.js → watch.DJF5K-8U.js} +27 -27
- package/library/chunks/{wc.DTNpfIc1.js → wc.B2THb2Kk.js} +18 -18
- package/library/chunks/xy.BO6U5QrZ.js +294 -0
- package/library/chunks/xychartDiagram-FW5EYKEG.idiZWvYS.js +1383 -0
- package/library/components/alert.js +2 -2
- package/library/components/am-chart.js +3 -3
- package/library/components/animated-image.js +2 -2
- package/library/components/animation.js +2 -2
- package/library/components/array-line-clamp.js +1 -1
- package/library/components/asset-link-format.js +8 -7
- package/library/components/atoms.js +29 -29
- package/library/components/audio.js +3 -3
- package/library/components/avatar.js +2 -2
- package/library/components/border-input-group.js +1 -1
- package/library/components/breadcrumb-item.js +1 -1
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +3 -3
- package/library/components/checkbox.js +195 -18
- package/library/components/color-picker.js +4 -4
- package/library/components/color-swatch-group.js +5 -5
- package/library/components/color-swatch.js +2 -2
- package/library/components/confirm-popover.js +3 -3
- package/library/components/copy-button.js +2 -2
- package/library/components/corner-position-input-group.js +2 -2
- package/library/components/cropper.js +4 -4
- package/library/components/date-calendar.js +1 -1
- package/library/components/details.js +2 -2
- package/library/components/dialog.js +3 -3
- package/library/components/diff.js +1 -1
- package/library/components/divider.js +1 -1
- package/library/components/document-viewer.js +3 -3
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +3 -3
- package/library/components/dropdown.js +2 -2
- package/library/components/dynamic-select.js +6 -6
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +350 -374
- package/library/components/folder-select.js +5 -5
- package/library/components/format-time.js +2 -2
- package/library/components/grid-item.js +1 -1
- package/library/components/header.js +2 -2
- package/library/components/hub-connection.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/icon.js +2 -2
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +2 -2
- package/library/components/image.js +3 -3
- package/library/components/include.js +1 -1
- package/library/components/input.js +3 -3
- package/library/components/line-clamp.js +1 -1
- package/library/components/markdown.js +11 -2704
- package/library/components/masonry.js +76 -73
- package/library/components/menu-item.js +2 -2
- package/library/components/molecules.js +3 -3
- package/library/components/mutation-observer.js +1 -1
- package/library/components/option.js +3 -3
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +6 -6
- package/library/components/position-picker.js +25 -25
- package/library/components/qr-code.js +1 -1
- package/library/components/radio-button.js +1 -1
- package/library/components/radio-card.js +1 -1
- package/library/components/radio-group.js +1 -1
- package/library/components/radio.js +2 -2
- package/library/components/range.js +1 -1
- package/library/components/rating.js +2 -2
- package/library/components/resize-observer.js +1 -1
- package/library/components/select.js +3 -3
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +2 -2
- package/library/components/sidebar.js +3 -3
- package/library/components/size-input-group.js +3 -3
- package/library/components/split-panel.js +1 -1
- package/library/components/step.js +1 -1
- package/library/components/stepper-wizard.js +1 -1
- package/library/components/stepper.js +1 -1
- package/library/components/switch.js +1 -1
- package/library/components/tab-group.js +4 -4
- package/library/components/tab-panel.js +1 -1
- package/library/components/tab.js +2 -2
- package/library/components/tag.js +1 -1
- package/library/components/textarea.js +1 -1
- package/library/components/timecode.js +1 -1
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +4 -4
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +2 -2
- package/library/components/types.js +122327 -120686
- package/library/components/video.js +2 -2
- package/library/package.json +2 -1
- package/library/packages/atoms/src/components/markdown/markdown.d.ts +41 -1
- package/library/packages/atoms/src/components/markdown/parser.d.ts +18 -3
- package/library/packages/atoms/src/components/markdown/styles.d.ts +17 -0
- package/library/packages/atoms/src/components/tree/tree.d.ts +7 -1
- package/library/packages/atoms/src/components/tree-item/tree-item.d.ts +11 -1
- package/library/packages/events/src/cx-folder-select-loading-change.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +1 -0
- package/library/packages/hybrid/table-core/src/table/styles/table-frozen.styles.d.ts +8 -0
- package/library/packages/hybrid/table-core/src/table/table.d.ts +9 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/FrozenColumns/FrozenColumns.d.ts +14 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/ResizeColumns/ResizeColumns.d.ts +18 -1
- package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +7 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +7 -0
- package/library/packages/molecules/src/index.d.ts +1 -0
- package/library/packages/molecules/src/markdown-viewer/markdown-viewer.d.ts +124 -0
- package/library/packages/molecules/src/markdown-viewer/markdown-viewer.styles.d.ts +6 -0
- package/library/packages/molecules/src/masonry/masonry.d.ts +5 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +9 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +30 -0
- package/library/packages/tools/src/tiptap/utils/md/editor-controller.d.ts +57 -0
- package/library/packages/tools/src/tiptap/utils/md/from-markdown.d.ts +11 -0
- package/library/packages/tools/src/tiptap/utils/md/input-rules.d.ts +15 -0
- package/library/packages/tools/src/tiptap/utils/md/schema.d.ts +13 -0
- package/library/packages/tools/src/tiptap/utils/md/to-markdown.d.ts +14 -0
- package/library/packages/types/src/asset-link-format.d.ts +19 -0
- package/library/packages/types/src/markdown-viewer.d.ts +12 -0
- package/library/packages/types/src/tree-item.d.ts +12 -0
- package/library/react-web-component.d.ts +86 -8
- package/library/utils.js +64 -65
- package/package.json +2 -1
- package/library/chunks/Slice.C5lVu2g_.js +0 -120
- package/library/chunks/_baseXor.VohG8cOH.js +0 -116
- package/library/chunks/asset-link-format.QzzboHHE.js +0 -6
- package/library/chunks/checkbox.3i2j3PHc.js +0 -198
- package/library/chunks/content-builder.BU8X7I6V.js +0 -60
- package/library/chunks/debounce.C_J-9zJi.js +0 -82
- package/library/chunks/flow.hz0UDjCb.js +0 -1594
- package/library/chunks/index.DU0XUO4k.js +0 -176
- package/library/chunks/transformation.D1alV_s4.js +0 -189
- package/library/chunks/xy.BNgyrwGD.js +0 -333
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { _ as o } from "./mermaid.core.Dspbw7Ig.js";
|
|
2
|
+
var c = 1;
|
|
3
|
+
function i() {
|
|
4
|
+
if (!(typeof globalThis > "u"))
|
|
5
|
+
return globalThis;
|
|
6
|
+
}
|
|
7
|
+
o(i, "getCaptureGlobal");
|
|
8
|
+
function p() {
|
|
9
|
+
return !!i()?.mermaidCaptureSizes;
|
|
10
|
+
}
|
|
11
|
+
o(p, "shouldCaptureSizes");
|
|
12
|
+
function u() {
|
|
13
|
+
return typeof location > "u" ? "browser-dev" : `${location.pathname}${location.search}`;
|
|
14
|
+
}
|
|
15
|
+
o(u, "capturedFromLocation");
|
|
16
|
+
function d(n, r) {
|
|
17
|
+
const t = i();
|
|
18
|
+
if (!t)
|
|
19
|
+
return;
|
|
20
|
+
const e = r.node(), s = ((e && "ownerSVGElement" in e ? e.ownerSVGElement : null) ?? e)?.id ?? "(unknown)";
|
|
21
|
+
t.mermaidCapturedSizes ??= [];
|
|
22
|
+
const a = { svgId: s, sizes: n };
|
|
23
|
+
t.mermaidCapturedSizes.push(a), t.mermaidLastCapturedSizes = a;
|
|
24
|
+
}
|
|
25
|
+
o(d, "emitCapturedSizes");
|
|
26
|
+
function m(n, r) {
|
|
27
|
+
const t = [];
|
|
28
|
+
for (const e of r.nodes)
|
|
29
|
+
e.isGroup || t.push({ id: e.id, width: e.width ?? 0, height: e.height ?? 0 });
|
|
30
|
+
t.length !== 0 && d(
|
|
31
|
+
{
|
|
32
|
+
metadata: {
|
|
33
|
+
captureVersion: c,
|
|
34
|
+
capturedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
35
|
+
capturedFrom: u()
|
|
36
|
+
},
|
|
37
|
+
nodes: t
|
|
38
|
+
},
|
|
39
|
+
n
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
o(m, "captureNodeSizes");
|
|
43
|
+
export {
|
|
44
|
+
m as captureNodeSizes,
|
|
45
|
+
p as shouldCaptureSizes
|
|
46
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as d, B as p, G as D, e as h } from "./am-chart.
|
|
1
|
+
import { E as d, B as p, G as D, e as h } from "./am-chart.Cr-vMjcY.js";
|
|
2
2
|
class m extends d {
|
|
3
3
|
_afterNew() {
|
|
4
4
|
super._afterNew(), this._setRawDefault("threshold", 5), this._setRawDefault("groupName", "Other"), this._setRawDefault("clickBehavior", "none"), this.initZoomButton(), this._root.addDisposer(this);
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import { s as P, a as R, S as N } from "./chunk-EX3LRPZG.L693y8d4.js";
|
|
2
|
+
import { _ as f, c as t, l as S, d as W, j as z, P as _, M as U, x as C } from "./mermaid.core.Dspbw7Ig.js";
|
|
3
|
+
import "./index.CrhRU5m8.js";
|
|
4
|
+
import "./transform.BuqENXeT.js";
|
|
5
|
+
import { G as F } from "./graph.XHMI5hta.js";
|
|
6
|
+
import { l as O } from "./layout.DZcMFKol.js";
|
|
7
|
+
import { s as H } from "./select.C6_sM3Pr.js";
|
|
8
|
+
import { l as J } from "./line.DP-iSN_J.js";
|
|
9
|
+
var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), "drawStartState"), D = /* @__PURE__ */ f((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), Y = /* @__PURE__ */ f((e, i) => {
|
|
10
|
+
const d = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 2 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), c = d.node().getBBox();
|
|
11
|
+
return e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", c.width + 2 * t().state.padding).attr("height", c.height + 2 * t().state.padding).attr("rx", t().state.radius), d;
|
|
12
|
+
}, "drawSimpleState"), I = /* @__PURE__ */ f((e, i) => {
|
|
13
|
+
const d = /* @__PURE__ */ f(function(o, B, y) {
|
|
14
|
+
const v = o.append("tspan").attr("x", 2 * t().state.padding).text(B);
|
|
15
|
+
y || v.attr("dy", t().state.textHeight);
|
|
16
|
+
}, "addTspan"), n = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 1.3 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.descriptions[0]).node().getBBox(), l = n.height, p = e.append("text").attr("x", t().state.padding).attr(
|
|
17
|
+
"y",
|
|
18
|
+
l + t().state.padding * 0.4 + t().state.dividerMargin + t().state.textHeight
|
|
19
|
+
).attr("class", "state-description");
|
|
20
|
+
let a = !0, s = !0;
|
|
21
|
+
i.descriptions.forEach(function(o) {
|
|
22
|
+
a || (d(p, o, s), s = !1), a = !1;
|
|
23
|
+
});
|
|
24
|
+
const m = e.append("line").attr("x1", t().state.padding).attr("y1", t().state.padding + l + t().state.dividerMargin / 2).attr("y2", t().state.padding + l + t().state.dividerMargin / 2).attr("class", "descr-divider"), x = p.node().getBBox(), g = Math.max(x.width, n.width);
|
|
25
|
+
return m.attr("x2", g + 3 * t().state.padding), e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", g + 2 * t().state.padding).attr("height", x.height + l + 2 * t().state.padding).attr("rx", t().state.radius), e;
|
|
26
|
+
}, "drawDescrState"), $ = /* @__PURE__ */ f((e, i, d) => {
|
|
27
|
+
const c = t().state.padding, n = 2 * t().state.padding, l = e.node().getBBox(), p = l.width, a = l.x, s = e.append("text").attr("x", 0).attr("y", t().state.titleShift).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), x = s.node().getBBox().width + n;
|
|
28
|
+
let g = Math.max(x, p);
|
|
29
|
+
g === p && (g = g + n);
|
|
30
|
+
let o;
|
|
31
|
+
const B = e.node().getBBox();
|
|
32
|
+
i.doc, o = a - c, x > p && (o = (p - g) / 2 + c), Math.abs(a - B.x) < c && x > p && (o = a - (x - p) / 2);
|
|
33
|
+
const y = 1 - t().state.textHeight;
|
|
34
|
+
return e.insert("rect", ":first-child").attr("x", o).attr("y", y).attr("class", d ? "alt-composit" : "composit").attr("width", g).attr(
|
|
35
|
+
"height",
|
|
36
|
+
B.height + t().state.textHeight + t().state.titleShift + 1
|
|
37
|
+
).attr("rx", "0"), s.attr("x", o + c), x <= p && s.attr("x", a + (g - n) / 2 - x / 2 + c), e.insert("rect", ":first-child").attr("x", o).attr(
|
|
38
|
+
"y",
|
|
39
|
+
t().state.titleShift - t().state.textHeight - t().state.padding
|
|
40
|
+
).attr("width", g).attr("height", t().state.textHeight * 3).attr("rx", t().state.radius), e.insert("rect", ":first-child").attr("x", o).attr(
|
|
41
|
+
"y",
|
|
42
|
+
t().state.titleShift - t().state.textHeight - t().state.padding
|
|
43
|
+
).attr("width", g).attr("height", B.height + 3 + 2 * t().state.textHeight).attr("rx", t().state.radius), e;
|
|
44
|
+
}, "addTitleAndBox"), j = /* @__PURE__ */ f((e) => (e.append("circle").attr("class", "end-state-outer").attr("r", t().state.sizeUnit + t().state.miniPadding).attr(
|
|
45
|
+
"cx",
|
|
46
|
+
t().state.padding + t().state.sizeUnit + t().state.miniPadding
|
|
47
|
+
).attr(
|
|
48
|
+
"cy",
|
|
49
|
+
t().state.padding + t().state.sizeUnit + t().state.miniPadding
|
|
50
|
+
), e.append("circle").attr("class", "end-state-inner").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit + 2).attr("cy", t().state.padding + t().state.sizeUnit + 2)), "drawEndState"), q = /* @__PURE__ */ f((e, i) => {
|
|
51
|
+
let d = t().state.forkWidth, c = t().state.forkHeight;
|
|
52
|
+
if (i.parentId) {
|
|
53
|
+
let n = d;
|
|
54
|
+
d = c, c = n;
|
|
55
|
+
}
|
|
56
|
+
return e.append("rect").style("stroke", "black").style("fill", "black").attr("width", d).attr("height", c).attr("x", t().state.padding).attr("y", t().state.padding);
|
|
57
|
+
}, "drawForkJoinState"), Z = /* @__PURE__ */ f((e, i, d, c) => {
|
|
58
|
+
let n = 0;
|
|
59
|
+
const l = c.append("text");
|
|
60
|
+
l.style("text-anchor", "start"), l.attr("class", "noteText");
|
|
61
|
+
let p = e.replace(/\r\n/g, "<br/>");
|
|
62
|
+
p = p.replace(/\n/g, "<br/>");
|
|
63
|
+
const a = p.split(z.lineBreakRegex);
|
|
64
|
+
let s = 1.25 * t().state.noteMargin;
|
|
65
|
+
for (const m of a) {
|
|
66
|
+
const x = m.trim();
|
|
67
|
+
if (x.length > 0) {
|
|
68
|
+
const g = l.append("tspan");
|
|
69
|
+
if (g.text(x), s === 0) {
|
|
70
|
+
const o = g.node().getBBox();
|
|
71
|
+
s += o.height;
|
|
72
|
+
}
|
|
73
|
+
n += s, g.attr("x", i + t().state.noteMargin), g.attr("y", d + n + 1.25 * t().state.noteMargin);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return { textWidth: l.node().getBBox().width, textHeight: n };
|
|
77
|
+
}, "_drawLongText"), K = /* @__PURE__ */ f((e, i) => {
|
|
78
|
+
i.attr("class", "state-note");
|
|
79
|
+
const d = i.append("rect").attr("x", 0).attr("y", t().state.padding), c = i.append("g"), { textWidth: n, textHeight: l } = Z(e, 0, 0, c);
|
|
80
|
+
return d.attr("height", l + 2 * t().state.noteMargin), d.attr("width", n + t().state.noteMargin * 2), d;
|
|
81
|
+
}, "drawNote"), L = /* @__PURE__ */ f(function(e, i) {
|
|
82
|
+
const d = i.id, c = {
|
|
83
|
+
id: d,
|
|
84
|
+
label: i.id,
|
|
85
|
+
width: 0,
|
|
86
|
+
height: 0
|
|
87
|
+
}, n = e.append("g").attr("id", d).attr("class", "stateGroup");
|
|
88
|
+
i.type === "start" && X(n), i.type === "end" && j(n), (i.type === "fork" || i.type === "join") && q(n, i), i.type === "note" && K(i.note.text, n), i.type === "divider" && D(n), i.type === "default" && i.descriptions.length === 0 && Y(n, i), i.type === "default" && i.descriptions.length > 0 && I(n, i);
|
|
89
|
+
const l = n.node().getBBox();
|
|
90
|
+
return c.width = l.width + 2 * t().state.padding, c.height = l.height + 2 * t().state.padding, c;
|
|
91
|
+
}, "drawState"), G = 0, Q = /* @__PURE__ */ f(function(e, i, d) {
|
|
92
|
+
const c = /* @__PURE__ */ f(function(s) {
|
|
93
|
+
switch (s) {
|
|
94
|
+
case N.relationType.AGGREGATION:
|
|
95
|
+
return "aggregation";
|
|
96
|
+
case N.relationType.EXTENSION:
|
|
97
|
+
return "extension";
|
|
98
|
+
case N.relationType.COMPOSITION:
|
|
99
|
+
return "composition";
|
|
100
|
+
case N.relationType.DEPENDENCY:
|
|
101
|
+
return "dependency";
|
|
102
|
+
}
|
|
103
|
+
}, "getRelationType");
|
|
104
|
+
i.points = i.points.filter((s) => !Number.isNaN(s.y));
|
|
105
|
+
const n = i.points, l = J().x(function(s) {
|
|
106
|
+
return s.x;
|
|
107
|
+
}).y(function(s) {
|
|
108
|
+
return s.y;
|
|
109
|
+
}).curve(_), p = e.append("path").attr("d", l(n)).attr("id", "edge" + G).attr("class", "transition");
|
|
110
|
+
let a = "";
|
|
111
|
+
if (t().state.arrowMarkerAbsolute && (a = U(!0)), p.attr(
|
|
112
|
+
"marker-end",
|
|
113
|
+
"url(" + a + "#" + c(N.relationType.DEPENDENCY) + "End)"
|
|
114
|
+
), d.title !== void 0) {
|
|
115
|
+
const s = e.append("g").attr("class", "stateLabel"), { x: m, y: x } = C.calcLabelPosition(i.points), g = z.getRows(d.title);
|
|
116
|
+
let o = 0;
|
|
117
|
+
const B = [];
|
|
118
|
+
let y = 0, v = 0;
|
|
119
|
+
for (let u = 0; u <= g.length; u++) {
|
|
120
|
+
const h = s.append("text").attr("text-anchor", "middle").text(g[u]).attr("x", m).attr("y", x + o), w = h.node().getBBox();
|
|
121
|
+
y = Math.max(y, w.width), v = Math.min(v, w.x), S.info(w.x, m, x + o), o === 0 && (o = h.node().getBBox().height, S.info("Title height", o, x)), B.push(h);
|
|
122
|
+
}
|
|
123
|
+
let k = o * g.length;
|
|
124
|
+
if (g.length > 1) {
|
|
125
|
+
const u = (g.length - 1) * o * 0.5;
|
|
126
|
+
B.forEach((h, w) => h.attr("y", x + w * o - u)), k = o * g.length;
|
|
127
|
+
}
|
|
128
|
+
const r = s.node().getBBox();
|
|
129
|
+
s.insert("rect", ":first-child").attr("class", "box").attr("x", m - y / 2 - t().state.padding / 2).attr("y", x - k / 2 - t().state.padding / 2 - 3.5).attr("width", y + t().state.padding).attr("height", k + t().state.padding), S.info(r);
|
|
130
|
+
}
|
|
131
|
+
G++;
|
|
132
|
+
}, "drawEdge"), b, T = {}, V = /* @__PURE__ */ f(function() {
|
|
133
|
+
}, "setConf"), tt = /* @__PURE__ */ f(function(e) {
|
|
134
|
+
e.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
|
|
135
|
+
}, "insertMarkers"), et = /* @__PURE__ */ f(function(e, i, d, c) {
|
|
136
|
+
b = t().state;
|
|
137
|
+
const n = t().securityLevel;
|
|
138
|
+
let l;
|
|
139
|
+
n === "sandbox" && (l = H("#i" + i));
|
|
140
|
+
const p = n === "sandbox" ? H(l.nodes()[0].contentDocument.body) : H("body"), a = n === "sandbox" ? l.nodes()[0].contentDocument : document;
|
|
141
|
+
S.debug("Rendering diagram " + e);
|
|
142
|
+
const s = p.select(`[id='${i}']`);
|
|
143
|
+
tt(s);
|
|
144
|
+
const m = c.db.getRootDoc(), x = s.append("g").attr("id", i + "-root");
|
|
145
|
+
A(m, x, void 0, !1, p, a, c);
|
|
146
|
+
const g = b.padding, o = s.node().getBBox(), B = o.width + g * 2, y = o.height + g * 2, v = B * 1.75;
|
|
147
|
+
W(s, y, v, b.useMaxWidth), s.attr(
|
|
148
|
+
"viewBox",
|
|
149
|
+
`${o.x - b.padding} ${o.y - b.padding} ` + B + " " + y
|
|
150
|
+
);
|
|
151
|
+
}, "draw"), at = /* @__PURE__ */ f((e) => e ? e.length * b.fontSizeFactor : 1, "getLabelWidth"), A = /* @__PURE__ */ f((e, i, d, c, n, l, p) => {
|
|
152
|
+
const a = new F({
|
|
153
|
+
compound: !0,
|
|
154
|
+
multigraph: !0
|
|
155
|
+
});
|
|
156
|
+
let s, m = !0;
|
|
157
|
+
for (s = 0; s < e.length; s++)
|
|
158
|
+
if (e[s].stmt === "relation") {
|
|
159
|
+
m = !1;
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
162
|
+
d ? a.setGraph({
|
|
163
|
+
rankdir: "LR",
|
|
164
|
+
multigraph: !0,
|
|
165
|
+
compound: !0,
|
|
166
|
+
// acyclicer: 'greedy',
|
|
167
|
+
ranker: "tight-tree",
|
|
168
|
+
ranksep: m ? 1 : b.edgeLengthFactor,
|
|
169
|
+
nodeSep: m ? 1 : 50,
|
|
170
|
+
isMultiGraph: !0
|
|
171
|
+
// ranksep: 5,
|
|
172
|
+
// nodesep: 1
|
|
173
|
+
}) : a.setGraph({
|
|
174
|
+
rankdir: "TB",
|
|
175
|
+
multigraph: !0,
|
|
176
|
+
compound: !0,
|
|
177
|
+
// isCompound: true,
|
|
178
|
+
// acyclicer: 'greedy',
|
|
179
|
+
// ranker: 'longest-path'
|
|
180
|
+
ranksep: m ? 1 : b.edgeLengthFactor,
|
|
181
|
+
nodeSep: m ? 1 : 50,
|
|
182
|
+
ranker: "tight-tree",
|
|
183
|
+
// ranker: 'network-simplex'
|
|
184
|
+
isMultiGraph: !0
|
|
185
|
+
}), a.setDefaultEdgeLabel(function() {
|
|
186
|
+
return {};
|
|
187
|
+
});
|
|
188
|
+
const x = p.db.getStates(), g = p.db.getRelations(), o = Object.keys(x);
|
|
189
|
+
for (const r of o) {
|
|
190
|
+
const u = x[r];
|
|
191
|
+
d && (u.parentId = d);
|
|
192
|
+
let h;
|
|
193
|
+
if (u.doc) {
|
|
194
|
+
let w = i.append("g").attr("id", u.id).attr("class", "stateGroup");
|
|
195
|
+
h = A(u.doc, w, u.id, !c, n, l, p);
|
|
196
|
+
{
|
|
197
|
+
w = $(w, u, c);
|
|
198
|
+
let E = w.node().getBBox();
|
|
199
|
+
h.width = E.width, h.height = E.height + b.padding / 2, T[u.id] = { y: b.compositTitleSize };
|
|
200
|
+
}
|
|
201
|
+
} else
|
|
202
|
+
h = L(i, u, a);
|
|
203
|
+
if (u.note) {
|
|
204
|
+
const w = {
|
|
205
|
+
descriptions: [],
|
|
206
|
+
id: u.id + "-note",
|
|
207
|
+
note: u.note,
|
|
208
|
+
type: "note"
|
|
209
|
+
}, E = L(i, w, a);
|
|
210
|
+
u.note.position === "left of" ? (a.setNode(h.id + "-note", E), a.setNode(h.id, h)) : (a.setNode(h.id, h), a.setNode(h.id + "-note", E)), a.setParent(h.id, h.id + "-group"), a.setParent(h.id + "-note", h.id + "-group");
|
|
211
|
+
} else
|
|
212
|
+
a.setNode(h.id, h);
|
|
213
|
+
}
|
|
214
|
+
S.debug("Count=", a.nodeCount(), a);
|
|
215
|
+
let B = 0;
|
|
216
|
+
g.forEach(function(r) {
|
|
217
|
+
B++, S.debug("Setting edge", r), a.setEdge(
|
|
218
|
+
r.id1,
|
|
219
|
+
r.id2,
|
|
220
|
+
{
|
|
221
|
+
relation: r,
|
|
222
|
+
width: at(r.title),
|
|
223
|
+
height: b.labelHeight * z.getRows(r.title).length,
|
|
224
|
+
labelpos: "c"
|
|
225
|
+
},
|
|
226
|
+
"id" + B
|
|
227
|
+
);
|
|
228
|
+
}), O(a), S.debug("Graph after layout", a.nodes());
|
|
229
|
+
const y = i.node();
|
|
230
|
+
a.nodes().forEach(function(r) {
|
|
231
|
+
r !== void 0 && a.node(r) !== void 0 ? (S.warn("Node " + r + ": " + JSON.stringify(a.node(r))), n.select("#" + y.id + " #" + r).attr(
|
|
232
|
+
"transform",
|
|
233
|
+
"translate(" + (a.node(r).x - a.node(r).width / 2) + "," + (a.node(r).y + (T[r] ? T[r].y : 0) - a.node(r).height / 2) + " )"
|
|
234
|
+
), n.select("#" + y.id + " #" + r).attr("data-x-shift", a.node(r).x - a.node(r).width / 2), l.querySelectorAll("#" + y.id + " #" + r + " .divider").forEach((h) => {
|
|
235
|
+
const w = h.parentElement;
|
|
236
|
+
let E = 0, M = 0;
|
|
237
|
+
w && (w.parentElement && (E = w.parentElement.getBBox().width), M = parseInt(w.getAttribute("data-x-shift"), 10), Number.isNaN(M) && (M = 0)), h.setAttribute("x1", 0 - M + 8), h.setAttribute("x2", E - M - 8);
|
|
238
|
+
})) : S.debug("No Node " + r + ": " + JSON.stringify(a.node(r)));
|
|
239
|
+
});
|
|
240
|
+
let v = y.getBBox();
|
|
241
|
+
a.edges().forEach(function(r) {
|
|
242
|
+
r !== void 0 && a.edge(r) !== void 0 && (S.debug("Edge " + r.v + " -> " + r.w + ": " + JSON.stringify(a.edge(r))), Q(i, a.edge(r), a.edge(r).relation));
|
|
243
|
+
}), v = y.getBBox();
|
|
244
|
+
const k = {
|
|
245
|
+
id: d || "root",
|
|
246
|
+
label: d || "root",
|
|
247
|
+
width: 0,
|
|
248
|
+
height: 0
|
|
249
|
+
};
|
|
250
|
+
return k.width = v.width + 2 * b.padding, k.height = v.height + 2 * b.padding, S.debug("Doc rendered", k, a), k;
|
|
251
|
+
}, "renderDoc"), it = {
|
|
252
|
+
setConf: V,
|
|
253
|
+
draw: et
|
|
254
|
+
}, ht = {
|
|
255
|
+
parser: R,
|
|
256
|
+
get db() {
|
|
257
|
+
return new N(1);
|
|
258
|
+
},
|
|
259
|
+
renderer: it,
|
|
260
|
+
styles: P,
|
|
261
|
+
init: /* @__PURE__ */ f((e) => {
|
|
262
|
+
e.state || (e.state = {}), e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
|
|
263
|
+
}, "init")
|
|
264
|
+
};
|
|
265
|
+
export {
|
|
266
|
+
ht as diagram
|
|
267
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { s as t, b as r, a, S as s } from "./chunk-EX3LRPZG.L693y8d4.js";
|
|
2
|
+
import { _ as i } from "./mermaid.core.Dspbw7Ig.js";
|
|
3
|
+
import "./index.CrhRU5m8.js";
|
|
4
|
+
import "./transform.BuqENXeT.js";
|
|
5
|
+
var l = {
|
|
6
|
+
parser: a,
|
|
7
|
+
get db() {
|
|
8
|
+
return new s(2);
|
|
9
|
+
},
|
|
10
|
+
renderer: r,
|
|
11
|
+
styles: t,
|
|
12
|
+
init: /* @__PURE__ */ i((e) => {
|
|
13
|
+
e.state || (e.state = {}), e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
|
|
14
|
+
}, "init")
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
l as diagram
|
|
18
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
function n(t, i) {
|
|
2
|
+
this._context = t, this._t = i;
|
|
3
|
+
}
|
|
4
|
+
n.prototype = {
|
|
5
|
+
areaStart: function() {
|
|
6
|
+
this._line = 0;
|
|
7
|
+
},
|
|
8
|
+
areaEnd: function() {
|
|
9
|
+
this._line = NaN;
|
|
10
|
+
},
|
|
11
|
+
lineStart: function() {
|
|
12
|
+
this._x = this._y = NaN, this._point = 0;
|
|
13
|
+
},
|
|
14
|
+
lineEnd: function() {
|
|
15
|
+
0 < this._t && this._t < 1 && this._point === 2 && this._context.lineTo(this._x, this._y), (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line >= 0 && (this._t = 1 - this._t, this._line = 1 - this._line);
|
|
16
|
+
},
|
|
17
|
+
point: function(t, i) {
|
|
18
|
+
switch (t = +t, i = +i, this._point) {
|
|
19
|
+
case 0:
|
|
20
|
+
this._point = 1, this._line ? this._context.lineTo(t, i) : this._context.moveTo(t, i);
|
|
21
|
+
break;
|
|
22
|
+
case 1:
|
|
23
|
+
this._point = 2;
|
|
24
|
+
// falls through
|
|
25
|
+
default: {
|
|
26
|
+
if (this._t <= 0)
|
|
27
|
+
this._context.lineTo(this._x, i), this._context.lineTo(t, i);
|
|
28
|
+
else {
|
|
29
|
+
var e = this._x * (1 - this._t) + t * this._t;
|
|
30
|
+
this._context.lineTo(e, this._y), this._context.lineTo(e, i);
|
|
31
|
+
}
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
this._x = t, this._y = i;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
function s(t) {
|
|
39
|
+
return new n(t, 0.5);
|
|
40
|
+
}
|
|
41
|
+
function h(t) {
|
|
42
|
+
return new n(t, 0);
|
|
43
|
+
}
|
|
44
|
+
function _(t) {
|
|
45
|
+
return new n(t, 1);
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
h as a,
|
|
49
|
+
s as c,
|
|
50
|
+
_ as s
|
|
51
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { C as Te, B as Oe, G as Le, D as ma, x as ve,
|
|
2
|
-
import { M as Xi, S as Ta, L as Bi, B as ai, E as Na } from "./SpriteResizer.
|
|
3
|
-
import { a as Ri, G as wi, A as Ci } from "./CandlestickSeries.
|
|
4
|
-
import { B as Ma } from "./BaseColumnSeries.
|
|
5
|
-
import { C as Qe } from "./ColumnSeries.
|
|
6
|
-
import { C as Di } from "./Circle.
|
|
7
|
-
import { T as La } from "./Triangle.
|
|
8
|
-
import { E as Ea } from "./EditableLabel.
|
|
9
|
-
import { Serializer as Hi } from "./json.
|
|
1
|
+
import { C as Te, B as Oe, G as Le, D as ma, x as ve, aO as pi, ak as se, q as Fe, d as S, H as W, k as ge, aj as Pi, f as fi, E as at, c as J, bf as Ke, bg as lt, bh as Ii, s as Xe, e as A, af as si, bi as Ns, M as dt, aa as V, ac as va, ab as Ti, z as Q, bj as Ni, a7 as qe, aV as H, bk as Hs, m as ct, aW as _a, av as mi, an as Dt, w as Mi, a2 as Li, ao as He, _ as _e, L as ke, T as re, as as Ei, ar as Yi, N as xa, au as vi, aq as ya, V as St, at as ba, a as ne, t as zs, i as ii, aU as _i, bl as $e, W as rt, al as Ws, ah as Fi, j as xi, h as yi, a5 as ka, aB as bi, F as wa, I as Ca, b as Oi, R as Da, a0 as Sa, bm as Se, ap as Aa, bn as Pa, a9 as ki, bo as Vi, bp as Ia, bq as yt } from "./am-chart.Cr-vMjcY.js";
|
|
2
|
+
import { M as Xi, S as Ta, L as Bi, B as ai, E as Na } from "./SpriteResizer.Ci2Wt2YJ.js";
|
|
3
|
+
import { a as Ri, G as wi, A as Ci } from "./CandlestickSeries.DuadaOTa.js";
|
|
4
|
+
import { B as Ma } from "./BaseColumnSeries.8Mpxz385.js";
|
|
5
|
+
import { C as Qe } from "./ColumnSeries.D1NLfRh5.js";
|
|
6
|
+
import { C as Di } from "./Circle.6LomW0ej.js";
|
|
7
|
+
import { T as La } from "./Triangle.C75emy3D.js";
|
|
8
|
+
import { E as Ea } from "./EditableLabel.CMR3O9E-.js";
|
|
9
|
+
import { Serializer as Hi } from "./json.Dz5QFEi5.js";
|
|
10
10
|
class At extends Te {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments), this.upButton = this.children.push(Oe.new(this._root, {
|