@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
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
<script>
|
|
2
|
+
/**
|
|
3
|
+
* @file
|
|
4
|
+
*
|
|
2
5
|
* 【控件介绍】
|
|
3
6
|
* JsvNativeSharedDiv:创建一个Native端可以跟进显示位置的div,用于Native端外挂插件的开发
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
|
|
7
|
+
* @param {Object} style 布局样式(必须),必须包含的信息为{left, top, width, height}
|
|
8
|
+
* @param {function} getId 回调函数,用于接收ID信息,ID信息用于Native端对该view进行跟踪的标识
|
|
9
|
+
* @param {String} setId 给定命名ID,避免同进程不同context重名要和Context相关,
|
|
10
|
+
* 例如`${window.JsView?.getJsContextId()}_${you_name}`
|
|
11
|
+
* @param {number} corner 圆角的尺寸,默认为0
|
|
12
|
+
* @param {number} oversize 为了去除黑边的调整选项,让native video的尺寸信息比扣洞大多少, 默认为0
|
|
13
|
+
* @param {boolean} frontLayer 视图是在JsView界面前方,不是需要扣洞的后方,默认为false
|
|
14
|
+
*/
|
|
15
|
+
</script>
|
|
11
16
|
|
|
12
17
|
<script setup>
|
|
13
18
|
import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
|
|
@@ -16,7 +21,7 @@ import { JsvTextureStoreApi } from "../JsViewVueTools/JsvTextureStore/JsvTexture
|
|
|
16
21
|
import { onUnmounted, shallowRef } from "vue";
|
|
17
22
|
import JsvNinePatch from "./JsvNinePatch.vue";
|
|
18
23
|
|
|
19
|
-
const
|
|
24
|
+
const rProps = defineProps({
|
|
20
25
|
style: {
|
|
21
26
|
type: Object,
|
|
22
27
|
default: () => {
|
|
@@ -29,83 +34,101 @@ const props = defineProps({
|
|
|
29
34
|
type: Number,
|
|
30
35
|
default: 0,
|
|
31
36
|
},
|
|
37
|
+
oversize: {
|
|
38
|
+
type: Number,
|
|
39
|
+
default: 0,
|
|
40
|
+
},
|
|
41
|
+
frontLayer: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: false,
|
|
44
|
+
},
|
|
32
45
|
});
|
|
33
46
|
|
|
34
|
-
let
|
|
35
|
-
let
|
|
36
|
-
let
|
|
37
|
-
let
|
|
47
|
+
let vJsvMainView = undefined;
|
|
48
|
+
let vInnerViewId = -1;
|
|
49
|
+
let vNinePatchSet = null;
|
|
50
|
+
let vBackgroudnColorValue = null;
|
|
51
|
+
|
|
52
|
+
let isBrowserDebug = !window.JsView;
|
|
38
53
|
|
|
39
|
-
if (
|
|
54
|
+
if (window.JsView) {
|
|
40
55
|
// 创建JsView图层穿透的texture,抠洞处理
|
|
41
56
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
57
|
+
if (!rProps.frontLayer) {
|
|
58
|
+
// 有圆角
|
|
59
|
+
if (rProps.corner > 0) {
|
|
60
|
+
let presetGap = 1; // 外延距离,以保证圆角光滑
|
|
61
|
+
vNinePatchSet = {
|
|
62
|
+
imageSize: (rProps.corner + presetGap) * 2, // 半径 + 中心点1像素
|
|
63
|
+
textureName: null,
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
// 用 JsvTextureStoreApi 绘制半径对等的圆形
|
|
67
|
+
let sampleImageWidth = vNinePatchSet.imageSize;
|
|
68
|
+
let innerRadius2 = sampleImageWidth; // 内直径
|
|
69
|
+
let circleLineWidth = 1.5 * rProps.corner + presetGap - rProps.corner; // 线粗要把四角盖上
|
|
70
|
+
let canvasRef;
|
|
71
|
+
|
|
72
|
+
// 创建画布
|
|
73
|
+
canvasRef = JsvTextureStoreApi.canvasTexture(
|
|
74
|
+
sampleImageWidth,
|
|
75
|
+
sampleImageWidth
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
let circleRadius =
|
|
79
|
+
Math.floor(innerRadius2 / 2) +
|
|
80
|
+
Math.floor(circleLineWidth / 2) -
|
|
81
|
+
presetGap; // 圆环绘制路径是粗线的中心线,所以要减去一半的线宽
|
|
82
|
+
let customPath = canvasRef.circlePath(
|
|
83
|
+
Math.floor(sampleImageWidth / 2),
|
|
84
|
+
Math.floor(sampleImageWidth / 2),
|
|
85
|
+
circleRadius
|
|
86
|
+
); // 创建圆环绘制路径,圆形在画布的中心点位置
|
|
87
|
+
canvasRef.drawColor("rgba(0,0,0,0)"); // 画布绘制透明底色
|
|
88
|
+
customPath.stroke(circleLineWidth, "#FF0000FF"); // 绘制alpha=1的边缘留色
|
|
89
|
+
|
|
90
|
+
// 获取填入url的内容
|
|
91
|
+
// 进行.9拉伸以适配目标尺寸
|
|
92
|
+
// 通过 alphaOverride 进行alpah叠加
|
|
93
|
+
vNinePatchSet.textureName = canvasRef.commit();
|
|
94
|
+
} else {
|
|
95
|
+
// 用背景色
|
|
96
|
+
vBackgroudnColorValue = "rgba(0,0,0,0)";
|
|
97
|
+
}
|
|
78
98
|
}
|
|
79
99
|
|
|
80
100
|
// 通过内置函数构造定制的NativeSharedView
|
|
81
|
-
|
|
82
|
-
|
|
101
|
+
vJsvMainView = new Forge.NativeSharedView();
|
|
102
|
+
vInnerViewId = Forge.sViewStore.add(new Forge.ViewInfo(vJsvMainView));
|
|
103
|
+
if (rProps.oversize != 0) {
|
|
104
|
+
vJsvMainView.SetOverSize(rProps.oversize);
|
|
105
|
+
}
|
|
83
106
|
|
|
84
107
|
// 更新宽高
|
|
85
|
-
if (typeof
|
|
86
|
-
if (
|
|
108
|
+
if (typeof vJsvMainView != "undefined" && vJsvMainView) {
|
|
109
|
+
if (rProps.setId) {
|
|
87
110
|
// 使用设置进来的track id,而非自动生成
|
|
88
|
-
|
|
111
|
+
vJsvMainView.SetTrackId(rProps.setId);
|
|
89
112
|
}
|
|
90
113
|
|
|
91
|
-
|
|
114
|
+
rProps.getId?.(vJsvMainView.GetTrackId());
|
|
92
115
|
}
|
|
93
116
|
}
|
|
94
117
|
|
|
95
118
|
onUnmounted(() => {
|
|
96
|
-
if (
|
|
119
|
+
if (!window.JsView) {
|
|
97
120
|
return;
|
|
98
121
|
}
|
|
99
122
|
|
|
100
123
|
// 清理View管理缓存
|
|
101
|
-
if (
|
|
102
|
-
Forge.sViewStore.remove(
|
|
103
|
-
|
|
104
|
-
|
|
124
|
+
if (vInnerViewId !== -1) {
|
|
125
|
+
Forge.sViewStore.remove(vInnerViewId);
|
|
126
|
+
vInnerViewId = -1;
|
|
127
|
+
vJsvMainView = null;
|
|
105
128
|
}
|
|
106
129
|
|
|
107
|
-
if (
|
|
108
|
-
JsvTextureStoreApi.deleteTexture(
|
|
130
|
+
if (vNinePatchSet != null) {
|
|
131
|
+
JsvTextureStoreApi.deleteTexture(vNinePatchSet.textureName); // 释放texture资源
|
|
109
132
|
}
|
|
110
133
|
});
|
|
111
134
|
</script>
|
|
@@ -119,13 +142,13 @@ onUnmounted(() => {
|
|
|
119
142
|
}"
|
|
120
143
|
>
|
|
121
144
|
<jsv-nine-patch
|
|
122
|
-
v-if="
|
|
145
|
+
v-if="vNinePatchSet != null"
|
|
123
146
|
:style="{
|
|
124
147
|
width: style.width,
|
|
125
148
|
height: style.height,
|
|
126
149
|
}"
|
|
127
|
-
:imageUrl="`jsvtexturestore://${
|
|
128
|
-
:imageWidth="
|
|
150
|
+
:imageUrl="`jsvtexturestore://${vNinePatchSet.textureName}`"
|
|
151
|
+
:imageWidth="vNinePatchSet.imageSize"
|
|
129
152
|
:centerWidth="1"
|
|
130
153
|
:borderOutset="0"
|
|
131
154
|
:waitForInit="false"
|
|
@@ -136,7 +159,7 @@ onUnmounted(() => {
|
|
|
136
159
|
:style="{
|
|
137
160
|
width: style.width,
|
|
138
161
|
height: style.height,
|
|
139
|
-
backgroundColor:
|
|
162
|
+
backgroundColor: vBackgroudnColorValue,
|
|
140
163
|
JsvImageBlendType: 'alphaOverride',
|
|
141
164
|
}"
|
|
142
165
|
/>
|
|
@@ -145,7 +168,7 @@ onUnmounted(() => {
|
|
|
145
168
|
width: style.width,
|
|
146
169
|
height: style.height,
|
|
147
170
|
}"
|
|
148
|
-
:data-jsv-vw-innerview="
|
|
171
|
+
:data-jsv-vw-innerview="vInnerViewId"
|
|
149
172
|
>
|
|
150
173
|
<slot />
|
|
151
174
|
</div>
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<!--
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
2
4
|
* 【模块 export 内容】
|
|
3
5
|
* JsvNinePatch:Vue高阶组件,.9图展示控件,该控件的原图要求为正方形,延展后可为长方形
|
|
4
6
|
* centerWidth和borderOutset传值比较抽象,若 imageDspWidth 和图片素材的原图尺寸一直,
|
|
@@ -17,6 +19,7 @@
|
|
|
17
19
|
* animTime {int} (必填)缩放动画的时长(单位秒)
|
|
18
20
|
* waitForInit {boolean} (选填)尺寸为0时是否进行描画(例如: 首次显示不展示动画的场合,设置为true),默认值为true
|
|
19
21
|
* onTransitionEnd { Function } (选填)transition动画结束的回调
|
|
22
|
+
* onAnimationEnd { Function } (选填)animation动画结束的回调
|
|
20
23
|
* imageBlendType {String} (选填) alpha合并模式,默认为普通合成,可设置"alphaOverride", 用于Video挖洞操作
|
|
21
24
|
-->
|
|
22
25
|
|
|
@@ -42,6 +45,7 @@ const props = defineProps({
|
|
|
42
45
|
borderOutset: { type: Number, required: true },
|
|
43
46
|
animTime: { type: Number, default: 0 },
|
|
44
47
|
onTransitionEnd: { type: Function },
|
|
48
|
+
onAnimationEnd: { type: Function },
|
|
45
49
|
animation: { type: String },
|
|
46
50
|
imageBlendType: { type: String, default: null },
|
|
47
51
|
|
|
@@ -119,5 +123,6 @@ function innerOnDivRef(ref) {
|
|
|
119
123
|
JsvImageBlendType: props.imageBlendType,
|
|
120
124
|
}"
|
|
121
125
|
@transitionend="props.onTransitionEnd"
|
|
126
|
+
@animationend="props.onAnimationEnd"
|
|
122
127
|
/>
|
|
123
128
|
</template>
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<!--
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
2
4
|
* 【模块 export 内容】
|
|
3
5
|
* JsvPosterImage:Vue高阶组件,海报描画,可设置color space 和 texture size
|
|
4
6
|
* props说明:
|
|
@@ -50,7 +52,6 @@ const isPosterImage = computed(() => {
|
|
|
50
52
|
|
|
51
53
|
let common_style = reactive({});
|
|
52
54
|
let image_style = reactive({});
|
|
53
|
-
let show_background_holder = !!window.JsView; // PC浏览器模拟时, 不显示占位图,避免误导
|
|
54
55
|
|
|
55
56
|
watchEffect(() => {
|
|
56
57
|
if (props.style) {
|
|
@@ -78,7 +79,7 @@ watchEffect(() => {
|
|
|
78
79
|
|
|
79
80
|
<template>
|
|
80
81
|
<div :style="common_style">
|
|
81
|
-
<slot
|
|
82
|
+
<slot />
|
|
82
83
|
<img
|
|
83
84
|
v-if="!!props.src"
|
|
84
85
|
:data-jsv-vw-enable-fade="props.fadeIn"
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<!--
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
2
4
|
* 【模块 export 内容】
|
|
3
5
|
* JsvPreload:Vue高阶组件,图片预加载的控件
|
|
4
6
|
* preloadList {ObjectArray}: 预加载的信息列表,单个内容通过buildPreloadInfo构建
|
|
@@ -69,8 +71,7 @@ export { buildPreloadInfo, buildDownloadInfo };
|
|
|
69
71
|
import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
|
|
70
72
|
import ForgeHandles from "../../JsViewVueTools/ForgeHandles";
|
|
71
73
|
import { reactive, onBeforeUnmount, watchEffect } from "vue";
|
|
72
|
-
|
|
73
|
-
const CONST_FORMAT_TOKEN = "_JsvP_";
|
|
74
|
+
import { urlCheckSet } from "../../JsViewVueTools";
|
|
74
75
|
|
|
75
76
|
const props = defineProps({
|
|
76
77
|
preloadList: Object,
|
|
@@ -96,37 +97,29 @@ let preloadToken = 1;
|
|
|
96
97
|
let downloadToken = 1;
|
|
97
98
|
|
|
98
99
|
const _releasePreloadView = () => {
|
|
99
|
-
if (
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
view_info.callToken
|
|
108
|
-
);
|
|
109
|
-
Forge.sViewStore.remove(id);
|
|
110
|
-
}
|
|
100
|
+
if (loadViewList.preloadViewList.length > 0) {
|
|
101
|
+
for (const view_info of loadViewList.preloadViewList) {
|
|
102
|
+
if (view_info) {
|
|
103
|
+
// 当预加载url为null时view_info为null
|
|
104
|
+
const id = view_info.viewId;
|
|
105
|
+
view_info.textureRef?.DisableBackgroundLoad();
|
|
106
|
+
view_info.textureRef?.UnregisterLoadImageCallback(view_info.callToken);
|
|
107
|
+
Forge.sViewStore.remove(id);
|
|
111
108
|
}
|
|
112
109
|
}
|
|
113
|
-
loadViewList.preloadViewList = [];
|
|
114
|
-
preloadStateList = [];
|
|
115
110
|
}
|
|
111
|
+
loadViewList.preloadViewList = [];
|
|
112
|
+
preloadStateList = [];
|
|
116
113
|
};
|
|
117
114
|
const _releaseDownloadView = () => {
|
|
118
|
-
if (
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
view_info.callToken
|
|
127
|
-
);
|
|
128
|
-
Forge.sViewStore.remove(id);
|
|
129
|
-
}
|
|
115
|
+
if (loadViewList.downloadViewList.length > 0) {
|
|
116
|
+
for (const view_info of loadViewList.downloadViewList) {
|
|
117
|
+
if (view_info) {
|
|
118
|
+
// 当预加载url为null时view_info为null
|
|
119
|
+
const id = view_info.viewId;
|
|
120
|
+
view_info.textureRef?.DisableBackgroundLoad();
|
|
121
|
+
view_info.textureRef?.UnregisterLoadImageCallback(view_info.callToken);
|
|
122
|
+
Forge.sViewStore.remove(id);
|
|
130
123
|
}
|
|
131
124
|
}
|
|
132
125
|
}
|
|
@@ -174,14 +167,7 @@ const _getPreloadViewIdList = () => {
|
|
|
174
167
|
"Error:format mismatch, data should comes from function buildPreloadInfo()"
|
|
175
168
|
);
|
|
176
169
|
}
|
|
177
|
-
|
|
178
|
-
let image_url = base_url;
|
|
179
|
-
if (base_url && base_url.indexOf("http") < 0) {
|
|
180
|
-
// 包含http和https两种请求
|
|
181
|
-
if (window.JsView.Dom.UrlRef) {
|
|
182
|
-
image_url = new window.JsView.Dom.UrlRef(base_url).href;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
170
|
+
let image_url = urlCheckSet(item.url);
|
|
185
171
|
let target_size = null;
|
|
186
172
|
if (item.width !== 0 && item.height !== 0) {
|
|
187
173
|
target_size = { width: item.width, height: item.height };
|
|
@@ -265,14 +251,7 @@ const _getDownloadViewIdList = () => {
|
|
|
265
251
|
);
|
|
266
252
|
}
|
|
267
253
|
console.log(`OnDownload get${index} url=${item.url}`);
|
|
268
|
-
|
|
269
|
-
let image_url = base_url;
|
|
270
|
-
if (base_url && base_url.indexOf("http") < 0) {
|
|
271
|
-
// 包含http和https两种请求
|
|
272
|
-
if (window.JsView.Dom.UrlRef) {
|
|
273
|
-
image_url = new window.JsView.Dom.UrlRef(base_url).href;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
254
|
+
let image_url = urlCheckSet(item.url);
|
|
276
255
|
const texture = ForgeHandles.TextureManager.GetDownloadTexture(
|
|
277
256
|
image_url,
|
|
278
257
|
null,
|
|
@@ -6,17 +6,6 @@
|
|
|
6
6
|
* @Description: file content
|
|
7
7
|
*/
|
|
8
8
|
//! 考虑到.vue文件除了export default的component外,还有可能export其他对象,因此使用import * as
|
|
9
|
-
|
|
9
|
+
export * from "./JsvPreload.vue";
|
|
10
|
+
export { default } from "./JsvPreload.vue";
|
|
10
11
|
|
|
11
|
-
let _JsvPreload;
|
|
12
|
-
if (window.JsView) {
|
|
13
|
-
_JsvPreload = JsvPreload.default;
|
|
14
|
-
} else {
|
|
15
|
-
const BrowserPreload = await import("./BrowserPreload.vue");
|
|
16
|
-
_JsvPreload = BrowserPreload.default;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
let buildPreloadInfo = JsvPreload.buildPreloadInfo;
|
|
20
|
-
let buildDownloadInfo = JsvPreload.buildDownloadInfo;
|
|
21
|
-
export default _JsvPreload;
|
|
22
|
-
export { buildPreloadInfo, buildDownloadInfo };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<!--
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
2
4
|
* 【模块 export 内容】
|
|
3
5
|
* QRCode:Vue高阶组件,描绘二维码,
|
|
4
6
|
* props说明:
|
|
@@ -20,6 +22,7 @@
|
|
|
20
22
|
import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
|
|
21
23
|
import ForgeHandles from "../../JsViewVueTools/ForgeHandles";
|
|
22
24
|
import { TextureInstantType } from "../../JsViewVueTools/JsvTextureDefines.ts";
|
|
25
|
+
import { urlCheckSet } from "../../JsViewVueTools/TypeCheckAndSet.ts";
|
|
23
26
|
|
|
24
27
|
export default {
|
|
25
28
|
props: {
|
|
@@ -94,30 +97,27 @@ export default {
|
|
|
94
97
|
if (this.imageSettings && calculatedImageSettings) {
|
|
95
98
|
let url = this.imageSettings.src;
|
|
96
99
|
if (typeof url === "string") {
|
|
97
|
-
url =
|
|
100
|
+
url = urlCheckSet(this.imageSettings.src);
|
|
98
101
|
}
|
|
99
102
|
const img_texture = texture_manager.GetImage(url);
|
|
100
103
|
const img_view = new Forge.LayoutView(
|
|
101
104
|
new Forge.TextureSetting(img_texture)
|
|
102
105
|
);
|
|
103
|
-
view.AddView(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
height: calculatedImageSettings.h,
|
|
110
|
-
})
|
|
111
|
-
);
|
|
106
|
+
view.AddView(img_view, {
|
|
107
|
+
x: calculatedImageSettings.x,
|
|
108
|
+
y: calculatedImageSettings.y,
|
|
109
|
+
width: calculatedImageSettings.w,
|
|
110
|
+
height: calculatedImageSettings.h,
|
|
111
|
+
});
|
|
112
112
|
console.log("view = " + view);
|
|
113
113
|
}
|
|
114
114
|
// 二维码都位置与大小
|
|
115
|
-
lp_params =
|
|
115
|
+
lp_params = {
|
|
116
116
|
x: 0,
|
|
117
117
|
y: 0,
|
|
118
118
|
width: this.size,
|
|
119
119
|
height: this.size,
|
|
120
|
-
}
|
|
120
|
+
};
|
|
121
121
|
|
|
122
122
|
// Add new QRCode
|
|
123
123
|
this.qrCodeView = view;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<!--
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
2
4
|
* 【模块 export 内容】
|
|
3
5
|
* JsvRipple: 波纹组件
|
|
4
6
|
* 组件说明:
|
|
@@ -63,7 +65,7 @@ const props = defineProps({
|
|
|
63
65
|
});
|
|
64
66
|
const TAG = "JsvRipple";
|
|
65
67
|
|
|
66
|
-
let filterView = new Forge.FilterView(null, Forge.
|
|
68
|
+
let filterView = new Forge.FilterView(null, Forge.FilterViewType.Type.WAVE);
|
|
67
69
|
let viewId = Forge.sViewStore.add(new Forge.ViewInfo(filterView, null));
|
|
68
70
|
|
|
69
71
|
// 监控filter改变
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<!--
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
2
4
|
* 【模块 export 内容】
|
|
3
5
|
* JsvScrollBox:Vue高阶组件,支持触控拖动的滚动型组件。
|
|
4
6
|
* props说明:
|
|
@@ -91,6 +93,10 @@ import {
|
|
|
91
93
|
SyncLinkSource,
|
|
92
94
|
} from "../../JsViewVueWidget/JsvFreeMoveActor/SyncLinkManager";
|
|
93
95
|
import { newNexus, NexusNode } from "../JsvFreeMoveActor/NexusNode";
|
|
96
|
+
import {
|
|
97
|
+
FeatureNames,
|
|
98
|
+
JsvUseFeature,
|
|
99
|
+
} from "../../JsViewVueTools/FeatureActive";
|
|
94
100
|
|
|
95
101
|
let rProps = defineProps({
|
|
96
102
|
// 底座的尺寸
|
|
@@ -146,6 +152,9 @@ let rProps = defineProps({
|
|
|
146
152
|
},
|
|
147
153
|
});
|
|
148
154
|
|
|
155
|
+
// 激活引擎中的功能支持
|
|
156
|
+
JsvUseFeature("JsvScrollBox", FeatureNames.TouchReceiver);
|
|
157
|
+
|
|
149
158
|
/** 本地常量 **/
|
|
150
159
|
const cDirection = rProps.direction;
|
|
151
160
|
const cMode = rProps.mode;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<!--
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
2
4
|
* 【模块 export 内容】
|
|
3
5
|
* JsvScrollFollow:Vue高阶组件,响应并同步JsvScrollBox的移动的div/ninePatch特殊类型的进度展示组件
|
|
4
6
|
* props说明:
|
|
@@ -64,6 +66,10 @@ import { GetSyncLinkManager } from "../JsvFreeMoveActor/SyncLinkManager";
|
|
|
64
66
|
import { NexusNode } from "../JsvFreeMoveActor/NexusNode";
|
|
65
67
|
import { ScrollInnerStyle } from "./ScrollInnerSymbol";
|
|
66
68
|
import JsvNinePatch from "../JsvNinePatch.vue";
|
|
69
|
+
import {
|
|
70
|
+
FeatureNames,
|
|
71
|
+
JsvUseFeature,
|
|
72
|
+
} from "../../JsViewVueTools/FeatureActive";
|
|
67
73
|
|
|
68
74
|
const rProps = withDefaults(
|
|
69
75
|
defineProps<{
|
|
@@ -103,6 +109,9 @@ const rProps = withDefaults(
|
|
|
103
109
|
}
|
|
104
110
|
);
|
|
105
111
|
|
|
112
|
+
// 激活引擎中的功能支持
|
|
113
|
+
JsvUseFeature("JsvScrollFollow", FeatureNames.TouchReceiver);
|
|
114
|
+
|
|
106
115
|
/** 本地类型定义 **/
|
|
107
116
|
interface PosSizeType {
|
|
108
117
|
start: number;
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
/*!
|
|
6
|
+
* @file
|
|
7
|
+
*
|
|
6
8
|
* 【模块 export 内容】
|
|
7
9
|
* JsvSoundPool: 面向对象的类,用于播放效果音,创建JsvSoundPool对象后通过request的回调获得AudioController句柄后进行控制
|
|
8
10
|
* 功能函数: (参数说明见函数本体)
|
|
@@ -38,6 +40,8 @@
|
|
|
38
40
|
* 功能: 设置播放优先级
|
|
39
41
|
*/
|
|
40
42
|
|
|
43
|
+
import { urlCheckSet } from "../JsViewVueTools";
|
|
44
|
+
|
|
41
45
|
const supportSoundPool = !!window.SoundPool;
|
|
42
46
|
class AudioController {
|
|
43
47
|
constructor(soundPool, soundId, url) {
|
|
@@ -163,13 +167,7 @@ class JsvSoundPool {
|
|
|
163
167
|
return;
|
|
164
168
|
}
|
|
165
169
|
|
|
166
|
-
let realUrl;
|
|
167
|
-
if (window.JsView) {
|
|
168
|
-
// jsview上
|
|
169
|
-
realUrl = new window.JsView.Dom.UrlRef(url).href;
|
|
170
|
-
} else {
|
|
171
|
-
realUrl = url;
|
|
172
|
-
}
|
|
170
|
+
let realUrl = urlCheckSet(url);
|
|
173
171
|
if (this._SoundIdMap[realUrl]) {
|
|
174
172
|
this._SoundIdMap[realUrl].referCount++;
|
|
175
173
|
const controller = new AudioController(this._SoundPool, this._SoundIdMap[realUrl].soundId);
|