@shijiu/jsview-vue 2.2.201 → 2.2.426-test.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/browser/BrowserApic.vue.mjs +2 -13
- package/bin/browser/BrowserApic2.vue.mjs +2 -13
- package/bin/browser/BrowserApicLib.mjs +24 -24
- package/bin/browser/BrowserAudio.vue.mjs +2 -10
- package/bin/browser/BrowserJsvLatex.vue.mjs +39 -16
- package/bin/export-sfc.mjs +3 -3
- package/bin/jsview-vue-common.mjs +3 -3
- package/bin/jsview-vue.mjs +3288 -2312
- package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +72 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/ListWidget.vue.d.ts +6 -3
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/MetroWidget.vue.d.ts +6 -3
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/MetroWidgetSetup.d.ts +3 -1
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +64 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/TokenGenerator.d.ts +4 -0
- package/bin/types/utils/JsViewEngineWidget/RectUtils.d.ts +61 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/Fence.d.ts +2 -2
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/MetroTemplate.d.ts +3 -3
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/index.d.ts +1 -1
- package/bin/types/utils/JsViewPlugin/JsvAudio/version.d.mts +13 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/index.d.ts +1 -0
- package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +13 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer-0.9.vue.d.ts +45 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer.vue.d.ts +597 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/GetVersion.d.ts +13 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +420 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +57 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +588 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +358 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +358 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/version.d.mts +14 -0
- package/bin/types/utils/JsViewVueTools/FeatureActive.d.ts +10 -0
- package/bin/types/utils/JsViewVueTools/ForgeHandles.d.ts +6 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDynamicCssStyle.d.ts +3 -1
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDynamicKeyFrames.d.ts +4 -2
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvImpactTracer.d.ts +4 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvPreDownloader.d.ts +3 -2
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvRefTaker.d.ts +2 -3
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvRuntimeBridge.d.ts +42 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvStyleSheetsDeclarer.d.ts +3 -1
- package/bin/types/utils/JsViewVueTools/JsvTextTools.d.ts +61 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureLoadTool.d.ts +63 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/JsvTextureStore.d.ts +8 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/NinePatchHelper.d.ts +1 -1
- package/bin/types/utils/JsViewVueTools/TextureManagerTools.d.ts +7 -0
- package/bin/types/utils/JsViewVueTools/TypeCheckAndSet.d.ts +3 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/index.d.ts +3 -1
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/JsvApic.vue.d.ts +7 -0
- package/bin/types/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue.d.ts +84 -0
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +75 -0
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/index.d.ts +2 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFragShaderView/JsvFragShaderView.vue.d.ts +3 -1
- package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/index.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/KeepFlags.d.ts +7 -0
- package/bin/types/utils/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +12 -0
- package/bin/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +45 -0
- package/bin/types/utils/JsViewVueWidget/JsvInput/EditVisibleArea.d.ts +26 -0
- package/bin/types/{JsViewVueWidget/JsvPreload/BrowserPreload.vue.d.ts → utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts} +7 -5
- package/bin/types/utils/JsViewVueWidget/JsvInput/SharedDefine.d.ts +13 -0
- package/bin/types/utils/JsViewVueWidget/JsvInput/SystemTextTools.d.ts +16 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMaskClipDiv.vue.d.ts +0 -2
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/DataTree.d.ts +3 -1
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/Geometry.d.ts +2 -2
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/JsvMindMap.vue.d.ts +16 -9
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvNativeSharedDiv.vue.d.ts +6 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvNinePatch.vue.d.ts +2 -1
- package/bin/types/utils/JsViewVueWidget/JsvPreload/index.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +16 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +16 -0
- package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/index.d.ts +4 -0
- package/bin/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +75 -0
- package/bin/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +23 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/index.d.ts +4 -2
- package/index.d.ts +9 -1
- package/package.json +1 -1
- package/tools/config/toolkit.mjs +81 -0
- package/tools/config/vite.config.ts +24 -14
- package/tools/jsview-vue-build.mjs +67 -21
- package/tsconfig.json +27 -0
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue +6 -2
- package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +3 -1
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +12 -5
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +175 -65
- package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +1 -1
- package/utils/JsViewEngineWidget/TemplateParser/Fence.ts +2 -2
- package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +15 -9
- package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +4 -6
- package/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.js +13 -3
- package/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue +27 -6
- package/utils/JsViewPlugin/JsvLatex/JsvLatex.vue +34 -28
- package/utils/JsViewPlugin/JsvLatex/index.js +22 -0
- package/utils/JsViewVueTools/FeatureActive.ts +84 -0
- package/utils/JsViewVueTools/ForgeHandles.ts +7 -3
- package/utils/JsViewVueTools/JsvDynamicCssStyle.js +2 -0
- package/utils/JsViewVueTools/JsvDynamicKeyFrames.ts +2 -0
- package/utils/JsViewVueTools/JsvHashHistory.js +26 -29
- package/utils/JsViewVueTools/JsvImpactTracer.js +2 -0
- package/utils/JsViewVueTools/JsvPreDownloader.ts +2 -1
- package/utils/JsViewVueTools/JsvRefTaker.js +1 -2
- package/utils/JsViewVueTools/JsvRuntimeBridge.js +125 -59
- package/utils/JsViewVueTools/JsvStyleClass.js +2 -0
- package/utils/JsViewVueTools/JsvStyleSheetsDeclarer.js +2 -0
- package/utils/JsViewVueTools/JsvTextTools.ts +156 -0
- package/utils/JsViewVueTools/JsvTextureLoadTool.ts +233 -0
- package/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.ts +4 -1
- package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +7 -3
- package/utils/JsViewVueTools/JsvTextureStore/Texture.ts +1 -0
- package/utils/JsViewVueTools/TextureManagerTools.ts +17 -0
- package/utils/JsViewVueTools/TypeCheckAndSet.ts +66 -0
- package/utils/JsViewVueTools/index.js +4 -1
- package/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue +2 -0
- package/utils/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue +10 -2
- package/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue +12 -1
- package/utils/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue +4 -2
- package/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue +2 -0
- package/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue +219 -0
- package/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue +11 -9
- package/utils/JsViewVueWidget/JsvFilterView.vue +2 -0
- package/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue +5 -2
- package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +140 -0
- package/utils/JsViewVueWidget/JsvFlexCell/index.js +2 -5
- package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +214 -63
- package/utils/JsViewVueWidget/JsvFragShaderView/index.js +2 -9
- package/utils/JsViewVueWidget/JsvFreeMoveActor/FreeMoveActor.vue +9 -0
- package/utils/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue +2 -0
- package/utils/JsViewVueWidget/JsvGrid.vue +2 -0
- package/utils/JsViewVueWidget/JsvHole.js +2 -0
- package/utils/JsViewVueWidget/JsvInput/Cursor.vue +49 -45
- package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +353 -0
- package/utils/JsViewVueWidget/JsvInput/EditVisibleArea.ts +255 -0
- package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +294 -681
- package/utils/JsViewVueWidget/JsvInput/SharedDefine.ts +17 -0
- package/utils/JsViewVueWidget/JsvInput/SystemTextTools.ts +61 -0
- package/utils/JsViewVueWidget/JsvLine/JsvLine.vue +2 -0
- package/utils/JsViewVueWidget/JsvMarquee.vue +2 -0
- package/utils/JsViewVueWidget/JsvMaskClipDiv.vue +5 -48
- package/utils/JsViewVueWidget/JsvMindMap/DataTree.ts +14 -1
- package/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue +277 -117
- package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +91 -68
- package/utils/JsViewVueWidget/JsvNinePatch.vue +5 -0
- package/utils/JsViewVueWidget/JsvPieChart.vue +2 -0
- package/utils/JsViewVueWidget/JsvPosterDiv.vue +2 -0
- package/utils/JsViewVueWidget/JsvPosterImage.vue +3 -2
- package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +23 -44
- package/utils/JsViewVueWidget/JsvPreload/index.js +2 -13
- package/utils/JsViewVueWidget/JsvProgressBar.vue +2 -0
- package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +12 -12
- package/utils/JsViewVueWidget/JsvRadarChart.vue +2 -0
- package/utils/JsViewVueWidget/JsvRipple/Constant.js +2 -2
- package/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue +3 -1
- package/utils/JsViewVueWidget/JsvScaleTextBox.vue +2 -0
- package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue +9 -0
- package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue +9 -0
- package/utils/JsViewVueWidget/JsvSector.vue +2 -0
- package/utils/JsViewVueWidget/JsvSoundPool.js +5 -7
- package/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue +43 -23
- package/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue +2 -5
- package/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue +2 -0
- package/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue +2 -0
- package/utils/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue +2 -0
- package/utils/JsViewVueWidget/JsvTextBox.vue +2 -4
- package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +48 -50
- package/utils/JsViewVueWidget/JsvTextureAnim/index.js +2 -9
- package/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue +101 -0
- package/utils/JsViewVueWidget/JsvVideo.vue +2 -2
- package/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue +2 -0
- package/utils/JsViewVueWidget/index.js +4 -2
- package/bin/browser/BrowserJsvFragShaderView.vue.mjs +0 -63
- package/bin/browser/BrowserPreload.vue.mjs +0 -143
- package/bin/browser/BrowserQrcode.vue.mjs +0 -180
- package/bin/browser/BrowserSpray.vue.mjs +0 -66
- package/bin/browser/BrowserTextureAnim.vue.mjs +0 -332
- package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +0 -102
- package/bin/types/JsViewVueTools/ForgeHandles.d.ts +0 -6
- package/bin/types/JsViewVueTools/JsvTextTools.d.ts +0 -37
- package/bin/types/JsViewVueTools/TypeCheckAndSet.d.ts +0 -2
- package/bin/types/JsViewVueWidget/JsvFlexCell/index.d.ts +0 -2
- package/bin/types/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue.d.ts +0 -13
- package/bin/types/JsViewVueWidget/JsvFragShaderView/index.d.ts +0 -2
- package/bin/types/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +0 -36
- package/bin/types/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +0 -210
- package/bin/types/JsViewVueWidget/JsvPreload/index.d.ts +0 -17
- package/bin/types/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue.d.ts +0 -11
- package/bin/types/JsViewVueWidget/JsvQrcode/index.d.ts +0 -2
- package/bin/types/JsViewVueWidget/JsvSpray/BrowserSpray.vue.d.ts +0 -25
- package/bin/types/JsViewVueWidget/JsvSpray/index.d.ts +0 -2
- package/bin/types/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue.d.ts +0 -151
- package/bin/types/JsViewVueWidget/JsvTextureAnim/index.d.ts +0 -14
- package/tools/config/tsconfig.json +0 -15
- package/utils/JsViewVueTools/JsvTextTools.js +0 -89
- package/utils/JsViewVueTools/TypeCheckAndSet.js +0 -27
- package/utils/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue +0 -48
- package/utils/JsViewVueWidget/JsvPreload/BrowserPreload.vue +0 -144
- package/utils/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue +0 -189
- package/utils/JsViewVueWidget/JsvQrcode/index.js +0 -18
- package/utils/JsViewVueWidget/JsvSpray/BrowserSpray.vue +0 -55
- package/utils/JsViewVueWidget/JsvSpray/index.js +0 -17
- package/utils/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue +0 -359
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/CheckType.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusHub.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusManager.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Const.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Dispatcher.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/PageUpdater.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/RenderItem.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Slide.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/SlotComponent.vue.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/VisibleInfo.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/WidgetRectInfo.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/RangeModel.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/CommonMetroTemplate.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/ListMetroTemplate.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/TemplateItemAdder.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/index.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/WidgetCommon.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAccount/JsvAccount.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/AudioProxy.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +4 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/CheckType.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/Events.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudio.vue.d.ts +4 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudioBridgeProxy.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudioProxy.vue.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/PluginLoader.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/ScreenLockManager.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/index.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/version.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/BrowserDomBuilder.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/BrowserJsvLatex.vue.d.ts +4 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/Color.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatex.vue.d.ts +4 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatexBridgeProxy.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatexProxy.vue.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/PluginLoader.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/version.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/index.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ConstSymbol.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DebugContentShellJBridge.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DebugTool.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DefaultKeyMap.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ForgeConstDefine.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDemoTester.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvFederationTools.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvHashHistory.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvPerformance.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvStyleClass.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureDefines.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/CommandList.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/Path.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/Store.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/Texture.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/ActorControlBase.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/JsvActorMove.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/JsvActorMoveControl.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/BrowserApic.vue.d.ts +1 -1
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +1 -1
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic2/JsvApic2.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic2/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/GifData.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/Viewer.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/WebpData.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvCommonLoopToolBase.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvClipDiv/JsvClipDiv.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvClipDiv/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvConnectLine/ArcLineManager.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvConnectLine/JsvConnectLine.vue.d.ts +2 -2
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvConnectLine/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvDriftScope/JsvDriftScope.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvDriftScope/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvEnableRenderBreak.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFilterView.vue.d.ts +3 -3
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFlexCell/JsvFlexDiv.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActionRefObject.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActorControl.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActorState.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/CallbackManager.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ForgeTypeDefine.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +9 -9
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +3 -3
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/NexusNode.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetAction.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetCondition.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetState.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SyncLinkManager.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvGrid.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvHole.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvLine/JsvLine.vue.d.ts +3 -3
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvLine/LineManager.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvLine/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMarquee.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/CommonType.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/Constant.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/rtree.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPieChart.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPosterDiv.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPosterImage.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPreload/JsvPreload.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvProgressBar.vue.d.ts +1 -1
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvQrcode/JsvQrcode.vue.d.ts +1 -1
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvRadarChart.vue.d.ts +1 -1
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvRipple/Constant.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvRipple/JsvRipple.vue.d.ts +3 -3
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvRipple/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScaleTextBox.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/JsvScrollBox.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/JsvScrollFollow.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/ScrollInnerSymbol.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/ScrollSymbol.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSector.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSoundPool.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpray/JsvSpray.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/FrameBuidler.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteTools.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/SpriteController.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/sAnimationToken.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper/JsvSwiper.vue.d.ts +1 -1
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper3D/JsvSwiper.vue.d.ts +3 -3
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper3D/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextBox.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextureAnim/CommonType.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextureAnim/JsvTextureAnim.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +6 -6
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvVisibleSensor/index.d.ts +6 -6
- /package/bin/types/{index.d.ts → utils/index.d.ts} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare namespace FeatureNames {
|
|
2
|
+
const TouchReceiver: String;
|
|
3
|
+
const FreeMoveDiv: String;
|
|
4
|
+
const CustomFragShader: String;
|
|
5
|
+
const Capture2Texture: String;
|
|
6
|
+
}
|
|
7
|
+
declare function JsvActiveFeature(comp_name: String): void;
|
|
8
|
+
declare function JsvUseFeature(from: String, comp_name: String): void;
|
|
9
|
+
declare function JsvShutdownFeatures(comp_name_list: Array<String>): void;
|
|
10
|
+
export { FeatureNames, FeatureNames as JsvFeatureNames, JsvActiveFeature, JsvUseFeature, JsvShutdownFeatures };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Created by donglin.lu@qcast.cn on 11/13/2020.
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
/*!
|
|
5
|
+
* @file
|
|
6
|
+
*
|
|
5
7
|
* 【模块 export 内容】
|
|
6
8
|
* getKeyFramesGroup: 函数,获取KeyFrame操作类 KeyFrameStyleSheet
|
|
7
9
|
* KeyFrameStyleSheet:面向对象类,KeyFrames CSS rule的操作类,用于添加和删除KeyFrame
|
|
@@ -11,7 +13,7 @@
|
|
|
11
13
|
* removeMultiRules(names_array) 批量动态删除keyFrame
|
|
12
14
|
* hasRule(name) 查询KeyFrame是否存在
|
|
13
15
|
*/
|
|
14
|
-
|
|
16
|
+
/*!
|
|
15
17
|
* getKeyFramesGroup 参数说明:
|
|
16
18
|
* anchor_tag (String) keyFrame的名称,可以不设置或者为undefined
|
|
17
19
|
* 返回值:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/*!
|
|
2
2
|
* createImpactCallback 参数说明:
|
|
3
3
|
* on_contact (function[]) 接受碰撞事件的回调
|
|
4
4
|
* on_dis_contact (function[]) 接受物体分离事件的回调
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Object 句柄,用于传输给 createImpactTracer
|
|
7
7
|
*/
|
|
8
8
|
export function createImpactCallback(on_contact: any, on_dis_contact: any): any;
|
|
9
|
-
|
|
9
|
+
/*!
|
|
10
10
|
* createImpactTracer 参数说明:
|
|
11
11
|
* ele1 (Element) html element句柄,1号碰撞体
|
|
12
12
|
* ele2 (Element) html element句柄,2号碰撞体
|
|
@@ -16,7 +16,7 @@ export function createImpactCallback(on_contact: any, on_dis_contact: any): any;
|
|
|
16
16
|
* Object 句柄,提供 Recycle() 函数用于停止碰撞检测,需要再componentWillUnmount进行调用(清理)
|
|
17
17
|
*/
|
|
18
18
|
export function createImpactTracer(ele1: any, ele2: any, callback: any, auto_froze: any): any;
|
|
19
|
-
|
|
19
|
+
/*!
|
|
20
20
|
* createImpactAutoFroze 参数说明:
|
|
21
21
|
* element_auto_froze_pre_impact (Array<Element>) 关联运动元素的列表,这些元素碰撞前一帧停止运动
|
|
22
22
|
* element_auto_froze_on_impact (Array<Element>) 关联运动元素的列表,这些元素碰撞当前帧停止运动
|
|
@@ -29,7 +29,7 @@ export function createImpactTracer(ele1: any, ele2: any, callback: any, auto_fro
|
|
|
29
29
|
* 更新后立刻在对所有的共享此管理对象的碰撞对中生效
|
|
30
30
|
*/
|
|
31
31
|
export function createImpactAutoFroze(element_auto_froze_pre_impact: any, element_auto_froze_on_impact: any): any;
|
|
32
|
-
|
|
32
|
+
/*!
|
|
33
33
|
* updateImpactAutoFroze 参数说明:
|
|
34
34
|
* handler (Object) 由 createImpactAutoFroze 创建的句柄
|
|
35
35
|
* element_auto_froze_pre_impact (Array<Element>) 关联运动元素的列表,这些元素碰撞前一帧停止运动
|
|
@@ -37,6 +37,12 @@ declare namespace bridge {
|
|
|
37
37
|
export { getNetworkTypeStatusImmediate };
|
|
38
38
|
export { registerNetStateListener };
|
|
39
39
|
export { unRegisterNetStateListener };
|
|
40
|
+
export { getSnId };
|
|
41
|
+
export { getEmmcCid };
|
|
42
|
+
export { providerQuery };
|
|
43
|
+
export { providerInsert };
|
|
44
|
+
export { providerDelete };
|
|
45
|
+
export { providerUpdate };
|
|
40
46
|
}
|
|
41
47
|
/**
|
|
42
48
|
* 获取设备mac地址,优先获取有线mac,无则获取wifi mac
|
|
@@ -277,3 +283,39 @@ declare function preDownloadSdk(core_version: string): any;
|
|
|
277
283
|
declare function getNetworkTypeStatusImmediate(): any;
|
|
278
284
|
declare function registerNetStateListener(callback: any): any;
|
|
279
285
|
declare function unRegisterNetStateListener(callback: any): any;
|
|
286
|
+
declare function getSnId(): any;
|
|
287
|
+
declare function getEmmcCid(): any;
|
|
288
|
+
/**
|
|
289
|
+
* android ContentProvider 查询接口,参数与返回值与官方接口相同。详情查看官方的 android.content.ContentProvider.query 接口
|
|
290
|
+
* @param {string} uri
|
|
291
|
+
* @param {string} projection
|
|
292
|
+
* @param {string} selection
|
|
293
|
+
* @param {string[]} selectionArgs
|
|
294
|
+
* @param {string} sortOrder
|
|
295
|
+
* @returns
|
|
296
|
+
*/
|
|
297
|
+
declare function providerQuery(uri: string, projection: string, selection: string, selectionArgs: string[], sortOrder: string): any;
|
|
298
|
+
/**
|
|
299
|
+
* android ContentProvider 插入接口,参数与返回值与官方接口相同。详情查看官方的 android.content.ContentProvider.insert 接口
|
|
300
|
+
* @param {string} uri
|
|
301
|
+
* @param {object} contentValue
|
|
302
|
+
* @returns
|
|
303
|
+
*/
|
|
304
|
+
declare function providerInsert(uri: string, contentValue: object): any;
|
|
305
|
+
/**
|
|
306
|
+
* android ContentProvider 删除接口,参数与返回值与官方接口相同。详情查看官方的 android.content.ContentProvider.delete 接口
|
|
307
|
+
* @param {string} uri
|
|
308
|
+
* @param {string} selection
|
|
309
|
+
* @param {string[]} selectionArgs
|
|
310
|
+
* @returns
|
|
311
|
+
*/
|
|
312
|
+
declare function providerDelete(uri: string, selection: string, selectionArgs: string[]): any;
|
|
313
|
+
/**
|
|
314
|
+
* android ContentProvider 更新接口,参数与返回值与官方接口相同。详情查看官方的 android.content.ContentProvider.update 接口
|
|
315
|
+
* @param {string} uri
|
|
316
|
+
* @param {object} contentValue
|
|
317
|
+
* @param {string} selection
|
|
318
|
+
* @param {string[]} selectionArgs
|
|
319
|
+
* @returns
|
|
320
|
+
*/
|
|
321
|
+
declare function providerUpdate(uri: string, contentValue: object, selection: string, selectionArgs: string[]): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
declare interface FontStyleDefine {
|
|
2
|
+
fontFamily: string;
|
|
3
|
+
fontSize: number;
|
|
4
|
+
fontStyle: string;
|
|
5
|
+
fontWeight: string;
|
|
6
|
+
}
|
|
7
|
+
/*!
|
|
8
|
+
* 获取文字宽度, 一般用于测量文字宽度
|
|
9
|
+
*
|
|
10
|
+
* @param {string} text 文字
|
|
11
|
+
* @param {object} style 文字的css style
|
|
12
|
+
* @return {int} 文字宽度
|
|
13
|
+
**/
|
|
14
|
+
declare const getTextWidth: (text: string, style: FontStyleDefine) => any;
|
|
15
|
+
declare interface CssFontStyle {
|
|
16
|
+
fontFamily: string;
|
|
17
|
+
fontSize: number;
|
|
18
|
+
fontStyle: string;
|
|
19
|
+
fontWeight: string;
|
|
20
|
+
}
|
|
21
|
+
declare interface CssTextLayoutStyle {
|
|
22
|
+
width?: number;
|
|
23
|
+
height?: number;
|
|
24
|
+
textAlign?: String;
|
|
25
|
+
lineHeight?: number;
|
|
26
|
+
whiteSpace?: String;
|
|
27
|
+
wordWrap?: String;
|
|
28
|
+
textOverflow?: String;
|
|
29
|
+
}
|
|
30
|
+
declare interface CursorResult {
|
|
31
|
+
parseSuccess: boolean;
|
|
32
|
+
x: number;
|
|
33
|
+
y: number;
|
|
34
|
+
cachedId: number;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* 获取光标的位置
|
|
38
|
+
*
|
|
39
|
+
* @public
|
|
40
|
+
* @func GetCursorPosition
|
|
41
|
+
* @return {CursorResult} 光标的所在位置{x:0,y:0}
|
|
42
|
+
**/
|
|
43
|
+
declare function getCursorPosition(cursorOffset: number, text: String, fontStyle: CssFontStyle, textLayoutStyle: CssTextLayoutStyle, buildCache: boolean): CursorResult;
|
|
44
|
+
/**
|
|
45
|
+
* 获取光标的位置
|
|
46
|
+
*
|
|
47
|
+
* @public
|
|
48
|
+
* @func GetCursorPositionCached
|
|
49
|
+
* @return {CursorResult} 光标的所在位置{x:0,y:0}
|
|
50
|
+
**/
|
|
51
|
+
declare function getCursorPositionCached(cachedId: number, cursorOffset: number): CursorResult;
|
|
52
|
+
declare function recycleCursorPositionCache(cached_id: number): void;
|
|
53
|
+
declare const TextTools: {
|
|
54
|
+
getOneLineTextDrawWidth: (text: string, style: FontStyleDefine) => any;
|
|
55
|
+
getTextWidth: (text: string, style: FontStyleDefine) => any;
|
|
56
|
+
isRtl: (str: string) => boolean;
|
|
57
|
+
getCursorPosition: typeof getCursorPosition;
|
|
58
|
+
getCursorPositionCached: typeof getCursorPositionCached;
|
|
59
|
+
recycleCursorPositionCache: typeof recycleCursorPositionCache;
|
|
60
|
+
};
|
|
61
|
+
export { getTextWidth, TextTools };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
4
|
+
* 内部组件
|
|
5
|
+
*
|
|
6
|
+
* JsvTextureLoadTool: 对给定列表的图片资源进行后台预加载
|
|
7
|
+
* 特别注意: 在vue组件进行关联时,要在unmounted中进行对preload返回的句柄进行主动的release动作
|
|
8
|
+
*
|
|
9
|
+
* @method
|
|
10
|
+
* preload
|
|
11
|
+
* @param {Array(ItemSet)} preloadList
|
|
12
|
+
* @param {Function} finishCallback
|
|
13
|
+
*/
|
|
14
|
+
declare class ItemSet {
|
|
15
|
+
url: String | null;
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
colorType: String;
|
|
19
|
+
netSetting: any;
|
|
20
|
+
isPosterImg: boolean;
|
|
21
|
+
magicToken: number;
|
|
22
|
+
/**
|
|
23
|
+
* @constructor
|
|
24
|
+
* @param {String} url 必填,图片的url,目前只支持 http:// 和 ./ 两个格式
|
|
25
|
+
* @param {number} width 选填,是否为了省内存而按照给定尺寸压缩图片
|
|
26
|
+
* @param {number} height 选填,是否为了省内存而按照给定尺寸压缩图片
|
|
27
|
+
* @param {String} color_type 选填,是否为了省内存而做成其他的图片解码格式
|
|
28
|
+
* @param {String} net_setting 选填,是否有特殊的网络header设置
|
|
29
|
+
* @param {boolean} is_poster_img 选填, 是否为统计为海报,海报有一套解码优先级处理
|
|
30
|
+
*/
|
|
31
|
+
constructor(url: String, width?: number, height?: number, color_type?: String, net_setting?: any, is_poster_img?: boolean);
|
|
32
|
+
}
|
|
33
|
+
declare class ItemStatus {
|
|
34
|
+
loadStatus: boolean;
|
|
35
|
+
listenerToken: number;
|
|
36
|
+
textureRef: any;
|
|
37
|
+
releaseResource(): void;
|
|
38
|
+
}
|
|
39
|
+
declare class ListStatus {
|
|
40
|
+
loadStatusList: Array<ItemStatus>;
|
|
41
|
+
loadedInfoList: Array<any>;
|
|
42
|
+
originDataList: Array<ItemSet>;
|
|
43
|
+
loadingItemCount: number;
|
|
44
|
+
finishCallback: Function;
|
|
45
|
+
constructor(origin_data: Array<ItemSet>, finish_callback: Function);
|
|
46
|
+
onLoaded(index: number, loaded_info: any): void;
|
|
47
|
+
recycleResource(): void;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* 对给定的ItemSet进行preload加载,返回 ListStatus,
|
|
51
|
+
* 注意: 在vue的unmount处理中要调用ListStatus.recycleResource()进行资源回收
|
|
52
|
+
*
|
|
53
|
+
* @function
|
|
54
|
+
* @param {ItemSet} preload_list_data 要加载资源的ItemSet列表
|
|
55
|
+
* @param {Function} finish_callback 全加载完成后的回调函数
|
|
56
|
+
* @returns {ListStatus}
|
|
57
|
+
*/
|
|
58
|
+
declare function preload(preload_list_data: Array<ItemSet> | null, finish_callback: Function): ListStatus | null;
|
|
59
|
+
declare const JsvTextureLoadTool: {
|
|
60
|
+
preload: typeof preload;
|
|
61
|
+
ItemSet: typeof ItemSet;
|
|
62
|
+
};
|
|
63
|
+
export { JsvTextureLoadTool };
|
package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/JsvTextureStore.d.ts
RENAMED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
1
|
+
/*!
|
|
2
|
+
* @file JsvTextureStoreApi
|
|
3
|
+
*
|
|
3
4
|
* canvasTexture:
|
|
4
5
|
* 创建texture(图片纹理)句柄, 通过 CanvasTexture 的API进行绘制, 使用注意以下几点
|
|
5
6
|
* a. commit() 接口调用之前可以任意绘制, commit之后就无法更改, commit之后才能使用, commit后绘制内容会被全局保存
|
|
@@ -52,8 +53,11 @@ declare let sTextureStoreApi: {
|
|
|
52
53
|
* width: number, // 截取div的宽
|
|
53
54
|
* height: number) => void // 截取div的高
|
|
54
55
|
* @param {boolean} autoRecycle 可选, 是否当无div/img引用时会自动释放
|
|
55
|
-
*
|
|
56
|
-
|
|
56
|
+
* true默认值: 此场景在回调时要立刻赋值给响应式变量控制template的节点立刻使用(并且不是v-if=false的节点),
|
|
57
|
+
否则会自动释放掉, 此时, texture当使用它的template节点从dom树中去掉的时候(v-if=false也算)会自动释放,
|
|
58
|
+
不需要主动调用deleteTexture释放.
|
|
59
|
+
false: 此场景在callback收到资源名后, 需要使用完毕后调用 deleteTexture 手动释放
|
|
60
|
+
在手动释放之前,可以赋给其他div/img来复用
|
|
57
61
|
* @return {CapturedTexture} 用于cancel的句柄,当cancel时,会清理对div和Callback的引用
|
|
58
62
|
*/
|
|
59
63
|
capture2Texture: (captureDiv: any, callback: CapturedCallback, autoRecycle?: boolean) => CapturedTexture;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare function GetColorTexture(manager_ref: any, color_define: string): any;
|
|
2
|
+
declare function GetImage(manager_ref: any, image_url: string): any;
|
|
3
|
+
declare let ForgeTextureApis: {
|
|
4
|
+
GetColorTexture: typeof GetColorTexture;
|
|
5
|
+
GetImage: typeof GetImage;
|
|
6
|
+
};
|
|
7
|
+
export { ForgeTextureApis, };
|
|
@@ -3,7 +3,6 @@ export * from "./JsvDynamicCssStyle";
|
|
|
3
3
|
export * from "./JsvDynamicKeyFrames";
|
|
4
4
|
export * from "./JsvRuntimeBridge";
|
|
5
5
|
export * from "./NinePatchHelper";
|
|
6
|
-
export * from "./TypeCheckAndSet";
|
|
7
6
|
export * from "./JsvRefTaker";
|
|
8
7
|
export * from "./JsvStyleClass";
|
|
9
8
|
export * from "./JsvStyleSheetsDeclarer";
|
|
@@ -19,4 +18,7 @@ export * from "./JsvTextureDefines";
|
|
|
19
18
|
export * from "./JsvFederationTools";
|
|
20
19
|
export * from "./ConstSymbol";
|
|
21
20
|
export * from "./ForgeConstDefine";
|
|
21
|
+
export * from "./TextureManagerTools";
|
|
22
|
+
export * from "./FeatureActive";
|
|
23
|
+
export * from "./JsvTextureLoadTool";
|
|
22
24
|
export { default as DefaultKeyCodeMap } from "./DefaultKeyMap";
|
package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/JsvApic.vue.d.ts
RENAMED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
export namespace LoopType {
|
|
2
|
+
const LOOP_DEFAULT: number;
|
|
3
|
+
const LOOP_INFINITE: number;
|
|
4
|
+
const LOOP_FINITE: number;
|
|
5
|
+
const LOOP_PART: number;
|
|
6
|
+
const LOOP_SINGLE: number;
|
|
7
|
+
}
|
|
1
8
|
declare const _default: import("vue").DefineComponent<{
|
|
2
9
|
src: StringConstructor;
|
|
3
10
|
style: ObjectConstructor;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
6
|
+
$attrs: {
|
|
7
|
+
[x: string]: unknown;
|
|
8
|
+
};
|
|
9
|
+
$refs: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
};
|
|
12
|
+
$slots: Readonly<{
|
|
13
|
+
[name: string]: import("vue").Slot | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
16
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
17
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
18
|
+
$el: any;
|
|
19
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
20
|
+
setSensor: (callback: any, sensitivity: any) => void;
|
|
21
|
+
setTouchCallback: (onDragStart: any, onDragEnd: any) => void;
|
|
22
|
+
moveTo: (left: any, top: any) => void;
|
|
23
|
+
getPosition: () => {
|
|
24
|
+
left: number;
|
|
25
|
+
top: number;
|
|
26
|
+
};
|
|
27
|
+
$props: {
|
|
28
|
+
readonly boxRect?: Record<string, any> | undefined;
|
|
29
|
+
readonly dragRect?: Record<string, any> | undefined;
|
|
30
|
+
};
|
|
31
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
|
|
32
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
33
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
37
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
38
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
39
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
40
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
41
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
42
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
43
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
44
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
45
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
46
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
47
|
+
};
|
|
48
|
+
$forceUpdate: () => void;
|
|
49
|
+
$nextTick: typeof import("vue").nextTick;
|
|
50
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
51
|
+
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{
|
|
52
|
+
setSensor: (callback: any, sensitivity: any) => void;
|
|
53
|
+
setTouchCallback: (onDragStart: any, onDragEnd: any) => void;
|
|
54
|
+
moveTo: (left: any, top: any) => void;
|
|
55
|
+
getPosition: () => {
|
|
56
|
+
left: number;
|
|
57
|
+
top: number;
|
|
58
|
+
};
|
|
59
|
+
$props: {
|
|
60
|
+
readonly boxRect?: Record<string, any> | undefined;
|
|
61
|
+
readonly dragRect?: Record<string, any> | undefined;
|
|
62
|
+
};
|
|
63
|
+
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
64
|
+
__isFragment?: undefined;
|
|
65
|
+
__isTeleport?: undefined;
|
|
66
|
+
__isSuspense?: undefined;
|
|
67
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
68
|
+
setSensor: (callback: any, sensitivity: any) => void;
|
|
69
|
+
setTouchCallback: (onDragStart: any, onDragEnd: any) => void;
|
|
70
|
+
moveTo: (left: any, top: any) => void;
|
|
71
|
+
getPosition: () => {
|
|
72
|
+
left: number;
|
|
73
|
+
top: number;
|
|
74
|
+
};
|
|
75
|
+
$props: {
|
|
76
|
+
readonly boxRect?: Record<string, any> | undefined;
|
|
77
|
+
readonly dragRect?: Record<string, any> | undefined;
|
|
78
|
+
};
|
|
79
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
80
|
+
$slots: {
|
|
81
|
+
default: (_: {}) => any;
|
|
82
|
+
};
|
|
83
|
+
});
|
|
84
|
+
export default _default;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
6
|
+
$attrs: {
|
|
7
|
+
[x: string]: unknown;
|
|
8
|
+
};
|
|
9
|
+
$refs: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
};
|
|
12
|
+
$slots: Readonly<{
|
|
13
|
+
[name: string]: import("vue").Slot | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
16
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
17
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
18
|
+
$el: any;
|
|
19
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
20
|
+
getWidth: () => any;
|
|
21
|
+
getHeight: () => any;
|
|
22
|
+
$props: {
|
|
23
|
+
readonly background?: string | undefined;
|
|
24
|
+
readonly askSize?: boolean | undefined;
|
|
25
|
+
readonly onSized?: Function | undefined;
|
|
26
|
+
readonly style?: Record<string, any> | undefined;
|
|
27
|
+
};
|
|
28
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
|
|
29
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
30
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
31
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
32
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
33
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
37
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
38
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
39
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
40
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
41
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
42
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
43
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
44
|
+
};
|
|
45
|
+
$forceUpdate: () => void;
|
|
46
|
+
$nextTick: typeof import("vue").nextTick;
|
|
47
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
48
|
+
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{
|
|
49
|
+
getWidth: () => any;
|
|
50
|
+
getHeight: () => any;
|
|
51
|
+
$props: {
|
|
52
|
+
readonly background?: string | undefined;
|
|
53
|
+
readonly askSize?: boolean | undefined;
|
|
54
|
+
readonly onSized?: Function | undefined;
|
|
55
|
+
readonly style?: Record<string, any> | undefined;
|
|
56
|
+
};
|
|
57
|
+
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
58
|
+
__isFragment?: undefined;
|
|
59
|
+
__isTeleport?: undefined;
|
|
60
|
+
__isSuspense?: undefined;
|
|
61
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
62
|
+
getWidth: () => any;
|
|
63
|
+
getHeight: () => any;
|
|
64
|
+
$props: {
|
|
65
|
+
readonly background?: string | undefined;
|
|
66
|
+
readonly askSize?: boolean | undefined;
|
|
67
|
+
readonly onSized?: Function | undefined;
|
|
68
|
+
readonly style?: Record<string, any> | undefined;
|
|
69
|
+
};
|
|
70
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
71
|
+
$slots: {
|
|
72
|
+
default: (_: {}) => any;
|
|
73
|
+
};
|
|
74
|
+
});
|
|
75
|
+
export default _default;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
-
startAnim: (
|
|
2
|
+
startAnim: (alt_duration: any, on_timeout_func: any) => number;
|
|
3
3
|
stopAnim: () => void;
|
|
4
4
|
$props: {
|
|
5
5
|
readonly style?: Record<string, any> | undefined;
|
|
6
6
|
readonly duration?: number | undefined;
|
|
7
7
|
readonly autoplay?: boolean | undefined;
|
|
8
8
|
readonly shaderStr?: string | undefined;
|
|
9
|
+
readonly onEnd?: Function | undefined;
|
|
10
|
+
readonly onStart?: Function | undefined;
|
|
9
11
|
readonly uniforms?: unknown[] | undefined;
|
|
10
12
|
readonly textures?: unknown[] | undefined;
|
|
11
13
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./JsvFragShaderView.vue";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
startBlink: () => void;
|
|
3
|
+
stopBlink: (show: any) => void;
|
|
4
|
+
$props: {
|
|
5
|
+
readonly left?: number | undefined;
|
|
6
|
+
readonly top?: number | undefined;
|
|
7
|
+
readonly width?: number | undefined;
|
|
8
|
+
readonly height?: number | undefined;
|
|
9
|
+
readonly color?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { FontStyleDefine } from "./SharedDefine";
|
|
2
|
+
export declare const CHAR_CODE_OF_0: number;
|
|
3
|
+
export declare const CHAR_CODE_OF_9: number;
|
|
4
|
+
declare type TextChangedFunc = (final_text: string, dsp_text: string) => void;
|
|
5
|
+
declare type CursorMovedFunc = (new_text_start_index: number, new_cursor_left: number) => void;
|
|
6
|
+
declare type TextOverflowFunc = (origin_text: string, new_text: string) => void;
|
|
7
|
+
export declare class EditViewOperator {
|
|
8
|
+
private _EditViewHandle;
|
|
9
|
+
private _CursorHandle;
|
|
10
|
+
private _EditViewId;
|
|
11
|
+
private _CursorResumeTimeoutToken;
|
|
12
|
+
private _InputType;
|
|
13
|
+
private _FontStyle;
|
|
14
|
+
private _TextLeft;
|
|
15
|
+
private _MaxInputLenth;
|
|
16
|
+
private _TextReadOnly;
|
|
17
|
+
private _CurrentFullText;
|
|
18
|
+
private _CurrentDspText;
|
|
19
|
+
private _CurrentDspWith;
|
|
20
|
+
private _CurrentCursorOffset;
|
|
21
|
+
private _IsFocus;
|
|
22
|
+
private _EditVisibleArea?;
|
|
23
|
+
private _TextChangedCount;
|
|
24
|
+
private _OnTextChangedCallback;
|
|
25
|
+
private _OnCursorMoved;
|
|
26
|
+
private _TextOverflowFunc;
|
|
27
|
+
constructor(text_changed_callback: TextChangedFunc, cursor_moved: CursorMovedFunc, text_overflow?: TextOverflowFunc | undefined);
|
|
28
|
+
updateFocus(is_focus: boolean): void;
|
|
29
|
+
showSoftIme(): void;
|
|
30
|
+
updateInputConfig(box_width: number, box_height: number, cursor_width: number, font_style: FontStyleDefine, input_type: number, max_input_lenth: number, text_read_only: boolean, editorTextColor: string, editorBackground: string): void;
|
|
31
|
+
generateView(): number;
|
|
32
|
+
setCursorRef(cursor_ref: any): void;
|
|
33
|
+
moveCursorOffset(moved_gap: number): boolean;
|
|
34
|
+
private _UpdateDispay;
|
|
35
|
+
onUnmounted(): void;
|
|
36
|
+
private _PauseCursorBlink;
|
|
37
|
+
private _ClearCursorResumeTimer;
|
|
38
|
+
private _OnTextChanged;
|
|
39
|
+
private _OnStatusChanged;
|
|
40
|
+
addText(text: string): void;
|
|
41
|
+
deleteText(): void;
|
|
42
|
+
clearText(): void;
|
|
43
|
+
replaceText(text: string): void;
|
|
44
|
+
}
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FontStyleDefine } from "./SharedDefine";
|
|
2
|
+
export declare class EditVisibleArea {
|
|
3
|
+
private _AreaWidth;
|
|
4
|
+
private _AreaHeight;
|
|
5
|
+
private _IsRightAlign;
|
|
6
|
+
private _TextLeft;
|
|
7
|
+
private _CursorWidth;
|
|
8
|
+
private _FontStyle;
|
|
9
|
+
private _TextVisibleStartPos;
|
|
10
|
+
private _TextVisibleEndPos;
|
|
11
|
+
private _VisibleAreaCurPos;
|
|
12
|
+
private _CursorMeasureCachedId;
|
|
13
|
+
private _CursorMeasuredToken;
|
|
14
|
+
constructor(area_width: number, area_height: number, cursor_width: number, font_style: FontStyleDefine, is_right_align: boolean);
|
|
15
|
+
getTextLeft(): number;
|
|
16
|
+
getCursorPosition(): number;
|
|
17
|
+
releaseResource(): void;
|
|
18
|
+
calculateSlide(pre_str: string, target_str: string, pre_str_dsp_width: number, target_str_dsp_width: number, // 使用外部缓存,减少本地计算
|
|
19
|
+
cur_index: number, moved: boolean, text_info_token: number): number;
|
|
20
|
+
private _updateVisibleAreaPos;
|
|
21
|
+
private _caculateTextLeft;
|
|
22
|
+
private _getLeftWithAddChar;
|
|
23
|
+
private _getLeftWithDelChar;
|
|
24
|
+
private _getLeftWithMoveRight;
|
|
25
|
+
private _getLeftWithMoveLeft;
|
|
26
|
+
}
|