bhd-components 0.10.31 → 0.10.32
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/README.md +24 -24
- package/dist/index.esm.es5.development.css +1632 -1407
- package/dist/index.esm.es5.development.js +540 -256
- package/dist/index.esm.es5.production.css +1 -1
- package/dist/index.esm.es5.production.js +1 -1
- package/dist/vendor.esm.es5.development.js +222 -210
- package/dist/vendor.esm.es5.production.js +156 -156
- package/es2017/AIMessageList/components/content/index.d.ts +4 -4
- package/es2017/AIMessageList/components/content/index.module.less +7 -7
- package/es2017/AIMessageList/components/copyIcon/index.d.ts +7 -7
- package/es2017/AIMessageList/components/copyIcon/index.module.less +23 -23
- package/es2017/AIMessageList/components/errorCallback/index.d.ts +3 -3
- package/es2017/AIMessageList/components/fileList/fileIcon.d.ts +3 -3
- package/es2017/AIMessageList/components/fileList/index.d.ts +4 -4
- package/es2017/AIMessageList/components/fileList/index.module.less +95 -95
- package/es2017/AIMessageList/components/footer/index.d.ts +10 -10
- package/es2017/AIMessageList/components/footer/index.module.less +51 -51
- package/es2017/AIMessageList/components/header/index.d.ts +9 -9
- package/es2017/AIMessageList/components/header/index.module.less +31 -31
- package/es2017/AIMessageList/components/referencesIcon/index.d.ts +9 -9
- package/es2017/AIMessageList/components/referencesIcon/index.module.less +14 -14
- package/es2017/AIMessageList/components/refreshBtn/index.d.ts +4 -4
- package/es2017/AIMessageList/components/refreshBtn/index.module.less +12 -12
- package/es2017/AIMessageList/components/remarkBtn/index.d.ts +4 -4
- package/es2017/AIMessageList/components/remarkBtn/index.module.less +13 -13
- package/es2017/AIMessageList/components/renderReferrnce/index.d.ts +10 -10
- package/es2017/AIMessageList/components/renderReferrnce/index.module.less +63 -63
- package/es2017/AIMessageList/components/sendBtn/index.d.ts +4 -4
- package/es2017/AIMessageList/components/sendBtn/index.module.less +25 -25
- package/es2017/AIMessageList/components/uplodaFileBtn/index.d.ts +4 -4
- package/es2017/AIMessageList/components/uplodaFileBtn/index.module.less +4 -4
- package/es2017/AIMessageList/components/virtuosoList/index.d.ts +5 -5
- package/es2017/AIMessageList/components/virtuosoList/index.js +33 -33
- package/es2017/AIMessageList/components/virtuosoList/index.module.less +471 -471
- package/es2017/AIMessageList/index.d.ts +4 -4
- package/es2017/AIMessageList/index.module.less +20 -20
- package/es2017/AIMessageList/type.d.ts +310 -310
- package/es2017/bhdAppLayout/components/BhdTableSimple/index.js +9 -9
- package/es2017/bhdAppLayout/components/BhdTableSimple/index.less +58 -58
- package/es2017/bhdAppLayout/components/BhdTableSimple/index/347/232/204/345/211/257/346/234/254.js +9 -9
- package/es2017/bhdAppLayout/index.d.ts +28 -28
- package/es2017/bhdAppLayout/index.module.less +95 -95
- package/es2017/bhdDatePicker/index.d.ts +17 -17
- package/es2017/bhdDatePicker/index.js +1 -1
- package/es2017/bhdDatePicker/index.module.less +1007 -1007
- package/es2017/bhdEditor/index.d.ts +2 -2
- package/es2017/bhdEnterInput/index.d.ts +9 -9
- package/es2017/bhdModalCropper/index.d.ts +10 -10
- package/es2017/bhdModalCropper/index.module.less +362 -362
- package/es2017/bhdSelect/index.d.ts +33 -33
- package/es2017/bhdSelect/index.module.less +131 -131
- package/es2017/bhdTipModal/index.d.ts +29 -29
- package/es2017/bhdTipModal/index.module.less +280 -280
- package/es2017/bhdTipModal/modal.d.ts +6 -6
- package/es2017/customerService/common.module.less +1391 -1391
- package/es2017/customerService/contactsList.d.ts +14 -14
- package/es2017/customerService/function.d.ts +24 -24
- package/es2017/customerService/historyFun.d.ts +13 -13
- package/es2017/customerService/html2canvas.test.js +113 -113
- package/es2017/customerService/index.d.ts +20 -20
- package/es2017/customerService/index.js +305 -87
- package/es2017/customerService/index.module.less +2279 -2166
- package/es2017/customerService/index2.module.less +2216 -2143
- package/es2017/customerService/js-screen-shot/assets/less/screen-shot.less +478 -478
- package/es2017/customerService/js-screen-shot/lib/common-methods/CanvasPatch.d.ts +1 -1
- package/es2017/customerService/js-screen-shot/lib/common-methods/DeviceTypeVerif.d.ts +2 -2
- package/es2017/customerService/js-screen-shot/lib/common-methods/FixedData.d.ts +11 -11
- package/es2017/customerService/js-screen-shot/lib/common-methods/FixedData.js +7 -7
- package/es2017/customerService/js-screen-shot/lib/common-methods/GetBrushSelectedName.d.ts +5 -5
- package/es2017/customerService/js-screen-shot/lib/common-methods/GetBrushSelectedName.js +3 -3
- package/es2017/customerService/js-screen-shot/lib/common-methods/GetCanvasImgData.d.ts +4 -4
- package/es2017/customerService/js-screen-shot/lib/common-methods/GetCanvasImgData.js +2 -2
- package/es2017/customerService/js-screen-shot/lib/common-methods/GetColor.d.ts +1 -1
- package/es2017/customerService/js-screen-shot/lib/common-methods/GetSelectedCalssName.d.ts +1 -1
- package/es2017/customerService/js-screen-shot/lib/common-methods/GetToolRelativePosition.d.ts +7 -7
- package/es2017/customerService/js-screen-shot/lib/common-methods/GetToolRelativePosition.js +2 -2
- package/es2017/customerService/js-screen-shot/lib/common-methods/ImgScaling.d.ts +11 -11
- package/es2017/customerService/js-screen-shot/lib/common-methods/ImgScaling.js +6 -6
- package/es2017/customerService/js-screen-shot/lib/common-methods/SaveBorderArrInfo.d.ts +8 -8
- package/es2017/customerService/js-screen-shot/lib/common-methods/SaveBorderArrInfo.js +5 -5
- package/es2017/customerService/js-screen-shot/lib/common-methods/SaveCanvasToBase64.d.ts +1 -1
- package/es2017/customerService/js-screen-shot/lib/common-methods/SaveCanvasToBase64.js +2 -2
- package/es2017/customerService/js-screen-shot/lib/common-methods/SaveCanvasToImage.d.ts +1 -1
- package/es2017/customerService/js-screen-shot/lib/common-methods/SelectColor.d.ts +1 -1
- package/es2017/customerService/js-screen-shot/lib/common-methods/SelectTextSize.d.ts +5 -5
- package/es2017/customerService/js-screen-shot/lib/common-methods/SetBrushSize.d.ts +14 -14
- package/es2017/customerService/js-screen-shot/lib/common-methods/SetBrushSize.js +10 -10
- package/es2017/customerService/js-screen-shot/lib/common-methods/SetSelectedClassName.d.ts +7 -7
- package/es2017/customerService/js-screen-shot/lib/common-methods/SetSelectedClassName.js +5 -5
- package/es2017/customerService/js-screen-shot/lib/common-methods/TakeOutHistory.d.ts +1 -1
- package/es2017/customerService/js-screen-shot/lib/common-methods/TakeOutHistory.js +2 -2
- package/es2017/customerService/js-screen-shot/lib/common-methods/UpdateContainerMouseStyle.d.ts +1 -1
- package/es2017/customerService/js-screen-shot/lib/common-methods/ZoomCutOutBoxPosition.d.ts +17 -17
- package/es2017/customerService/js-screen-shot/lib/common-methods/ZoomCutOutBoxPosition.js +10 -10
- package/es2017/customerService/js-screen-shot/lib/config/Toolbar.d.ts +5 -5
- package/es2017/customerService/js-screen-shot/lib/main-entrance/CreateDom.d.ts +24 -24
- package/es2017/customerService/js-screen-shot/lib/main-entrance/InitData.d.ts +78 -78
- package/es2017/customerService/js-screen-shot/lib/main-entrance/PlugInParameters.d.ts +46 -46
- package/es2017/customerService/js-screen-shot/lib/split-methods/AddHistoryData.d.ts +1 -1
- package/es2017/customerService/js-screen-shot/lib/split-methods/BoundaryJudgment.d.ts +8 -8
- package/es2017/customerService/js-screen-shot/lib/split-methods/BoundaryJudgment.js +5 -5
- package/es2017/customerService/js-screen-shot/lib/split-methods/CalculateOptionIcoPosition.d.ts +5 -5
- package/es2017/customerService/js-screen-shot/lib/split-methods/CalculateOptionIcoPosition.js +3 -3
- package/es2017/customerService/js-screen-shot/lib/split-methods/CalculateToolLocation.d.ts +16 -16
- package/es2017/customerService/js-screen-shot/lib/split-methods/CalculateToolLocation.js +7 -7
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawArrow.d.ts +31 -31
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawArrow.js +14 -14
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawCircle.d.ts +11 -11
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawCircle.js +9 -9
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawCutOutBox.d.ts +19 -19
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawCutOutBox.js +12 -12
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawLineArrow.d.ts +13 -13
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawLineArrow.js +18 -18
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawMasking.d.ts +6 -6
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawMasking.js +4 -4
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawMosaic.d.ts +12 -12
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawMosaic.js +21 -21
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawPencil.d.ts +13 -13
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawPencil.js +9 -9
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawRectangle.d.ts +11 -11
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawRectangle.js +9 -9
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawText.d.ts +10 -10
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawText.js +8 -8
- package/es2017/customerService/js-screen-shot/lib/split-methods/KeyboardEventHandle.d.ts +10 -10
- package/es2017/customerService/js-screen-shot/lib/split-methods/KeyboardEventHandle.js +4 -4
- package/es2017/customerService/js-screen-shot/lib/split-methods/SetPlugInParameters.d.ts +2 -2
- package/es2017/customerService/js-screen-shot/lib/split-methods/ToolClickEvent.d.ts +1 -1
- package/es2017/customerService/js-screen-shot/lib/split-methods/ToolClickEvent.js +5 -5
- package/es2017/customerService/js-screen-shot/lib/split-methods/drawCrossImg.d.ts +1 -1
- package/es2017/customerService/js-screen-shot/lib/type/ComponentType.d.ts +133 -133
- package/es2017/customerService/js-screen-shot/main.d.ts +110 -110
- package/es2017/customerService/js-screen-shot/main.js +32 -32
- package/es2017/customerService/screenshotTool.d.ts +10 -10
- package/es2017/customerService/teacherList.d.ts +11 -11
- package/es2017/customerService/useMediaRecorder.d.ts +9 -9
- package/es2017/customerService/viewMemaid.d.ts +3 -0
- package/es2017/customerService/viewMemaid.js +57 -0
- package/es2017/i18n/en_US.d.ts +2 -2
- package/es2017/i18n/index.d.ts +2 -2
- package/es2017/i18n/zh_CN.d.ts +2 -2
- package/es2017/icons/components/custom-ai_icon.d.ts +4 -4
- package/es2017/icons/components/custom-arrow.d.ts +4 -4
- package/es2017/icons/components/custom-close.d.ts +4 -4
- package/es2017/icons/components/custom-contacts.d.ts +4 -4
- package/es2017/icons/components/custom-copy.d.ts +4 -4
- package/es2017/icons/components/custom-dislike.d.ts +4 -4
- package/es2017/icons/components/custom-download.d.ts +4 -4
- package/es2017/icons/components/custom-duihao.d.ts +4 -4
- package/es2017/icons/components/custom-exit_full_screen.d.ts +4 -4
- package/es2017/icons/components/custom-expand.d.ts +4 -4
- package/es2017/icons/components/custom-full_screen.d.ts +4 -4
- package/es2017/icons/components/custom-knowledge_content.d.ts +4 -4
- package/es2017/icons/components/custom-like.d.ts +4 -4
- package/es2017/icons/components/custom-quote.d.ts +4 -4
- package/es2017/icons/components/custom-record.d.ts +4 -4
- package/es2017/icons/components/custom-reloading.d.ts +4 -4
- package/es2017/icons/components/custom-retract.d.ts +4 -4
- package/es2017/icons/components/custom-round_close.d.ts +4 -4
- package/es2017/icons/components/custom-screen-xuanzuan.d.ts +4 -4
- package/es2017/icons/components/custom-screenshot.d.ts +4 -4
- package/es2017/icons/components/custom-sending.d.ts +4 -4
- package/es2017/icons/components/custom-sound_recording.d.ts +4 -4
- package/es2017/icons/components/custom-video-abstraction.d.ts +4 -4
- package/es2017/icons/components/custom-wenhao_round.d.ts +4 -4
- package/es2017/icons/components/custom-xuanzuan.d.ts +4 -4
- package/es2017/icons/components/index.d.ts +25 -25
- package/es2017/icons/index.d.ts +2 -2
- package/es2017/images/index.d.ts +6 -6
- package/es2017/index.d.ts +86 -86
- package/es2017/index.js +3 -3
- package/es2017/index.module.css +3 -3
- package/es2017/message/index.d.ts +18 -18
- package/es2017/message/index.module.less +142 -142
- package/es2017/pagination/index.d.ts +4 -4
- package/es2017/pagination/index.module.less +51 -51
- package/es2017/provider/config.d.ts +9 -9
- package/es2017/provider/index.d.ts +7 -7
- package/es2017/table/index.d.ts +12 -12
- package/es2017/table/index.module.less +423 -423
- package/es2017/tableSelect/index.d.ts +3 -3
- package/es2017/tableSelect/index.js +3 -3
- package/es2017/tableSelect/index.module.less +20 -20
- package/es2017/textTootip/index.d.ts +9 -9
- package/es2017/theme/variable.less +652 -652
- package/es2017/titleBar/index.d.ts +16 -16
- package/es2017/titleBar/index.module.less +48 -48
- package/es2017/typings.d.ts +13 -13
- package/es2017/utils/Date.d.ts +10 -10
- package/es2017/utils/dom.d.ts +5 -5
- package/es2017/utils/number.d.ts +1 -1
- package/es2017/utils/object.d.ts +2 -2
- package/es2017/viewImage/index(/345/216/237).d.ts +31 -31
- package/es2017/viewImage/index.d.ts +33 -33
- package/es2017/viewImage/index.module(/345/216/237).less +173 -173
- package/es2017/viewImage/index.module.less +193 -193
- package/esm/AIMessageList/components/content/index.d.ts +4 -4
- package/esm/AIMessageList/components/content/index.module.less +7 -7
- package/esm/AIMessageList/components/copyIcon/index.d.ts +7 -7
- package/esm/AIMessageList/components/copyIcon/index.module.less +23 -23
- package/esm/AIMessageList/components/errorCallback/index.d.ts +3 -3
- package/esm/AIMessageList/components/fileList/fileIcon.d.ts +3 -3
- package/esm/AIMessageList/components/fileList/index.d.ts +4 -4
- package/esm/AIMessageList/components/fileList/index.module.less +95 -95
- package/esm/AIMessageList/components/footer/index.d.ts +10 -10
- package/esm/AIMessageList/components/footer/index.module.less +51 -51
- package/esm/AIMessageList/components/header/index.d.ts +9 -9
- package/esm/AIMessageList/components/header/index.module.less +31 -31
- package/esm/AIMessageList/components/referencesIcon/index.d.ts +9 -9
- package/esm/AIMessageList/components/referencesIcon/index.module.less +14 -14
- package/esm/AIMessageList/components/refreshBtn/index.d.ts +4 -4
- package/esm/AIMessageList/components/refreshBtn/index.module.less +12 -12
- package/esm/AIMessageList/components/remarkBtn/index.d.ts +4 -4
- package/esm/AIMessageList/components/remarkBtn/index.module.less +13 -13
- package/esm/AIMessageList/components/renderReferrnce/index.d.ts +10 -10
- package/esm/AIMessageList/components/renderReferrnce/index.module.less +63 -63
- package/esm/AIMessageList/components/sendBtn/index.d.ts +4 -4
- package/esm/AIMessageList/components/sendBtn/index.module.less +25 -25
- package/esm/AIMessageList/components/uplodaFileBtn/index.d.ts +4 -4
- package/esm/AIMessageList/components/uplodaFileBtn/index.module.less +4 -4
- package/esm/AIMessageList/components/virtuosoList/index.d.ts +5 -5
- package/esm/AIMessageList/components/virtuosoList/index.module.less +471 -471
- package/esm/AIMessageList/index.d.ts +4 -4
- package/esm/AIMessageList/index.module.less +20 -20
- package/esm/AIMessageList/type.d.ts +310 -310
- package/esm/bhdAppLayout/components/BhdTableSimple/index.js +9 -9
- package/esm/bhdAppLayout/components/BhdTableSimple/index.less +58 -58
- package/esm/bhdAppLayout/components/BhdTableSimple/index/347/232/204/345/211/257/346/234/254.js +9 -9
- package/esm/bhdAppLayout/index.d.ts +28 -28
- package/esm/bhdAppLayout/index.module.less +95 -95
- package/esm/bhdDatePicker/index.d.ts +17 -17
- package/esm/bhdDatePicker/index.module.less +1007 -1007
- package/esm/bhdEditor/index.d.ts +2 -2
- package/esm/bhdEnterInput/index.d.ts +9 -9
- package/esm/bhdModalCropper/index.d.ts +10 -10
- package/esm/bhdModalCropper/index.module.less +362 -362
- package/esm/bhdSelect/index.d.ts +33 -33
- package/esm/bhdSelect/index.module.less +131 -131
- package/esm/bhdTipModal/index.d.ts +29 -29
- package/esm/bhdTipModal/index.module.less +280 -280
- package/esm/bhdTipModal/modal.d.ts +6 -6
- package/esm/customerService/common.module.less +1391 -1391
- package/esm/customerService/contactsList.d.ts +14 -14
- package/esm/customerService/function.d.ts +24 -24
- package/esm/customerService/historyFun.d.ts +13 -13
- package/esm/customerService/html2canvas.test.js +113 -113
- package/esm/customerService/index.d.ts +20 -20
- package/esm/customerService/index.js +283 -63
- package/esm/customerService/index.module.less +2279 -2166
- package/esm/customerService/index2.module.less +2216 -2143
- package/esm/customerService/js-screen-shot/assets/less/screen-shot.less +478 -478
- package/esm/customerService/js-screen-shot/lib/common-methods/CanvasPatch.d.ts +1 -1
- package/esm/customerService/js-screen-shot/lib/common-methods/DeviceTypeVerif.d.ts +2 -2
- package/esm/customerService/js-screen-shot/lib/common-methods/FixedData.d.ts +11 -11
- package/esm/customerService/js-screen-shot/lib/common-methods/FixedData.js +7 -7
- package/esm/customerService/js-screen-shot/lib/common-methods/GetBrushSelectedName.d.ts +5 -5
- package/esm/customerService/js-screen-shot/lib/common-methods/GetBrushSelectedName.js +3 -3
- package/esm/customerService/js-screen-shot/lib/common-methods/GetCanvasImgData.d.ts +4 -4
- package/esm/customerService/js-screen-shot/lib/common-methods/GetCanvasImgData.js +2 -2
- package/esm/customerService/js-screen-shot/lib/common-methods/GetColor.d.ts +1 -1
- package/esm/customerService/js-screen-shot/lib/common-methods/GetSelectedCalssName.d.ts +1 -1
- package/esm/customerService/js-screen-shot/lib/common-methods/GetToolRelativePosition.d.ts +7 -7
- package/esm/customerService/js-screen-shot/lib/common-methods/GetToolRelativePosition.js +2 -2
- package/esm/customerService/js-screen-shot/lib/common-methods/ImgScaling.d.ts +11 -11
- package/esm/customerService/js-screen-shot/lib/common-methods/ImgScaling.js +6 -6
- package/esm/customerService/js-screen-shot/lib/common-methods/SaveBorderArrInfo.d.ts +8 -8
- package/esm/customerService/js-screen-shot/lib/common-methods/SaveBorderArrInfo.js +5 -5
- package/esm/customerService/js-screen-shot/lib/common-methods/SaveCanvasToBase64.d.ts +1 -1
- package/esm/customerService/js-screen-shot/lib/common-methods/SaveCanvasToBase64.js +2 -2
- package/esm/customerService/js-screen-shot/lib/common-methods/SaveCanvasToImage.d.ts +1 -1
- package/esm/customerService/js-screen-shot/lib/common-methods/SelectColor.d.ts +1 -1
- package/esm/customerService/js-screen-shot/lib/common-methods/SelectTextSize.d.ts +5 -5
- package/esm/customerService/js-screen-shot/lib/common-methods/SetBrushSize.d.ts +14 -14
- package/esm/customerService/js-screen-shot/lib/common-methods/SetBrushSize.js +10 -10
- package/esm/customerService/js-screen-shot/lib/common-methods/SetSelectedClassName.d.ts +7 -7
- package/esm/customerService/js-screen-shot/lib/common-methods/SetSelectedClassName.js +5 -5
- package/esm/customerService/js-screen-shot/lib/common-methods/TakeOutHistory.d.ts +1 -1
- package/esm/customerService/js-screen-shot/lib/common-methods/TakeOutHistory.js +2 -2
- package/esm/customerService/js-screen-shot/lib/common-methods/UpdateContainerMouseStyle.d.ts +1 -1
- package/esm/customerService/js-screen-shot/lib/common-methods/ZoomCutOutBoxPosition.d.ts +17 -17
- package/esm/customerService/js-screen-shot/lib/common-methods/ZoomCutOutBoxPosition.js +10 -10
- package/esm/customerService/js-screen-shot/lib/config/Toolbar.d.ts +5 -5
- package/esm/customerService/js-screen-shot/lib/main-entrance/CreateDom.d.ts +24 -24
- package/esm/customerService/js-screen-shot/lib/main-entrance/InitData.d.ts +78 -78
- package/esm/customerService/js-screen-shot/lib/main-entrance/PlugInParameters.d.ts +46 -46
- package/esm/customerService/js-screen-shot/lib/split-methods/AddHistoryData.d.ts +1 -1
- package/esm/customerService/js-screen-shot/lib/split-methods/BoundaryJudgment.d.ts +8 -8
- package/esm/customerService/js-screen-shot/lib/split-methods/BoundaryJudgment.js +5 -5
- package/esm/customerService/js-screen-shot/lib/split-methods/CalculateOptionIcoPosition.d.ts +5 -5
- package/esm/customerService/js-screen-shot/lib/split-methods/CalculateOptionIcoPosition.js +3 -3
- package/esm/customerService/js-screen-shot/lib/split-methods/CalculateToolLocation.d.ts +16 -16
- package/esm/customerService/js-screen-shot/lib/split-methods/CalculateToolLocation.js +7 -7
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawArrow.d.ts +31 -31
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawArrow.js +14 -14
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawCircle.d.ts +11 -11
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawCircle.js +9 -9
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawCutOutBox.d.ts +19 -19
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawCutOutBox.js +12 -12
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawLineArrow.d.ts +13 -13
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawLineArrow.js +18 -18
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawMasking.d.ts +6 -6
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawMasking.js +4 -4
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawMosaic.d.ts +12 -12
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawMosaic.js +21 -21
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawPencil.d.ts +13 -13
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawPencil.js +9 -9
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawRectangle.d.ts +11 -11
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawRectangle.js +9 -9
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawText.d.ts +10 -10
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawText.js +8 -8
- package/esm/customerService/js-screen-shot/lib/split-methods/KeyboardEventHandle.d.ts +10 -10
- package/esm/customerService/js-screen-shot/lib/split-methods/KeyboardEventHandle.js +4 -4
- package/esm/customerService/js-screen-shot/lib/split-methods/SetPlugInParameters.d.ts +2 -2
- package/esm/customerService/js-screen-shot/lib/split-methods/ToolClickEvent.d.ts +1 -1
- package/esm/customerService/js-screen-shot/lib/split-methods/ToolClickEvent.js +5 -5
- package/esm/customerService/js-screen-shot/lib/split-methods/drawCrossImg.d.ts +1 -1
- package/esm/customerService/js-screen-shot/lib/type/ComponentType.d.ts +133 -133
- package/esm/customerService/js-screen-shot/main.d.ts +110 -110
- package/esm/customerService/js-screen-shot/main.js +32 -32
- package/esm/customerService/screenshotTool.d.ts +10 -10
- package/esm/customerService/teacherList.d.ts +11 -11
- package/esm/customerService/useMediaRecorder.d.ts +9 -9
- package/esm/customerService/viewMemaid.d.ts +3 -0
- package/esm/customerService/viewMemaid.js +75 -0
- package/esm/i18n/en_US.d.ts +2 -2
- package/esm/i18n/index.d.ts +2 -2
- package/esm/i18n/zh_CN.d.ts +2 -2
- package/esm/icons/components/custom-ai_icon.d.ts +4 -4
- package/esm/icons/components/custom-arrow.d.ts +4 -4
- package/esm/icons/components/custom-close.d.ts +4 -4
- package/esm/icons/components/custom-contacts.d.ts +4 -4
- package/esm/icons/components/custom-copy.d.ts +4 -4
- package/esm/icons/components/custom-dislike.d.ts +4 -4
- package/esm/icons/components/custom-download.d.ts +4 -4
- package/esm/icons/components/custom-duihao.d.ts +4 -4
- package/esm/icons/components/custom-exit_full_screen.d.ts +4 -4
- package/esm/icons/components/custom-expand.d.ts +4 -4
- package/esm/icons/components/custom-full_screen.d.ts +4 -4
- package/esm/icons/components/custom-knowledge_content.d.ts +4 -4
- package/esm/icons/components/custom-like.d.ts +4 -4
- package/esm/icons/components/custom-quote.d.ts +4 -4
- package/esm/icons/components/custom-record.d.ts +4 -4
- package/esm/icons/components/custom-reloading.d.ts +4 -4
- package/esm/icons/components/custom-retract.d.ts +4 -4
- package/esm/icons/components/custom-round_close.d.ts +4 -4
- package/esm/icons/components/custom-screen-xuanzuan.d.ts +4 -4
- package/esm/icons/components/custom-screenshot.d.ts +4 -4
- package/esm/icons/components/custom-sending.d.ts +4 -4
- package/esm/icons/components/custom-sound_recording.d.ts +4 -4
- package/esm/icons/components/custom-video-abstraction.d.ts +4 -4
- package/esm/icons/components/custom-wenhao_round.d.ts +4 -4
- package/esm/icons/components/custom-xuanzuan.d.ts +4 -4
- package/esm/icons/components/index.d.ts +25 -25
- package/esm/icons/index.d.ts +2 -2
- package/esm/images/index.d.ts +6 -6
- package/esm/index.d.ts +86 -86
- package/esm/index.js +3 -3
- package/esm/index.module.css +3 -3
- package/esm/message/index.d.ts +18 -18
- package/esm/message/index.module.less +142 -142
- package/esm/pagination/index.d.ts +4 -4
- package/esm/pagination/index.module.less +51 -51
- package/esm/provider/config.d.ts +9 -9
- package/esm/provider/index.d.ts +7 -7
- package/esm/table/index.d.ts +12 -12
- package/esm/table/index.module.less +423 -423
- package/esm/tableSelect/index.d.ts +3 -3
- package/esm/tableSelect/index.js +3 -3
- package/esm/tableSelect/index.module.less +20 -20
- package/esm/textTootip/index.d.ts +9 -9
- package/esm/theme/variable.less +652 -652
- package/esm/titleBar/index.d.ts +16 -16
- package/esm/titleBar/index.module.less +48 -48
- package/esm/typings.d.ts +13 -13
- package/esm/utils/Date.d.ts +10 -10
- package/esm/utils/dom.d.ts +5 -5
- package/esm/utils/number.d.ts +1 -1
- package/esm/utils/object.d.ts +2 -2
- package/esm/viewImage/index(/345/216/237).d.ts +31 -31
- package/esm/viewImage/index.d.ts +33 -33
- package/esm/viewImage/index.module(/345/216/237).less +173 -173
- package/esm/viewImage/index.module.less +193 -193
- package/package.json +2 -1
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
export default class PlugInParameters {
|
|
2
|
-
constructor();
|
|
3
|
-
setInitStatus(status: boolean): void;
|
|
4
|
-
getInitStatus(): boolean;
|
|
5
|
-
getWebRtcStatus(): boolean;
|
|
6
|
-
setWebRtcStatus(status: boolean): void;
|
|
7
|
-
setScreenShotDom(dom: HTMLElement): void;
|
|
8
|
-
getCutBoxBdColor(): string;
|
|
9
|
-
setCutBoxBdColor(color: string): void;
|
|
10
|
-
getScreenShotDom(): HTMLElement;
|
|
11
|
-
getScreenFlow(): MediaStream;
|
|
12
|
-
setScreenFlow(stream: MediaStream): void;
|
|
13
|
-
getCanvasSize(): {
|
|
14
|
-
canvasWidth: number;
|
|
15
|
-
canvasHeight: number;
|
|
16
|
-
};
|
|
17
|
-
setCanvasSize(width: number, height: number): void;
|
|
18
|
-
getShowScreenDataStatus(): boolean;
|
|
19
|
-
setShowScreenDataStatus(status: boolean): void;
|
|
20
|
-
setMaskColor(color: {
|
|
21
|
-
r: number;
|
|
22
|
-
g: number;
|
|
23
|
-
b: number;
|
|
24
|
-
a: number;
|
|
25
|
-
}): void;
|
|
26
|
-
getMaskColor(): {
|
|
27
|
-
r: number;
|
|
28
|
-
g: number;
|
|
29
|
-
b: number;
|
|
30
|
-
a: number;
|
|
31
|
-
};
|
|
32
|
-
setWriteImgState(state: boolean): void;
|
|
33
|
-
getWriteImgState(): boolean;
|
|
34
|
-
setSaveCallback(saveFn: (code: number, msg: string) => void): void;
|
|
35
|
-
getSaveCallback(): (code: number, msg: string) => void;
|
|
36
|
-
setMaxUndoNum(num: number): void;
|
|
37
|
-
getMaxUndoNum(): number;
|
|
38
|
-
setRatioArrow(state: boolean): void;
|
|
39
|
-
getRatioArrow(): boolean;
|
|
40
|
-
setImgAutoFit(state: boolean): void;
|
|
41
|
-
getImgAutoFit(): boolean;
|
|
42
|
-
setSaveImgTitle(title: string): void;
|
|
43
|
-
getSaveImgTitle(): string;
|
|
44
|
-
setDestroyContainerState(state: boolean): void;
|
|
45
|
-
getDestroyContainerState(): boolean;
|
|
46
|
-
}
|
|
1
|
+
export default class PlugInParameters {
|
|
2
|
+
constructor();
|
|
3
|
+
setInitStatus(status: boolean): void;
|
|
4
|
+
getInitStatus(): boolean;
|
|
5
|
+
getWebRtcStatus(): boolean;
|
|
6
|
+
setWebRtcStatus(status: boolean): void;
|
|
7
|
+
setScreenShotDom(dom: HTMLElement): void;
|
|
8
|
+
getCutBoxBdColor(): string;
|
|
9
|
+
setCutBoxBdColor(color: string): void;
|
|
10
|
+
getScreenShotDom(): HTMLElement;
|
|
11
|
+
getScreenFlow(): MediaStream;
|
|
12
|
+
setScreenFlow(stream: MediaStream): void;
|
|
13
|
+
getCanvasSize(): {
|
|
14
|
+
canvasWidth: number;
|
|
15
|
+
canvasHeight: number;
|
|
16
|
+
};
|
|
17
|
+
setCanvasSize(width: number, height: number): void;
|
|
18
|
+
getShowScreenDataStatus(): boolean;
|
|
19
|
+
setShowScreenDataStatus(status: boolean): void;
|
|
20
|
+
setMaskColor(color: {
|
|
21
|
+
r: number;
|
|
22
|
+
g: number;
|
|
23
|
+
b: number;
|
|
24
|
+
a: number;
|
|
25
|
+
}): void;
|
|
26
|
+
getMaskColor(): {
|
|
27
|
+
r: number;
|
|
28
|
+
g: number;
|
|
29
|
+
b: number;
|
|
30
|
+
a: number;
|
|
31
|
+
};
|
|
32
|
+
setWriteImgState(state: boolean): void;
|
|
33
|
+
getWriteImgState(): boolean;
|
|
34
|
+
setSaveCallback(saveFn: (code: number, msg: string) => void): void;
|
|
35
|
+
getSaveCallback(): (code: number, msg: string) => void;
|
|
36
|
+
setMaxUndoNum(num: number): void;
|
|
37
|
+
getMaxUndoNum(): number;
|
|
38
|
+
setRatioArrow(state: boolean): void;
|
|
39
|
+
getRatioArrow(): boolean;
|
|
40
|
+
setImgAutoFit(state: boolean): void;
|
|
41
|
+
getImgAutoFit(): boolean;
|
|
42
|
+
setSaveImgTitle(title: string): void;
|
|
43
|
+
getSaveImgTitle(): string;
|
|
44
|
+
setDestroyContainerState(state: boolean): void;
|
|
45
|
+
getDestroyContainerState(): boolean;
|
|
46
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function addHistory(): void;
|
|
1
|
+
export declare function addHistory(): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { positionInfoType } from "../type/ComponentType";
|
|
2
|
-
/**
|
|
3
|
-
* 获取工具栏工具边界绘制状态
|
|
4
|
-
* @param startX x轴绘制起点
|
|
5
|
-
* @param startY y轴绘制起点
|
|
6
|
-
* @param cutBoxPosition 裁剪框位置信息
|
|
7
|
-
*/
|
|
8
|
-
export declare function getDrawBoundaryStatus(startX: number, startY: number, cutBoxPosition: positionInfoType): boolean;
|
|
1
|
+
import { positionInfoType } from "../type/ComponentType";
|
|
2
|
+
/**
|
|
3
|
+
* 获取工具栏工具边界绘制状态
|
|
4
|
+
* @param startX x轴绘制起点
|
|
5
|
+
* @param startY y轴绘制起点
|
|
6
|
+
* @param cutBoxPosition 裁剪框位置信息
|
|
7
|
+
*/
|
|
8
|
+
export declare function getDrawBoundaryStatus(startX: number, startY: number, cutBoxPosition: positionInfoType): boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 获取工具栏工具边界绘制状态
|
|
3
|
-
* @param startX x轴绘制起点
|
|
4
|
-
* @param startY y轴绘制起点
|
|
5
|
-
* @param cutBoxPosition 裁剪框位置信息
|
|
1
|
+
/**
|
|
2
|
+
* 获取工具栏工具边界绘制状态
|
|
3
|
+
* @param startX x轴绘制起点
|
|
4
|
+
* @param startY y轴绘制起点
|
|
5
|
+
* @param cutBoxPosition 裁剪框位置信息
|
|
6
6
|
*/ export function getDrawBoundaryStatus(startX, startY, cutBoxPosition) {
|
|
7
7
|
if (startX < cutBoxPosition.startX || startY < cutBoxPosition.startY || startX > cutBoxPosition.startX + cutBoxPosition.width || startY > cutBoxPosition.startY + cutBoxPosition.height) {
|
|
8
8
|
// 无法绘制
|
package/es2017/customerService/js-screen-shot/lib/split-methods/CalculateOptionIcoPosition.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 计算截图工具栏画笔选项三角形角标位置
|
|
3
|
-
* @param index
|
|
4
|
-
*/
|
|
5
|
-
export declare function calculateOptionIcoPosition(index: number): number;
|
|
1
|
+
/**
|
|
2
|
+
* 计算截图工具栏画笔选项三角形角标位置
|
|
3
|
+
* @param index
|
|
4
|
+
*/
|
|
5
|
+
export declare function calculateOptionIcoPosition(index: number): number;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { positionInfoType, toolPositionValType } from "../type/ComponentType";
|
|
2
|
-
/**
|
|
3
|
-
* 计算截图工具栏位置
|
|
4
|
-
* @param position 裁剪框位置信息
|
|
5
|
-
* @param toolWidth 截图工具栏宽度
|
|
6
|
-
* @param containerWidth 截图容器宽度
|
|
7
|
-
* @param placement 展示位置
|
|
8
|
-
* @param containerLocation 截图容器位置信息
|
|
9
|
-
*/
|
|
10
|
-
export declare function calculateToolLocation(position: positionInfoType, toolWidth: number, containerWidth: number, placement: toolPositionValType, containerLocation: {
|
|
11
|
-
top: number;
|
|
12
|
-
left: number;
|
|
13
|
-
}): {
|
|
14
|
-
mouseX: number;
|
|
15
|
-
mouseY: number;
|
|
16
|
-
};
|
|
1
|
+
import { positionInfoType, toolPositionValType } from "../type/ComponentType";
|
|
2
|
+
/**
|
|
3
|
+
* 计算截图工具栏位置
|
|
4
|
+
* @param position 裁剪框位置信息
|
|
5
|
+
* @param toolWidth 截图工具栏宽度
|
|
6
|
+
* @param containerWidth 截图容器宽度
|
|
7
|
+
* @param placement 展示位置
|
|
8
|
+
* @param containerLocation 截图容器位置信息
|
|
9
|
+
*/
|
|
10
|
+
export declare function calculateToolLocation(position: positionInfoType, toolWidth: number, containerWidth: number, placement: toolPositionValType, containerLocation: {
|
|
11
|
+
top: number;
|
|
12
|
+
left: number;
|
|
13
|
+
}): {
|
|
14
|
+
mouseX: number;
|
|
15
|
+
mouseY: number;
|
|
16
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 计算截图工具栏位置
|
|
3
|
-
* @param position 裁剪框位置信息
|
|
4
|
-
* @param toolWidth 截图工具栏宽度
|
|
5
|
-
* @param containerWidth 截图容器宽度
|
|
6
|
-
* @param placement 展示位置
|
|
7
|
-
* @param containerLocation 截图容器位置信息
|
|
1
|
+
/**
|
|
2
|
+
* 计算截图工具栏位置
|
|
3
|
+
* @param position 裁剪框位置信息
|
|
4
|
+
* @param toolWidth 截图工具栏宽度
|
|
5
|
+
* @param containerWidth 截图容器宽度
|
|
6
|
+
* @param placement 展示位置
|
|
7
|
+
* @param containerLocation 截图容器位置信息
|
|
8
8
|
*/ export function calculateToolLocation(position, toolWidth, containerWidth, placement, containerLocation) {
|
|
9
9
|
// 工具栏X轴坐标 = (裁剪框的宽度 - 工具栏的宽度) / 2 + (裁剪框距离左侧的距离 - 容器距离左侧的距离)
|
|
10
10
|
let mouseX = (position.width - toolWidth) / 2 + (position.startX - containerLocation.left);
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
export declare class DrawArrow {
|
|
2
|
-
private beginPoint;
|
|
3
|
-
private stopPoint;
|
|
4
|
-
private polygonVertex;
|
|
5
|
-
private angle;
|
|
6
|
-
private arrowInfo;
|
|
7
|
-
private size;
|
|
8
|
-
/**
|
|
9
|
-
* 绘制箭头
|
|
10
|
-
* @param ctx 需要进行绘制的画布
|
|
11
|
-
* @param originX 鼠标按下时的x轴坐标
|
|
12
|
-
* @param originY 鼠标按下式的y轴坐标
|
|
13
|
-
* @param x 当前鼠标x轴坐标
|
|
14
|
-
* @param y 当前鼠标y轴坐标
|
|
15
|
-
* @param color 箭头颜色
|
|
16
|
-
* @param size 箭头尺寸
|
|
17
|
-
*/
|
|
18
|
-
draw(ctx: CanvasRenderingContext2D, originX: number, originY: number, x: number, y: number, color: string, size: number): void;
|
|
19
|
-
private arrowCord;
|
|
20
|
-
private getRadian;
|
|
21
|
-
private sideCord;
|
|
22
|
-
/**
|
|
23
|
-
* 设置箭头的相关绘制信息
|
|
24
|
-
* @param edgeLen 长度
|
|
25
|
-
* @param angle 角度
|
|
26
|
-
* @private
|
|
27
|
-
*/
|
|
28
|
-
private setArrowInfo;
|
|
29
|
-
private dynArrowSize;
|
|
30
|
-
private drawArrow;
|
|
31
|
-
}
|
|
1
|
+
export declare class DrawArrow {
|
|
2
|
+
private beginPoint;
|
|
3
|
+
private stopPoint;
|
|
4
|
+
private polygonVertex;
|
|
5
|
+
private angle;
|
|
6
|
+
private arrowInfo;
|
|
7
|
+
private size;
|
|
8
|
+
/**
|
|
9
|
+
* 绘制箭头
|
|
10
|
+
* @param ctx 需要进行绘制的画布
|
|
11
|
+
* @param originX 鼠标按下时的x轴坐标
|
|
12
|
+
* @param originY 鼠标按下式的y轴坐标
|
|
13
|
+
* @param x 当前鼠标x轴坐标
|
|
14
|
+
* @param y 当前鼠标y轴坐标
|
|
15
|
+
* @param color 箭头颜色
|
|
16
|
+
* @param size 箭头尺寸
|
|
17
|
+
*/
|
|
18
|
+
draw(ctx: CanvasRenderingContext2D, originX: number, originY: number, x: number, y: number, color: string, size: number): void;
|
|
19
|
+
private arrowCord;
|
|
20
|
+
private getRadian;
|
|
21
|
+
private sideCord;
|
|
22
|
+
/**
|
|
23
|
+
* 设置箭头的相关绘制信息
|
|
24
|
+
* @param edgeLen 长度
|
|
25
|
+
* @param angle 角度
|
|
26
|
+
* @private
|
|
27
|
+
*/
|
|
28
|
+
private setArrowInfo;
|
|
29
|
+
private dynArrowSize;
|
|
30
|
+
private drawArrow;
|
|
31
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { _ as _define_property } from "@swc/helpers/_/_define_property";
|
|
2
2
|
export class DrawArrow {
|
|
3
|
-
/**
|
|
4
|
-
* 绘制箭头
|
|
5
|
-
* @param ctx 需要进行绘制的画布
|
|
6
|
-
* @param originX 鼠标按下时的x轴坐标
|
|
7
|
-
* @param originY 鼠标按下式的y轴坐标
|
|
8
|
-
* @param x 当前鼠标x轴坐标
|
|
9
|
-
* @param y 当前鼠标y轴坐标
|
|
10
|
-
* @param color 箭头颜色
|
|
11
|
-
* @param size 箭头尺寸
|
|
3
|
+
/**
|
|
4
|
+
* 绘制箭头
|
|
5
|
+
* @param ctx 需要进行绘制的画布
|
|
6
|
+
* @param originX 鼠标按下时的x轴坐标
|
|
7
|
+
* @param originY 鼠标按下式的y轴坐标
|
|
8
|
+
* @param x 当前鼠标x轴坐标
|
|
9
|
+
* @param y 当前鼠标y轴坐标
|
|
10
|
+
* @param color 箭头颜色
|
|
11
|
+
* @param size 箭头尺寸
|
|
12
12
|
*/ draw(ctx, originX, originY, x, y, color, size) {
|
|
13
13
|
this.beginPoint.x = originX;
|
|
14
14
|
this.beginPoint.y = originY;
|
|
@@ -70,11 +70,11 @@ export class DrawArrow {
|
|
|
70
70
|
this.polygonVertex[10] = (this.polygonVertex[8] + midpoint.x) / 2;
|
|
71
71
|
this.polygonVertex[11] = (this.polygonVertex[9] + midpoint.y) / 2;
|
|
72
72
|
}
|
|
73
|
-
/**
|
|
74
|
-
* 设置箭头的相关绘制信息
|
|
75
|
-
* @param edgeLen 长度
|
|
76
|
-
* @param angle 角度
|
|
77
|
-
* @private
|
|
73
|
+
/**
|
|
74
|
+
* 设置箭头的相关绘制信息
|
|
75
|
+
* @param edgeLen 长度
|
|
76
|
+
* @param angle 角度
|
|
77
|
+
* @private
|
|
78
78
|
*/ setArrowInfo(edgeLen, angle) {
|
|
79
79
|
this.arrowInfo.edgeLen = edgeLen;
|
|
80
80
|
this.arrowInfo.angle = angle;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 绘制圆形
|
|
3
|
-
* @param context 需要进行绘制的画布
|
|
4
|
-
* @param mouseX 当前鼠标x轴坐标
|
|
5
|
-
* @param mouseY 当前鼠标y轴坐标
|
|
6
|
-
* @param mouseStartX 鼠标按下时的x轴坐标
|
|
7
|
-
* @param mouseStartY 鼠标按下时的y轴坐标
|
|
8
|
-
* @param borderWidth 边框宽度
|
|
9
|
-
* @param color 边框颜色
|
|
10
|
-
*/
|
|
11
|
-
export declare function drawCircle(context: CanvasRenderingContext2D, mouseX: number, mouseY: number, mouseStartX: number, mouseStartY: number, borderWidth: number, color: string): void;
|
|
1
|
+
/**
|
|
2
|
+
* 绘制圆形
|
|
3
|
+
* @param context 需要进行绘制的画布
|
|
4
|
+
* @param mouseX 当前鼠标x轴坐标
|
|
5
|
+
* @param mouseY 当前鼠标y轴坐标
|
|
6
|
+
* @param mouseStartX 鼠标按下时的x轴坐标
|
|
7
|
+
* @param mouseStartY 鼠标按下时的y轴坐标
|
|
8
|
+
* @param borderWidth 边框宽度
|
|
9
|
+
* @param color 边框颜色
|
|
10
|
+
*/
|
|
11
|
+
export declare function drawCircle(context: CanvasRenderingContext2D, mouseX: number, mouseY: number, mouseStartX: number, mouseStartY: number, borderWidth: number, color: string): void;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 绘制圆形
|
|
3
|
-
* @param context 需要进行绘制的画布
|
|
4
|
-
* @param mouseX 当前鼠标x轴坐标
|
|
5
|
-
* @param mouseY 当前鼠标y轴坐标
|
|
6
|
-
* @param mouseStartX 鼠标按下时的x轴坐标
|
|
7
|
-
* @param mouseStartY 鼠标按下时的y轴坐标
|
|
8
|
-
* @param borderWidth 边框宽度
|
|
9
|
-
* @param color 边框颜色
|
|
1
|
+
/**
|
|
2
|
+
* 绘制圆形
|
|
3
|
+
* @param context 需要进行绘制的画布
|
|
4
|
+
* @param mouseX 当前鼠标x轴坐标
|
|
5
|
+
* @param mouseY 当前鼠标y轴坐标
|
|
6
|
+
* @param mouseStartX 鼠标按下时的x轴坐标
|
|
7
|
+
* @param mouseStartY 鼠标按下时的y轴坐标
|
|
8
|
+
* @param borderWidth 边框宽度
|
|
9
|
+
* @param color 边框颜色
|
|
10
10
|
*/ export function drawCircle(context, mouseX, mouseY, mouseStartX, mouseStartY, borderWidth, color) {
|
|
11
11
|
// 坐标边界处理,解决反向绘制椭圆时的报错问题
|
|
12
12
|
const startX = mouseX < mouseStartX ? mouseX : mouseStartX;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 绘制裁剪框
|
|
3
|
-
* @param mouseX 鼠标x轴坐标
|
|
4
|
-
* @param mouseY 鼠标y轴坐标
|
|
5
|
-
* @param width 裁剪框宽度
|
|
6
|
-
* @param height 裁剪框高度
|
|
7
|
-
* @param context 需要进行绘制的canvas画布
|
|
8
|
-
* @param borderSize 边框节点直径
|
|
9
|
-
* @param controller 需要进行操作的canvas容器
|
|
10
|
-
* @param imageController 图片canvas容器
|
|
11
|
-
* @param drawBorders
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
export declare function drawCutOutBox(mouseX: number, mouseY: number, width: number, height: number, context: CanvasRenderingContext2D, borderSize: number, controller: HTMLCanvasElement, imageController: HTMLCanvasElement, drawBorders?: boolean): {
|
|
15
|
-
startX: number;
|
|
16
|
-
startY: number;
|
|
17
|
-
width: number;
|
|
18
|
-
height: number;
|
|
19
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* 绘制裁剪框
|
|
3
|
+
* @param mouseX 鼠标x轴坐标
|
|
4
|
+
* @param mouseY 鼠标y轴坐标
|
|
5
|
+
* @param width 裁剪框宽度
|
|
6
|
+
* @param height 裁剪框高度
|
|
7
|
+
* @param context 需要进行绘制的canvas画布
|
|
8
|
+
* @param borderSize 边框节点直径
|
|
9
|
+
* @param controller 需要进行操作的canvas容器
|
|
10
|
+
* @param imageController 图片canvas容器
|
|
11
|
+
* @param drawBorders
|
|
12
|
+
* @private
|
|
13
|
+
*/
|
|
14
|
+
export declare function drawCutOutBox(mouseX: number, mouseY: number, width: number, height: number, context: CanvasRenderingContext2D, borderSize: number, controller: HTMLCanvasElement, imageController: HTMLCanvasElement, drawBorders?: boolean): {
|
|
15
|
+
startX: number;
|
|
16
|
+
startY: number;
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import PlugInParameters from "../main-entrance/PlugInParameters";
|
|
2
|
-
/**
|
|
3
|
-
* 绘制裁剪框
|
|
4
|
-
* @param mouseX 鼠标x轴坐标
|
|
5
|
-
* @param mouseY 鼠标y轴坐标
|
|
6
|
-
* @param width 裁剪框宽度
|
|
7
|
-
* @param height 裁剪框高度
|
|
8
|
-
* @param context 需要进行绘制的canvas画布
|
|
9
|
-
* @param borderSize 边框节点直径
|
|
10
|
-
* @param controller 需要进行操作的canvas容器
|
|
11
|
-
* @param imageController 图片canvas容器
|
|
12
|
-
* @param drawBorders
|
|
13
|
-
* @private
|
|
2
|
+
/**
|
|
3
|
+
* 绘制裁剪框
|
|
4
|
+
* @param mouseX 鼠标x轴坐标
|
|
5
|
+
* @param mouseY 鼠标y轴坐标
|
|
6
|
+
* @param width 裁剪框宽度
|
|
7
|
+
* @param height 裁剪框高度
|
|
8
|
+
* @param context 需要进行绘制的canvas画布
|
|
9
|
+
* @param borderSize 边框节点直径
|
|
10
|
+
* @param controller 需要进行操作的canvas容器
|
|
11
|
+
* @param imageController 图片canvas容器
|
|
12
|
+
* @param drawBorders
|
|
13
|
+
* @private
|
|
14
14
|
*/ export function drawCutOutBox(mouseX, mouseY, width, height, context, borderSize, controller, imageController, drawBorders = true) {
|
|
15
15
|
var _controller, _controller1, _controller2, _controller3;
|
|
16
16
|
// 获取画布宽高
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 绘制箭头
|
|
3
|
-
* @param context 需要进行绘制的画布
|
|
4
|
-
* @param mouseStartX 鼠标按下时的x轴坐标 P1
|
|
5
|
-
* @param mouseStartY 鼠标按下式的y轴坐标 P1
|
|
6
|
-
* @param mouseX 当前鼠标x轴坐标 P2
|
|
7
|
-
* @param mouseY 当前鼠标y轴坐标 P2
|
|
8
|
-
* @param theta 箭头斜线与直线的夹角角度 (θ) P3 ---> (P1、P2) || P4 ---> P1(P1、P2)
|
|
9
|
-
* @param slashLength 箭头斜线的长度 P3 ---> P2 || P4 ---> P2
|
|
10
|
-
* @param borderWidth 边框宽度
|
|
11
|
-
* @param color 边框颜色
|
|
12
|
-
*/
|
|
13
|
-
export declare function drawLineArrow(context: CanvasRenderingContext2D, mouseStartX: number, mouseStartY: number, mouseX: number, mouseY: number, theta: number, slashLength: number, borderWidth: number, color: string): void;
|
|
1
|
+
/**
|
|
2
|
+
* 绘制箭头
|
|
3
|
+
* @param context 需要进行绘制的画布
|
|
4
|
+
* @param mouseStartX 鼠标按下时的x轴坐标 P1
|
|
5
|
+
* @param mouseStartY 鼠标按下式的y轴坐标 P1
|
|
6
|
+
* @param mouseX 当前鼠标x轴坐标 P2
|
|
7
|
+
* @param mouseY 当前鼠标y轴坐标 P2
|
|
8
|
+
* @param theta 箭头斜线与直线的夹角角度 (θ) P3 ---> (P1、P2) || P4 ---> P1(P1、P2)
|
|
9
|
+
* @param slashLength 箭头斜线的长度 P3 ---> P2 || P4 ---> P2
|
|
10
|
+
* @param borderWidth 边框宽度
|
|
11
|
+
* @param color 边框颜色
|
|
12
|
+
*/
|
|
13
|
+
export declare function drawLineArrow(context: CanvasRenderingContext2D, mouseStartX: number, mouseStartY: number, mouseX: number, mouseY: number, theta: number, slashLength: number, borderWidth: number, color: string): void;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 绘制箭头
|
|
3
|
-
* @param context 需要进行绘制的画布
|
|
4
|
-
* @param mouseStartX 鼠标按下时的x轴坐标 P1
|
|
5
|
-
* @param mouseStartY 鼠标按下式的y轴坐标 P1
|
|
6
|
-
* @param mouseX 当前鼠标x轴坐标 P2
|
|
7
|
-
* @param mouseY 当前鼠标y轴坐标 P2
|
|
8
|
-
* @param theta 箭头斜线与直线的夹角角度 (θ) P3 ---> (P1、P2) || P4 ---> P1(P1、P2)
|
|
9
|
-
* @param slashLength 箭头斜线的长度 P3 ---> P2 || P4 ---> P2
|
|
10
|
-
* @param borderWidth 边框宽度
|
|
11
|
-
* @param color 边框颜色
|
|
1
|
+
/**
|
|
2
|
+
* 绘制箭头
|
|
3
|
+
* @param context 需要进行绘制的画布
|
|
4
|
+
* @param mouseStartX 鼠标按下时的x轴坐标 P1
|
|
5
|
+
* @param mouseStartY 鼠标按下式的y轴坐标 P1
|
|
6
|
+
* @param mouseX 当前鼠标x轴坐标 P2
|
|
7
|
+
* @param mouseY 当前鼠标y轴坐标 P2
|
|
8
|
+
* @param theta 箭头斜线与直线的夹角角度 (θ) P3 ---> (P1、P2) || P4 ---> P1(P1、P2)
|
|
9
|
+
* @param slashLength 箭头斜线的长度 P3 ---> P2 || P4 ---> P2
|
|
10
|
+
* @param borderWidth 边框宽度
|
|
11
|
+
* @param color 边框颜色
|
|
12
12
|
*/ export function drawLineArrow(context, mouseStartX, mouseStartY, mouseX, mouseY, theta, slashLength, borderWidth, color) {
|
|
13
|
-
/**
|
|
14
|
-
* 已知:
|
|
15
|
-
* 1. P1、P2的坐标
|
|
16
|
-
* 2. 箭头斜线(P3 || P4) ---> P2直线的长度
|
|
17
|
-
* 3. 箭头斜线(P3 || P4) ---> (P1、P2)直线的夹角角度(θ)
|
|
18
|
-
* 求:
|
|
19
|
-
* P3、P4的坐标
|
|
13
|
+
/**
|
|
14
|
+
* 已知:
|
|
15
|
+
* 1. P1、P2的坐标
|
|
16
|
+
* 2. 箭头斜线(P3 || P4) ---> P2直线的长度
|
|
17
|
+
* 3. 箭头斜线(P3 || P4) ---> (P1、P2)直线的夹角角度(θ)
|
|
18
|
+
* 求:
|
|
19
|
+
* P3、P4的坐标
|
|
20
20
|
*/ const angle = Math.atan2(mouseStartY - mouseY, mouseStartX - mouseX) * 180 / Math.PI, angle1 = (angle + theta) * Math.PI / 180, angle2 = (angle - theta) * Math.PI / 180, topX = slashLength * Math.cos(angle1), topY = slashLength * Math.sin(angle1), botX = slashLength * Math.cos(angle2), botY = slashLength * Math.sin(angle2); // P4点的Y轴坐标
|
|
21
21
|
// 开始绘制
|
|
22
22
|
context.save();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 绘制蒙层
|
|
3
|
-
* @param context 需要进行绘制canvas
|
|
4
|
-
* @param imgData 屏幕截图canvas容器
|
|
5
|
-
*/
|
|
6
|
-
export declare function drawMasking(context: CanvasRenderingContext2D, imgData?: HTMLCanvasElement): void;
|
|
1
|
+
/**
|
|
2
|
+
* 绘制蒙层
|
|
3
|
+
* @param context 需要进行绘制canvas
|
|
4
|
+
* @param imgData 屏幕截图canvas容器
|
|
5
|
+
*/
|
|
6
|
+
export declare function drawMasking(context: CanvasRenderingContext2D, imgData?: HTMLCanvasElement): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import PlugInParameters from "../main-entrance/PlugInParameters";
|
|
2
|
-
/**
|
|
3
|
-
* 绘制蒙层
|
|
4
|
-
* @param context 需要进行绘制canvas
|
|
5
|
-
* @param imgData 屏幕截图canvas容器
|
|
2
|
+
/**
|
|
3
|
+
* 绘制蒙层
|
|
4
|
+
* @param context 需要进行绘制canvas
|
|
5
|
+
* @param imgData 屏幕截图canvas容器
|
|
6
6
|
*/ export function drawMasking(context, imgData) {
|
|
7
7
|
const data = new PlugInParameters();
|
|
8
8
|
const plugInParameters = new PlugInParameters();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 绘制马赛克
|
|
3
|
-
* 实现思路:
|
|
4
|
-
* 1. 获取鼠标划过路径区域的图像信息
|
|
5
|
-
* 2. 将区域内的像素点绘制成周围相近的颜色
|
|
6
|
-
* @param mouseX 当前鼠标X轴坐标
|
|
7
|
-
* @param mouseY 当前鼠标Y轴坐标
|
|
8
|
-
* @param size 马赛克画笔大小
|
|
9
|
-
* @param degreeOfBlur 马赛克模糊度
|
|
10
|
-
* @param context 需要进行绘制的画布
|
|
11
|
-
*/
|
|
12
|
-
export declare function drawMosaic(mouseX: number, mouseY: number, size: number, degreeOfBlur: number, context: CanvasRenderingContext2D): void;
|
|
1
|
+
/**
|
|
2
|
+
* 绘制马赛克
|
|
3
|
+
* 实现思路:
|
|
4
|
+
* 1. 获取鼠标划过路径区域的图像信息
|
|
5
|
+
* 2. 将区域内的像素点绘制成周围相近的颜色
|
|
6
|
+
* @param mouseX 当前鼠标X轴坐标
|
|
7
|
+
* @param mouseY 当前鼠标Y轴坐标
|
|
8
|
+
* @param size 马赛克画笔大小
|
|
9
|
+
* @param degreeOfBlur 马赛克模糊度
|
|
10
|
+
* @param context 需要进行绘制的画布
|
|
11
|
+
*/
|
|
12
|
+
export declare function drawMosaic(mouseX: number, mouseY: number, size: number, degreeOfBlur: number, context: CanvasRenderingContext2D): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 获取图像指定坐标位置的颜色
|
|
3
|
-
* @param imgData 需要进行操作的图片
|
|
4
|
-
* @param x x点坐标
|
|
5
|
-
* @param y y点坐标
|
|
1
|
+
/**
|
|
2
|
+
* 获取图像指定坐标位置的颜色
|
|
3
|
+
* @param imgData 需要进行操作的图片
|
|
4
|
+
* @param x x点坐标
|
|
5
|
+
* @param y y点坐标
|
|
6
6
|
*/ const getAxisColor = (imgData, x, y)=>{
|
|
7
7
|
const w = imgData.width;
|
|
8
8
|
const d = imgData.data;
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
color[3] = d[4 * (y * w + x) + 3];
|
|
14
14
|
return color;
|
|
15
15
|
};
|
|
16
|
-
/**
|
|
17
|
-
* 设置图像指定坐标位置的颜色
|
|
18
|
-
* @param imgData 需要进行操作的图片
|
|
19
|
-
* @param x x点坐标
|
|
20
|
-
* @param y y点坐标
|
|
21
|
-
* @param color 颜色数组
|
|
16
|
+
/**
|
|
17
|
+
* 设置图像指定坐标位置的颜色
|
|
18
|
+
* @param imgData 需要进行操作的图片
|
|
19
|
+
* @param x x点坐标
|
|
20
|
+
* @param y y点坐标
|
|
21
|
+
* @param color 颜色数组
|
|
22
22
|
*/ const setAxisColor = (imgData, x, y, color)=>{
|
|
23
23
|
const w = imgData.width;
|
|
24
24
|
const d = imgData.data;
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
d[4 * (y * w + x) + 2] = color[2];
|
|
28
28
|
d[4 * (y * w + x) + 3] = color[3];
|
|
29
29
|
};
|
|
30
|
-
/**
|
|
31
|
-
* 绘制马赛克
|
|
32
|
-
* 实现思路:
|
|
33
|
-
* 1. 获取鼠标划过路径区域的图像信息
|
|
34
|
-
* 2. 将区域内的像素点绘制成周围相近的颜色
|
|
35
|
-
* @param mouseX 当前鼠标X轴坐标
|
|
36
|
-
* @param mouseY 当前鼠标Y轴坐标
|
|
37
|
-
* @param size 马赛克画笔大小
|
|
38
|
-
* @param degreeOfBlur 马赛克模糊度
|
|
39
|
-
* @param context 需要进行绘制的画布
|
|
30
|
+
/**
|
|
31
|
+
* 绘制马赛克
|
|
32
|
+
* 实现思路:
|
|
33
|
+
* 1. 获取鼠标划过路径区域的图像信息
|
|
34
|
+
* 2. 将区域内的像素点绘制成周围相近的颜色
|
|
35
|
+
* @param mouseX 当前鼠标X轴坐标
|
|
36
|
+
* @param mouseY 当前鼠标Y轴坐标
|
|
37
|
+
* @param size 马赛克画笔大小
|
|
38
|
+
* @param degreeOfBlur 马赛克模糊度
|
|
39
|
+
* @param context 需要进行绘制的画布
|
|
40
40
|
*/ export function drawMosaic(mouseX, mouseY, size, degreeOfBlur, context) {
|
|
41
41
|
// 获取设备像素比
|
|
42
42
|
const dpr = window.devicePixelRatio || 1;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 画笔绘制
|
|
3
|
-
* @param context
|
|
4
|
-
* @param mouseX
|
|
5
|
-
* @param mouseY
|
|
6
|
-
* @param size
|
|
7
|
-
* @param color
|
|
8
|
-
*/
|
|
9
|
-
export declare function drawPencil(context: CanvasRenderingContext2D, mouseX: number, mouseY: number, size: number, color: string): void;
|
|
10
|
-
/**
|
|
11
|
-
* 画笔初始化
|
|
12
|
-
*/
|
|
13
|
-
export declare function initPencil(context: CanvasRenderingContext2D, mouseX: number, mouseY: number): void;
|
|
1
|
+
/**
|
|
2
|
+
* 画笔绘制
|
|
3
|
+
* @param context
|
|
4
|
+
* @param mouseX
|
|
5
|
+
* @param mouseY
|
|
6
|
+
* @param size
|
|
7
|
+
* @param color
|
|
8
|
+
*/
|
|
9
|
+
export declare function drawPencil(context: CanvasRenderingContext2D, mouseX: number, mouseY: number, size: number, color: string): void;
|
|
10
|
+
/**
|
|
11
|
+
* 画笔初始化
|
|
12
|
+
*/
|
|
13
|
+
export declare function initPencil(context: CanvasRenderingContext2D, mouseX: number, mouseY: number): void;
|