cnhis-design-vue 3.1.55-beta.2 → 3.1.55-beta.21
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/es/components/annotation-edit/index.d.ts +1 -1
- package/es/components/annotation-edit/src/AnnotationEdit.d.ts +1 -1
- package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
- package/es/components/annotation-edit/src/type.d.ts +4 -0
- package/es/components/audio-sdk/src/audioSDK.d.ts +7 -3
- package/es/components/audio-sdk/src/audioSDK.js +1 -1
- package/es/components/audio-sdk/src/components/recordingDialog.vue.d.ts +1 -0
- package/es/components/audio-sdk/src/components/recordingDialog.vue2.js +1 -1
- package/es/components/audio-sdk/style/index.css +1 -1
- package/es/components/base-search/index.d.ts +1 -1
- package/es/components/base-search/src/index.vue.d.ts +4 -4
- package/es/components/base-search/src/index.vue2.js +1 -1
- package/es/components/big-table/index.d.ts +22 -22
- package/es/components/big-table/src/BigTable.vue.d.ts +2 -2
- package/es/components/big-table/src/bigTableProps.d.ts +1 -1
- package/es/components/big-table/src/components/edit-form/edit-separate.vue.d.ts +5 -5
- package/es/components/big-table/src/components/edit-form/useCommon.d.ts +1 -1
- package/es/components/big-table/src/components/separate.vue.d.ts +1 -1
- package/es/components/big-table/src/constants/index.d.ts +1 -1
- package/es/components/big-table/src/hooks/useAnnotation.d.ts +1 -1
- package/es/components/big-table/src/hooks/useFormat.d.ts +1 -1
- package/es/components/big-table/src/hooks/useSeparateRow.d.ts +1 -1
- package/es/components/big-table/src/utils.d.ts +1 -1
- package/es/components/biunique-chat/index.d.ts +14 -14
- package/es/components/biunique-chat/src/BiuniqueChat.vue.d.ts +1 -1
- package/es/components/biunique-chat/src/api/index.d.ts +1 -1
- package/es/components/biunique-chat/src/components/ChatFooter.vue.d.ts +1 -1
- package/es/components/biunique-chat/src/components/ChatHeader.vue.d.ts +1 -1
- package/es/components/biunique-chat/src/components/ChatMain.vue.d.ts +1 -1
- package/es/components/biunique-chat/src/components/SiderList.vue.d.ts +1 -1
- package/es/components/biunique-chat/src/utils/chatSock.d.ts +1 -1
- package/es/components/body-select/index.d.ts +5 -5
- package/es/components/body-select/src/hooks/renderCanvas.d.ts +2 -2
- package/es/components/body-select/src/index.vue.d.ts +1 -1
- package/es/components/bpmn-workflow/index.d.ts +1 -1
- package/es/components/button-print/index.d.ts +21 -21
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +1 -1
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/api.d.ts +1 -1
- package/es/components/button-print/src/components/EditFormat.vue.d.ts +1 -1
- package/es/components/button-print/src/utils/dialog.d.ts +1 -1
- package/es/components/button-print/src/utils/print.d.ts +2 -2
- package/es/components/callback/index.d.ts +1 -1
- package/es/components/callback/src/components/dialog/drawer.vue.d.ts +1 -1
- package/es/components/callback/src/components/dialog/modal.vue.d.ts +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +61 -162
- package/es/components/card-reader-sdk/src/cardReaderSDK.d.ts +1 -1
- package/es/components/card-reader-sdk/src/components/readCardDialog.vue.d.ts +1 -1
- package/es/components/card-reader-sdk/src/constants/index.d.ts +1 -1
- package/es/components/card-reader-sdk/src/insuranceSDK.d.ts +1 -1
- package/es/components/card-reader-sdk/src/types/index.d.ts +2 -2
- package/es/components/card-reader-sdk/src/utils/readHealthCard.d.ts +1 -1
- package/es/components/classification/index.d.ts +20 -20
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +13 -13
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +1 -1
- package/es/components/classification/src/index.vue.d.ts +13 -13
- package/es/components/config-provider/index.d.ts +1 -1
- package/es/components/date-picker/index.d.ts +2 -2
- package/es/components/date-picker/src/DatePicker.vue.d.ts +1 -1
- package/es/components/editor/index.d.ts +1 -1
- package/es/components/expand-field/index.d.ts +29 -29
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +2 -2
- package/es/components/expand-field/src/components/form.vue.d.ts +2 -2
- package/es/components/expand-field/src/constants/index.d.ts +1 -1
- package/es/components/expand-field/src/index.vue.d.ts +2 -2
- package/es/components/fabric-chart/index.d.ts +10 -8
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +5 -3
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
- package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +1 -1
- package/es/components/fabric-chart/src/constants/index.d.ts +4 -1
- package/es/components/fabric-chart/src/constants/index.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.d.ts +3 -3
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +3 -3
- package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +5 -4
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +3 -3
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.d.ts +3 -3
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +3 -3
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +3 -3
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +3 -3
- package/es/components/fabric-chart/src/hooks/temperature/useBottom.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +3 -3
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/temperature/useRight.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/temperature/useShadow.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +3 -3
- package/es/components/fabric-chart/src/hooks/temperature/useTop.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/useCommon.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/useEvent.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useGrid.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +2 -2
- package/es/components/fabric-chart/src/interface.d.ts +2 -2
- package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
- package/es/components/field-set/index.d.ts +15 -15
- package/es/components/field-set/src/FieldSet.vue.d.ts +5 -5
- package/es/components/field-set/src/components/Row.vue.d.ts +2 -2
- package/es/components/field-set/src/types/index.d.ts +1 -1
- package/es/components/field-set/src/utils/index.d.ts +3 -3
- package/es/components/form-config/index.d.ts +280 -475
- package/es/components/form-config/src/FormConfig.vue.d.ts +406 -601
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +27 -128
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +193 -291
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +2 -2
- package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +1 -1
- package/es/components/form-config/src/components/renderer/CloseButton.vue.d.ts +1 -1
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +2 -2
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +2 -2
- package/es/components/form-config/src/constants/index.d.ts +2 -2
- package/es/components/form-config/src/hooks/useConfigurationField.d.ts +3 -3
- package/es/components/form-config/src/hooks/useDataNormalize.d.ts +1 -1
- package/es/components/form-config/src/hooks/useSortalbeConfig.d.ts +1 -1
- package/es/components/form-config/src/types/index.d.ts +2 -2
- package/es/components/form-config/src/utils/index.d.ts +3 -3
- package/es/components/form-render/index.d.ts +60 -161
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +25 -127
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +83 -184
- package/es/components/form-render/src/components/renderer/combination/combination.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/combination/hooks/useDeepValidate.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/combination/tableCombination.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/complex.js +1 -1
- package/es/components/form-render/src/components/renderer/date.js +1 -1
- package/es/components/form-render/src/components/renderer/formItem.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/inputNumber.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader/index.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue2.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
- package/es/components/form-render/src/components/renderer/searchCascade.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
- package/es/components/form-render/src/components/renderer/select.d.ts +3 -3
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/components/renderer/simpleComponent.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/switch.js +1 -1
- package/es/components/form-render/src/components/renderer/textarea.js +1 -1
- package/es/components/form-render/src/constants/index.d.ts +5 -6
- package/es/components/form-render/src/constants/index.js +1 -1
- package/es/components/form-render/src/hooks/useAnchor.d.ts +2 -2
- package/es/components/form-render/src/hooks/useAnchor.js +1 -1
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +1 -1
- package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
- package/es/components/form-render/src/hooks/useCommonInjection.d.ts +1 -1
- package/es/components/form-render/src/hooks/useComplexOptions.d.ts +2 -2
- package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +19 -19
- package/es/components/form-render/src/hooks/useFormContext.d.ts +6 -6
- package/es/components/form-render/src/hooks/useFormEvent.d.ts +4 -25
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/hooks/useFormItemDeps.d.ts +5 -5
- package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -1
- package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +8 -8
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +16 -12
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/hooks/useFormValidator.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
- package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +1 -1
- package/es/components/form-render/src/hooks/useOperationalForm.d.ts +1 -1
- package/es/components/form-render/src/hooks/usePresetScope.js +1 -1
- package/es/components/form-render/src/hooks/useWordbookSetting.d.ts +2 -2
- package/es/components/form-render/src/types/fieldItem.d.ts +3 -3
- package/es/components/form-render/src/types/index.d.ts +15 -15
- package/es/components/form-render/src/utils/business.d.ts +2 -2
- package/es/components/form-render/src/utils/dom.d.ts +1 -1
- package/es/components/form-render/src/utils/index.d.ts +4 -18
- package/es/components/form-render/src/utils/index.js +1 -1
- package/es/components/form-render/src/utils/schema.d.ts +3 -3
- package/es/components/form-render/src/utils/schema.js +1 -1
- package/es/components/grid/index.d.ts +1 -1
- package/es/components/guide/src/renderer.d.ts +1 -1
- package/es/components/guide/src/types/index.d.ts +1 -1
- package/es/components/guide/src/useGuide.d.ts +1 -1
- package/es/components/guide/src/utils/index.d.ts +1 -1
- package/es/components/iho-table/index.d.ts +39 -39
- package/es/components/iho-table/src/IhoTable.vue.d.ts +27 -27
- package/es/components/iho-table/src/constants/index.d.ts +5 -5
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +9 -9
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +21 -21
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +10 -10
- package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.d.ts +4 -4
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +65 -65
- package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +4 -4
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +7 -7
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +3 -3
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.d.ts +1 -1
- package/es/components/iho-table/src/hooks/useTablePlugin.d.ts +2 -2
- package/es/components/iho-table/src/plugins/anchorPlugin/index.d.ts +1 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.d.ts +1 -1
- package/es/components/iho-table/src/plugins/bindEventSettingPlugin/index.d.ts +1 -1
- package/es/components/iho-table/src/plugins/colorAndIconPlugin.d.ts +1 -1
- package/es/components/iho-table/src/plugins/copyPastePlugin.d.ts +1 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.d.ts +1 -1
- package/es/components/iho-table/src/plugins/defaultValuePlugin.d.ts +1 -1
- package/es/components/iho-table/src/plugins/defaultValuePlugin.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +2 -2
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterVisibleEventPlugin.d.ts +1 -1
- package/es/components/iho-table/src/plugins/forceArrowKeyPlugin.d.ts +1 -1
- package/es/components/iho-table/src/plugins/headerPlugin.d.ts +1 -1
- package/es/components/iho-table/src/plugins/highLightSetPlugin.d.ts +1 -1
- package/es/components/iho-table/src/plugins/index.d.ts +1 -1
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.d.ts +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.d.ts +1 -1
- package/es/components/iho-table/src/plugins/maxCheckSizePlugin.d.ts +1 -1
- package/es/components/iho-table/src/plugins/operationalFormPlugin/index.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.d.ts +7 -7
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/radioRendererPlugin.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +8 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.d.ts +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/htmlRendererPlugin.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rowClickPlugin/index.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rowDragPlugin/index.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.d.ts +2 -2
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.d.ts +1 -1
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.d.ts +1 -1
- package/es/components/iho-table/src/plugins/wordbookSettingPlugin.d.ts +1 -1
- package/es/components/iho-table/src/types/index.d.ts +3 -3
- package/es/components/iho-table/src/types/pluginType.d.ts +2 -2
- package/es/components/iho-table/src/utils/index.d.ts +3 -3
- package/es/components/iho-table/src/utils/separateMap.d.ts +2 -2
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +3 -3
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +175 -377
- package/es/components/info-header/src/InfoHeader.vue.d.ts +191 -393
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +6 -6
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +9 -9
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +106 -207
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +28 -129
- package/es/components/info-header/src/constants/index.d.ts +1 -1
- package/es/components/info-header/src/types/index.d.ts +1 -1
- package/es/components/keyboard/index.d.ts +1 -1
- package/es/components/map/index.d.ts +1 -1
- package/es/components/map/src/Map.vue.d.ts +1 -1
- package/es/components/picture-clipper/index.d.ts +1 -1
- package/es/components/picture-clipper/src/PictureClipper.vue.d.ts +1 -1
- package/es/components/quick-search/index.d.ts +1 -1
- package/es/components/quick-search/src/index.vue.d.ts +4 -4
- package/es/components/recommend-search/index.d.ts +25 -25
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +7 -7
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +3 -3
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +2 -2
- package/es/components/scale-view/index.d.ts +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +33 -33
- package/es/components/scale-view/src/types/index.d.ts +1 -1
- package/es/components/search-cascader/index.d.ts +34 -34
- package/es/components/search-cascader/src/SearchCascader.vue.d.ts +1 -1
- package/es/components/search-cascader/src/components/SearchMenu.d.ts +1 -1
- package/es/components/search-cascader/src/constants/index.d.ts +1 -1
- package/es/components/search-cascader/src/utils/index.d.ts +1 -1
- package/es/components/select-label/index.d.ts +1 -1
- package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -1
- package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -1
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue.d.ts +3 -3
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue.d.ts +3 -3
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue.d.ts +1 -1
- package/es/components/select-label/src/index.vue.d.ts +19 -19
- package/es/components/select-person/index.d.ts +22 -22
- package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
- package/es/components/shortcut-provider/index.d.ts +1 -1
- package/es/components/shortcut-provider/src/ShortcutProvider.vue.d.ts +2 -2
- package/es/components/shortcut-provider/src/constants/index.d.ts +1 -1
- package/es/components/shortcut-provider/src/hooks/useShortcuts.d.ts +1 -1
- package/es/components/shortcut-provider/src/types/index.d.ts +1 -1
- package/es/components/shortcut-provider/src/utils/index.d.ts +1 -1
- package/es/components/shortcut-setter/index.d.ts +76 -176
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +109 -209
- package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +2 -2
- package/es/components/shortcut-setter/src/types/index.d.ts +1 -1
- package/es/components/slider-tree/index.d.ts +1 -1
- package/es/components/steps-wheel/index.d.ts +1 -1
- package/es/components/table-export-field/index.d.ts +3 -3
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +1 -1
- package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +1 -1
- package/es/components/table-export-field/src/constants/index.d.ts +1 -1
- package/es/components/table-export-field/src/index.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.d.ts +1 -1
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +4 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +4 -0
- package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +13 -9
- package/es/components/table-filter/src/constants/index.d.ts +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -2
- package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -1
- package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +1 -1
- package/es/components/table-filter/src/tool/transformData.d.ts +1 -1
- package/es/components/table-filter/src/types/index.d.ts +1 -0
- package/es/components/time-line/index.d.ts +1 -1
- package/es/components/time-picker/index.d.ts +2 -2
- package/es/components/time-picker/src/TimePicker.vue.d.ts +1 -1
- package/es/components/vod-chunk-upload/index.d.ts +1 -1
- package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +5 -3
- package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
- package/es/shared/components/SelectPage/SelectPage.vue.d.ts +1 -1
- package/es/shared/components/SlotRender/SlotRender.d.ts +1 -1
- package/es/shared/hooks/selectHooks/useOptionFiltered.d.ts +1 -1
- package/es/shared/hooks/selectHooks/useSearchContent.d.ts +1 -1
- package/es/shared/hooks/selectHooks/useSearchContent.js +1 -1
- package/es/shared/hooks/selectHooks/useSelectAllowModify.d.ts +1 -1
- package/es/shared/hooks/selectHooks/useSelectRenders.d.ts +1 -1
- package/es/shared/hooks/useAsyncQueue/types.d.ts +1 -1
- package/es/shared/hooks/useDateTime.d.ts +1 -1
- package/es/shared/hooks/useFormRequest/index.d.ts +2 -2
- package/es/shared/hooks/useFormRequest/types.d.ts +2 -2
- package/es/shared/hooks/useLevelSearchCascader.d.ts +2 -2
- package/es/shared/hooks/useTheme.d.ts +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +1 -1
- package/es/shared/utils/business.d.ts +1 -1
- package/es/shared/utils/business.js +1 -1
- package/es/shared/utils/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { SFCWithInstall } from '
|
|
1
|
+
import { SFCWithInstall } from '../../shared/types';
|
|
2
2
|
declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
3
3
|
type: {
|
|
4
4
|
type: import("vue").PropType<import("./src/interface").IType>;
|
|
5
5
|
default: string;
|
|
6
6
|
};
|
|
7
7
|
data: {
|
|
8
|
-
type: import("vue").PropType<import("
|
|
8
|
+
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
|
9
9
|
required: true;
|
|
10
10
|
};
|
|
11
11
|
addRenderItem: {
|
|
@@ -18,7 +18,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
18
18
|
default: string;
|
|
19
19
|
};
|
|
20
20
|
data: {
|
|
21
|
-
type: import("vue").PropType<import("
|
|
21
|
+
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
|
22
22
|
required: true;
|
|
23
23
|
};
|
|
24
24
|
addRenderItem: {
|
|
@@ -30,8 +30,9 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
30
30
|
onAdd?: ((...args: any[]) => any) | undefined;
|
|
31
31
|
onRemove?: ((...args: any[]) => any) | undefined;
|
|
32
32
|
"onAdd:prevent"?: ((...args: any[]) => any) | undefined;
|
|
33
|
+
"onClick:grid"?: ((...args: any[]) => any) | undefined;
|
|
33
34
|
}>>;
|
|
34
|
-
emits: (event: "select" | "add" | "change" | "remove" | "add:prevent", ...args: any[]) => void;
|
|
35
|
+
emits: (event: "select" | "add" | "change" | "remove" | "add:prevent" | "click:grid", ...args: any[]) => void;
|
|
35
36
|
canvasRef: import("vue").Ref<HTMLCanvasElement | null>;
|
|
36
37
|
canvas: import("vue").Ref<any>;
|
|
37
38
|
pointTipProps: {
|
|
@@ -65,7 +66,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
65
66
|
useCaliperRuler: any;
|
|
66
67
|
updatePolyline: any;
|
|
67
68
|
getGridInfo: any;
|
|
68
|
-
init: () => import("
|
|
69
|
+
init: () => import("../../shared/types").AnyObject;
|
|
69
70
|
PopupTip: import("vue").DefineComponent<{
|
|
70
71
|
show: {
|
|
71
72
|
type: BooleanConstructor;
|
|
@@ -90,7 +91,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
90
91
|
show: boolean;
|
|
91
92
|
point: import("./src/interface").ICoordinateValue;
|
|
92
93
|
list: string[];
|
|
93
|
-
propItems: import("
|
|
94
|
+
propItems: import("../../shared/types").AnyObject;
|
|
94
95
|
};
|
|
95
96
|
pointStyle: import("vue").ComputedRef<{
|
|
96
97
|
top: string;
|
|
@@ -164,13 +165,13 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
164
165
|
show: boolean;
|
|
165
166
|
list: unknown[];
|
|
166
167
|
}>;
|
|
167
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "add" | "change" | "remove" | "add:prevent")[], "remove" | "select" | "add" | "change" | "add:prevent", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
168
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "add" | "change" | "remove" | "add:prevent" | "click:grid")[], "remove" | "select" | "add" | "change" | "add:prevent" | "click:grid", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
168
169
|
type: {
|
|
169
170
|
type: import("vue").PropType<import("./src/interface").IType>;
|
|
170
171
|
default: string;
|
|
171
172
|
};
|
|
172
173
|
data: {
|
|
173
|
-
type: import("vue").PropType<import("
|
|
174
|
+
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
|
174
175
|
required: true;
|
|
175
176
|
};
|
|
176
177
|
addRenderItem: {
|
|
@@ -182,6 +183,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
182
183
|
onAdd?: ((...args: any[]) => any) | undefined;
|
|
183
184
|
onRemove?: ((...args: any[]) => any) | undefined;
|
|
184
185
|
"onAdd:prevent"?: ((...args: any[]) => any) | undefined;
|
|
186
|
+
"onClick:grid"?: ((...args: any[]) => any) | undefined;
|
|
185
187
|
}, {
|
|
186
188
|
type: import("./src/interface").IType;
|
|
187
189
|
}>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
2
|
import { IType } from './interface';
|
|
3
|
-
import { AnyObject } from '
|
|
3
|
+
import { AnyObject } from '../../../shared/types';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
type: {
|
|
6
6
|
type: PropType<IType>;
|
|
@@ -32,8 +32,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
32
|
onAdd?: ((...args: any[]) => any) | undefined;
|
|
33
33
|
onRemove?: ((...args: any[]) => any) | undefined;
|
|
34
34
|
"onAdd:prevent"?: ((...args: any[]) => any) | undefined;
|
|
35
|
+
"onClick:grid"?: ((...args: any[]) => any) | undefined;
|
|
35
36
|
}>>;
|
|
36
|
-
emits: (event: "select" | "add" | "change" | "remove" | "add:prevent", ...args: any[]) => void;
|
|
37
|
+
emits: (event: "select" | "add" | "change" | "remove" | "add:prevent" | "click:grid", ...args: any[]) => void;
|
|
37
38
|
canvasRef: import("vue").Ref<HTMLCanvasElement | null>;
|
|
38
39
|
canvas: import("vue").Ref<any>;
|
|
39
40
|
pointTipProps: {
|
|
@@ -166,7 +167,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
166
167
|
show: boolean;
|
|
167
168
|
list: unknown[];
|
|
168
169
|
}>;
|
|
169
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "add" | "change" | "remove" | "add:prevent")[], "remove" | "select" | "add" | "change" | "add:prevent", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
170
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "add" | "change" | "remove" | "add:prevent" | "click:grid")[], "remove" | "select" | "add" | "change" | "add:prevent" | "click:grid", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
170
171
|
type: {
|
|
171
172
|
type: PropType<IType>;
|
|
172
173
|
default: string;
|
|
@@ -184,6 +185,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
184
185
|
onAdd?: ((...args: any[]) => any) | undefined;
|
|
185
186
|
onRemove?: ((...args: any[]) => any) | undefined;
|
|
186
187
|
"onAdd:prevent"?: ((...args: any[]) => any) | undefined;
|
|
188
|
+
"onClick:grid"?: ((...args: any[]) => any) | undefined;
|
|
187
189
|
}, {
|
|
188
190
|
type: IType;
|
|
189
191
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as r,reactive as t,computed as o,onMounted as s,onBeforeUnmount as a,openBlock as i,createElementBlock as l,normalizeStyle as u,unref as n,createElementVNode as p,Fragment as c,createVNode as h,mergeProps as
|
|
1
|
+
import{defineComponent as e,ref as r,reactive as t,computed as o,onMounted as s,onBeforeUnmount as a,openBlock as i,createElementBlock as l,normalizeStyle as u,unref as n,createElementVNode as p,Fragment as c,createVNode as h,mergeProps as d,createCommentVNode as m}from"vue";import{fabric as f}from"../../../shared/utils/fabricjs/index.js";import v from"./components/PopupTip.vue.js";import g from"./components/PopupMenu.js";import"./hooks/useDraw.js";import"date-fns";import"lodash-es";import"./hooks/useEvent.js";import{useBirthProcessChart as w}from"./hooks/birthProcess/useBirthProcessChart.js";import{useTemperatureChart as C}from"./hooks/temperature/useTemperatureChart.js";import{useSurgicalAnesthesiaChart as k}from"./hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js";import{useElectrocardiogramChart as y}from"./hooks/electrocardiogram/useElectrocardiogramChart.js";var j=e({__name:"FabricChart",props:{type:{type:String,default:"temperature"},data:{type:Object,required:!0},addRenderItem:{type:Function}},emits:["change","add","remove","select","add:prevent","click:grid"],setup(e,{expose:j,emit:P}){const x=e,I=r(null),b=r(),M=t({show:!1,point:{x:0,y:0},list:[]}),R=t({show:!1,point:{x:0,y:0},list:[],target:null}),A=o((()=>{var e;return null==(e=b.value)?void 0:e.wrapperEl})),E=o((()=>({width:`${x.data.width||800}px`,height:`${x.data.height||500}px`}))),{propItems:S,redrawPoints:T,select:_,clickMenu:F,useMeasureRuler:G,useCaliper:$,useCaliperRuler:q,updatePolyline:B,getGridInfo:D}=function(){const e=[b,x,P,I,M,R];switch(x.type){case"birthProcess":return w(...e);case"surgicalAnesthesia":return k(...e);case"electrocardiogram":return y(...e);default:return C(...e)}}();return s((()=>{b.value=new f.Canvas(I.value,{width:S.canvasWidth,height:S.canvasHeight,backgroundColor:"#fff",selection:!1,stopContextMenu:!0,fireRightClick:!0,allowTouchScrolling:!0})})),a((()=>{var e,r,t,o;null==(r=null==(e=b.value)?void 0:e.off)||r.call(e),null==(o=null==(t=b.value)?void 0:t.clear)||o.call(t)})),j({redrawPoints:T,select:_,canvas:b,useMeasureRuler:G,useCaliper:$,useCaliperRuler:q,updatePolyline:B,getGridInfo:D}),(e,r)=>(i(),l("div",{class:"c-fabric-chart",style:u(n(E))},[p("canvas",{ref_key:"canvasRef",ref:I},null,512),n(A)?(i(),l(c,{key:0},[h(v,d({propItems:n(S)},M),null,16,["propItems"]),h(n(g),d({propItems:n(S)},R,{show:R.show,"onUpdate:show":r[0]||(r[0]=e=>R.show=e),onClickMenu:n(F)}),null,16,["propItems","show","onClickMenu"])],64)):m("v-if",!0)],4))}});export{j as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=[{label:"升温",value:!0,type:"rise"},{label:"药物降温",value:void 0,type:"drugReduce"},{label:"物理降温",value:void 0,type:"physicsReduce"},{label:"不升",value:!0,type:"noRise"}],i=[{label:"药物降痛",value:void 0,type:"drugReduce"},{label:"物理降痛",value:void 0,type:"physicsReduce"}],l=[{label:"修改",type:"change"},{label:"删除",type:"remove"}],r="#2563F4",a="#FF1818",s={yemai:{stroke:a,strokeX:r,strokeWidth:1,strokeWidthX:1,radius:6,angle:45},koumai:{stroke:a,strokeWidth:1,radius:6,radiusCircle:3,fillCircle:r},gangmai:{radius:6,radiusCircle:3,stroke:r,fillCircle:a},xinmai:{radius:6,radiusCircle:3,stroke:a,fillCircle:a},humai:{radius:6,fill:"green"},ermai:{stroke:a,strokeWidth:1,radius:6,radiusCircle:3,fillCircle:r}}
|
|
1
|
+
const e=[{label:"升温",value:!0,type:"rise"},{label:"药物降温",value:void 0,type:"drugReduce"},{label:"物理降温",value:void 0,type:"physicsReduce"},{label:"不升",value:!0,type:"noRise"}],i=[{label:"药物降痛",value:void 0,type:"drugReduce"},{label:"物理降痛",value:void 0,type:"physicsReduce"}],l=[{label:"修改",type:"change"},{label:"删除",type:"remove"}],r="#2563F4",a="#FF1818",s={yemai:{stroke:a,strokeX:r,strokeWidth:1,strokeWidthX:1,radius:6,angle:45},koumai:{stroke:a,strokeWidth:1,radius:6,radiusCircle:3,fillCircle:r},gangmai:{radius:6,radiusCircle:3,stroke:r,fillCircle:a},xinmai:{radius:6,radiusCircle:3,stroke:a,fillCircle:a},humai:{radius:6,fill:"green"},ermai:{stroke:a,strokeWidth:1,radius:6,radiusCircle:3,fillCircle:r}};var d=(e=>(e[e.SMALLCELLNUMBER=5]="SMALLCELLNUMBER",e[e.MAXLINENUMBER=13]="MAXLINENUMBER",e))(d||{});export{d as ECG,l as OTHER_MENU,s as OVERLAP,i as PAIN_MENU,e as TEMPERATURE_MENU};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
|
-
import { fabric } from '
|
|
3
|
-
import { AnyObject } from '
|
|
4
|
-
import { IPointTipProps, IPointMenuProps } from '
|
|
2
|
+
import { fabric } from '../../../../../shared/utils/fabricjs';
|
|
3
|
+
import { AnyObject } from '../../../../../shared/types';
|
|
4
|
+
import { IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
|
|
5
5
|
export declare function useBirthProcess(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits: Function, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): {
|
|
6
6
|
clickMenu: ({ item, target }: {
|
|
7
7
|
item: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { fabric } from '
|
|
3
|
-
import { AnyObject } from '
|
|
4
|
-
import { IPointTipProps, IPointMenuProps } from '
|
|
2
|
+
import { fabric } from '../../../../../shared/utils/fabricjs';
|
|
3
|
+
import { AnyObject } from '../../../../../shared/types';
|
|
4
|
+
import { IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
|
|
5
5
|
export declare function useBirthProcessChart(canvas: Ref<fabric.Canvas>, props: AnyObject, emits: Function, canvasRef: Ref<HTMLCanvasElement | null>, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): {
|
|
6
6
|
propItems: any;
|
|
7
7
|
redrawPoints: Ref<any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AnyObject } from '
|
|
2
|
-
import { fabric } from '
|
|
1
|
+
import { AnyObject } from '../../../../../../shared/types';
|
|
2
|
+
import { fabric } from '../../../../../../shared/utils/fabricjs';
|
|
3
3
|
declare type DetailEventOptions = {
|
|
4
4
|
points: number[];
|
|
5
5
|
lineStartIndex: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AnyObject } from '
|
|
2
|
-
import { fabric } from '
|
|
1
|
+
import { AnyObject } from '../../../../../shared/types';
|
|
2
|
+
import { fabric } from '../../../../../shared/utils/fabricjs';
|
|
3
3
|
import { type Ref } from 'vue';
|
|
4
4
|
export declare function useElectrocardiogram(canvas: Ref<fabric.Canvas>, propItems: AnyObject, flag: Ref<boolean>): {
|
|
5
5
|
updatePolyline: (value: number) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{useThrottleFn as t}from"@vueuse/core";import{range as r}from"lodash-es";import{useDetailEvent as o}from"./hooks/useDetailEvent.js";import{defaultTextStyle as
|
|
1
|
+
import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{useThrottleFn as t}from"@vueuse/core";import{range as r}from"lodash-es";import{useDetailEvent as o}from"./hooks/useDetailEvent.js";import{defaultTextStyle as i,drawLine as n}from"../useDraw.js";import{useGrid as s}from"../useGrid.js";import{useElectrocardiogramCumputedPoint as a}from"../useCumputedPoint.js";import"../useEvent.js";import"vue";import"date-fns";import"../temperature/useShadow.js";import{ECG as l}from"../../constants/index.js";import"naive-ui";function d(d,u,m){const{computedX:c,computedY:h}=a(u),{borderStyle:f,originX:g,originY:p,xCellWidth:L,yCellHeight:E,canvasWidth:M,canvasHeight:v,dataList:N,columnNumber:C,gridYNumber:x,gridXNumber:b,rowNumber:S}=u,w=new Set,j=new Set;function R(t=0){N.forEach(((r,o)=>{if(o===N.length-1&&arguments.length)return;const{x:n,y:s,rowIdx:a}=r.origin,d=~~(r.data.length/C),f=r.data.reduce(((e,r,i)=>{const n=o<l.MAXLINENUMBER-1&&i>=t&&i<=t+d||o===l.MAXLINENUMBER-1?[{x:c(e.length+1),y:h(-+r)}]:[];return e.concat(n)}),[]),g=new e.Polyline(f,{fill:"transparent",stroke:"red",strokeWidth:1,left:n,top:s,hasControls:!1,hasBorders:!1,hoverCursor:"default",lockMovementX:!0,lockMovementY:!0,objectCaching:!0});if(A(g,{...u.config,...u,lineStartIndex:t,points:r.data,scale:4,showScaleText:!0,showNumberText:!0,detailRadius:370,beforeEvent:()=>m.value&&Promise.reject()}),g.startIdx=t,o<N.length-1?w.add(g):j.add(g),arguments.length)return;const p=new e.Text(String(r.title),{...i,left:n+L,top:s,originX:"left",originY:"top"});j.add(p)}));const r=arguments.length?[...w]:[...w,...j];d.value.add(...r)}function A(e,t){o(e,t)}s(d,{...u,gridXNumber:b*l.SMALLCELLNUMBER,gridYNumber:x*l.SMALLCELLNUMBER,xCellWidth:L/l.SMALLCELLNUMBER,yCellHeight:E/l.SMALLCELLNUMBER,grid:{...u.grid,subXCell:l.SMALLCELLNUMBER,subYCell:l.SMALLCELLNUMBER}}),function(){const{strokeWidth:t}=f,r=new e.Rect({...f,width:M-t,height:v-t,left:g,top:p,fill:"transparent"});d.value.add(r)}(),function(){const e=M/C,t=[];r(C).forEach((r=>{if(r+1>=C)return;const o=(r+1)*e,i=n([o,0,o,v],{stroke:"#000"});t.push(i)})),d.value.add(...t)}(),R();return{updatePolyline:t((t=>{if(1===C)return;const r=N[N.length-1].data.length,o=~~(r/C),i=t/100*r-o/2,n=i+o>r?r-o:Math.max(0,i);e.util.requestAnimFrame((()=>{if(w.size){const[e]=[...w];if(e.startIdx===n)return;[...w].forEach((e=>d.value.remove(e))),w.clear()}R(n)}))}),150)}}export{d as useElectrocardiogram};
|
package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { fabric } from '
|
|
3
|
-
import { AnyObject } from '
|
|
4
|
-
import { IPointTipProps, IPointMenuProps } from '
|
|
2
|
+
import { fabric } from '../../../../../shared/utils/fabricjs';
|
|
3
|
+
import { AnyObject } from '../../../../../shared/types';
|
|
4
|
+
import { IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
|
|
5
|
+
import { ECG } from '../../../../../components/fabric-chart/src/constants';
|
|
5
6
|
export declare function useElectrocardiogramChart(canvas: Ref<fabric.Canvas>, props: AnyObject, emits: Function, canvasRef: Ref<HTMLCanvasElement | null>, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): {
|
|
6
7
|
propItems: any;
|
|
7
8
|
updatePolyline: Ref<any>;
|
|
@@ -11,6 +12,6 @@ export declare function useElectrocardiogramChart(canvas: Ref<fabric.Canvas>, pr
|
|
|
11
12
|
getGridInfo: () => {
|
|
12
13
|
cellWidth: number;
|
|
13
14
|
cellHeight: number;
|
|
14
|
-
smallCellNumber:
|
|
15
|
+
smallCellNumber: ECG;
|
|
15
16
|
};
|
|
16
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ref as e,computed as a,reactive as t,unref as
|
|
1
|
+
import{ref as e,computed as a,reactive as t,unref as r,watch as u}from"vue";import{defaultBorderStyle as l}from"../useDraw.js";import"../../../../../shared/utils/fabricjs/index.js";import"date-fns";import"lodash-es";import"../useEvent.js";import"../temperature/useShadow.js";import{ECG as i}from"../../constants/index.js";import"naive-ui";import"@vueuse/core";import{useElectrocardiogram as n}from"./useElectrocardiogram.js";import{useMeasureInstrument as o}from"./useMeasureInstrument.js";function d(d,s,m,v,c,g){const h=e(),p=e(),f=e(),N=e(),b=a((()=>s.data.width)),M=a((()=>s.data.height)),C=a((()=>(b.value-0)/L.value)),w=a((()=>(M.value-0)/j.value)),L=a((()=>{const{dataList:e,config:a}=s.data,t=e[e.length-1].data.length/a.hz;return Math.ceil(t/a.mainXCellValue)})),j=a((()=>{const{config:e}=s.data;return Math.ceil(26*E.value/e.mainYCellValue)})),E=a((()=>{const{dataList:e,config:a}=s.data,t=e[e.length-1].data,r=Math.max(...t)-Math.min(...t);return"uv"===a.valueUnit?.001*r:"v"===a.valueUnit?1e3*r:r})),x=a((()=>{var e;return(null==(e=s.data.grid)?void 0:e.event)||{selectable:!0,evented:!0}})),R=a((()=>{const{mode:e="2-6"}=s.data,[a,t]=e.split("-").map((e=>+e));return{columnNumber:a,rowNumber:t}})),y=a((()=>{const{dataList:e,width:a,config:t}=s.data,{columnNumber:r,rowNumber:u}=R.value,l=a/r,n=E.value/t.mainYCellValue*w.value+w.value,o=w.value,d=e.length;return e.map(((e,a)=>{const t=i.MAXLINENUMBER===d&&a===d-1?u:a%u;return{...e,origin:{x:(i.MAXLINENUMBER===d&&a===d-1?0:Math.floor(a/u))*l,y:t*n+o,rowIdx:t}}}))})),I=t({canvasWidth:s.data.width,canvasHeight:s.data.height,borderStyle:{...l,...s.data.borderStyle||{}},grid:s.data.grid,originX:0,endX:b.value,originY:0,endY:M.value,xCellWidth:C.value,yCellHeight:w.value,gridXNumber:L.value,gridYNumber:j.value,event:x.value,dataList:y.value,columnNumber:r(R).columnNumber,rowNumber:r(R).rowNumber,config:s.data.config});return u((()=>d.value),(e=>{e&&function(){const{useMeasureRuler:e,flag:a,useCaliper:t,useCaliperRuler:r}=o(d,I),{updatePolyline:u}=n(d,I,a);p.value=e,f.value=t,N.value=r,h.value=u}()}),{immediate:!0}),{propItems:I,updatePolyline:h,useMeasureRuler:p,useCaliper:f,useCaliperRuler:N,getGridInfo:function(){return{cellWidth:C.value,cellHeight:w.value,smallCellNumber:i.SMALLCELLNUMBER}}}}export{d as useElectrocardiogramChart};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
|
-
import { fabric } from '
|
|
3
|
-
import { AnyObject } from '
|
|
2
|
+
import { fabric } from '../../../../../shared/utils/fabricjs';
|
|
3
|
+
import { AnyObject } from '../../../../../shared/types';
|
|
4
4
|
export declare function useMeasureInstrument(canvas: Ref<fabric.Canvas>, propItems: AnyObject): {
|
|
5
5
|
flag: Ref<boolean>;
|
|
6
6
|
useMeasureRuler: () => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
|
-
import { fabric } from '
|
|
3
|
-
import { AnyObject } from '
|
|
4
|
-
import { IObject, IPointTipProps, IPointMenuProps } from '
|
|
2
|
+
import { fabric } from '../../../../../shared/utils/fabricjs';
|
|
3
|
+
import { AnyObject } from '../../../../../shared/types';
|
|
4
|
+
import { IObject, IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
|
|
5
5
|
export declare function useCenter(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits: Function, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): {
|
|
6
6
|
redrawPoints: (ItemObj?: AnyObject) => void;
|
|
7
7
|
clickMenu: ({ item, target }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
|
-
import { fabric } from '
|
|
3
|
-
import { AnyObject } from '
|
|
4
|
-
import { IPointTipProps } from '
|
|
2
|
+
import { fabric } from '../../../../../shared/utils/fabricjs';
|
|
3
|
+
import { AnyObject } from '../../../../../shared/types';
|
|
4
|
+
import { IPointTipProps } from '../../../../../components/fabric-chart/src/interface';
|
|
5
5
|
export declare function useLeft(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits: Function, pointTipProps: IPointTipProps, moveLimit: Function, setPopup: Function, updateData: Function, getGridPoints: Function): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { fabric } from '
|
|
3
|
-
import { IPointTipProps, IPointMenuProps } from '
|
|
4
|
-
import { AnyObject } from '
|
|
2
|
+
import { fabric } from '../../../../../shared/utils/fabricjs';
|
|
3
|
+
import { IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
|
|
4
|
+
import { AnyObject } from '../../../../../shared/types';
|
|
5
5
|
export declare function useOther(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits: Function, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps, moveLimit: Function, getContainPoints: Function, showDialog: Function, removeCurrentSelection: Function): {
|
|
6
6
|
clickMenu: ({ item, target }: {
|
|
7
7
|
item: AnyObject;
|
package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { fabric } from '
|
|
3
|
-
import { AnyObject } from '
|
|
4
|
-
import { IPointTipProps, IPointMenuProps } from '
|
|
2
|
+
import { fabric } from '../../../../../shared/utils/fabricjs';
|
|
3
|
+
import { AnyObject } from '../../../../../shared/types';
|
|
4
|
+
import { IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
|
|
5
5
|
export declare function useSurgicalAnesthesiaChart(canvas: Ref<fabric.Canvas>, props: AnyObject, emits: Function, canvasRef: Ref<HTMLCanvasElement | null>, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): {
|
|
6
6
|
propItems: any;
|
|
7
7
|
redrawPoints: Ref<any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
|
-
import { fabric } from '
|
|
3
|
-
import { AnyObject } from '
|
|
4
|
-
import { IPointTipProps, IPointMenuProps } from '
|
|
2
|
+
import { fabric } from '../../../../../shared/utils/fabricjs';
|
|
3
|
+
import { AnyObject } from '../../../../../shared/types';
|
|
4
|
+
import { IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
|
|
5
5
|
export declare function useTop(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits: Function, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { fabric } from '
|
|
3
|
-
import { IPropItems } from '
|
|
2
|
+
import { fabric } from '../../../../../shared/utils/fabricjs';
|
|
3
|
+
import { IPropItems } from '../../../../../components/fabric-chart/src/interface';
|
|
4
4
|
export declare function useBottom(canvas: Ref<fabric.Canvas>, propItems: IPropItems): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
|
-
import { fabric } from '
|
|
3
|
-
import { IObject, IPropItems, IPointTipProps, IPointMenuProps } from '
|
|
4
|
-
import { AnyObject } from '
|
|
2
|
+
import { fabric } from '../../../../../shared/utils/fabricjs';
|
|
3
|
+
import { IObject, IPropItems, IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
|
|
4
|
+
import { AnyObject } from '../../../../../shared/types';
|
|
5
5
|
export declare function useCenter(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: Function, computedX: Function, computedY: Function, getXValue: Function, getYValue: Function, addRenderItem: Function | undefined, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): {
|
|
6
6
|
clickMenu: ({ item, target }: {
|
|
7
7
|
item: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{useShadow as t}from"./useShadow.js";import{drawLine as i,defaultStyle as n,drawPoint as o,drawText as l,drawArrow as s}from"../useDraw.js";import{useGrid as r}from"../useGrid.js";import"date-fns";import{isOneLine as a,getType as u,isOverlapPoint as c,isValidValue as p,setOtherType as d,isEffectiveNode as f,getTime as h,getIndex as v,deleteProperty as g}from"../../utils/index.js";import"../useEvent.js";import{useCommon as y}from"../useCommon.js";import"vue";import{cloneDeep as m}from"lodash-es";import"naive-ui";import"@vueuse/core";import{TEMPERATURE_MENU as x,PAIN_MENU as b,OVERLAP as j}from"../../constants/index.js";function w(w,k,S,Y,E,M,$,O,P,A){r(w,k);const{getEqualXTypes:C,handleAddPrevent:I}=y(w,S,k),{createShadowLines:T}=t(),{left:R,xScaleList:X,xCellWidth:V,yCellHeight:z,originX:D,endX:F,originY:H,endY:_,itemList:W,event:q,vitalSignsOriginY:G,painOriginY:B,hospitalizationDate:J,config:K,canvasHeight:N}=k,Q=new Set,U=["xinmai","mai"],Z=new Map,ee=new Set,te=new Set,ie=new Set,ne=m(R.yScaleValue);function oe(t){var o;const l=ne.find((e=>"pulse"===e.type));if(l&&(null==(o=l.dataList)?void 0:o.length)&&(Q.size&&w.value.remove(...Q),Q.clear(),Z.size>1)){if(t){const{type:e,key:i}=t.origin||{};if("pulse"===e){const e=Z.get(i),n=null==e?void 0:e.findIndex((e=>e[0]===t.left));e.splice(n,1,[t.left,t.top])}}const o=function(){const e=[],t=[],i=[];for(const e of Z)t.push(e[1]),e[0]===U[0]&&e[1].forEach((e=>{(Z.get(U[1])||[]).findIndex((t=>t[0]===e[0]))>-1&&i.push(e[0])}));const[n,o]=t;let l=[],s=[];return i.forEach((t=>{const i=n.findIndex((e=>e[0]===t)),r=o.findIndex((e=>e[0]===t)),a=n[i],u=o[r],c=n[i-1],p=n[i+1],d=o[r-1],f=o[r+1];if(c&&d){if(c[0]!==d[0]){const e=Math.max(c[0],d[0]);l.push([c,d].find((t=>t[0]===e)))}}else c?l.push(c):d&&s.push(d);const h=Math.min(a[1],u[1]);l.push([a,u].find((e=>e[1]===h)));const v=Math.max(a[1],u[1]);s.push([a,u].find((e=>e[1]===v)));const g=()=>{const t=[...l,...s.reverse()],[i]=t,n=t.at(-1);i[0]===n[0]&&i[1]===n[1]&&t.splice(-1,1),e.push(t),l=[],s=[]};if(p&&f){if(p[0]!==f[0]){const e=Math.min(p[0],f[0]);l.push([p,f].find((t=>t[0]===e))),g()}}else p?(l.push(p),g()):f?(s.push(f),g()):g()})),e}(),{mode:s,style:r={}}=l.shadow||{};o.forEach((t=>{const o=t.map((e=>({x:e[0],y:e[1]}))),l=new e.Polygon(o,{...n,...r,strokeWidth:1});if(["slash","line"].includes(s)){l.set({fill:"transparent",stroke:r.stroke||"#f00"});const e=[];if(["slash"].includes(s))e.push(...T(t,r._angle,r.space)),e.forEach((e=>{Object.assign(e,{...n,...r}),Q.add(e)}));else{const n=function(e){const t=e.reduce(((e,t)=>{const i=Math.trunc(t[0]);return e[i]=e[i]?e[i].concat([t]):[t],e}),{}),i=Object.values(t).filter((e=>2===e.length&&Math.trunc(e[0][1])!==Math.trunc(e[1][1])));return i}(t);n.forEach((t=>{const n=i([...t.flat()],{...r,originX:"center"});e.push(n),Q.add(n)}))}w.value.add(...e)}Q.add(l),w.value.add(l)}))}}function le(){var e;const t=ne.find((e=>"pulse"===e.type));if(!t||!(null==(e=t.dataList)?void 0:e.length))return;if(!t.dataList.some((e=>e.title.includes("脉搏"))))return;const i=Object.assign({},j,R.overlap||{}),l=[];ee.size&&[...ee].forEach((e=>{[...te].forEach((t=>{if(t.origin&&c(e,t)){const e=t.origin.key;if(e){const s={left:t.left,top:t.top,...n,hoverCursor:"default"};let r="koumai";"yemai"===e&&(r=e),"humai"===e&&(r="circle"),l.push(o(r,{...i[e]||{},...s}))}}}))})),setTimeout((()=>{w.value.add(...l),l.forEach((e=>{null==e||e.bringToFront(),ie.add(e)}))}))}function se(e,t,r){var u;const{type:c,riseStyle:f={},noRiseStyle:h={},verifiedStyle:v={},reduceStyle:g={},pacemaker:y={},upArrowStyle:m={},limitValueStyle:x={},nonePainPointStyle:b={},belowMinValueStyle:j={},dataList:Y=[],list:M=[]}=r,{type:O,textStyle:A,showConnectLine:C=!1}=b,I=[],T=[],R=[];null==(u=e.list)||u.forEach(((u,b)=>{const X=a(c)?Y.find((e=>e.key===u.key)):e,V=ue(u,r),D={};D.value=function(e,t,i){if(!(null==e?void 0:e.length)||!K.showValue)return;const{lineAttr:n={}}=i,o=e[1]<=G.originY+z?e[1]+z:e[1]-z,s=l([e[0],o],{value:t.value,originX:"center",originY:"center",fill:n.stroke||"#000"});return R.push(s),{obj:s,top:-z}}(V,u,X),function(e,t,r,a){var u,d;if(!(null==e?void 0:e.length)||!["temperature","pain"].includes(c))return;const{lineAttr:y={}}=r,{value:m}=a;let x,b,j,w,k;if(t.noRise&&h.show){const t=L(h)?E(c,M,35):e[1];if(h.text)j=l([e[0],L(h)?t:t+5],{value:h.text.split("").join("\n"),originY:"top",...h.style});else{const i=t+2*z;j=s([e[0],t,i],{...h.style})}R.push(j)}t.rise&&f.show&&f.text&&(w=l([e[0],e[1]-(m?z:0)-5],{value:f.text.split("").join("\n"),originY:"bottom",...f.style}),R.push(w));t.verified&&(k=l([e[0],e[1]-(m?z:0)-5],{value:"v",originX:"center",originY:"bottom",...v}),R.push(k));if(p(t.physicsReduce)||p(t.drugReduce)){const l=E(c,M,null!=(u=t.physicsReduce)?u:t.drugReduce);x=i([...e,e[0],l],{...y,...g.line,...n}),b=o((null==(d=null==g?void 0:g.point)?void 0:d.type)||"circle",{left:e[0],top:l,...g.point,...n,originY:l===N?"bottom":"center"}),x&&R.push(x),b&&R.push(b)}Object.assign(a,{reduceLine:{obj:x,type:"line"},noRiseText:{obj:j,top:h.text?5:2*z,isFixed:L(h)},riseText:{obj:w,top:(m?-z:0)-5},verifiedText:{obj:k,top:(m?-z:0)-5},reducePoint:{obj:b,type:"reduce"}})}(V,u,X,D),function(e,t,i,n){if(!(null==e?void 0:e.length)||!["pulse"].includes(c))return;const o=Math.max(...M),r=Math.min(...M);let a,u,p;const{upArrowShow:d=!1,limitValueShow:f=!1}=i;if(d&&+t.value>180){let t=e[1]-2.5*z,i=[e[1]-z/2,t];t<G.originY&&(t=e[1]+2.5*z,i=[t,e[1]+z/2]),a=s([e[0],i[0],i[1]],m,"up"),R.push(a)}if(f){const i={value:t.value,originX:"center",originY:"center",...x};if(+t.value>o){const t=a?e[1]+z/2+a.height:e[1]+z;u=l([e[0],t],i),R.push(u)}+t.value<r&&(u=l([e[0],e[1]-z],i),R.push(u))}if(j.show&&+t.value<r){const t=e[1];if(j.text)p=l([e[0],e[1]+5],{value:j.text.split("").join("\n"),originY:"top",...j.style});else{const i=t+2*z;p=s([e[0],t,i],{...j.style})}R.push(p)}Object.assign(n,{upArrow:{obj:a},limitValue:{obj:u,top:-z},belowMinValue:{obj:p,top:j.text?5:2*z,moveHide:!0}})}(V,u,X,D),function(n,l,s,a,u){let p,f;const{pointAttr:h={},lineAttr:v={},title:g="",key:m,type:x="circle"}=a,b=e.list[s+1],j=ue(b,r),L=re(c,e.list[s].value),Y=j&&re(c,b.value);n&&j&&!l.breakpoint&&(!L&&!Y||C)&&n[0]!==j[0]&&(f=i([...n,...j],{...v}));const E=l.pacemakerShow&&"pulse"==c?y.value:L&&"number"===O?0:x,M=T[s-1],R={origin:{data:l,title:g,key:m||"",unit:r.unit,type:c,_type:d(g,c),dataIndex:t,index:s},leftLine:M,rightLine:f,otherObj:u,lockMovementX:!0,...l.pacemakerShow&&"pulse"==c?y.style:h,...k.event.hovered?k.event.evented?{selectable:!0}:{selectable:!0,lockMovementY:!0}:k.event,...L?{selectable:!1,evented:!1,..."number"===O?A:{}}:{}};if(M){const e=M.get("y2");p=o(E,{left:M.get("x2"),top:L?e-5:e,...R})}else n&&(R.leftLine=null,p=o(E,{left:n[0],top:L?n[1]-5:n[1],...R}));T.push(f),p&&(g.includes("脉搏")?ee.add(p):te.add(p),function(e){q.hovered&&(e.on("mouseover",(()=>{ae(e,"hover")})),e.on("mouseout",(()=>{P.show=!1})));if(e.lockMovementX&&e.lockMovementY)return;e.on("moving",(()=>{!function(e){e.setCoords();const t="pain"===e.origin.type?B:G;e.top<t.originY&&e.set("top",t.originY);e.top>t.endY&&e.set("top",t.endY)}(e),function(e){var t,i;null==(t=e.leftLine)||t.setCoords().set({x2:e.left,y2:e.top}),null==(i=e.rightLine)||i.setCoords().set({x1:e.left,y1:e.top}),Object.values(e.otherObj).forEach((t=>{const{obj:i,type:n="",top:o=0,isFixed:l,moveHide:s=!1}=t||{};"reduce"!==n&&i&&("line"===n?i.setCoords().set({x1:e.left,y1:e.top}):(l||i.setCoords().set({left:e.left,top:e.top+o}),s&&(w.value.remove(i),delete e.otherObj.obj)))})),oe(e)}(e),q.hovered&&ae(e)})),e.on("mouseup",(t=>{if(P.show=!1,1===t.button){const{type:t}=e.origin,i=$(t,e.top),n={...e.origin,data:{...e.origin.data,value:i}};w.value.discardActiveObject(),S("change",n),pe(n,"change")}}))}(p),I.push(p),ie.add(p))}(V,u,b,X,D)})),"pulse"===c&&U.forEach((e=>{Z.set(e,I.filter((t=>{var i;return(null==(i=t.origin)?void 0:i.key)===e})).map((e=>[e.left,e.top])))})),Promise.all(I).then((e=>{const t=T.filter((e=>e));Promise.all(R).then((i=>{w.value.add(...t,...e,...i),e.forEach((t=>{null==t||t.bringToFront(),function(e,t){if("pulse"===e.origin.type){t.filter((t=>t.left===e.left&&"pulse"===t.origin.type)).length>1&&(e.leftLine&&w.value.remove(e.leftLine),e.rightLine&&w.value.remove(e.rightLine))}}(t,e)}))}))}))}function re(e,t){return"pain"===e&&0==t}function ae(e,t="moving"){const{title:i,unit:n,type:o,data:l}=e.origin;P.point={x:e.left,y:e.top},P.list=[function(){const{drugReduce:s,physicsReduce:r}=l||{},a="hover"===t?l.value:$(o,e.top);if(p(s))return`药物降${"pain"==o?"痛":"温"} ${a}—>${s}${n||""}`;if(p(r))return`物理降${"pain"==o?"痛":"温"} ${a}—>${r}${n||""}`;return`${i} ${a}${n||""}`}(),`时间 ${((null==l?void 0:l.time)||M(e.left)).slice(-5)}`],P.show=!0}function ue(e,t){const i="pain"===t.type?B:G;if(f(e)&&function(e){const[t]=X,i=X.at(-1),n=t.start,o=i.end,l=h(e);return l>=n&&l<=o}(e.time)){const n=Y(e.time),o=E(t.type,t.list,e.value);return[n,o<i.originY?i.originY:o>i.endY?i.endY:o]}}function ce(e){const t=new Date,i=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0"),o=h(`${t.getFullYear()}-${i}-${n} 23:59:59`),l=h(`${M(e)}:00`);return J&&l<h(J)?(I("exceedMin"),!1):!(l>o)||(I("exceedMax"),!1)}function pe(e,t="add"){const{type:i,dataIndex:n,index:o,data:l,key:s}=e,r=ne.find((e=>e.type===i));if("add"===t){const e=a(i)?r.dataList.find((e=>e.enable)):r.dataList[n],t=v(l.time,e.list);e.list.splice(t,0,l)}else r.dataList[n].list[o]=l;de()}function de(){var e;ie.size&&(null==(e=w.value)||e.remove(...function(e){const t=[];return e.forEach((e=>{e&&t.push(e),(null==e?void 0:e.leftLine)&&t.push(null==e?void 0:e.leftLine),(null==e?void 0:e.rightLine)&&t.push(null==e?void 0:e.rightLine),Object.values((null==e?void 0:e.otherObj)||{}).forEach((e=>{(null==e?void 0:e.obj)&&t.push(null==e?void 0:e.obj)}))})),t}([...ie]))),Z.clear(),ie.clear(),ee.clear(),te.clear(),ne.forEach((e=>{e.dataList.forEach(((t,i)=>{a(e.type)&&!t.enable||se(t,i,e)}))})),oe(),le()}return Z.clear(),ee.clear(),te.clear(),ne.forEach((e=>{!function(e){if("temperature"!==e.type||!e.positionLine)return;const t=E(e.type,e.list,e.positionLine.value),n=i([D,t,F,t],e.positionLine);w.value.add(n)}(e),e.dataList.forEach(((t,i)=>{!t.show||a(e.type)&&!t.enable||se(t,i,e)}))})),oe(),le(),k.event.evented&&w.value.on("mouse:up",(e=>{var t;if(3===e.button){const{x:i=0,y:n=0}=e.pointer||{};if(i>=D&&i<=F&&n>=H&&n<=_){A.point={x:i,y:n},A.show=!0;const{type:o}=(null==(t=e.target)?void 0:t.origin)||{};if(e.target&&["temperature","pain"].includes(o))"temperature"===o&&(A.list=[...x]),"pain"===o&&(A.list=[...b]),A.target=e.target;else{A.target=null,A.list=["新增节点"],W.forEach((t=>{if(!C([...ie],i,"_type").includes(t.bigType)){const i=["pain"].includes(t.bigType)?B:G;n>=i.originY&&n<=i.endY&&A.list.push({renderItem:O?O(t):()=>t.title,origin:{title:t.title,unit:t.unit,type:u(t.bigType),dataIndex:t.dataIndex,key:t.key},pointer:e.pointer})}}));const t=ce(i);t&&1!==A.list.length||(A.show=!1,1===A.list.length&&t&&I("repeat"))}}}})),{clickMenu:function({item:e,target:t}){if(t){const{data:i,type:n,dataIndex:o,index:l}=t.origin,s=g(i,[...x,...b]);s[`${e.type}`]=e.value,a(n)&&(s.key=t.origin.key);const r={...t.origin,data:s};S("change",r),pe(r,"change")}else{const t={data:{time:M(e.pointer.x),value:$(e.origin.type,e.pointer.y),...a(e.origin.type)?{key:e.origin.key}:{}},...e.origin};S("add",t),pe(t)}},setPopup:ae,isAddPoint:ce,updateData:pe,redrawPoints:de,gridPoints:ie}}function L(e){return"fixed"===e.position}export{w as useCenter};
|
|
1
|
+
import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{useShadow as t}from"./useShadow.js";import{drawLine as i,defaultStyle as n,drawPoint as o,drawText as l,drawArrow as s}from"../useDraw.js";import{useGrid as r}from"../useGrid.js";import"date-fns";import{isOneLine as a,getType as u,isOverlapPoint as c,isValidValue as p,setOtherType as d,isEffectiveNode as f,getTime as h,getIndex as v,deleteProperty as g}from"../../utils/index.js";import"../useEvent.js";import{useCommon as y}from"../useCommon.js";import"vue";import{cloneDeep as m}from"lodash-es";import"naive-ui";import"@vueuse/core";import{TEMPERATURE_MENU as x,PAIN_MENU as b,OVERLAP as j}from"../../constants/index.js";function w(w,k,S,Y,E,M,$,O,P,A){r(w,k);const{getEqualXTypes:C,handleAddPrevent:I}=y(w,S,k),{createShadowLines:T}=t(),{left:R,xScaleList:X,xCellWidth:V,yCellHeight:z,originX:D,endX:F,originY:H,endY:_,itemList:W,event:q,vitalSignsOriginY:G,painOriginY:B,hospitalizationDate:J,config:K,canvasHeight:N}=k,Q=new Set,U=["xinmai","mai"],Z=new Map,ee=new Set,te=new Set,ie=new Set,ne=m(R.yScaleValue);function oe(t){var o;const l=ne.find((e=>"pulse"===e.type));if(l&&(null==(o=l.dataList)?void 0:o.length)&&(Q.size&&w.value.remove(...Q),Q.clear(),Z.size>1)){if(t){const{type:e,key:i}=t.origin||{};if("pulse"===e){const e=Z.get(i),n=null==e?void 0:e.findIndex((e=>e[0]===t.left));e.splice(n,1,[t.left,t.top])}}const o=function(){const e=[],t=[],i=[];for(const e of Z)t.push(e[1]),e[0]===U[0]&&e[1].forEach((e=>{(Z.get(U[1])||[]).findIndex((t=>t[0]===e[0]))>-1&&i.push(e[0])}));const[n,o]=t;let l=[],s=[];return i.forEach((t=>{const i=n.findIndex((e=>e[0]===t)),r=o.findIndex((e=>e[0]===t)),a=n[i],u=o[r],c=n[i-1],p=n[i+1],d=o[r-1],f=o[r+1];if(c&&d){if(c[0]!==d[0]){const e=Math.max(c[0],d[0]);l.push([c,d].find((t=>t[0]===e)))}}else c?l.push(c):d&&s.push(d);const h=Math.min(a[1],u[1]);l.push([a,u].find((e=>e[1]===h)));const v=Math.max(a[1],u[1]);s.push([a,u].find((e=>e[1]===v)));const g=()=>{const t=[...l,...s.reverse()],[i]=t,n=t.at(-1);i[0]===n[0]&&i[1]===n[1]&&t.splice(-1,1),e.push(t),l=[],s=[]};if(p&&f){if(p[0]!==f[0]){const e=Math.min(p[0],f[0]);l.push([p,f].find((t=>t[0]===e))),g()}}else p?(l.push(p),g()):f?(s.push(f),g()):g()})),e}(),{mode:s,style:r={}}=l.shadow||{};o.forEach((t=>{const o=t.map((e=>({x:e[0],y:e[1]}))),l=new e.Polygon(o,{...n,...r,strokeWidth:1});if(["slash","line"].includes(s)){l.set({fill:"transparent",stroke:r.stroke||"#f00"});const e=[];if(["slash"].includes(s))e.push(...T(t,r._angle,r.space)),e.forEach((e=>{Object.assign(e,{...n,...r}),Q.add(e)}));else{const n=function(e){const t=e.reduce(((e,t)=>{const i=Math.trunc(t[0]);return e[i]=e[i]?e[i].concat([t]):[t],e}),{}),i=Object.values(t).filter((e=>2===e.length&&Math.trunc(e[0][1])!==Math.trunc(e[1][1])));return i}(t);n.forEach((t=>{const n=i([...t.flat()],{...r,originX:"center"});e.push(n),Q.add(n)}))}w.value.add(...e)}Q.add(l),w.value.add(l)}))}}function le(){var e;const t=ne.find((e=>"pulse"===e.type));if(!t||!(null==(e=t.dataList)?void 0:e.length))return;if(!t.dataList.some((e=>e.title.includes("脉搏"))))return;const i=Object.assign({},j,R.overlap||{}),l=[];ee.size&&[...ee].forEach((e=>{[...te].forEach((t=>{if(t.origin&&c(e,t)){const e=t.origin.key;if(e){const s={left:t.left,top:t.top,...n,hoverCursor:"default"};let r="koumai";"yemai"===e&&(r=e),"humai"===e&&(r="circle"),l.push(o(r,{...i[e]||{},...s}))}}}))})),setTimeout((()=>{w.value.add(...l),l.forEach((e=>{null==e||e.bringToFront(),ie.add(e)}))}))}function se(e,t,r){var u;const{type:c,riseStyle:f={},noRiseStyle:h={},verifiedStyle:v={},reduceStyle:g={},pacemaker:y={},upArrowStyle:m={},limitValueStyle:x={},nonePainPointStyle:b={},belowMinValueStyle:j={},dataList:Y=[],list:M=[]}=r,{type:O,textStyle:A,showConnectLine:C=!1}=b,I=[],T=[],R=[];null==(u=e.list)||u.forEach(((u,b)=>{const X=a(c)?Y.find((e=>e.key===u.key)):e,V=ue(u,r),D={};D.value=function(e,t,i){if(!(null==e?void 0:e.length)||!K.showValue)return;const{lineAttr:n={}}=i,o=e[1]<=G.originY+z?e[1]+z:e[1]-z,s=l([e[0],o],{value:t.value,originX:"center",originY:"center",fill:n.stroke||"#000"});return R.push(s),{obj:s,top:-z}}(V,u,X),function(e,t,r,a){var u,d;if(!(null==e?void 0:e.length)||!["temperature","pain"].includes(c))return;const{lineAttr:y={}}=r,{value:m}=a;let x,b,j,w,k;if(t.noRise&&h.show){const t=L(h)?E(c,M,35):e[1];if(h.text)j=l([e[0],L(h)?t:t+5],{value:h.text.split("").join("\n"),originY:"top",...h.style});else{const i=t+2*z;j=s([e[0],t,i],{...h.style})}R.push(j)}t.rise&&f.show&&f.text&&(w=l([e[0],e[1]-(m?z:0)-5],{value:f.text.split("").join("\n"),originY:"bottom",...f.style}),R.push(w));t.verified&&(k=l([e[0],e[1]-(m?z:0)-5],{value:"v",originX:"center",originY:"bottom",...v}),R.push(k));if(p(t.physicsReduce)||p(t.drugReduce)){const l=E(c,M,null!=(u=t.physicsReduce)?u:t.drugReduce);x=i([...e,e[0],l],{...y,...g.line,...n}),b=o((null==(d=null==g?void 0:g.point)?void 0:d.type)||"circle",{left:e[0],top:l,...g.point,...n,originY:l===N?"bottom":"center"}),x&&R.push(x),b&&R.push(b)}Object.assign(a,{reduceLine:{obj:x,type:"line"},noRiseText:{obj:j,top:h.text?5:2*z,isFixed:L(h)},riseText:{obj:w,top:(m?-z:0)-5},verifiedText:{obj:k,top:(m?-z:0)-5},reducePoint:{obj:b,type:"reduce"}})}(V,u,X,D),function(e,t,i,n){if(!(null==e?void 0:e.length)||!["pulse"].includes(c))return;const o=Math.max(...M),r=Math.min(...M);let a,u,p;const{upArrowShow:d=!1,limitValueShow:f=!1}=i;if(d&&+t.value>180){let t=e[1]-2.5*z,i=[e[1]-z/2,t];t<G.originY&&(t=e[1]+2.5*z,i=[t,e[1]+z/2]),a=s([e[0],i[0],i[1]],m,"up"),R.push(a)}if(f){const i={value:t.value,originX:"center",originY:"center",...x};if(+t.value>o){const t=a?e[1]+z/2+a.height:e[1]+z;u=l([e[0],t],i),R.push(u)}+t.value<r&&(u=l([e[0],e[1]-z],i),R.push(u))}if(j.show&&+t.value<r){const t=e[1];if(j.text)p=l([e[0],e[1]+5],{value:j.text.split("").join("\n"),originY:"top",...j.style});else{const i=t+2*z;p=s([e[0],t,i],{...j.style})}R.push(p)}Object.assign(n,{upArrow:{obj:a},limitValue:{obj:u,top:-z},belowMinValue:{obj:p,top:j.text?5:2*z,moveHide:!0}})}(V,u,X,D),function(n,l,s,a,u){let p,f;const{pointAttr:h={},lineAttr:v={},title:g="",key:m,type:x="circle"}=a,b=e.list[s+1],j=ue(b,r),L=re(c,e.list[s].value),Y=j&&re(c,b.value);n&&j&&!l.breakpoint&&(!L&&!Y||C)&&n[0]!==j[0]&&(f=i([...n,...j],{...v}));const E=l.pacemakerShow&&"pulse"==c?y.value:L&&"number"===O?0:x,M=T[s-1],R={origin:{data:l,title:g,key:m||"",unit:r.unit,type:c,_type:d(g,c),dataIndex:t,index:s},leftLine:M,rightLine:f,otherObj:u,lockMovementX:!0,...l.pacemakerShow&&"pulse"==c?y.style:h,...k.event.hovered?k.event.evented?{selectable:!0}:{selectable:!0,lockMovementY:!0}:k.event,...L?{selectable:!1,evented:!1,..."number"===O?A:{}}:{}};if(M){const e=M.get("y2");p=o(E,{left:M.get("x2"),top:L?e-5:e,...R})}else n&&(R.leftLine=null,p=o(E,{left:n[0],top:L?n[1]-5:n[1],...R}));T.push(f),p&&(g.includes("脉搏")?ee.add(p):te.add(p),function(e){q.hovered&&(e.on("mouseover",(()=>{ae(e,"hover")})),e.on("mouseout",(()=>{P.show=!1})));if(e.lockMovementX&&e.lockMovementY)return;e.on("moving",(()=>{!function(e){e.setCoords();const t="pain"===e.origin.type?B:G;e.top<t.originY&&e.set("top",t.originY);e.top>t.endY&&e.set("top",t.endY)}(e),function(e){var t,i;null==(t=e.leftLine)||t.setCoords().set({x2:e.left,y2:e.top}),null==(i=e.rightLine)||i.setCoords().set({x1:e.left,y1:e.top}),Object.values(e.otherObj).forEach((t=>{const{obj:i,type:n="",top:o=0,isFixed:l,moveHide:s=!1}=t||{};"reduce"!==n&&i&&("line"===n?i.setCoords().set({x1:e.left,y1:e.top}):(l||i.setCoords().set({left:e.left,top:e.top+o}),s&&(w.value.remove(i),delete e.otherObj.obj)))})),oe(e)}(e),q.hovered&&ae(e)})),e.on("mouseup",(t=>{if(P.show=!1,1===t.button){const{type:t}=e.origin,i=$(t,e.top),n={...e.origin,data:{...e.origin.data,value:i}};w.value.discardActiveObject(),S("change",n),pe(n,"change")}}))}(p),I.push(p),ie.add(p))}(V,u,b,X,D)})),"pulse"===c&&U.forEach((e=>{Z.set(e,I.filter((t=>{var i;return(null==(i=t.origin)?void 0:i.key)===e})).map((e=>[e.left,e.top])))})),Promise.all(I).then((e=>{const t=T.filter((e=>e));Promise.all(R).then((i=>{w.value.add(...t,...e,...i),e.forEach((t=>{null==t||t.bringToFront(),function(e,t){if("pulse"===e.origin.type){t.filter((t=>t.left===e.left&&"pulse"===t.origin.type)).length>1&&(e.leftLine&&w.value.remove(e.leftLine),e.rightLine&&w.value.remove(e.rightLine))}}(t,e)}))}))}))}function re(e,t){return"pain"===e&&0==t}function ae(e,t="moving"){const{title:i,unit:n,type:o,data:l}=e.origin;P.point={x:e.left,y:e.top},P.list=[function(){const{drugReduce:s,physicsReduce:r}=l||{},a="hover"===t?l.value:$(o,e.top);if(p(s))return`药物降${"pain"==o?"痛":"温"} ${a}—>${s}${n||""}`;if(p(r))return`物理降${"pain"==o?"痛":"温"} ${a}—>${r}${n||""}`;return`${i} ${a}${n||""}`}(),`时间 ${((null==l?void 0:l.time)||M(e.left)).slice(-5)}`],P.show=!0}function ue(e,t){const i="pain"===t.type?B:G;if(f(e)&&function(e){const[t]=X,i=X.at(-1),n=t.start,o=i.end,l=h(e);return l>=n&&l<=o}(e.time)){const n=Y(e.time),o=E(t.type,t.list,e.value);return[n,o<i.originY?i.originY:o>i.endY?i.endY:o]}}function ce(e){const t=new Date,i=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0"),o=h(`${t.getFullYear()}-${i}-${n} 23:59:59`),l=h(`${M(e)}:00`);return J&&l<h(J)?(I("exceedMin"),!1):!(l>o)||(I("exceedMax"),!1)}function pe(e,t="add"){const{type:i,dataIndex:n,index:o,data:l,key:s}=e,r=ne.find((e=>e.type===i));if("add"===t){const e=a(i)?r.dataList.find((e=>e.enable)):r.dataList[n],t=v(l.time,e.list);e.list.splice(t,0,l)}else r.dataList[n].list[o]=l;de()}function de(){var e;ie.size&&(null==(e=w.value)||e.remove(...function(e){const t=[];return e.forEach((e=>{e&&t.push(e),(null==e?void 0:e.leftLine)&&t.push(null==e?void 0:e.leftLine),(null==e?void 0:e.rightLine)&&t.push(null==e?void 0:e.rightLine),Object.values((null==e?void 0:e.otherObj)||{}).forEach((e=>{(null==e?void 0:e.obj)&&t.push(null==e?void 0:e.obj)}))})),t}([...ie]))),Z.clear(),ie.clear(),ee.clear(),te.clear(),ne.forEach((e=>{e.dataList.forEach(((t,i)=>{a(e.type)&&!t.enable||se(t,i,e)}))})),oe(),le()}return Z.clear(),ee.clear(),te.clear(),ne.forEach((e=>{!function(e){if("temperature"!==e.type||!e.positionLine)return;const t=E(e.type,e.list,e.positionLine.value),n=i([D,t,F,t],e.positionLine);w.value.add(n)}(e),e.dataList.forEach(((t,i)=>{!t.show||a(e.type)&&!t.enable||se(t,i,e)}))})),oe(),le(),k.event.evented&&w.value.on("mouse:up",(e=>{var t;if(3===e.button){const{x:i=0,y:n=0}=e.pointer||{};if(i>=D&&i<=F&&n>=H&&n<=_){A.point={x:i,y:n},A.show=!0;const{type:o}=(null==(t=e.target)?void 0:t.origin)||{};if(e.target&&["temperature","pain"].includes(o))"temperature"===o&&(A.list=[...x]),"pain"===o&&(A.list=[...b]),A.target=e.target;else{A.target=null,A.list=["新增节点"],W.forEach((t=>{if(!C([...ie],i,"_type").includes(t.bigType)){const i=["pain"].includes(t.bigType)?B:G;n>=i.originY&&n<=i.endY&&A.list.push({renderItem:O?O(t):()=>t.title,origin:{title:t.title,unit:t.unit,type:u(t.bigType),dataIndex:t.dataIndex,key:t.key},pointer:e.pointer})}}));const t=ce(i);t&&1!==A.list.length||(A.show=!1,1===A.list.length&&t&&I("repeat"))}}}if(1===e.button){const{x:t=0,y:i=0}=e.pointer||{};t>=D&&t<=F&&i>0&&i<N&&S("click:grid",{x:t,y:i,time:M(t)})}})),{clickMenu:function({item:e,target:t}){if(t){const{data:i,type:n,dataIndex:o,index:l}=t.origin,s=g(i,[...x,...b]);s[`${e.type}`]=e.value,a(n)&&(s.key=t.origin.key);const r={...t.origin,data:s};S("change",r),pe(r,"change")}else{const t={data:{time:M(e.pointer.x),value:$(e.origin.type,e.pointer.y),...a(e.origin.type)?{key:e.origin.key}:{}},...e.origin};S("add",t),pe(t)}},setPopup:ae,isAddPoint:ce,updateData:pe,redrawPoints:de,gridPoints:ie}}function L(e){return"fixed"===e.position}export{w as useCenter};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { fabric } from '
|
|
3
|
-
import { IPropItems, IPointTipProps, IObject } from '
|
|
2
|
+
import { fabric } from '../../../../../shared/utils/fabricjs';
|
|
3
|
+
import { IPropItems, IPointTipProps, IObject } from '../../../../../components/fabric-chart/src/interface';
|
|
4
4
|
export declare function useLeft(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: Function, setPopup: Function, pointTipProps: IPointTipProps, computedX: Function, computedY: Function, getXValue: Function, getYValue: Function, isAddPoint: Function, updateData: Function, gridPoints: Set<IObject>): {
|
|
5
5
|
drawScaleValue: (yScaleValueList: any[]) => void;
|
|
6
6
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { fabric } from '
|
|
3
|
-
import { IPropItems } from '
|
|
2
|
+
import { fabric } from '../../../../../shared/utils/fabricjs';
|
|
3
|
+
import { IPropItems } from '../../../../../components/fabric-chart/src/interface';
|
|
4
4
|
export declare function useOther(canvas: Ref<fabric.Canvas>, propItems: IPropItems, computedX: Function): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { fabric } from '
|
|
3
|
-
import { IPropItems } from '
|
|
2
|
+
import { fabric } from '../../../../../shared/utils/fabricjs';
|
|
3
|
+
import { IPropItems } from '../../../../../components/fabric-chart/src/interface';
|
|
4
4
|
export declare function useRight(canvas: Ref<fabric.Canvas>, propItems: IPropItems, drawScaleValue: Function): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { fabric } from '
|
|
1
|
+
import { fabric } from '../../../../../shared/utils/fabricjs';
|
|
2
2
|
declare type Point = [number, number];
|
|
3
3
|
export declare function useShadow(): {
|
|
4
4
|
createShadowLines: (coordinates: Point[], angle?: number, space?: number) => fabric.Line[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
|
-
import { fabric } from '
|
|
3
|
-
import { IPointTipProps, IPointMenuProps } from '
|
|
4
|
-
import { AnyObject } from '
|
|
2
|
+
import { fabric } from '../../../../../shared/utils/fabricjs';
|
|
3
|
+
import { IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
|
|
4
|
+
import { AnyObject } from '../../../../../shared/types';
|
|
5
5
|
export declare function useTemperatureChart(canvas: Ref<fabric.Canvas>, props: AnyObject, emits: Function, canvasRef: Ref<HTMLCanvasElement | null>, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): {
|
|
6
6
|
propItems: any;
|
|
7
7
|
redrawPoints: Ref<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
|
-
import { fabric } from '
|
|
3
|
-
import { IPropItems } from '
|
|
2
|
+
import { fabric } from '../../../../../shared/utils/fabricjs';
|
|
3
|
+
import { IPropItems } from '../../../../../components/fabric-chart/src/interface';
|
|
4
4
|
export declare function useTop(canvas: Ref<fabric.Canvas>, propItems: IPropItems): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { fabric } from '
|
|
2
|
+
import { fabric } from '../../../../shared/utils/fabricjs';
|
|
3
3
|
import { IObject } from '../interface';
|
|
4
|
-
import { AnyObject } from '
|
|
4
|
+
import { AnyObject } from '../../../../shared/types';
|
|
5
5
|
export declare function useCommon(canvas: Ref<fabric.Canvas>, emits: Function, propItems: AnyObject): {
|
|
6
6
|
getEqualXTypes: (points: any[], pointX: number, field: string, range?: any) => string[];
|
|
7
7
|
handleAddPrevent: (type: 'repeat' | 'exceedMax' | 'exceedMin') => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IPointType } from '../interface';
|
|
2
|
-
import { AnyObject } from '
|
|
2
|
+
import { AnyObject } from '../../../../shared/types';
|
|
3
3
|
export declare function useCumputedPoint(propItems: AnyObject): {
|
|
4
4
|
computedX: (value: number | string, setAllCenter?: boolean) => any;
|
|
5
5
|
computedY: (type: IPointType, scaleValueList: number[], value: number | string) => number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { fabric } from '
|
|
1
|
+
import { fabric } from '../../../../shared/utils/fabricjs';
|
|
2
2
|
import { ILineOptions, ITextOptions } from '../interface';
|
|
3
|
-
import { AnyObject } from '
|
|
3
|
+
import { AnyObject } from '../../../../shared/types';
|
|
4
4
|
export declare const defaultStyle: {
|
|
5
5
|
evented: boolean;
|
|
6
6
|
selectable: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { fabric } from '
|
|
2
|
+
import { fabric } from '../../../../shared/utils/fabricjs';
|
|
3
3
|
import { IPropItems } from '../interface';
|
|
4
4
|
export declare const bus: import("@vueuse/core").UseEventBusReturn<string, any>;
|
|
5
5
|
export declare function useCanvasEvent(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: any): {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { fabric } from '
|
|
3
|
-
import { AnyObject } from '
|
|
2
|
+
import { fabric } from '../../../../shared/utils/fabricjs';
|
|
3
|
+
import { AnyObject } from '../../../../shared/types';
|
|
4
4
|
export declare function useGrid(canvas: Ref<fabric.Canvas>, propItems: AnyObject): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { fabric } from '
|
|
2
|
-
import { AnyObject } from '
|
|
1
|
+
import { fabric } from '../../../../shared/utils/fabricjs';
|
|
2
|
+
import { AnyObject } from '../../../../shared/types';
|
|
3
3
|
/**
|
|
4
4
|
* @description 获取一些刻度坐标信息
|
|
5
5
|
* @param position {'left'|'center'|'right'} 刻度位置
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
|
-
import { fabric } from '
|
|
3
|
-
import { AnyObject } from '
|
|
2
|
+
import { fabric } from '../../../shared/utils/fabricjs';
|
|
3
|
+
import { AnyObject } from '../../../shared/types';
|
|
4
4
|
export declare type IType = 'temperature' | 'birthProcess' | 'surgicalAnesthesia' | 'electrocardiogram' | undefined;
|
|
5
5
|
interface IEvent {
|
|
6
6
|
selectable: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IPoint, ITreeItem } from '../interface';
|
|
2
|
-
import { AnyObject } from '
|
|
2
|
+
import { AnyObject } from '../../../../shared/types';
|
|
3
3
|
export declare function isEffectiveNode(node: IPoint): string | number | boolean;
|
|
4
4
|
export declare function deleteProperty(data: AnyObject, list: AnyObject[]): {};
|
|
5
5
|
export declare function getIndex(time: string, list: AnyObject[]): number;
|