@shijiu/jsview-vue 2.2.373 → 2.3.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/jsview-vue-common.mjs +1 -1
- package/bin/jsview-vue.mjs +7678 -7306
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/CheckType.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusBlock.vue.d.ts +0 -34
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusHub.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusManager.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Const.d.ts +0 -4
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/DebugFrame.vue.d.ts +8 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/DebugTools.d.ts +5 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Dispatcher.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/ListWidget.vue.d.ts +24 -14
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +179 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/MetroWidgetSetup.d.ts +9 -6
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/PageUpdater.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/RenderItem.d.ts +3 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Slide.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/SlotComponent.vue.d.ts +0 -4
- 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/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/VisibleInfo.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/WidgetRectInfo.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/RangeModel.d.ts +0 -4
- package/bin/types/utils/JsViewEngineWidget/RectUtils.d.ts +61 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/CommonMetroTemplate.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/Fence.d.ts +2 -6
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/ListMetroTemplate.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/MetroTemplate.d.ts +3 -7
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/TemplateItemAdder.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/index.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/WidgetCommon.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/index.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAccount/JsvAccount.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvAudio/AudioProxy.d.ts +2 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +4 -8
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/CheckType.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/Events.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudio.vue.d.ts +4 -8
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudioBridgeProxy.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudioProxy.vue.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvAudio/PluginLoader.d.ts +1 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/ScreenLockManager.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/index.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvAudio/version.d.mts +14 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/version.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/BrowserDomBuilder.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/BrowserJsvLatex.vue.d.ts +5 -9
- package/bin/types/utils/JsViewPlugin/JsvLatex/Color.d.ts +1 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatex.vue.d.ts +5 -29
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +3 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatexProxy.vue.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvLatex/PluginLoader.d.ts +1 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/index.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +13 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/version.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvPlayer/AckEventDefine.d.ts +10 -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 +596 -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/{JsViewPlugin → utils/JsViewPlugin}/index.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ConstSymbol.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DebugContentShellJBridge.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DebugTool.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DefaultKeyMap.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/FeatureActive.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ForgeConstDefine.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ForgeHandles.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDynamicCssStyle.d.ts +0 -17
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDynamicKeyFrames.d.ts +0 -17
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvFederationTools.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvHashHistory.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvImpactTracer.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvPerformance.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvPreDownloader.d.ts +0 -21
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvRefTaker.d.ts +0 -26
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvRuntimeBridge.d.ts +6 -8
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvStyleClass.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvStyleSheetsDeclarer.d.ts +0 -18
- package/bin/types/utils/JsViewVueTools/JsvTextTools.d.ts +61 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureDefines.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureLoadTool.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/CommandList.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/Path.d.ts +20 -3
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/JsvTextureStore.d.ts +1 -23
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/Store.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/Texture.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/NinePatchHelper.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/TextureManagerTools.d.ts +0 -4
- package/bin/types/utils/JsViewVueTools/TypeCheckAndSet.d.ts +3 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/index.d.ts +0 -6
- package/bin/types/utils/JsViewVueWidget/Jsv3dDiv.vue.d.ts +120 -0
- package/bin/types/utils/JsViewVueWidget/Jsv3dStage.vue.d.ts +144 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/ActorControlBase.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +64 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/JsvActorMoveControl.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/index.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/BrowserApic.vue.d.ts +1 -5
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/JsvApic.vue.d.ts +0 -20
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +50 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +1 -5
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +23 -0
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +23 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/GifData.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/Viewer.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/WebpData.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvCommonLoopToolBase.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvClipDiv/JsvClipDiv.vue.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvClipDiv/index.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +13 -0
- package/bin/types/utils/JsViewVueWidget/JsvConnectLine/index.d.ts +2 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvDragBox/JsvDragBox.vue.d.ts +0 -25
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvDriftScope/JsvDriftScope.vue.d.ts +4 -8
- package/bin/types/utils/JsViewVueWidget/JsvDriftScope/index.d.ts +1 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvEnableRenderBreak.vue.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFilterView.vue.d.ts +6 -25
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +72 -0
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue.d.ts +78 -0
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +75 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFlexCell/index.d.ts +1 -4
- package/bin/types/{JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue.d.ts → utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts} +1 -5
- package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/index.d.ts +1 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActorControl.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/CallbackManager.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ForgeTypeDefine.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +12 -37
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +6 -28
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/KeepFlags.d.ts +7 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/NexusNode.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetAction.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetCondition.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetState.d.ts +1 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SyncLinkManager.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/index.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvGrid.vue.d.ts +0 -73
- package/bin/types/utils/JsViewVueWidget/JsvHole.d.ts +2 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/Cursor.vue.d.ts +2 -6
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/EditViewOperator.d.ts +2 -5
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/EditVisibleArea.d.ts +4 -5
- package/bin/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +12 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/SharedDefine.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/SystemTextTools.d.ts +7 -5
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/index.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +12 -0
- package/bin/types/utils/JsViewVueWidget/JsvLine/LineManager.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvLine/index.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvMarquee.vue.d.ts +12 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMaskClipDiv.vue.d.ts +0 -22
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/Constant.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/DataTree.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/Geometry.d.ts +2 -6
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/JsvMindMap.vue.d.ts +12 -95
- package/bin/types/utils/JsViewVueWidget/JsvMindMap/index.d.ts +1 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/rtree.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvNativeSharedDiv.vue.d.ts +0 -18
- package/bin/types/utils/JsViewVueWidget/JsvNinePatch.vue.d.ts +21 -0
- package/bin/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +9 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPosterDiv.vue.d.ts +3 -17
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPosterImage.vue.d.ts +3 -18
- package/bin/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +25 -0
- package/bin/types/utils/JsViewVueWidget/JsvPreload/index.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvProgressBar.vue.d.ts +12 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvQrcode/JsvQrcode.vue.d.ts +1 -26
- package/bin/types/utils/JsViewVueWidget/JsvRadarChart.vue.d.ts +13 -0
- package/bin/types/utils/JsViewVueWidget/JsvRipple/Constant.d.ts +4 -0
- package/bin/types/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +84 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvRipple/index.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +10 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/JsvScrollBox.vue.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/JsvScrollFollow.vue.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +4 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/ScrollSymbol.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/index.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSector.vue.d.ts +0 -18
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSoundPool.d.ts +0 -42
- package/bin/types/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +11 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/FrameBuidler.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +18 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +0 -16
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteTools.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/SpriteController.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/index.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +16 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper/JsvSwiper.vue.d.ts +0 -39
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +16 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper3D/JsvSwiper.vue.d.ts +3 -27
- package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/index.d.ts +2 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextBox.vue.d.ts +0 -26
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextureAnim/CommonType.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextureAnim/JsvTextureAnim.vue.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/index.d.ts +4 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTouchModeSwitcher.vue.d.ts +3 -28
- package/bin/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +23 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +9 -34
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvVisibleSensor/index.d.ts +9 -13
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/index.d.ts +4 -6
- package/bin/types/{index.d.ts → utils/index.d.ts} +0 -4
- package/index.d.ts +2 -2
- package/package.json +1 -1
- package/tools/jsview-vue-build.mjs +3 -2
- package/tsconfig.json +27 -0
- package/utils/JsViewEngineWidget/CheckType.js +3 -3
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue +25 -6
- package/utils/JsViewEngineWidget/MetroWidget/DebugFrame.vue +22 -0
- package/utils/JsViewEngineWidget/MetroWidget/DebugTools.ts +37 -0
- package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +42 -7
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +62 -10
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +177 -77
- package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +30 -0
- package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +1 -1
- package/utils/JsViewEngineWidget/TemplateParser/Fence.ts +2 -2
- package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +2 -4
- package/utils/JsViewPlugin/JsvPlayer/AckEventDefine.ts +82 -0
- package/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer.vue +49 -31
- package/utils/JsViewVueTools/JsvHashHistory.js +26 -29
- package/utils/JsViewVueTools/JsvRuntimeBridge.js +82 -73
- package/utils/JsViewVueTools/JsvTextTools.ts +63 -130
- package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.ts +38 -2
- package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +1 -1
- package/utils/JsViewVueTools/TypeCheckAndSet.ts +66 -0
- package/utils/JsViewVueTools/index.js +1 -2
- package/utils/JsViewVueWidget/Jsv3dDiv.vue +85 -0
- package/utils/JsViewVueWidget/Jsv3dStage.vue +50 -0
- package/utils/JsViewVueWidget/JsvApic/JsvApic/index.js +1 -8
- package/utils/JsViewVueWidget/JsvApic/JsvApic2/index.js +1 -8
- package/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue +1 -1
- package/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue +151 -0
- package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +11 -16
- package/utils/JsViewVueWidget/JsvFlexCell/index.js +1 -0
- package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +4 -1
- package/utils/JsViewVueWidget/JsvFragShaderView/index.js +2 -9
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.ts +8 -0
- package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +48 -15
- package/utils/JsViewVueWidget/JsvInput/EditVisibleArea.ts +43 -10
- package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +22 -9
- package/utils/JsViewVueWidget/JsvInput/SystemTextTools.ts +41 -27
- package/utils/JsViewVueWidget/JsvMaskClipDiv.vue +3 -57
- package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +57 -71
- package/utils/JsViewVueWidget/JsvPosterDiv.vue +15 -8
- package/utils/JsViewVueWidget/JsvPosterImage.vue +12 -3
- package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +21 -44
- package/utils/JsViewVueWidget/JsvPreload/index.js +2 -13
- package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +3 -2
- package/utils/JsViewVueWidget/JsvSoundPool.js +3 -7
- package/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue +116 -75
- package/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue +0 -5
- package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +27 -32
- package/utils/JsViewVueWidget/JsvTextureAnim/index.js +2 -9
- package/utils/JsViewVueWidget/index.js +4 -2
- package/bin/browser/BrowserApic.vue.mjs +0 -114
- package/bin/browser/BrowserApic2.vue.mjs +0 -108
- package/bin/browser/BrowserApicLib.mjs +0 -431
- package/bin/browser/BrowserJsvFragShaderView.vue.mjs +0 -79
- package/bin/browser/BrowserPreload.vue.mjs +0 -139
- package/bin/browser/BrowserQrcode.vue.mjs +0 -176
- package/bin/browser/BrowserSpray.vue.mjs +0 -56
- package/bin/browser/BrowserTextureAnim.vue.mjs +0 -322
- package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +0 -435
- package/bin/types/JsViewPlugin/JsvAudio/AudioProxy.d.ts +0 -6
- package/bin/types/JsViewPlugin/JsvAudio/PluginLoader.d.ts +0 -5
- package/bin/types/JsViewPlugin/JsvLatex/Color.d.ts +0 -5
- package/bin/types/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +0 -7
- package/bin/types/JsViewPlugin/JsvLatex/PluginLoader.d.ts +0 -5
- package/bin/types/JsViewVueTools/JsvDemoTester.d.ts +0 -6
- package/bin/types/JsViewVueTools/JsvTextTools.d.ts +0 -95
- package/bin/types/JsViewVueTools/TypeCheckAndSet.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +0 -102
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +0 -51
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvClipDiv/index.d.ts +0 -5
- package/bin/types/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +0 -5
- package/bin/types/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +0 -34
- package/bin/types/JsViewVueWidget/JsvConnectLine/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvDriftScope/index.d.ts +0 -5
- package/bin/types/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +0 -106
- package/bin/types/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +0 -106
- package/bin/types/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +0 -60
- package/bin/types/JsViewVueWidget/JsvFragShaderView/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvHole.d.ts +0 -19
- package/bin/types/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +0 -65
- package/bin/types/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +0 -32
- package/bin/types/JsViewVueWidget/JsvLine/LineManager.d.ts +0 -5
- package/bin/types/JsViewVueWidget/JsvLine/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvMarquee.vue.d.ts +0 -33
- package/bin/types/JsViewVueWidget/JsvMindMap/index.d.ts +0 -5
- package/bin/types/JsViewVueWidget/JsvNinePatch.vue.d.ts +0 -50
- package/bin/types/JsViewVueWidget/JsvPieChart.vue.d.ts +0 -26
- package/bin/types/JsViewVueWidget/JsvPreload/BrowserPreload.vue.d.ts +0 -14
- package/bin/types/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +0 -67
- package/bin/types/JsViewVueWidget/JsvPreload/index.d.ts +0 -21
- package/bin/types/JsViewVueWidget/JsvProgressBar.vue.d.ts +0 -31
- package/bin/types/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue.d.ts +0 -15
- package/bin/types/JsViewVueWidget/JsvQrcode/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvRadarChart.vue.d.ts +0 -37
- package/bin/types/JsViewVueWidget/JsvRipple/Constant.d.ts +0 -8
- package/bin/types/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +0 -129
- package/bin/types/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +0 -28
- package/bin/types/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +0 -8
- package/bin/types/JsViewVueWidget/JsvSpray/BrowserSpray.vue.d.ts +0 -29
- package/bin/types/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +0 -78
- package/bin/types/JsViewVueWidget/JsvSpray/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +0 -70
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvSwiper/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvSwiper3D/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue.d.ts +0 -155
- package/bin/types/JsViewVueWidget/JsvTextureAnim/index.d.ts +0 -18
- package/tools/config/tsconfig.json +0 -16
- package/utils/JsViewVueTools/JsvDemoTester.js +0 -81
- package/utils/JsViewVueTools/TypeCheckAndSet.js +0 -27
- package/utils/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue +0 -75
- 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/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActionRefObject.d.ts +0 -0
- /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActorState.d.ts +0 -0
- /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/CommonType.d.ts +0 -0
|
@@ -15,11 +15,6 @@
|
|
|
15
15
|
-->
|
|
16
16
|
<script>
|
|
17
17
|
import { Forge, ForgeExtension } from "@shijiu/jsview/dom/jsv-forge-define";
|
|
18
|
-
import ForgeHandles from "../JsViewVueTools/ForgeHandles";
|
|
19
|
-
|
|
20
|
-
const renderDocument = window.JsvCode.Dom.RenderDocument
|
|
21
|
-
? window.JsvCode.Dom.RenderDocument
|
|
22
|
-
: window.JsvCode.Dom.BrowserDocument;
|
|
23
18
|
|
|
24
19
|
export default {
|
|
25
20
|
props: {
|
|
@@ -59,7 +54,6 @@ export default {
|
|
|
59
54
|
innerView: null,
|
|
60
55
|
innerViewId: -1,
|
|
61
56
|
styleDetail: null,
|
|
62
|
-
html: !window.JsView,
|
|
63
57
|
cache: {
|
|
64
58
|
viewSrc: null,
|
|
65
59
|
maskSrc: null,
|
|
@@ -114,37 +108,6 @@ export default {
|
|
|
114
108
|
this.cache.maskWidth = this.maskWidth;
|
|
115
109
|
this.cache.maskHeight = this.maskHeight;
|
|
116
110
|
},
|
|
117
|
-
_initForHtml() {
|
|
118
|
-
let _this = this;
|
|
119
|
-
this.$refs.innerViewDiv
|
|
120
|
-
?.jsvGetProxyView(true)
|
|
121
|
-
.RegisterOnProxyReady(() => {
|
|
122
|
-
const canvas = renderDocument.createElement("canvas");
|
|
123
|
-
canvas.style.width = _this.style.width + "px";
|
|
124
|
-
canvas.style.height = _this.style.height + "px";
|
|
125
|
-
_this.$refs.innerViewDiv
|
|
126
|
-
?.jsvGetProxyView(true)
|
|
127
|
-
.HtmlGetElement()
|
|
128
|
-
.appendChild(canvas);
|
|
129
|
-
|
|
130
|
-
const clip_image = new Image();
|
|
131
|
-
const bg_image = new Image();
|
|
132
|
-
clip_image.src = _this.maskSrc;
|
|
133
|
-
bg_image.src = _this.viewSrc;
|
|
134
|
-
let clip_ready = false;
|
|
135
|
-
let bg_ready = false;
|
|
136
|
-
|
|
137
|
-
clip_image.onload = () => {
|
|
138
|
-
clip_ready = true;
|
|
139
|
-
_this._drawClip(canvas, clip_image, clip_ready, bg_image, bg_ready);
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
bg_image.onload = () => {
|
|
143
|
-
bg_ready = true;
|
|
144
|
-
_this._drawClip(canvas, clip_image, clip_ready, bg_image, bg_ready);
|
|
145
|
-
};
|
|
146
|
-
});
|
|
147
|
-
},
|
|
148
111
|
_updateInnerView() {
|
|
149
112
|
if (this.innerView === null) {
|
|
150
113
|
// 初始化View
|
|
@@ -186,19 +149,11 @@ export default {
|
|
|
186
149
|
},
|
|
187
150
|
},
|
|
188
151
|
created() {
|
|
189
|
-
|
|
190
|
-
this._updateInnerView();
|
|
191
|
-
}
|
|
192
|
-
},
|
|
193
|
-
mounted() {
|
|
194
|
-
if (!window.JsView) {
|
|
195
|
-
this._initForHtml();
|
|
196
|
-
}
|
|
152
|
+
this._updateInnerView();
|
|
197
153
|
},
|
|
154
|
+
mounted() {},
|
|
198
155
|
updated() {
|
|
199
|
-
|
|
200
|
-
this._updateInnerView();
|
|
201
|
-
}
|
|
156
|
+
this._updateInnerView();
|
|
202
157
|
},
|
|
203
158
|
beforeUnmount() {
|
|
204
159
|
// 清理View管理缓存
|
|
@@ -213,15 +168,6 @@ export default {
|
|
|
213
168
|
|
|
214
169
|
<template>
|
|
215
170
|
<div
|
|
216
|
-
v-if="html"
|
|
217
|
-
ref="innerViewDiv"
|
|
218
|
-
:style="{
|
|
219
|
-
top: style.top,
|
|
220
|
-
left: style.left,
|
|
221
|
-
}"
|
|
222
|
-
></div>
|
|
223
|
-
<div
|
|
224
|
-
v-else
|
|
225
171
|
:data-jsv-vw-innerview="innerViewId"
|
|
226
172
|
:style="{
|
|
227
173
|
top: style.top,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @param {Object} style 布局样式(必须),必须包含的信息为{left, top, width, height}
|
|
8
8
|
* @param {function} getId 回调函数,用于接收ID信息,ID信息用于Native端对该view进行跟踪的标识
|
|
9
9
|
* @param {String} setId 给定命名ID,避免同进程不同context重名要和Context相关,
|
|
10
|
-
* 例如`${window.
|
|
10
|
+
* 例如`${window.JsvCoreApi?.getJsContextId()}_${you_name}`
|
|
11
11
|
* @param {number} corner 圆角的尺寸,默认为0
|
|
12
12
|
* @param {number} oversize 为了去除黑边的调整选项,让native video的尺寸信息比扣洞大多少, 默认为0
|
|
13
13
|
* @param {boolean} frontLayer 视图是在JsView界面前方,不是需要扣洞的后方,默认为false
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
|
|
17
17
|
<script setup>
|
|
18
18
|
import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
|
|
19
|
-
import ForgeHandles from "../JsViewVueTools/ForgeHandles";
|
|
20
19
|
import { JsvTextureStoreApi } from "../JsViewVueTools/JsvTextureStore/JsvTextureStore";
|
|
21
20
|
import { onUnmounted, shallowRef } from "vue";
|
|
22
21
|
import JsvNinePatch from "./JsvNinePatch.vue";
|
|
@@ -49,77 +48,69 @@ let vInnerViewId = -1;
|
|
|
49
48
|
let vNinePatchSet = null;
|
|
50
49
|
let vBackgroudnColorValue = null;
|
|
51
50
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
if (
|
|
55
|
-
//
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
)
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
} else {
|
|
95
|
-
// 用背景色
|
|
96
|
-
vBackgroudnColorValue = "rgba(0,0,0,0)";
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// 通过内置函数构造定制的NativeSharedView
|
|
101
|
-
vJsvMainView = new Forge.NativeSharedView();
|
|
102
|
-
vInnerViewId = Forge.sViewStore.add(new Forge.ViewInfo(vJsvMainView));
|
|
103
|
-
if (rProps.oversize != 0) {
|
|
104
|
-
vJsvMainView.SetOverSize(rProps.oversize);
|
|
51
|
+
// 创建JsView图层穿透的texture,抠洞处理
|
|
52
|
+
|
|
53
|
+
if (!rProps.frontLayer) {
|
|
54
|
+
// 有圆角
|
|
55
|
+
if (rProps.corner > 0) {
|
|
56
|
+
let presetGap = 1; // 外延距离,以保证圆角光滑
|
|
57
|
+
vNinePatchSet = {
|
|
58
|
+
imageSize: (rProps.corner + presetGap) * 2, // 半径 + 中心点1像素
|
|
59
|
+
textureName: null,
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
// 用 JsvTextureStoreApi 绘制半径对等的圆形
|
|
63
|
+
let sampleImageWidth = vNinePatchSet.imageSize;
|
|
64
|
+
let innerRadius2 = sampleImageWidth; // 内直径
|
|
65
|
+
let circleLineWidth = 1.5 * rProps.corner + presetGap - rProps.corner; // 线粗要把四角盖上
|
|
66
|
+
let canvasRef;
|
|
67
|
+
|
|
68
|
+
// 创建画布
|
|
69
|
+
canvasRef = JsvTextureStoreApi.canvasTexture(
|
|
70
|
+
sampleImageWidth,
|
|
71
|
+
sampleImageWidth
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
let circleRadius =
|
|
75
|
+
Math.floor(innerRadius2 / 2) +
|
|
76
|
+
Math.floor(circleLineWidth / 2) -
|
|
77
|
+
presetGap; // 圆环绘制路径是粗线的中心线,所以要减去一半的线宽
|
|
78
|
+
let customPath = canvasRef.circlePath(
|
|
79
|
+
Math.floor(sampleImageWidth / 2),
|
|
80
|
+
Math.floor(sampleImageWidth / 2),
|
|
81
|
+
circleRadius
|
|
82
|
+
); // 创建圆环绘制路径,圆形在画布的中心点位置
|
|
83
|
+
canvasRef.drawColor("rgba(0,0,0,0)"); // 画布绘制透明底色
|
|
84
|
+
customPath.stroke(circleLineWidth, "#FF0000FF"); // 绘制alpha=1的边缘留色
|
|
85
|
+
|
|
86
|
+
// 获取填入url的内容
|
|
87
|
+
// 进行.9拉伸以适配目标尺寸
|
|
88
|
+
// 通过 alphaOverride 进行alpah叠加
|
|
89
|
+
vNinePatchSet.textureName = canvasRef.commit();
|
|
90
|
+
} else {
|
|
91
|
+
// 用背景色
|
|
92
|
+
vBackgroudnColorValue = "rgba(0,0,0,0)";
|
|
105
93
|
}
|
|
94
|
+
}
|
|
106
95
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
96
|
+
// 通过内置函数构造定制的NativeSharedView
|
|
97
|
+
vJsvMainView = new Forge.NativeSharedView();
|
|
98
|
+
vInnerViewId = Forge.sViewStore.add(new Forge.ViewInfo(vJsvMainView));
|
|
99
|
+
if (rProps.oversize != 0) {
|
|
100
|
+
vJsvMainView.SetOverSize(rProps.oversize);
|
|
101
|
+
}
|
|
113
102
|
|
|
114
|
-
|
|
103
|
+
// 更新宽高
|
|
104
|
+
if (typeof vJsvMainView != "undefined" && vJsvMainView) {
|
|
105
|
+
if (rProps.setId) {
|
|
106
|
+
// 使用设置进来的track id,而非自动生成
|
|
107
|
+
vJsvMainView.SetTrackId(rProps.setId);
|
|
115
108
|
}
|
|
109
|
+
|
|
110
|
+
rProps.getId?.(vJsvMainView.GetTrackId());
|
|
116
111
|
}
|
|
117
112
|
|
|
118
113
|
onUnmounted(() => {
|
|
119
|
-
if (!window.JsView) {
|
|
120
|
-
return;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
114
|
// 清理View管理缓存
|
|
124
115
|
if (vInnerViewId !== -1) {
|
|
125
116
|
Forge.sViewStore.remove(vInnerViewId);
|
|
@@ -135,7 +126,6 @@ onUnmounted(() => {
|
|
|
135
126
|
|
|
136
127
|
<template>
|
|
137
128
|
<div
|
|
138
|
-
v-if="!isBrowserDebug"
|
|
139
129
|
:style="{
|
|
140
130
|
left: style.left,
|
|
141
131
|
top: style.top,
|
|
@@ -173,8 +163,4 @@ onUnmounted(() => {
|
|
|
173
163
|
<slot />
|
|
174
164
|
</div>
|
|
175
165
|
</div>
|
|
176
|
-
|
|
177
|
-
<div v-else :style="{ ...style }">
|
|
178
|
-
<slot />
|
|
179
|
-
</div>
|
|
180
166
|
</template>
|
|
@@ -2,38 +2,44 @@
|
|
|
2
2
|
* @file
|
|
3
3
|
*
|
|
4
4
|
* 【模块 export 内容】
|
|
5
|
-
* JsvPosterDiv:Vue
|
|
5
|
+
* JsvPosterDiv:Vue高阶组件,海报描画, 其字内容为占位图
|
|
6
6
|
* props说明:
|
|
7
7
|
* style {Object} 包含
|
|
8
8
|
* left/top/width/height
|
|
9
9
|
* border-radius
|
|
10
10
|
* backgroundImage/backgroundColor
|
|
11
11
|
* 的style设置
|
|
12
|
+
* enableAA: {boolean} 启用非全局的抗锯齿处理,不过这个处理会使绘制的矩形比原尺寸每边少2~3像素点
|
|
12
13
|
-->
|
|
13
14
|
<script setup>
|
|
14
|
-
|
|
15
|
-
import { reactive, watchEffect } from "vue";
|
|
15
|
+
import { reactive, watchEffect, shallowRef } from "vue";
|
|
16
16
|
|
|
17
17
|
const props = defineProps({
|
|
18
18
|
style: Object,
|
|
19
|
+
enableAA: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: false,
|
|
22
|
+
},
|
|
19
23
|
});
|
|
20
24
|
|
|
21
25
|
let common_style = reactive({});
|
|
22
26
|
let image_style = reactive({});
|
|
27
|
+
let rEnableAA = shallowRef("0");
|
|
23
28
|
|
|
24
|
-
watchEffect(()=>{
|
|
29
|
+
watchEffect(() => {
|
|
25
30
|
if (props.style) {
|
|
26
|
-
let {left, top, width, height, ...others} = props.style;
|
|
31
|
+
let { left, top, width, height, transformStyle, ...others } = props.style;
|
|
27
32
|
|
|
28
33
|
common_style.left = left;
|
|
29
34
|
common_style.top = top;
|
|
35
|
+
common_style.transformStyle = transformStyle;
|
|
30
36
|
|
|
31
37
|
image_style.width = width;
|
|
32
38
|
image_style.height = height;
|
|
33
|
-
Object.assign(image_style, others)
|
|
39
|
+
Object.assign(image_style, others);
|
|
34
40
|
}
|
|
35
|
-
|
|
36
|
-
|
|
41
|
+
rEnableAA.value = props.enableAA ? "1" : "0";
|
|
42
|
+
});
|
|
37
43
|
</script>
|
|
38
44
|
|
|
39
45
|
<template>
|
|
@@ -43,6 +49,7 @@ watchEffect(()=>{
|
|
|
43
49
|
data-jsv-vw-enable-fade="true"
|
|
44
50
|
data-jsv-vw-mask-poster-on-top="true"
|
|
45
51
|
:style="image_style"
|
|
52
|
+
:data-jsv-img-enable-aa="rEnableAA"
|
|
46
53
|
v-bind="$attrs"
|
|
47
54
|
/>
|
|
48
55
|
</div>
|
|
@@ -10,10 +10,11 @@
|
|
|
10
10
|
* src {string} 图片的加载地址
|
|
11
11
|
* fadeIn: {boolean} 图片加载完成是否有淡入效果,默认为打开
|
|
12
12
|
* isPosterImage: 标识是否用于海报位,对于海报位的内容,可以有下载线程控制等策略来优化整体体验
|
|
13
|
+
* enableAA: {boolean} 启用非全局的抗锯齿处理,不过这个处理会使绘制的矩形比原尺寸每边少2~3像素点
|
|
13
14
|
-->
|
|
14
15
|
|
|
15
16
|
<script setup>
|
|
16
|
-
import { reactive, watchEffect, computed } from "vue";
|
|
17
|
+
import { reactive, watchEffect, computed, shallowRef } from "vue";
|
|
17
18
|
import { JsvPerformance } from "../JsViewVueTools/JsvPerformance.ts";
|
|
18
19
|
|
|
19
20
|
const props = defineProps({
|
|
@@ -37,6 +38,10 @@ const props = defineProps({
|
|
|
37
38
|
type: String,
|
|
38
39
|
default: null,
|
|
39
40
|
},
|
|
41
|
+
enableAA: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: false,
|
|
44
|
+
},
|
|
40
45
|
style: Object,
|
|
41
46
|
});
|
|
42
47
|
|
|
@@ -52,7 +57,7 @@ const isPosterImage = computed(() => {
|
|
|
52
57
|
|
|
53
58
|
let common_style = reactive({});
|
|
54
59
|
let image_style = reactive({});
|
|
55
|
-
let
|
|
60
|
+
let rEnableAA = shallowRef("0");
|
|
56
61
|
|
|
57
62
|
watchEffect(() => {
|
|
58
63
|
if (props.style) {
|
|
@@ -62,6 +67,7 @@ watchEffect(() => {
|
|
|
62
67
|
top,
|
|
63
68
|
width,
|
|
64
69
|
height,
|
|
70
|
+
transformStyle,
|
|
65
71
|
backgroundImage,
|
|
66
72
|
backgroundColor,
|
|
67
73
|
...others
|
|
@@ -70,17 +76,19 @@ watchEffect(() => {
|
|
|
70
76
|
// 承接x,y偏移和动画设置, 规避默认淡出动画被影响
|
|
71
77
|
common_style.left = left;
|
|
72
78
|
common_style.top = top;
|
|
79
|
+
common_style.transformStyle = transformStyle;
|
|
73
80
|
|
|
74
81
|
image_style.width = width;
|
|
75
82
|
image_style.height = height;
|
|
76
83
|
Object.assign(image_style, others);
|
|
77
84
|
}
|
|
85
|
+
rEnableAA.value = props.enableAA ? "1" : "0";
|
|
78
86
|
});
|
|
79
87
|
</script>
|
|
80
88
|
|
|
81
89
|
<template>
|
|
82
90
|
<div :style="common_style">
|
|
83
|
-
<slot
|
|
91
|
+
<slot />
|
|
84
92
|
<img
|
|
85
93
|
v-if="!!props.src"
|
|
86
94
|
:data-jsv-vw-enable-fade="props.fadeIn"
|
|
@@ -88,6 +96,7 @@ watchEffect(() => {
|
|
|
88
96
|
:data-jsv-img-scaledown-tex="scaleddown"
|
|
89
97
|
:data-jsv-img-color-space="colorSpace"
|
|
90
98
|
:data-jsv-img-poster-image="isPosterImage"
|
|
99
|
+
:data-jsv-img-enable-aa="rEnableAA"
|
|
91
100
|
:style="image_style"
|
|
92
101
|
:src="props.src"
|
|
93
102
|
v-bind="$attrs"
|
|
@@ -71,8 +71,7 @@ export { buildPreloadInfo, buildDownloadInfo };
|
|
|
71
71
|
import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
|
|
72
72
|
import ForgeHandles from "../../JsViewVueTools/ForgeHandles";
|
|
73
73
|
import { reactive, onBeforeUnmount, watchEffect } from "vue";
|
|
74
|
-
|
|
75
|
-
const CONST_FORMAT_TOKEN = "_JsvP_";
|
|
74
|
+
import { urlCheckSet } from "../../JsViewVueTools";
|
|
76
75
|
|
|
77
76
|
const props = defineProps({
|
|
78
77
|
preloadList: Object,
|
|
@@ -98,37 +97,29 @@ let preloadToken = 1;
|
|
|
98
97
|
let downloadToken = 1;
|
|
99
98
|
|
|
100
99
|
const _releasePreloadView = () => {
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
view_info.callToken
|
|
110
|
-
);
|
|
111
|
-
Forge.sViewStore.remove(id);
|
|
112
|
-
}
|
|
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);
|
|
113
108
|
}
|
|
114
109
|
}
|
|
115
|
-
loadViewList.preloadViewList = [];
|
|
116
|
-
preloadStateList = [];
|
|
117
110
|
}
|
|
111
|
+
loadViewList.preloadViewList = [];
|
|
112
|
+
preloadStateList = [];
|
|
118
113
|
};
|
|
119
114
|
const _releaseDownloadView = () => {
|
|
120
|
-
if (
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
view_info.callToken
|
|
129
|
-
);
|
|
130
|
-
Forge.sViewStore.remove(id);
|
|
131
|
-
}
|
|
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);
|
|
132
123
|
}
|
|
133
124
|
}
|
|
134
125
|
}
|
|
@@ -176,14 +167,7 @@ const _getPreloadViewIdList = () => {
|
|
|
176
167
|
"Error:format mismatch, data should comes from function buildPreloadInfo()"
|
|
177
168
|
);
|
|
178
169
|
}
|
|
179
|
-
|
|
180
|
-
let image_url = base_url;
|
|
181
|
-
if (base_url && base_url.indexOf("http") < 0) {
|
|
182
|
-
// 包含http和https两种请求
|
|
183
|
-
if (window.JsView.Dom.UrlRef) {
|
|
184
|
-
image_url = new window.JsView.Dom.UrlRef(base_url).href;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
170
|
+
let image_url = urlCheckSet(item.url);
|
|
187
171
|
let target_size = null;
|
|
188
172
|
if (item.width !== 0 && item.height !== 0) {
|
|
189
173
|
target_size = { width: item.width, height: item.height };
|
|
@@ -267,14 +251,7 @@ const _getDownloadViewIdList = () => {
|
|
|
267
251
|
);
|
|
268
252
|
}
|
|
269
253
|
console.log(`OnDownload get${index} url=${item.url}`);
|
|
270
|
-
|
|
271
|
-
let image_url = base_url;
|
|
272
|
-
if (base_url && base_url.indexOf("http") < 0) {
|
|
273
|
-
// 包含http和https两种请求
|
|
274
|
-
if (window.JsView.Dom.UrlRef) {
|
|
275
|
-
image_url = new window.JsView.Dom.UrlRef(base_url).href;
|
|
276
|
-
}
|
|
277
|
-
}
|
|
254
|
+
let image_url = urlCheckSet(item.url);
|
|
278
255
|
const texture = ForgeHandles.TextureManager.GetDownloadTexture(
|
|
279
256
|
image_url,
|
|
280
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 };
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* imageSettings {Object} 设置中心logo图片,默认值为null,设置格式为:
|
|
15
15
|
* {
|
|
16
16
|
* src {string} logo的url地址
|
|
17
|
-
*
|
|
17
|
+
* width {int} logo的宽度
|
|
18
18
|
* height {int} logo的高度
|
|
19
19
|
* }
|
|
20
20
|
-->
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
|
|
23
23
|
import ForgeHandles from "../../JsViewVueTools/ForgeHandles";
|
|
24
24
|
import { TextureInstantType } from "../../JsViewVueTools/JsvTextureDefines.ts";
|
|
25
|
+
import { urlCheckSet } from "../../JsViewVueTools/TypeCheckAndSet.ts";
|
|
25
26
|
|
|
26
27
|
export default {
|
|
27
28
|
props: {
|
|
@@ -96,7 +97,7 @@ export default {
|
|
|
96
97
|
if (this.imageSettings && calculatedImageSettings) {
|
|
97
98
|
let url = this.imageSettings.src;
|
|
98
99
|
if (typeof url === "string") {
|
|
99
|
-
url =
|
|
100
|
+
url = urlCheckSet(this.imageSettings.src);
|
|
100
101
|
}
|
|
101
102
|
const img_texture = texture_manager.GetImage(url);
|
|
102
103
|
const img_view = new Forge.LayoutView(
|
|
@@ -40,6 +40,8 @@
|
|
|
40
40
|
* 功能: 设置播放优先级
|
|
41
41
|
*/
|
|
42
42
|
|
|
43
|
+
import { urlCheckSet } from "../JsViewVueTools";
|
|
44
|
+
|
|
43
45
|
const supportSoundPool = !!window.SoundPool;
|
|
44
46
|
class AudioController {
|
|
45
47
|
constructor(soundPool, soundId, url) {
|
|
@@ -165,13 +167,7 @@ class JsvSoundPool {
|
|
|
165
167
|
return;
|
|
166
168
|
}
|
|
167
169
|
|
|
168
|
-
let realUrl;
|
|
169
|
-
if (window.JsView) {
|
|
170
|
-
// jsview上
|
|
171
|
-
realUrl = new window.JsView.Dom.UrlRef(url).href;
|
|
172
|
-
} else {
|
|
173
|
-
realUrl = url;
|
|
174
|
-
}
|
|
170
|
+
let realUrl = urlCheckSet(url);
|
|
175
171
|
if (this._SoundIdMap[realUrl]) {
|
|
176
172
|
this._SoundIdMap[realUrl].referCount++;
|
|
177
173
|
const controller = new AudioController(this._SoundPool, this._SoundIdMap[realUrl].soundId);
|