@king-design/vue 2.0.0-beta.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/components/affix/index.d.ts +32 -0
- package/components/affix/index.js +35 -0
- package/components/affix/index.spec.d.ts +4 -0
- package/components/affix/index.spec.js +132 -0
- package/components/affix/index.vdt.js +35 -0
- package/components/affix/styles.d.ts +5 -0
- package/components/affix/styles.js +18 -0
- package/components/affix/useStyle.d.ts +8 -0
- package/components/affix/useStyle.js +125 -0
- package/components/badge/index.d.ts +13 -0
- package/components/badge/index.js +21 -0
- package/components/badge/index.vdt.js +32 -0
- package/components/badge/styles.d.ts +5 -0
- package/components/badge/styles.js +28 -0
- package/components/breadcrumb/index.d.ts +18 -0
- package/components/breadcrumb/index.js +28 -0
- package/components/breadcrumb/index.spec.d.ts +4 -0
- package/components/breadcrumb/index.spec.js +46 -0
- package/components/breadcrumb/index.vdt.js +62 -0
- package/components/breadcrumb/item.d.ts +13 -0
- package/components/breadcrumb/item.js +52 -0
- package/components/breadcrumb/item.vdt.js +27 -0
- package/components/breadcrumb/styles.d.ts +5 -0
- package/components/breadcrumb/styles.js +30 -0
- package/components/button/constants.d.ts +4 -0
- package/components/button/constants.js +3 -0
- package/components/button/dynamicButton.d.ts +11 -0
- package/components/button/dynamicButton.js +24 -0
- package/components/button/group.d.ts +17 -0
- package/components/button/group.js +51 -0
- package/components/button/group.vdt.js +29 -0
- package/components/button/index.d.ts +51 -0
- package/components/button/index.js +121 -0
- package/components/button/index.spec.d.ts +4 -0
- package/components/button/index.spec.js +129 -0
- package/components/button/index.vdt.js +95 -0
- package/components/button/styles.d.ts +11 -0
- package/components/button/styles.js +257 -0
- package/components/card/column.d.ts +12 -0
- package/components/card/column.js +20 -0
- package/components/card/column.vdt.js +38 -0
- package/components/card/index.d.ts +21 -0
- package/components/card/index.js +29 -0
- package/components/card/index.vdt.js +79 -0
- package/components/card/styles.d.ts +5 -0
- package/components/card/styles.js +23 -0
- package/components/carousel/index.d.ts +26 -0
- package/components/carousel/index.js +106 -0
- package/components/carousel/index.spec.d.ts +4 -0
- package/components/carousel/index.spec.js +200 -0
- package/components/carousel/index.vdt.js +79 -0
- package/components/carousel/item.d.ts +12 -0
- package/components/carousel/item.js +20 -0
- package/components/carousel/item.vdt.js +35 -0
- package/components/carousel/styles.d.ts +6 -0
- package/components/carousel/styles.js +46 -0
- package/components/carousel/useAutoplay.d.ts +7 -0
- package/components/carousel/useAutoplay.js +37 -0
- package/components/carousel/useItems.d.ts +9 -0
- package/components/carousel/useItems.js +93 -0
- package/components/carousel/useSlide.d.ts +12 -0
- package/components/carousel/useSlide.js +191 -0
- package/components/cascader/index.d.ts +37 -0
- package/components/cascader/index.js +93 -0
- package/components/cascader/index.spec.d.ts +4 -0
- package/components/cascader/index.spec.js +283 -0
- package/components/cascader/index.vdt.js +151 -0
- package/components/cascader/styles.d.ts +6 -0
- package/components/cascader/styles.js +52 -0
- package/components/cascader/useFilterable.d.ts +11 -0
- package/components/cascader/useFilterable.js +65 -0
- package/components/cascader/useLabel.d.ts +6 -0
- package/components/cascader/useLabel.js +43 -0
- package/components/cascader/useLoad.d.ts +5 -0
- package/components/cascader/useLoad.js +54 -0
- package/components/cascader/useValue.d.ts +14 -0
- package/components/cascader/useValue.js +125 -0
- package/components/checkbox/index.d.ts +27 -0
- package/components/checkbox/index.js +122 -0
- package/components/checkbox/index.spec.d.ts +4 -0
- package/components/checkbox/index.spec.js +217 -0
- package/components/checkbox/index.vdt.js +67 -0
- package/components/checkbox/styles.d.ts +5 -0
- package/components/checkbox/styles.js +77 -0
- package/components/code/crossDomain.d.ts +4 -0
- package/components/code/crossDomain.js +48 -0
- package/components/code/index.d.ts +26 -0
- package/components/code/index.js +58 -0
- package/components/code/index.spec.d.ts +4 -0
- package/components/code/index.spec.js +73 -0
- package/components/code/index.vdt.js +54 -0
- package/components/code/styles.d.ts +5 -0
- package/components/code/styles.js +16 -0
- package/components/code/useEditor.d.ts +9 -0
- package/components/code/useEditor.js +81 -0
- package/components/collapse/index.d.ts +23 -0
- package/components/collapse/index.js +57 -0
- package/components/collapse/index.spec.d.ts +4 -0
- package/components/collapse/index.spec.js +84 -0
- package/components/collapse/index.vdt.js +47 -0
- package/components/collapse/item.d.ts +24 -0
- package/components/collapse/item.js +52 -0
- package/components/collapse/item.vdt.js +64 -0
- package/components/collapse/styles.d.ts +7 -0
- package/components/collapse/styles.js +33 -0
- package/components/colorpicker/drag.d.ts +18 -0
- package/components/colorpicker/drag.js +27 -0
- package/components/colorpicker/drag.vdt.js +12 -0
- package/components/colorpicker/index.d.ts +18 -0
- package/components/colorpicker/index.js +35 -0
- package/components/colorpicker/index.spec.d.ts +4 -0
- package/components/colorpicker/index.spec.js +312 -0
- package/components/colorpicker/index.vdt.js +54 -0
- package/components/colorpicker/panel.d.ts +14 -0
- package/components/colorpicker/panel.js +31 -0
- package/components/colorpicker/panel.vdt.js +166 -0
- package/components/colorpicker/styles.d.ts +8 -0
- package/components/colorpicker/styles.js +135 -0
- package/components/colorpicker/useDrag.d.ts +6 -0
- package/components/colorpicker/useDrag.js +42 -0
- package/components/colorpicker/useInput.d.ts +19 -0
- package/components/colorpicker/useInput.js +78 -0
- package/components/colorpicker/usePointer.d.ts +9 -0
- package/components/colorpicker/usePointer.js +53 -0
- package/components/colorpicker/useValue.d.ts +14 -0
- package/components/colorpicker/useValue.js +58 -0
- package/components/context.d.ts +14 -0
- package/components/context.js +90 -0
- package/components/datepicker/basepicker.d.ts +62 -0
- package/components/datepicker/basepicker.js +341 -0
- package/components/datepicker/calendar.d.ts +81 -0
- package/components/datepicker/calendar.js +66 -0
- package/components/datepicker/calendar.vdt.js +128 -0
- package/components/datepicker/constants.d.ts +16 -0
- package/components/datepicker/constants.js +20 -0
- package/components/datepicker/dayjs.d.ts +6 -0
- package/components/datepicker/dayjs.js +6 -0
- package/components/datepicker/helpers.d.ts +13 -0
- package/components/datepicker/helpers.js +86 -0
- package/components/datepicker/index.d.ts +66 -0
- package/components/datepicker/index.js +123 -0
- package/components/datepicker/index.spec.d.ts +4 -0
- package/components/datepicker/index.spec.js +1703 -0
- package/components/datepicker/index.vdt.js +142 -0
- package/components/datepicker/shortcuts.d.ts +24 -0
- package/components/datepicker/shortcuts.js +140 -0
- package/components/datepicker/styles.d.ts +9 -0
- package/components/datepicker/styles.js +89 -0
- package/components/datepicker/time.d.ts +33 -0
- package/components/datepicker/time.js +107 -0
- package/components/datepicker/time.vdt.js +48 -0
- package/components/datepicker/useDays.d.ts +19 -0
- package/components/datepicker/useDays.js +47 -0
- package/components/datepicker/useDisabled.d.ts +14 -0
- package/components/datepicker/useDisabled.js +97 -0
- package/components/datepicker/useFocusDate.d.ts +8 -0
- package/components/datepicker/useFocusDate.js +18 -0
- package/components/datepicker/useFormats.d.ts +13 -0
- package/components/datepicker/useFormats.js +57 -0
- package/components/datepicker/useKeyboards.d.ts +8 -0
- package/components/datepicker/useKeyboards.js +98 -0
- package/components/datepicker/useMonths.d.ts +18 -0
- package/components/datepicker/useMonths.js +47 -0
- package/components/datepicker/usePanel.d.ts +21 -0
- package/components/datepicker/usePanel.js +57 -0
- package/components/datepicker/useShowDate.d.ts +19 -0
- package/components/datepicker/useShowDate.js +160 -0
- package/components/datepicker/useStatus.d.ts +11 -0
- package/components/datepicker/useStatus.js +62 -0
- package/components/datepicker/useValue.d.ts +19 -0
- package/components/datepicker/useValue.js +84 -0
- package/components/datepicker/useYears.d.ts +21 -0
- package/components/datepicker/useYears.js +72 -0
- package/components/diagram/constants.d.ts +6 -0
- package/components/diagram/constants.js +5 -0
- package/components/diagram/defaultStyle.d.ts +117 -0
- package/components/diagram/defaultStyle.js +116 -0
- package/components/diagram/diagram.d.ts +43 -0
- package/components/diagram/diagram.js +176 -0
- package/components/diagram/diagram.vdt.js +25 -0
- package/components/diagram/graph.d.ts +5 -0
- package/components/diagram/graph.js +30 -0
- package/components/diagram/index.d.ts +25 -0
- package/components/diagram/index.js +30 -0
- package/components/diagram/index.spec.d.ts +4 -0
- package/components/diagram/index.spec.js +631 -0
- package/components/diagram/layouts/circle.d.ts +19 -0
- package/components/diagram/layouts/circle.js +56 -0
- package/components/diagram/layouts/flow.d.ts +19 -0
- package/components/diagram/layouts/flow.js +69 -0
- package/components/diagram/layouts/layout.d.ts +28 -0
- package/components/diagram/layouts/layout.js +113 -0
- package/components/diagram/layouts/organic.d.ts +18 -0
- package/components/diagram/layouts/organic.js +51 -0
- package/components/diagram/layouts/partition.d.ts +17 -0
- package/components/diagram/layouts/partition.js +55 -0
- package/components/diagram/layouts/radial.d.ts +21 -0
- package/components/diagram/layouts/radial.js +72 -0
- package/components/diagram/layouts/stack.d.ts +19 -0
- package/components/diagram/layouts/stack.js +66 -0
- package/components/diagram/layouts/tree.d.ts +22 -0
- package/components/diagram/layouts/tree.js +77 -0
- package/components/diagram/mxgraph/handler/mxConnectionHandler.d.ts +4 -0
- package/components/diagram/mxgraph/handler/mxConnectionHandler.js +53 -0
- package/components/diagram/mxgraph/handler/mxConstraintHandler.d.ts +5 -0
- package/components/diagram/mxgraph/handler/mxConstraintHandler.js +16 -0
- package/components/diagram/mxgraph/handler/mxEdgeHandler.d.ts +5 -0
- package/components/diagram/mxgraph/handler/mxEdgeHandler.js +45 -0
- package/components/diagram/mxgraph/handler/mxGraphHandler.d.ts +4 -0
- package/components/diagram/mxgraph/handler/mxGraphHandler.js +25 -0
- package/components/diagram/mxgraph/handler/mxRubberband.d.ts +4 -0
- package/components/diagram/mxgraph/handler/mxRubberband.js +10 -0
- package/components/diagram/mxgraph/handler/mxVertexHandler.d.ts +7 -0
- package/components/diagram/mxgraph/handler/mxVertexHandler.js +32 -0
- package/components/diagram/mxgraph/index.d.ts +5 -0
- package/components/diagram/mxgraph/index.js +49 -0
- package/components/diagram/mxgraph/mx.d.ts +6 -0
- package/components/diagram/mxgraph/mx.js +16 -0
- package/components/diagram/mxgraph/shape/mxCloud.d.ts +4 -0
- package/components/diagram/mxgraph/shape/mxCloud.js +9 -0
- package/components/diagram/mxgraph/shape/mxCylinder.d.ts +4 -0
- package/components/diagram/mxgraph/shape/mxCylinder.js +32 -0
- package/components/diagram/mxgraph/shape/mxEllipse.d.ts +4 -0
- package/components/diagram/mxgraph/shape/mxEllipse.js +9 -0
- package/components/diagram/mxgraph/shape/mxHexagon.d.ts +4 -0
- package/components/diagram/mxgraph/shape/mxHexagon.js +9 -0
- package/components/diagram/mxgraph/shape/mxLine.d.ts +4 -0
- package/components/diagram/mxgraph/shape/mxLine.js +9 -0
- package/components/diagram/mxgraph/shape/mxRectangleShape.d.ts +4 -0
- package/components/diagram/mxgraph/shape/mxRectangleShape.js +9 -0
- package/components/diagram/mxgraph/shape/mxRhombus.d.ts +4 -0
- package/components/diagram/mxgraph/shape/mxRhombus.js +41 -0
- package/components/diagram/mxgraph/shape/mxShape.d.ts +4 -0
- package/components/diagram/mxgraph/shape/mxShape.js +10 -0
- package/components/diagram/mxgraph/shape/mxTriangle.d.ts +4 -0
- package/components/diagram/mxgraph/shape/mxTriangle.js +9 -0
- package/components/diagram/mxgraph/util/mxConstants.d.ts +4 -0
- package/components/diagram/mxgraph/util/mxConstants.js +21 -0
- package/components/diagram/mxgraph/util/mxGuide.d.ts +4 -0
- package/components/diagram/mxgraph/util/mxGuide.js +22 -0
- package/components/diagram/mxgraph/view/mxCellEditor.d.ts +4 -0
- package/components/diagram/mxgraph/view/mxCellEditor.js +96 -0
- package/components/diagram/mxgraph/view/mxCellRenderer.d.ts +4 -0
- package/components/diagram/mxgraph/view/mxCellRenderer.js +15 -0
- package/components/diagram/mxgraph/view/mxGraph.d.ts +4 -0
- package/components/diagram/mxgraph/view/mxGraph.js +141 -0
- package/components/diagram/shapes/base.d.ts +45 -0
- package/components/diagram/shapes/base.js +156 -0
- package/components/diagram/shapes/callout.d.ts +24 -0
- package/components/diagram/shapes/callout.js +80 -0
- package/components/diagram/shapes/circle.d.ts +25 -0
- package/components/diagram/shapes/circle.js +38 -0
- package/components/diagram/shapes/document.d.ts +24 -0
- package/components/diagram/shapes/document.js +71 -0
- package/components/diagram/shapes/ellipse.d.ts +24 -0
- package/components/diagram/shapes/ellipse.js +30 -0
- package/components/diagram/shapes/generateShapes.d.ts +32 -0
- package/components/diagram/shapes/generateShapes.js +62 -0
- package/components/diagram/shapes/hexagon.d.ts +24 -0
- package/components/diagram/shapes/hexagon.js +101 -0
- package/components/diagram/shapes/image.d.ts +30 -0
- package/components/diagram/shapes/image.js +38 -0
- package/components/diagram/shapes/line.d.ts +46 -0
- package/components/diagram/shapes/line.js +193 -0
- package/components/diagram/shapes/parallelogram.d.ts +24 -0
- package/components/diagram/shapes/parallelogram.js +103 -0
- package/components/diagram/shapes/rectangle.d.ts +30 -0
- package/components/diagram/shapes/rectangle.js +38 -0
- package/components/diagram/shapes/shape.d.ts +35 -0
- package/components/diagram/shapes/shape.js +153 -0
- package/components/diagram/shapes/square.d.ts +26 -0
- package/components/diagram/shapes/square.js +40 -0
- package/components/diagram/shapes/text.d.ts +24 -0
- package/components/diagram/shapes/text.js +28 -0
- package/components/diagram/styles.d.ts +5 -0
- package/components/diagram/styles.js +16 -0
- package/components/dialog/alert.vdt.js +71 -0
- package/components/dialog/base.d.ts +70 -0
- package/components/dialog/base.js +167 -0
- package/components/dialog/base.vdt.js +146 -0
- package/components/dialog/constants.d.ts +6 -0
- package/components/dialog/constants.js +5 -0
- package/components/dialog/index.d.ts +24 -0
- package/components/dialog/index.js +104 -0
- package/components/dialog/index.spec.d.ts +4 -0
- package/components/dialog/index.spec.js +654 -0
- package/components/dialog/staticMethods.d.ts +13 -0
- package/components/dialog/staticMethods.js +66 -0
- package/components/dialog/styles.d.ts +7 -0
- package/components/dialog/styles.js +100 -0
- package/components/dialog/useDraggable.d.ts +8 -0
- package/components/dialog/useDraggable.js +56 -0
- package/components/dialog/useEscClosable.d.ts +4 -0
- package/components/dialog/useEscClosable.js +46 -0
- package/components/dialog/useFixBody.d.ts +5 -0
- package/components/dialog/useFixBody.js +71 -0
- package/components/dialog/usePosition.d.ts +5 -0
- package/components/dialog/usePosition.js +42 -0
- package/components/drawer/index.d.ts +14 -0
- package/components/drawer/index.js +30 -0
- package/components/drawer/index.spec.d.ts +4 -0
- package/components/drawer/index.spec.js +164 -0
- package/components/drawer/index.vdt.js +38 -0
- package/components/drawer/styles.d.ts +9 -0
- package/components/drawer/styles.js +45 -0
- package/components/dropdown/dropdown.d.ts +60 -0
- package/components/dropdown/dropdown.js +314 -0
- package/components/dropdown/index.d.ts +12 -0
- package/components/dropdown/index.js +39 -0
- package/components/dropdown/index.spec.d.ts +4 -0
- package/components/dropdown/index.spec.js +488 -0
- package/components/dropdown/item.d.ts +29 -0
- package/components/dropdown/item.js +117 -0
- package/components/dropdown/item.vdt.js +32 -0
- package/components/dropdown/menu.d.ts +24 -0
- package/components/dropdown/menu.js +108 -0
- package/components/dropdown/menu.vdt.js +53 -0
- package/components/dropdown/styles.d.ts +6 -0
- package/components/dropdown/styles.js +58 -0
- package/components/dropdown/useKeyboard.d.ts +26 -0
- package/components/dropdown/useKeyboard.js +195 -0
- package/components/dropdown/usePosition.d.ts +11 -0
- package/components/dropdown/usePosition.js +115 -0
- package/components/dropdown/useTransition.d.ts +11 -0
- package/components/dropdown/useTransition.js +80 -0
- package/components/editable/index.d.ts +32 -0
- package/components/editable/index.js +133 -0
- package/components/editable/index.spec.d.ts +4 -0
- package/components/editable/index.spec.js +225 -0
- package/components/editable/index.vdt.js +47 -0
- package/components/editable/styles.d.ts +7 -0
- package/components/editable/styles.js +27 -0
- package/components/form/form.d.ts +41 -0
- package/components/form/form.js +103 -0
- package/components/form/form.vdt.js +29 -0
- package/components/form/index.d.ts +5 -0
- package/components/form/index.js +4 -0
- package/components/form/index.spec.d.ts +4 -0
- package/components/form/index.spec.js +1322 -0
- package/components/form/item.d.ts +40 -0
- package/components/form/item.js +76 -0
- package/components/form/item.vdt.js +130 -0
- package/components/form/methods.d.ts +10 -0
- package/components/form/methods.js +175 -0
- package/components/form/styles.d.ts +6 -0
- package/components/form/styles.js +63 -0
- package/components/form/useDirty.d.ts +9 -0
- package/components/form/useDirty.js +41 -0
- package/components/form/useError.d.ts +11 -0
- package/components/form/useError.js +59 -0
- package/components/form/useValidate.d.ts +14 -0
- package/components/form/useValidate.js +118 -0
- package/components/grid/col.d.ts +20 -0
- package/components/grid/col.js +43 -0
- package/components/grid/col.vdt.js +42 -0
- package/components/grid/constants.d.ts +19 -0
- package/components/grid/constants.js +14 -0
- package/components/grid/index.d.ts +5 -0
- package/components/grid/index.js +4 -0
- package/components/grid/row.d.ts +15 -0
- package/components/grid/row.js +34 -0
- package/components/grid/row.vdt.js +36 -0
- package/components/grid/styles.d.ts +6 -0
- package/components/grid/styles.js +56 -0
- package/components/grid/useBreakpoints.d.ts +6 -0
- package/components/grid/useBreakpoints.js +51 -0
- package/components/grid/useGutter.d.ts +11 -0
- package/components/grid/useGutter.js +104 -0
- package/components/icon/index.d.ts +18 -0
- package/components/icon/index.js +48 -0
- package/components/icon/index.vdt.js +50 -0
- package/components/icon/styles.d.ts +9 -0
- package/components/icon/styles.js +35 -0
- package/components/input/index.d.ts +58 -0
- package/components/input/index.js +99 -0
- package/components/input/index.spec.d.ts +4 -0
- package/components/input/index.spec.js +129 -0
- package/components/input/index.vdt.js +126 -0
- package/components/input/search.d.ts +29 -0
- package/components/input/search.js +102 -0
- package/components/input/search.vdt.js +52 -0
- package/components/input/styles.d.ts +6 -0
- package/components/input/styles.js +132 -0
- package/components/input/useAutoWidth.d.ts +7 -0
- package/components/input/useAutoWidth.js +31 -0
- package/components/input/useFrozen.d.ts +12 -0
- package/components/input/useFrozen.js +49 -0
- package/components/layout/aside.d.ts +18 -0
- package/components/layout/aside.js +68 -0
- package/components/layout/aside.vdt.js +44 -0
- package/components/layout/body.d.ts +10 -0
- package/components/layout/body.js +57 -0
- package/components/layout/footer.d.ts +8 -0
- package/components/layout/footer.js +28 -0
- package/components/layout/header.d.ts +19 -0
- package/components/layout/header.js +76 -0
- package/components/layout/helpers.d.ts +8 -0
- package/components/layout/helpers.js +10 -0
- package/components/layout/index.d.ts +8 -0
- package/components/layout/index.js +7 -0
- package/components/layout/layout.d.ts +18 -0
- package/components/layout/layout.js +75 -0
- package/components/layout/styles.d.ts +9 -0
- package/components/layout/styles.js +81 -0
- package/components/layout/template.vdt.js +20 -0
- package/components/layout/useParse.d.ts +10 -0
- package/components/layout/useParse.js +65 -0
- package/components/menu/index.d.ts +5 -0
- package/components/menu/index.js +4 -0
- package/components/menu/index.spec.d.ts +4 -0
- package/components/menu/index.spec.js +218 -0
- package/components/menu/item.d.ts +29 -0
- package/components/menu/item.js +88 -0
- package/components/menu/item.vdt.js +103 -0
- package/components/menu/menu.d.ts +29 -0
- package/components/menu/menu.js +61 -0
- package/components/menu/menu.vdt.js +57 -0
- package/components/menu/styles.d.ts +9 -0
- package/components/menu/styles.js +138 -0
- package/components/menu/useDropdown.d.ts +19 -0
- package/components/menu/useDropdown.js +83 -0
- package/components/menu/useExpanded.d.ts +13 -0
- package/components/menu/useExpanded.js +80 -0
- package/components/menu/useHighlight.d.ts +13 -0
- package/components/menu/useHighlight.js +60 -0
- package/components/message/index.d.ts +4 -0
- package/components/message/index.js +3 -0
- package/components/message/index.spec.d.ts +4 -0
- package/components/message/index.spec.js +97 -0
- package/components/message/message.d.ts +23 -0
- package/components/message/message.js +112 -0
- package/components/message/message.vdt.js +54 -0
- package/components/message/messages.d.ts +11 -0
- package/components/message/messages.js +51 -0
- package/components/message/messages.vdt.js +20 -0
- package/components/message/styles.d.ts +6 -0
- package/components/message/styles.js +62 -0
- package/components/pagination/index.d.ts +40 -0
- package/components/pagination/index.js +167 -0
- package/components/pagination/index.spec.d.ts +4 -0
- package/components/pagination/index.spec.js +146 -0
- package/components/pagination/index.vdt.js +173 -0
- package/components/pagination/styles.d.ts +5 -0
- package/components/pagination/styles.js +65 -0
- package/components/portal.d.ts +23 -0
- package/components/portal.js +148 -0
- package/components/position.d.ts +77 -0
- package/components/position.js +489 -0
- package/components/progress/index.d.ts +31 -0
- package/components/progress/index.js +72 -0
- package/components/progress/index.spec.d.ts +4 -0
- package/components/progress/index.spec.js +235 -0
- package/components/progress/index.vdt.js +82 -0
- package/components/progress/styles.d.ts +6 -0
- package/components/progress/styles.js +88 -0
- package/components/progress/useColor.d.ts +7 -0
- package/components/progress/useColor.js +36 -0
- package/components/progress/useStatus.d.ts +4 -0
- package/components/progress/useStatus.js +24 -0
- package/components/radio/index.d.ts +24 -0
- package/components/radio/index.js +84 -0
- package/components/radio/index.spec.d.ts +4 -0
- package/components/radio/index.spec.js +192 -0
- package/components/radio/index.vdt.js +66 -0
- package/components/radio/styles.d.ts +5 -0
- package/components/radio/styles.js +49 -0
- package/components/rate/index.d.ts +25 -0
- package/components/rate/index.js +48 -0
- package/components/rate/index.spec.d.ts +4 -0
- package/components/rate/index.spec.js +112 -0
- package/components/rate/index.vdt.js +76 -0
- package/components/rate/styles.d.ts +5 -0
- package/components/rate/styles.js +28 -0
- package/components/rate/useActiveValue.d.ts +9 -0
- package/components/rate/useActiveValue.js +42 -0
- package/components/scrollSelect/index.d.ts +30 -0
- package/components/scrollSelect/index.js +48 -0
- package/components/scrollSelect/index.spec.d.ts +4 -0
- package/components/scrollSelect/index.spec.js +174 -0
- package/components/scrollSelect/index.vdt.js +59 -0
- package/components/scrollSelect/styles.d.ts +7 -0
- package/components/scrollSelect/styles.js +38 -0
- package/components/scrollSelect/useList.d.ts +9 -0
- package/components/scrollSelect/useList.js +82 -0
- package/components/scrollSelect/useMouseEvents.d.ts +12 -0
- package/components/scrollSelect/useMouseEvents.js +112 -0
- package/components/scrollSelect/useTranslate.d.ts +12 -0
- package/components/scrollSelect/useTranslate.js +78 -0
- package/components/select/base.d.ts +63 -0
- package/components/select/base.js +156 -0
- package/components/select/base.vdt.js +194 -0
- package/components/select/constants.d.ts +5 -0
- package/components/select/constants.js +4 -0
- package/components/select/group.d.ts +17 -0
- package/components/select/group.js +31 -0
- package/components/select/group.vdt.js +41 -0
- package/components/select/index.d.ts +6 -0
- package/components/select/index.js +5 -0
- package/components/select/index.spec.d.ts +4 -0
- package/components/select/index.spec.js +680 -0
- package/components/select/menu.d.ts +13 -0
- package/components/select/menu.js +31 -0
- package/components/select/menu.vdt.js +138 -0
- package/components/select/option.d.ts +16 -0
- package/components/select/option.js +74 -0
- package/components/select/option.vdt.js +65 -0
- package/components/select/select.d.ts +36 -0
- package/components/select/select.js +93 -0
- package/components/select/select.vdt.js +62 -0
- package/components/select/styles.d.ts +7 -0
- package/components/select/styles.js +201 -0
- package/components/select/useBaseLabel.d.ts +12 -0
- package/components/select/useBaseLabel.js +80 -0
- package/components/select/useCard.d.ts +11 -0
- package/components/select/useCard.js +41 -0
- package/components/select/useEqualWidth.d.ts +4 -0
- package/components/select/useEqualWidth.js +16 -0
- package/components/select/useFilterable.d.ts +10 -0
- package/components/select/useFilterable.js +120 -0
- package/components/select/useFocusout.d.ts +12 -0
- package/components/select/useFocusout.js +49 -0
- package/components/select/useInput.d.ts +10 -0
- package/components/select/useInput.js +53 -0
- package/components/select/useLabel.d.ts +8 -0
- package/components/select/useLabel.js +59 -0
- package/components/select/useSearchable.d.ts +14 -0
- package/components/select/useSearchable.js +71 -0
- package/components/slider/index.d.ts +50 -0
- package/components/slider/index.js +86 -0
- package/components/slider/index.spec.d.ts +4 -0
- package/components/slider/index.spec.js +737 -0
- package/components/slider/index.vdt.js +154 -0
- package/components/slider/styles.d.ts +5 -0
- package/components/slider/styles.js +79 -0
- package/components/slider/useClick.d.ts +9 -0
- package/components/slider/useClick.js +46 -0
- package/components/slider/useDraggable.d.ts +16 -0
- package/components/slider/useDraggable.js +107 -0
- package/components/slider/useKeyboard.d.ts +10 -0
- package/components/slider/useKeyboard.js +59 -0
- package/components/slider/useMarks.d.ts +18 -0
- package/components/slider/useMarks.js +59 -0
- package/components/slider/usePoints.d.ts +16 -0
- package/components/slider/usePoints.js +85 -0
- package/components/slider/useStyles.d.ts +12 -0
- package/components/slider/useStyles.js +69 -0
- package/components/slider/useTooltip.d.ts +13 -0
- package/components/slider/useTooltip.js +70 -0
- package/components/slider/useValue.d.ts +12 -0
- package/components/slider/useValue.js +100 -0
- package/components/spin/index.d.ts +20 -0
- package/components/spin/index.js +30 -0
- package/components/spin/index.vdt.js +51 -0
- package/components/spin/styles.d.ts +5 -0
- package/components/spin/styles.js +36 -0
- package/components/spinner/index.d.ts +47 -0
- package/components/spinner/index.js +106 -0
- package/components/spinner/index.spec.d.ts +4 -0
- package/components/spinner/index.spec.js +553 -0
- package/components/spinner/index.vdt.js +73 -0
- package/components/spinner/styles.d.ts +5 -0
- package/components/spinner/styles.js +70 -0
- package/components/spinner/useChange.d.ts +11 -0
- package/components/spinner/useChange.js +55 -0
- package/components/spinner/useFormatter.d.ts +7 -0
- package/components/spinner/useFormatter.js +49 -0
- package/components/spinner/useStep.d.ts +16 -0
- package/components/spinner/useStep.js +100 -0
- package/components/spinner/useValue.d.ts +17 -0
- package/components/spinner/useValue.js +91 -0
- package/components/split/index.d.ts +31 -0
- package/components/split/index.js +55 -0
- package/components/split/index.spec.d.ts +4 -0
- package/components/split/index.spec.js +332 -0
- package/components/split/index.vdt.js +69 -0
- package/components/split/style.d.ts +7 -0
- package/components/split/style.js +57 -0
- package/components/split/useDraggable.d.ts +11 -0
- package/components/split/useDraggable.js +151 -0
- package/components/split/useSize.d.ts +7 -0
- package/components/split/useSize.js +35 -0
- package/components/steps/context.d.ts +7 -0
- package/components/steps/context.js +4 -0
- package/components/steps/index.d.ts +17 -0
- package/components/steps/index.js +49 -0
- package/components/steps/index.spec.d.ts +4 -0
- package/components/steps/index.spec.js +44 -0
- package/components/steps/index.vdt.js +52 -0
- package/components/steps/step.d.ts +12 -0
- package/components/steps/step.js +20 -0
- package/components/steps/step.vdt.js +49 -0
- package/components/steps/styles.d.ts +6 -0
- package/components/steps/styles.js +156 -0
- package/components/switch/index.d.ts +41 -0
- package/components/switch/index.js +115 -0
- package/components/switch/index.spec.d.ts +4 -0
- package/components/switch/index.spec.js +267 -0
- package/components/switch/index.vdt.js +135 -0
- package/components/switch/styles.d.ts +5 -0
- package/components/switch/styles.js +87 -0
- package/components/switch/useDraggable.d.ts +10 -0
- package/components/switch/useDraggable.js +75 -0
- package/components/table/cell.d.ts +25 -0
- package/components/table/cell.js +34 -0
- package/components/table/cell.vdt.js +67 -0
- package/components/table/column.d.ts +38 -0
- package/components/table/column.js +50 -0
- package/components/table/column.vdt.js +149 -0
- package/components/table/exportTable.d.ts +6 -0
- package/components/table/exportTable.js +82 -0
- package/components/table/index.d.ts +5 -0
- package/components/table/index.js +4 -0
- package/components/table/index.spec.d.ts +4 -0
- package/components/table/index.spec.js +1044 -0
- package/components/table/row.d.ts +49 -0
- package/components/table/row.js +122 -0
- package/components/table/row.vdt.js +128 -0
- package/components/table/styles.d.ts +6 -0
- package/components/table/styles.js +86 -0
- package/components/table/table.d.ts +97 -0
- package/components/table/table.js +238 -0
- package/components/table/table.vdt.js +332 -0
- package/components/table/useChecked.d.ts +27 -0
- package/components/table/useChecked.js +242 -0
- package/components/table/useColumns.d.ts +19 -0
- package/components/table/useColumns.js +111 -0
- package/components/table/useDisableRow.d.ts +11 -0
- package/components/table/useDisableRow.js +59 -0
- package/components/table/useDraggable.d.ts +11 -0
- package/components/table/useDraggable.js +62 -0
- package/components/table/useExpandable.d.ts +7 -0
- package/components/table/useExpandable.js +26 -0
- package/components/table/useFixedColumns.d.ts +27 -0
- package/components/table/useFixedColumns.js +142 -0
- package/components/table/useGroup.d.ts +17 -0
- package/components/table/useGroup.js +70 -0
- package/components/table/useMerge.d.ts +18 -0
- package/components/table/useMerge.js +79 -0
- package/components/table/useResizable.d.ts +14 -0
- package/components/table/useResizable.js +62 -0
- package/components/table/useRestRowStatus.d.ts +7 -0
- package/components/table/useRestRowStatus.js +47 -0
- package/components/table/useScroll.d.ts +9 -0
- package/components/table/useScroll.js +32 -0
- package/components/table/useSelected.d.ts +7 -0
- package/components/table/useSelected.js +31 -0
- package/components/table/useSortable.d.ts +10 -0
- package/components/table/useSortable.js +36 -0
- package/components/table/useStickyHeader.d.ts +12 -0
- package/components/table/useStickyHeader.js +36 -0
- package/components/table/useStickyScrollbar.d.ts +15 -0
- package/components/table/useStickyScrollbar.js +86 -0
- package/components/table/useTree.d.ts +10 -0
- package/components/table/useTree.js +61 -0
- package/components/table/useWidth.d.ts +13 -0
- package/components/table/useWidth.js +129 -0
- package/components/tabs/constants.d.ts +4 -0
- package/components/tabs/constants.js +3 -0
- package/components/tabs/index.d.ts +30 -0
- package/components/tabs/index.js +119 -0
- package/components/tabs/index.spec.d.ts +4 -0
- package/components/tabs/index.spec.js +98 -0
- package/components/tabs/index.vdt.js +62 -0
- package/components/tabs/styles.d.ts +5 -0
- package/components/tabs/styles.js +95 -0
- package/components/tabs/tab.d.ts +19 -0
- package/components/tabs/tab.js +55 -0
- package/components/tabs/tab.vdt.js +46 -0
- package/components/tabs/useActiveBar.d.ts +4 -0
- package/components/tabs/useActiveBar.js +61 -0
- package/components/tabs/useScroll.d.ts +13 -0
- package/components/tabs/useScroll.js +116 -0
- package/components/tag/base.d.ts +26 -0
- package/components/tag/base.js +54 -0
- package/components/tag/index.d.ts +7 -0
- package/components/tag/index.js +19 -0
- package/components/tag/index.spec.d.ts +4 -0
- package/components/tag/index.spec.js +42 -0
- package/components/tag/index.vdt.js +63 -0
- package/components/tag/styles.d.ts +5 -0
- package/components/tag/styles.js +95 -0
- package/components/timeline/index.d.ts +5 -0
- package/components/timeline/index.js +4 -0
- package/components/timeline/item.d.ts +20 -0
- package/components/timeline/item.js +31 -0
- package/components/timeline/item.vdt.js +39 -0
- package/components/timeline/styles.d.ts +10 -0
- package/components/timeline/styles.js +67 -0
- package/components/timeline/timeline.d.ts +9 -0
- package/components/timeline/timeline.js +15 -0
- package/components/timeline/timeline.vdt.js +25 -0
- package/components/timepicker/constants.d.ts +18 -0
- package/components/timepicker/constants.js +15 -0
- package/components/timepicker/index.d.ts +11 -0
- package/components/timepicker/index.js +40 -0
- package/components/timepicker/index.spec.d.ts +4 -0
- package/components/timepicker/index.spec.js +425 -0
- package/components/timepicker/panelPicker.d.ts +57 -0
- package/components/timepicker/panelPicker.js +55 -0
- package/components/timepicker/panelPicker.vdt.js +109 -0
- package/components/timepicker/selectPicker.d.ts +30 -0
- package/components/timepicker/selectPicker.js +33 -0
- package/components/timepicker/selectPicker.vdt.js +57 -0
- package/components/timepicker/styles.d.ts +5 -0
- package/components/timepicker/styles.js +31 -0
- package/components/timepicker/useDisabled.d.ts +13 -0
- package/components/timepicker/useDisabled.js +20 -0
- package/components/timepicker/useFormats.d.ts +15 -0
- package/components/timepicker/useFormats.js +49 -0
- package/components/timepicker/useStep.d.ts +13 -0
- package/components/timepicker/useStep.js +70 -0
- package/components/timepicker/useValue.d.ts +19 -0
- package/components/timepicker/useValue.js +54 -0
- package/components/tip/index.d.ts +15 -0
- package/components/tip/index.js +15 -0
- package/components/tip/index.vdt.js +86 -0
- package/components/tip/styles.d.ts +5 -0
- package/components/tip/styles.js +30 -0
- package/components/tooltip/content.d.ts +21 -0
- package/components/tooltip/content.js +94 -0
- package/components/tooltip/content.vdt.js +86 -0
- package/components/tooltip/index.d.ts +16 -0
- package/components/tooltip/index.js +30 -0
- package/components/tooltip/index.spec.d.ts +4 -0
- package/components/tooltip/index.spec.js +576 -0
- package/components/tooltip/styles.d.ts +7 -0
- package/components/tooltip/styles.js +82 -0
- package/components/tooltip/tooltip.d.ts +31 -0
- package/components/tooltip/tooltip.js +78 -0
- package/components/tooltip/useArrow.d.ts +7 -0
- package/components/tooltip/useArrow.js +53 -0
- package/components/transfer/index.d.ts +51 -0
- package/components/transfer/index.js +90 -0
- package/components/transfer/index.spec.d.ts +4 -0
- package/components/transfer/index.spec.js +242 -0
- package/components/transfer/index.vdt.js +161 -0
- package/components/transfer/styles.d.ts +5 -0
- package/components/transfer/styles.js +73 -0
- package/components/transfer/useCheck.d.ts +10 -0
- package/components/transfer/useCheck.js +91 -0
- package/components/transfer/useFilter.d.ts +10 -0
- package/components/transfer/useFilter.js +113 -0
- package/components/transfer/useTransfer.d.ts +10 -0
- package/components/transfer/useTransfer.js +86 -0
- package/components/tree/index.d.ts +60 -0
- package/components/tree/index.js +124 -0
- package/components/tree/index.spec.d.ts +4 -0
- package/components/tree/index.spec.js +428 -0
- package/components/tree/index.vdt.js +134 -0
- package/components/tree/styles.d.ts +5 -0
- package/components/tree/styles.js +71 -0
- package/components/tree/useChecked.d.ts +9 -0
- package/components/tree/useChecked.js +144 -0
- package/components/tree/useDraggable.d.ts +19 -0
- package/components/tree/useDraggable.js +174 -0
- package/components/tree/useExpanded.d.ts +9 -0
- package/components/tree/useExpanded.js +96 -0
- package/components/tree/useFilter.d.ts +6 -0
- package/components/tree/useFilter.js +55 -0
- package/components/tree/useNodes.d.ts +25 -0
- package/components/tree/useNodes.js +54 -0
- package/components/tree/useSelected.d.ts +10 -0
- package/components/tree/useSelected.js +92 -0
- package/components/tree/useTransitionEvent.d.ts +11 -0
- package/components/tree/useTransitionEvent.js +23 -0
- package/components/treeSelect/index.d.ts +30 -0
- package/components/treeSelect/index.js +141 -0
- package/components/treeSelect/index.spec.d.ts +4 -0
- package/components/treeSelect/index.spec.js +210 -0
- package/components/treeSelect/index.vdt.js +68 -0
- package/components/treeSelect/styles.d.ts +5 -0
- package/components/treeSelect/styles.js +19 -0
- package/components/treeSelect/useLabel.d.ts +4 -0
- package/components/treeSelect/useLabel.js +3 -0
- package/components/treeSelect/useValue.d.ts +12 -0
- package/components/treeSelect/useValue.js +71 -0
- package/components/types.d.ts +13 -0
- package/components/types.js +3 -0
- package/components/upload/ajaxUploader.d.ts +22 -0
- package/components/upload/ajaxUploader.js +89 -0
- package/components/upload/index.d.ts +66 -0
- package/components/upload/index.js +102 -0
- package/components/upload/index.spec.d.ts +4 -0
- package/components/upload/index.spec.js +544 -0
- package/components/upload/index.vdt.js +182 -0
- package/components/upload/styles.d.ts +6 -0
- package/components/upload/styles.js +156 -0
- package/components/upload/useAccept.d.ts +6 -0
- package/components/upload/useAccept.js +55 -0
- package/components/upload/useDrag.d.ts +10 -0
- package/components/upload/useDrag.js +47 -0
- package/components/upload/useFiles.d.ts +8 -0
- package/components/upload/useFiles.js +210 -0
- package/components/upload/useShowImage.d.ts +10 -0
- package/components/upload/useShowImage.js +25 -0
- package/components/upload/useUpload.d.ts +12 -0
- package/components/upload/useUpload.js +121 -0
- package/components/utils.d.ts +42 -0
- package/components/utils.js +361 -0
- package/hooks/useDelayClose.d.ts +7 -0
- package/hooks/useDelayClose.js +37 -0
- package/hooks/useDocumentClick.d.ts +9 -0
- package/hooks/useDocumentClick.js +37 -0
- package/hooks/useDraggable.d.ts +12 -0
- package/hooks/useDraggable.js +49 -0
- package/hooks/useKeyboard.d.ts +14 -0
- package/hooks/useKeyboard.js +54 -0
- package/hooks/useMouseOutsidable.d.ts +11 -0
- package/hooks/useMouseOutsidable.js +53 -0
- package/hooks/useReceive.d.ts +7 -0
- package/hooks/useReceive.js +30 -0
- package/hooks/useRecordComponent.d.ts +9 -0
- package/hooks/useRecordComponent.js +49 -0
- package/hooks/useResizeObserver.d.ts +5 -0
- package/hooks/useResizeObserver.js +16 -0
- package/hooks/useRouter.d.ts +4 -0
- package/hooks/useRouter.js +78 -0
- package/hooks/useShowHideEvents.d.ts +4 -0
- package/hooks/useShowHideEvents.js +27 -0
- package/hooks/useState.d.ts +11 -0
- package/hooks/useState.js +46 -0
- package/i18n/en-US.d.ts +94 -0
- package/i18n/en-US.js +108 -0
- package/i18n/index.d.ts +8 -0
- package/i18n/index.js +47 -0
- package/index.d.ts +61 -0
- package/index.js +63 -0
- package/install.js +19 -0
- package/package.json +69 -0
- package/styles/fonts/iconfont.d.ts +4 -0
- package/styles/fonts/iconfont.eot +0 -0
- package/styles/fonts/iconfont.js +8 -0
- package/styles/fonts/iconfont.svg +371 -0
- package/styles/fonts/iconfont.ttf +0 -0
- package/styles/fonts/iconfont.woff +0 -0
- package/styles/fonts/ionicons.d.ts +4 -0
- package/styles/fonts/ionicons.eot +0 -0
- package/styles/fonts/ionicons.js +19 -0
- package/styles/fonts/ionicons.svg +2230 -0
- package/styles/fonts/ionicons.ttf +0 -0
- package/styles/fonts/ionicons.woff +0 -0
- package/styles/global.d.ts +4 -0
- package/styles/global.js +18 -0
- package/styles/keyframes.d.ts +4 -0
- package/styles/keyframes.js +13 -0
- package/styles/theme.d.ts +108 -0
- package/styles/theme.js +130 -0
- package/styles/utils.d.ts +17 -0
- package/styles/utils.js +116 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
|
|
2
|
+
import _extends from "@babel/runtime-corejs3/helpers/extends";
|
|
3
|
+
import { DLayout } from './layout';
|
|
4
|
+
import mx from '../mxgraph';
|
|
5
|
+
var mxCompactTreeLayout = mx.mxCompactTreeLayout;
|
|
6
|
+
|
|
7
|
+
var typeDefs = _extends({}, DLayout.typeDefs, {
|
|
8
|
+
type: ['horizontal', 'vertical'],
|
|
9
|
+
levelDistance: [Number, String],
|
|
10
|
+
nodeDistance: [Number, String],
|
|
11
|
+
resizeParent: Boolean,
|
|
12
|
+
groupPadding: [Number, String]
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
var defaults = function defaults() {
|
|
16
|
+
return _extends({}, DLayout.defaults(), {
|
|
17
|
+
type: 'horizontal',
|
|
18
|
+
levelDistance: 30,
|
|
19
|
+
nodeDistance: 16,
|
|
20
|
+
// If the parents should be resized to match the width/height of the children.
|
|
21
|
+
resizeParent: true,
|
|
22
|
+
// Padding added to resized parents.
|
|
23
|
+
groupPadding: 0
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export var DTreeLayout = /*#__PURE__*/function (_DLayout) {
|
|
28
|
+
_inheritsLoose(DTreeLayout, _DLayout);
|
|
29
|
+
|
|
30
|
+
function DTreeLayout() {
|
|
31
|
+
return _DLayout.apply(this, arguments) || this;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
var _proto = DTreeLayout.prototype;
|
|
35
|
+
|
|
36
|
+
_proto.getLayout = function getLayout(graph) {
|
|
37
|
+
var _this$get = this.get(),
|
|
38
|
+
type = _this$get.type,
|
|
39
|
+
levelDistance = _this$get.levelDistance,
|
|
40
|
+
nodeDistance = _this$get.nodeDistance,
|
|
41
|
+
resizeParent = _this$get.resizeParent,
|
|
42
|
+
groupPadding = _this$get.groupPadding;
|
|
43
|
+
|
|
44
|
+
var layout = new mxCompactTreeLayout(graph, type === 'horizontal');
|
|
45
|
+
layout.nodeDistance = +nodeDistance;
|
|
46
|
+
layout.groupPadding = +groupPadding; // layout.moveTree = true;
|
|
47
|
+
|
|
48
|
+
layout.maintainParentLocation = true;
|
|
49
|
+
layout.resizeParent = resizeParent;
|
|
50
|
+
layout.levelDistance = +levelDistance; // layout.useBoundingBox = false;
|
|
51
|
+
|
|
52
|
+
layout.edgeRouting = false;
|
|
53
|
+
return layout;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
_proto.execute = function execute(layout, cells, parent, graph) {
|
|
57
|
+
if (!cells.length) return;
|
|
58
|
+
var roots = graph.findTreeRoots(parent.cell);
|
|
59
|
+
var tmp = cells[0];
|
|
60
|
+
|
|
61
|
+
if (roots && roots.length) {
|
|
62
|
+
tmp = roots[0];
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
layout.execute(parent.cell, tmp); // tmp = graph.getModel().getParent(tmp);
|
|
66
|
+
// if (graph.getModel().isVertex(tmp)) {
|
|
67
|
+
// graph.updateGroupBounds([tmp], graph.gridSize * 2, true);
|
|
68
|
+
// }
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
return DTreeLayout;
|
|
72
|
+
}(DLayout);
|
|
73
|
+
DTreeLayout.displayName = 'DTreeLayout';
|
|
74
|
+
DTreeLayout.typeDefs = typeDefs;
|
|
75
|
+
DTreeLayout.defaults = defaults;
|
|
76
|
+
|
|
77
|
+
export {normalize} from 'intact-vue-next';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import _Object$assign from "@babel/runtime-corejs3/core-js/object/assign";
|
|
2
|
+
import mx from '../mx';
|
|
3
|
+
export default function () {
|
|
4
|
+
var mxConnectionHandler = mx.mxConnectionHandler,
|
|
5
|
+
mxConstants = mx.mxConstants,
|
|
6
|
+
mxCellState = mx.mxCellState; // mxConnectionHandler.prototype.outlineConnect = true;
|
|
7
|
+
// Overrides edge preview to use current edge shape and default style
|
|
8
|
+
|
|
9
|
+
mxConnectionHandler.prototype.livePreview = true;
|
|
10
|
+
mxConnectionHandler.prototype.cursor = 'crosshair'; // Overrides dashed state with current edge style
|
|
11
|
+
|
|
12
|
+
var connectionHandlerCreateShape = mxConnectionHandler.prototype.createShape;
|
|
13
|
+
|
|
14
|
+
mxConnectionHandler.prototype.createShape = function () {
|
|
15
|
+
var shape = connectionHandlerCreateShape.apply(this, arguments); // shape.isDashed = this.graph.currentEdgeStyle[mxConstants.STYLE_DASHED] == '1';
|
|
16
|
+
|
|
17
|
+
shape.isDashed = false;
|
|
18
|
+
return shape;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
var defaultEdgeStyle = {
|
|
22
|
+
'edgeStyle': 'orthogonalEdgeStyle',
|
|
23
|
+
'rounded': '0',
|
|
24
|
+
'jettySize': 'auto',
|
|
25
|
+
'orthogonalLoop': '1'
|
|
26
|
+
}; // Uses current edge style for connect preview
|
|
27
|
+
|
|
28
|
+
mxConnectionHandler.prototype.createEdgeState = function () {
|
|
29
|
+
var style = 'html=1;';
|
|
30
|
+
|
|
31
|
+
for (var key in defaultEdgeStyle) {
|
|
32
|
+
style += key + "=" + defaultEdgeStyle[key] + ";";
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
var edge = this.graph.createEdge(null, null, null, null, null, style);
|
|
36
|
+
var state = new mxCellState(this.graph.view, edge, this.graph.getCellStyle(edge));
|
|
37
|
+
|
|
38
|
+
_Object$assign(state.style, defaultEdgeStyle);
|
|
39
|
+
|
|
40
|
+
return state;
|
|
41
|
+
}; // Overrides live preview to keep current style
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
mxConnectionHandler.prototype.updatePreview = function () {// do not change color of preview
|
|
45
|
+
}; // Disables built-in connection starts
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
mxConnectionHandler.prototype.isValidSource = function () {
|
|
49
|
+
return false;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export {normalize} from 'intact-vue-next';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import mx, { createSvgImage } from '../mx';
|
|
2
|
+
import '../util/mxConstants';
|
|
3
|
+
export default function () {
|
|
4
|
+
var mxConstraintHandler = mx.mxConstraintHandler,
|
|
5
|
+
mxConstants = mx.mxConstants,
|
|
6
|
+
mxEllipse = mx.mxEllipse;
|
|
7
|
+
mxConstraintHandler.prototype.pointImage = createSvgImage(5, 5, '<path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke="' + mxConstants.HANDLE_FILLCOLOR + '"/>'); // Overrides highlight shape for connection points
|
|
8
|
+
|
|
9
|
+
mxConstraintHandler.prototype.createHighlightShape = function () {
|
|
10
|
+
var hl = new mxEllipse(null, this.highlightColor, this.highlightColor, 0);
|
|
11
|
+
hl.opacity = mxConstants.HIGHLIGHT_OPACITY;
|
|
12
|
+
return hl;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export {normalize} from 'intact-vue-next';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import mx, { createSvgImage } from '../mx';
|
|
2
|
+
import '../util/mxConstants';
|
|
3
|
+
import { mainHandle } from './mxVertexHandler';
|
|
4
|
+
export default function () {
|
|
5
|
+
var mxEdgeHandler = mx.mxEdgeHandler,
|
|
6
|
+
mxConstants = mx.mxConstants,
|
|
7
|
+
mxElbowEdgeHandler = mx.mxElbowEdgeHandler,
|
|
8
|
+
mxImageShape = mx.mxImageShape,
|
|
9
|
+
mxRectangleShape = mx.mxRectangleShape,
|
|
10
|
+
mxRectangle = mx.mxRectangle;
|
|
11
|
+
var terminalHandle = createSvgImage(18, 18, '<circle cx="9" cy="9" r="5" stroke="#fff" fill="' + mxConstants.HANDLE_FILLCOLOR + '" stroke-width="1"/><circle cx="9" cy="9" r="2" stroke="#fff" fill="transparent"/>');
|
|
12
|
+
var fixedHandle = createSvgImage(18, 18, '<circle cx="9" cy="9" r="5" stroke="#fff" fill="' + mxConstants.HANDLE_FILLCOLOR + '" stroke-width="1"/><path d="m 7 7 L 11 11 M 7 11 L 11 7" stroke="#fff"/>');
|
|
13
|
+
mxEdgeHandler.prototype.handleImage = mainHandle; // mxEdgeHandler.prototype.terminalHandleImage = terminalHandle;
|
|
14
|
+
// mxEdgeHandler.prototype.fixedHandleImage = fixedHandle;
|
|
15
|
+
// mxEdgeHandler.prototype.labelHandleImage = secondaryHandle;
|
|
16
|
+
// Shows secondary handle for fixed connection points
|
|
17
|
+
|
|
18
|
+
mxEdgeHandler.prototype.createHandleShape = function (index) {
|
|
19
|
+
var source = index != null && index == 0;
|
|
20
|
+
var terminalState = this.state.getVisibleTerminalState(source);
|
|
21
|
+
var c = index != null && (index == 0 || index >= this.state.absolutePoints.length - 1 || this.constructor == mxElbowEdgeHandler && index == 2) ? this.graph.getConnectionConstraint(this.state, terminalState, source) : null;
|
|
22
|
+
var pt = c != null ? this.graph.getConnectionPoint(this.state.getVisibleTerminalState(source), c) : null;
|
|
23
|
+
var img = pt != null ? fixedHandle : c != null && terminalState != null ? terminalHandle : this.handleImage;
|
|
24
|
+
|
|
25
|
+
if (img != null) {
|
|
26
|
+
var shape = new mxImageShape(new mxRectangle(0, 0, img.width, img.height), img.src); // Allows HTML rendering of the images
|
|
27
|
+
|
|
28
|
+
shape.preserveImageAspect = false;
|
|
29
|
+
return shape;
|
|
30
|
+
} else {
|
|
31
|
+
var s = mxConstants.HANDLE_SIZE;
|
|
32
|
+
|
|
33
|
+
if (this.preferHtml) {
|
|
34
|
+
s -= 1;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
return new mxRectangleShape(new mxRectangle(0, 0, s, s), mxConstants.HANDLE_FILLCOLOR, mxConstants.HANDLE_STROKECOLOR);
|
|
38
|
+
}
|
|
39
|
+
}; // Enables snapping waypoints to terminals
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
mxEdgeHandler.prototype.snapToTerminals = true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export {normalize} from 'intact-vue-next';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import mx from '../mx';
|
|
2
|
+
export default function () {
|
|
3
|
+
var mxGraphHandler = mx.mxGraphHandler;
|
|
4
|
+
mxGraphHandler.prototype.maxLivePreview = 16; // Enables guides
|
|
5
|
+
|
|
6
|
+
mxGraphHandler.prototype.guidesEnabled = true; // Removes parents where all child cells are moved out
|
|
7
|
+
|
|
8
|
+
mxGraphHandler.prototype.removeEmptyParents = true; // Select descendant if we select unselectable children
|
|
9
|
+
|
|
10
|
+
var graphHandlerGetInitialCellForEvent = mxGraphHandler.prototype.getInitialCellForEvent;
|
|
11
|
+
|
|
12
|
+
mxGraphHandler.prototype.getInitialCellForEvent = function () {
|
|
13
|
+
var graph = this.graph;
|
|
14
|
+
var model = graph.getModel();
|
|
15
|
+
var cell = graphHandlerGetInitialCellForEvent.apply(this, arguments);
|
|
16
|
+
|
|
17
|
+
while (!graph.isCellSelectable(cell) && model.isVertex(cell)) {
|
|
18
|
+
cell = model.getParent(cell);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return cell;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export {normalize} from 'intact-vue-next';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import mx from '../mx';
|
|
2
|
+
export default function () {
|
|
3
|
+
var mxRubberband = mx.mxRubberband; // Enables fading of rubberband
|
|
4
|
+
|
|
5
|
+
mxRubberband.prototype.fadeOut = true; // Increases default rubberband opacity (default is 20)
|
|
6
|
+
|
|
7
|
+
mxRubberband.prototype.defaultOpacity = 30;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export {normalize} from 'intact-vue-next';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import mx, { createSvgImage } from '../mx';
|
|
2
|
+
import '../util/mxConstants';
|
|
3
|
+
var mainHandle;
|
|
4
|
+
export default function () {
|
|
5
|
+
var mxVertexHandler = mx.mxVertexHandler,
|
|
6
|
+
mxImage = mx.mxImage,
|
|
7
|
+
mxConstants = mx.mxConstants,
|
|
8
|
+
mxEvent = mx.mxEvent;
|
|
9
|
+
mainHandle = createSvgImage(18, 18, "<circle cx=\"9\" cy=\"9\" r=\"5\" stroke=\"#fff\" fill=\"" + mxConstants.HANDLE_FILLCOLOR + "\" stroke-width=\"1\"/>"); // set sizer shape
|
|
10
|
+
|
|
11
|
+
var rotationHandle = new mxImage('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAVCAYAAACkCdXRAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA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ASUVORK5CYII=', 19, 21);
|
|
12
|
+
var secondaryHandle = createSvgImage(16, 16, '<path d="m 8 3 L 13 8 L 8 13 L 3 8 z" stroke="#fff" fill="#fca000"/>');
|
|
13
|
+
mxVertexHandler.prototype.rotationEnabled = true;
|
|
14
|
+
mxVertexHandler.prototype.handleImage = mainHandle;
|
|
15
|
+
mxVertexHandler.prototype.secondaryHandle = secondaryHandle;
|
|
16
|
+
var createSizerShape = mxVertexHandler.prototype.createSizerShape;
|
|
17
|
+
|
|
18
|
+
mxVertexHandler.prototype.createSizerShape = function (bounds, index, fillColor) {
|
|
19
|
+
if (index === mxEvent.ROTATION_HANDLE) {
|
|
20
|
+
this.handleImage = rotationHandle;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return createSizerShape.apply(this, arguments);
|
|
24
|
+
}; // Adds rotation handle and live preview
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
mxVertexHandler.prototype.manageSizers = true;
|
|
28
|
+
mxVertexHandler.prototype.livePreview = true;
|
|
29
|
+
}
|
|
30
|
+
export { mainHandle };
|
|
31
|
+
|
|
32
|
+
export {normalize} from 'intact-vue-next';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import mx from './mx';
|
|
2
|
+
import { hasDocumentAvailable } from 'intact-shared';
|
|
3
|
+
import mxConstantsSetup from './util/mxConstants';
|
|
4
|
+
import mxGuideSetup from './util/mxGuide';
|
|
5
|
+
import mxShapeSetup from './shape/mxShape';
|
|
6
|
+
import mxRectangleShapeSetup from './shape/mxRectangleShape';
|
|
7
|
+
import mxEllipseSetup from './shape/mxEllipse';
|
|
8
|
+
import mxRhombusSetup from './shape/mxRhombus';
|
|
9
|
+
import mxHexagonSetup from './shape/mxHexagon';
|
|
10
|
+
import mxTriangleSetup from './shape/mxTriangle';
|
|
11
|
+
import mxCloudSetup from './shape/mxCloud';
|
|
12
|
+
import mxLineSetup from './shape/mxLine';
|
|
13
|
+
import mxCylinderSetup from './shape/mxCylinder';
|
|
14
|
+
import mxGraphSetup from './view/mxGraph';
|
|
15
|
+
import mxCellEditorSetup from './view/mxCellEditor';
|
|
16
|
+
import mxCellRendererSetup from './view/mxCellRenderer';
|
|
17
|
+
import mxConnectionHandlerSetup from './handler/mxConnectionHandler';
|
|
18
|
+
import mxVertexHandlerSetup from './handler/mxVertexHandler';
|
|
19
|
+
import mxConstraintHandlerSetup from './handler/mxConstraintHandler';
|
|
20
|
+
import mxEdgeHandlerSetup from './handler/mxEdgeHandler';
|
|
21
|
+
import mxGraphHandlerSetup from './handler/mxGraphHandler';
|
|
22
|
+
import mxRubberbandSetup from './handler/mxRubberband';
|
|
23
|
+
|
|
24
|
+
if (hasDocumentAvailable) {
|
|
25
|
+
mxConstantsSetup();
|
|
26
|
+
mxGuideSetup();
|
|
27
|
+
mxShapeSetup();
|
|
28
|
+
mxRectangleShapeSetup();
|
|
29
|
+
mxEllipseSetup();
|
|
30
|
+
mxRhombusSetup();
|
|
31
|
+
mxHexagonSetup();
|
|
32
|
+
mxTriangleSetup();
|
|
33
|
+
mxCloudSetup();
|
|
34
|
+
mxLineSetup();
|
|
35
|
+
mxCylinderSetup();
|
|
36
|
+
mxGraphSetup();
|
|
37
|
+
mxCellEditorSetup();
|
|
38
|
+
mxCellRendererSetup();
|
|
39
|
+
mxConnectionHandlerSetup();
|
|
40
|
+
mxVertexHandlerSetup();
|
|
41
|
+
mxConstraintHandlerSetup();
|
|
42
|
+
mxEdgeHandlerSetup();
|
|
43
|
+
mxGraphHandlerSetup();
|
|
44
|
+
mxRubberbandSetup();
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export default mx;
|
|
48
|
+
|
|
49
|
+
export {normalize} from 'intact-vue-next';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import mx from 'mxgraphx';
|
|
2
|
+
import { hasDocumentAvailable } from 'intact-shared'; // only support running in browser
|
|
3
|
+
|
|
4
|
+
var doll = hasDocumentAvailable ? mx({
|
|
5
|
+
mxLoadResources: false,
|
|
6
|
+
mxLoadStylesheets: false
|
|
7
|
+
}) : {};
|
|
8
|
+
var mxImage = doll.mxImage,
|
|
9
|
+
mxLog = doll.mxLog;
|
|
10
|
+
export default doll;
|
|
11
|
+
export function createSvgImage(w, h, data) {
|
|
12
|
+
var tmp = unescape(encodeURIComponent('<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">' + '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="' + w + 'px" height="' + h + 'px" ' + 'version="1.1">' + data + '</svg>'));
|
|
13
|
+
return new mxImage('data:image/svg+xml;base64,' + btoa(tmp), w, h);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export {normalize} from 'intact-vue-next';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import mx from '../mx';
|
|
2
|
+
export default function () {
|
|
3
|
+
var mxCloud = mx.mxCloud,
|
|
4
|
+
mxConnectionConstraint = mx.mxConnectionConstraint,
|
|
5
|
+
mxPoint = mx.mxPoint;
|
|
6
|
+
mxCloud.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.25, 0.25), false), new mxConnectionConstraint(new mxPoint(0.4, 0.1), false), new mxConnectionConstraint(new mxPoint(0.16, 0.55), false), new mxConnectionConstraint(new mxPoint(0.07, 0.4), false), new mxConnectionConstraint(new mxPoint(0.31, 0.8), false), new mxConnectionConstraint(new mxPoint(0.13, 0.77), false), new mxConnectionConstraint(new mxPoint(0.8, 0.8), false), new mxConnectionConstraint(new mxPoint(0.55, 0.95), false), new mxConnectionConstraint(new mxPoint(0.875, 0.5), false), new mxConnectionConstraint(new mxPoint(0.96, 0.7), false), new mxConnectionConstraint(new mxPoint(0.625, 0.2), false), new mxConnectionConstraint(new mxPoint(0.88, 0.25), false)];
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export {normalize} from 'intact-vue-next';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import mx from '../mx';
|
|
2
|
+
export default function () {
|
|
3
|
+
var mxCylinder = mx.mxCylinder,
|
|
4
|
+
mxUtils = mx.mxUtils,
|
|
5
|
+
mxRectangle = mx.mxRectangle,
|
|
6
|
+
mxConnectionConstraint = mx.mxConnectionConstraint,
|
|
7
|
+
mxPoint = mx.mxPoint;
|
|
8
|
+
var cylinderGetCylinderSize = mxCylinder.prototype.getCylinderSize;
|
|
9
|
+
|
|
10
|
+
mxCylinder.prototype.getCylinderSize = function (x, y, w, h) {
|
|
11
|
+
var size = mxUtils.getValue(this.style, 'size');
|
|
12
|
+
|
|
13
|
+
if (size != null) {
|
|
14
|
+
return h * Math.max(0, Math.min(1, size));
|
|
15
|
+
} else {
|
|
16
|
+
return cylinderGetCylinderSize.apply(this, arguments);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
mxCylinder.prototype.getLabelMargins = function (rect) {
|
|
21
|
+
if (mxUtils.getValue(this.style, 'boundedLbl', false)) {
|
|
22
|
+
var size = mxUtils.getValue(this.style, 'size', 0.15) * 2;
|
|
23
|
+
return new mxRectangle(0, Math.min(this.maxHeight * this.scale, rect.height * size), 0, 0);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return null;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
mxCylinder.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.15, 0.05), false), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.85, 0.05), false), new mxConnectionConstraint(new mxPoint(0, 0.3), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.7), true), new mxConnectionConstraint(new mxPoint(1, 0.3), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.7), true), new mxConnectionConstraint(new mxPoint(0.15, 0.95), false), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.85, 0.95), false)];
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export {normalize} from 'intact-vue-next';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import mx from '../mx';
|
|
2
|
+
export default function () {
|
|
3
|
+
var mxEllipse = mx.mxEllipse,
|
|
4
|
+
mxConnectionConstraint = mx.mxConnectionConstraint,
|
|
5
|
+
mxPoint = mx.mxPoint;
|
|
6
|
+
mxEllipse.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0), true), new mxConnectionConstraint(new mxPoint(1, 0), true), new mxConnectionConstraint(new mxPoint(0, 1), true), new mxConnectionConstraint(new mxPoint(1, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.5))];
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export {normalize} from 'intact-vue-next';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import mx from '../mx';
|
|
2
|
+
export default function () {
|
|
3
|
+
var mxHexagon = mx.mxHexagon,
|
|
4
|
+
mxConnectionConstraint = mx.mxConnectionConstraint,
|
|
5
|
+
mxPoint = mx.mxPoint;
|
|
6
|
+
mxHexagon.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.375, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.625, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.375, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.625, 1), true)];
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export {normalize} from 'intact-vue-next';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import mx from '../mx';
|
|
2
|
+
export default function () {
|
|
3
|
+
var mxLine = mx.mxLine,
|
|
4
|
+
mxConnectionConstraint = mx.mxConnectionConstraint,
|
|
5
|
+
mxPoint = mx.mxPoint;
|
|
6
|
+
mxLine.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0.5), false), new mxConnectionConstraint(new mxPoint(0.25, 0.5), false), new mxConnectionConstraint(new mxPoint(0.75, 0.5), false), new mxConnectionConstraint(new mxPoint(1, 0.5), false)];
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export {normalize} from 'intact-vue-next';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import mx from '../mx';
|
|
2
|
+
export default function () {
|
|
3
|
+
var mxRectangleShape = mx.mxRectangleShape,
|
|
4
|
+
mxConnectionConstraint = mx.mxConnectionConstraint,
|
|
5
|
+
mxPoint = mx.mxPoint;
|
|
6
|
+
mxRectangleShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)];
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export {normalize} from 'intact-vue-next';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import mx from '../mx';
|
|
2
|
+
export default function () {
|
|
3
|
+
var mxRhombus = mx.mxRhombus,
|
|
4
|
+
mxConstants = mx.mxConstants,
|
|
5
|
+
mxRectangle = mx.mxRectangle,
|
|
6
|
+
mxEllipse = mx.mxEllipse; // Overrides painting of rhombus shape to allow for double style
|
|
7
|
+
|
|
8
|
+
var mxRhombusPaintVertexShape = mxRhombus.prototype.paintVertexShape;
|
|
9
|
+
|
|
10
|
+
mxRhombus.prototype.getLabelBounds = function (rect) {
|
|
11
|
+
if (this.style['double'] == 1) {
|
|
12
|
+
var margin = (Math.max(2, this.strokewidth + 1) * 2 + parseFloat(this.style[mxConstants.STYLE_MARGIN] || 0)) * this.scale;
|
|
13
|
+
return new mxRectangle(rect.x + margin, rect.y + margin, rect.width - 2 * margin, rect.height - 2 * margin);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
return rect;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
mxRhombus.prototype.paintVertexShape = function (c, x, y, w, h) {
|
|
20
|
+
mxRhombusPaintVertexShape.apply(this, arguments);
|
|
21
|
+
|
|
22
|
+
if (!this.outline && this.style['double'] == 1) {
|
|
23
|
+
var margin = Math.max(2, this.strokewidth + 1) * 2 + parseFloat(this.style[mxConstants.STYLE_MARGIN] || 0);
|
|
24
|
+
x += margin;
|
|
25
|
+
y += margin;
|
|
26
|
+
w -= 2 * margin;
|
|
27
|
+
h -= 2 * margin;
|
|
28
|
+
|
|
29
|
+
if (w > 0 && h > 0) {
|
|
30
|
+
c.setShadow(false); // Workaround for closure compiler bug where the lines with x and y above
|
|
31
|
+
// are removed if arguments is used as second argument in call below.
|
|
32
|
+
|
|
33
|
+
mxRhombusPaintVertexShape.apply(this, [c, x, y, w, h]);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
mxRhombus.prototype.constraints = mxEllipse.prototype.constraints;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export {normalize} from 'intact-vue-next';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import mx from '../mx';
|
|
2
|
+
export default function () {
|
|
3
|
+
var mxTriangle = mx.mxTriangle,
|
|
4
|
+
mxConnectionConstraint = mx.mxConnectionConstraint,
|
|
5
|
+
mxPoint = mx.mxPoint;
|
|
6
|
+
mxTriangle.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true)];
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export {normalize} from 'intact-vue-next';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import mx from '../mx';
|
|
2
|
+
export default function () {
|
|
3
|
+
var mxConstants = mx.mxConstants; // Sets colors for handles
|
|
4
|
+
|
|
5
|
+
mxConstants.HANDLE_FILLCOLOR = '#29b6f2';
|
|
6
|
+
mxConstants.HANDLE_STROKECOLOR = '#0088cf';
|
|
7
|
+
mxConstants.VERTEX_SELECTION_COLOR = '#00a8ff';
|
|
8
|
+
mxConstants.OUTLINE_COLOR = '#00a8ff';
|
|
9
|
+
mxConstants.OUTLINE_HANDLE_FILLCOLOR = '#99ccff';
|
|
10
|
+
mxConstants.OUTLINE_HANDLE_STROKECOLOR = '#00a8ff';
|
|
11
|
+
mxConstants.CONNECT_HANDLE_FILLCOLOR = '#cee7ff';
|
|
12
|
+
mxConstants.EDGE_SELECTION_COLOR = '#00a8ff';
|
|
13
|
+
mxConstants.DEFAULT_VALID_COLOR = '#00a8ff';
|
|
14
|
+
mxConstants.LABEL_HANDLE_FILLCOLOR = '#cee7ff';
|
|
15
|
+
mxConstants.GUIDE_COLOR = '#0088cf';
|
|
16
|
+
mxConstants.HIGHLIGHT_OPACITY = 30;
|
|
17
|
+
mxConstants.HIGHLIGHT_SIZE = 5;
|
|
18
|
+
mxConstants.DEFAULT_FONTSIZE = 12;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export {normalize} from 'intact-vue-next';
|