@shijiu/jsview-vue 2.3.0 → 2.3.728-alpha.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/BrowserAudio.vue.mjs +4 -1
- package/bin/browser/BrowserJsvLatex.vue.mjs +9 -90
- package/bin/jsview-vue.mjs +13913 -8048
- package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +39 -3
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/Const.d.ts +4 -1
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +225 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +225 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.d.ts +5 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +25 -2
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +7 -1
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +28 -4
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +2 -1
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/Utils.d.ts +2 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +1 -1
- package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue.d.ts +70 -0
- package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.d.ts +24 -0
- package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.d.ts +19 -0
- package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.d.ts +42 -0
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +5 -4
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +2 -1
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +12 -4
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +9 -7
- package/bin/types/utils/JsViewEngineWidget/WidgetCommon.d.ts +27 -14
- package/bin/types/utils/JsViewEngineWidget/index.d.ts +3 -1
- package/bin/types/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +0 -1
- package/bin/types/utils/JsViewPlugin/JsvLatex/GetVersion.d.ts +14 -0
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +3 -0
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +1 -0
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +4 -1
- package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +29 -2
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +107 -4
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +62 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +94 -18
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-wasm.vue.d.ts +611 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer.vue.d.ts → JsvPlayerBrowser.vue.d.ts} +24 -23
- package/bin/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +77 -20
- package/bin/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +77 -20
- package/bin/types/utils/JsViewVueTools/BlobApi.d.ts +38 -0
- package/bin/types/utils/JsViewVueTools/FeatureActive.d.ts +1 -0
- package/bin/types/utils/JsViewVueTools/ForgeHandles.d.ts +1 -0
- package/bin/types/utils/JsViewVueTools/JsvInteractionMode.d.ts +6 -0
- package/bin/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +44 -1
- package/bin/types/utils/JsViewVueTools/JsvTextTools.d.ts +1 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.d.ts +43 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +1 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.d.ts +54 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +13 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +5 -3
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +88 -25
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/Store.d.ts +2 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/Texture.d.ts +4 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.d.ts +49 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/index.d.ts +2 -0
- package/bin/types/utils/JsViewVueTools/index.d.ts +3 -1
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +12 -22
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +12 -22
- package/bin/types/utils/JsViewVueWidget/JsvDashPath.vue.d.ts +11 -0
- package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.d.ts +101 -0
- package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.d.ts +61 -0
- package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.d.ts +58 -0
- package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/index.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +3 -1
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +151 -18
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.d.ts +2 -1
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.d.ts +16 -0
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.d.ts +2 -1
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +3 -1
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +55 -12
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +178 -35
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +119 -17
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +9 -3
- package/bin/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +4 -1
- package/bin/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +22 -1
- package/bin/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +1 -1
- package/bin/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +5 -2
- package/bin/types/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +1 -1
- package/bin/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +39 -1
- package/bin/types/utils/JsViewVueWidget/JsvSector.vue.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue.d.ts +72 -0
- package/bin/types/utils/JsViewVueWidget/JsvSoundPool.d.ts +26 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue.d.ts +112 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue.d.ts +142 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +3 -1
- package/bin/types/utils/JsViewVueWidget/JsvTextBox.vue.d.ts +15 -3
- package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +22 -96
- package/bin/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +6 -0
- package/bin/types/utils/JsViewVueWidget/{JsvPosterDiv.vue.d.ts → TypesDiv/JsvPosterDiv.vue.d.ts} +9 -0
- package/bin/types/utils/JsViewVueWidget/{JsvPosterImage.vue.d.ts → TypesDiv/JsvPosterImage.vue.d.ts} +15 -3
- package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue.d.ts +72 -0
- package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue.d.ts +90 -0
- package/bin/types/utils/JsViewVueWidget/index.d.ts +8 -4
- package/dist/types/utils/JsViewEngineWidget/CheckType.d.ts +7 -0
- package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +106 -0
- package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +128 -0
- package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +25 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/Const.d.ts +23 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/DebugFrame.vue.d.ts +12 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/DebugTools.d.ts +9 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/Dispatcher.d.ts +16 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +412 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +751 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.d.ts +9 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +82 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +31 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +80 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/Slide.d.ts +25 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/SlotComponent.vue.d.ts +52 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +69 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/TokenGenerator.d.ts +4 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/Utils.d.ts +6 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/VisibleInfo.d.ts +20 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +21 -0
- package/dist/types/utils/JsViewEngineWidget/RangeModel.d.ts +166 -0
- package/dist/types/utils/JsViewEngineWidget/RectUtils.d.ts +61 -0
- package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue.d.ts +74 -0
- package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.d.ts +28 -0
- package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.d.ts +23 -0
- package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.d.ts +46 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +42 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/Fence.d.ts +62 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +21 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +103 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +28 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/index.d.ts +8 -0
- package/dist/types/utils/JsViewEngineWidget/WidgetCommon.d.ts +160 -0
- package/dist/types/utils/JsViewEngineWidget/index.d.ts +21 -0
- package/dist/types/utils/JsViewPlugin/JsvAccount/JsvAccount.d.ts +46 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/AudioProxy.d.ts +6 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +22 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +212 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/CheckType.d.ts +6 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/Events.d.ts +17 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudio.vue.d.ts +22 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudioBridgeProxy.d.ts +12 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudioProxy.vue.d.ts +6 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/PluginLoader.d.ts +5 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/ScreenLockManager.d.ts +9 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/index.d.ts +7 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/version.d.mts +14 -0
- package/{bin/types/utils/JsViewPlugin/JsvLatex → dist/types/utils/JsViewPlugin/JsvAudio}/version.d.ts +5 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +0 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue.d.ts +17 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/Color.d.ts +5 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/GetVersion.d.ts +18 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +46 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +8 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +9 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/PluginLoader.d.ts +5 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/index.d.ts +8 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/version.d.mts +40 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/AckEventDefine.d.ts +10 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/GetVersion.d.ts +13 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +523 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +119 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +664 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-0.9.vue.d.ts +45 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-wasm.vue.d.ts +611 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser.vue.d.ts +597 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +415 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +415 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/version.d.mts +14 -0
- package/dist/types/utils/JsViewPlugin/index.d.ts +7 -0
- package/dist/types/utils/JsViewVueTools/BlobApi.d.ts +42 -0
- package/dist/types/utils/JsViewVueTools/ConstSymbol.d.ts +6 -0
- package/dist/types/utils/JsViewVueTools/DebugContentShellJBridge.d.ts +10 -0
- package/dist/types/utils/JsViewVueTools/DebugTool.d.ts +12 -0
- package/dist/types/utils/JsViewVueTools/DefaultKeyMap.d.ts +14 -0
- package/dist/types/utils/JsViewVueTools/FeatureActive.d.ts +15 -0
- package/dist/types/utils/JsViewVueTools/ForgeConstDefine.d.ts +15 -0
- package/dist/types/utils/JsViewVueTools/ForgeHandles.d.ts +11 -0
- package/dist/types/utils/JsViewVueTools/JsvDynamicCssStyle.d.ts +33 -0
- package/dist/types/utils/JsViewVueTools/JsvDynamicKeyFrames.d.ts +40 -0
- package/dist/types/utils/JsViewVueTools/JsvFederationTools.d.ts +20 -0
- package/dist/types/utils/JsViewVueTools/JsvHashHistory.d.ts +20 -0
- package/dist/types/utils/JsViewVueTools/JsvImpactTracer.d.ts +44 -0
- package/dist/types/utils/JsViewVueTools/JsvInteractionMode.d.ts +10 -0
- package/dist/types/utils/JsViewVueTools/JsvPerformance.d.ts +9 -0
- package/dist/types/utils/JsViewVueTools/JsvPreDownloader.d.ts +55 -0
- package/dist/types/utils/JsViewVueTools/JsvRefTaker.d.ts +52 -0
- package/dist/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +378 -0
- package/dist/types/utils/JsViewVueTools/JsvStyleClass.d.ts +35 -0
- package/dist/types/utils/JsViewVueTools/JsvStyleSheetsDeclarer.d.ts +35 -0
- package/dist/types/utils/JsViewVueTools/JsvTextTools.d.ts +66 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureDefines.d.ts +10 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureLoadTool.d.ts +67 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.d.ts +47 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +99 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +20 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.d.ts +58 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +113 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +17 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +170 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/Store.d.ts +16 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/Texture.d.ts +31 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.d.ts +53 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/index.d.ts +6 -0
- package/dist/types/utils/JsViewVueTools/NinePatchHelper.d.ts +25 -0
- package/dist/types/utils/JsViewVueTools/TextureManagerTools.d.ts +11 -0
- package/dist/types/utils/JsViewVueTools/TypeCheckAndSet.d.ts +7 -0
- package/dist/types/utils/JsViewVueTools/index.d.ts +29 -0
- package/dist/types/utils/JsViewVueWidget/Jsv3dDiv.vue.d.ts +124 -0
- package/dist/types/utils/JsViewVueWidget/Jsv3dStage.vue.d.ts +148 -0
- package/dist/types/utils/JsViewVueWidget/JsvActorMove/ActorControlBase.d.ts +35 -0
- package/dist/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +102 -0
- package/dist/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMoveControl.d.ts +37 -0
- package/dist/types/utils/JsViewVueWidget/JsvActorMove/index.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue.d.ts +15 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue.d.ts +77 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +54 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +13 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +44 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +17 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +13 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +3 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/GifData.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +7 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +12 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/Viewer.d.ts +20 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/WebpData.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvCommonLoopToolBase.d.ts +26 -0
- package/dist/types/utils/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue.d.ts +74 -0
- package/dist/types/utils/JsViewVueWidget/JsvClipDiv/index.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +34 -0
- package/dist/types/utils/JsViewVueWidget/JsvConnectLine/index.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvDashPath.vue.d.ts +33 -0
- package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.d.ts +105 -0
- package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.d.ts +65 -0
- package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.d.ts +62 -0
- package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/index.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue.d.ts +109 -0
- package/dist/types/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue.d.ts +108 -0
- package/dist/types/utils/JsViewVueWidget/JsvDriftScope/index.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvEnableRenderBreak.vue.d.ts +61 -0
- package/dist/types/utils/JsViewVueWidget/JsvFilterView.vue.d.ts +91 -0
- package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +106 -0
- package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue.d.ts +100 -0
- package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +108 -0
- package/dist/types/utils/JsViewVueWidget/JsvFlexCell/index.d.ts +7 -0
- package/dist/types/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +63 -0
- package/dist/types/utils/JsViewVueWidget/JsvFragShaderView/index.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActionRefObject.d.ts +4 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +228 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorState.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.d.ts +20 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +106 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvFreeMoveActor.vue.d.ts +107 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/KeepFlags.d.ts +11 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +12 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +118 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +244 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +169 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SyncLinkManager.d.ts +22 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +24 -0
- package/dist/types/utils/JsViewVueWidget/JsvGrid.vue.d.ts +241 -0
- package/dist/types/utils/JsViewVueWidget/JsvHole.d.ts +19 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +52 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/EditVisibleArea.d.ts +30 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +98 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/SharedDefine.d.ts +17 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/SystemTextTools.d.ts +20 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/index.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +32 -0
- package/dist/types/utils/JsViewVueWidget/JsvLine/LineManager.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvLine/index.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvMarquee.vue.d.ts +33 -0
- package/dist/types/utils/JsViewVueWidget/JsvMaskClipDiv.vue.d.ts +101 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/CommonType.d.ts +1 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/Constant.d.ts +13 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/DataTree.d.ts +75 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/Geometry.d.ts +72 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue.d.ts +235 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/index.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/rtree.d.ts +44 -0
- package/dist/types/utils/JsViewVueWidget/JsvNativeSharedDiv.vue.d.ts +93 -0
- package/dist/types/utils/JsViewVueWidget/JsvNinePatch.vue.d.ts +55 -0
- package/dist/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +30 -0
- package/dist/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +68 -0
- package/dist/types/utils/JsViewVueWidget/JsvPreload/index.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvProgressBar.vue.d.ts +31 -0
- package/dist/types/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +85 -0
- package/dist/types/utils/JsViewVueWidget/JsvRadarChart.vue.d.ts +37 -0
- package/dist/types/utils/JsViewVueWidget/JsvRipple/Constant.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +129 -0
- package/dist/types/utils/JsViewVueWidget/JsvRipple/index.d.ts +7 -0
- package/dist/types/utils/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +28 -0
- package/dist/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +278 -0
- package/dist/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue.d.ts +157 -0
- package/dist/types/utils/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvScrollBox/ScrollSymbol.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvScrollBox/index.d.ts +7 -0
- package/dist/types/utils/JsViewVueWidget/JsvSector.vue.d.ts +30 -0
- package/dist/types/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue.d.ts +76 -0
- package/dist/types/utils/JsViewVueWidget/JsvSoundPool.d.ts +114 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +58 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/FrameBuidler.d.ts +18 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +70 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +85 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteTools.d.ts +15 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/SpriteController.d.ts +21 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/index.d.ts +9 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue.d.ts +141 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue.d.ts +248 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue.d.ts +181 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue.d.ts +121 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/index.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvTextBox.vue.d.ts +121 -0
- package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/CommonType.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +38 -0
- package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/index.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +109 -0
- package/dist/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +23 -0
- package/dist/types/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +109 -0
- package/dist/types/utils/JsViewVueWidget/JsvVisibleSensor/index.d.ts +88 -0
- package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvPosterDiv.vue.d.ts +94 -0
- package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvPosterImage.vue.d.ts +115 -0
- package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue.d.ts +94 -0
- package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue.d.ts +115 -0
- package/dist/types/utils/JsViewVueWidget/index.d.ts +53 -0
- package/dist/types/utils/index.d.ts +8 -0
- package/dist/utils/browser/BrowserAudio.vue.mjs +258 -0
- package/dist/utils/browser/BrowserJsvLatex.vue.mjs +64 -0
- package/dist/utils/export-sfc.mjs +12 -0
- package/dist/utils/index.mjs +29000 -0
- package/dist/utils/jsview-vue-common.mjs +39 -0
- package/package.json +1 -1
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue +32 -16
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.ts +51 -3
- package/utils/JsViewEngineWidget/MetroWidget/Const.ts +5 -0
- package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +193 -89
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +347 -145
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.ts +15 -0
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +1603 -588
- package/utils/JsViewEngineWidget/MetroWidget/PageUpdater.ts +41 -23
- package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +146 -38
- package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +39 -26
- package/utils/JsViewEngineWidget/MetroWidget/Utils.ts +6 -0
- package/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.ts +2 -1
- package/utils/JsViewEngineWidget/RectUtils.js +1 -1
- package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue +62 -0
- package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.ts +260 -0
- package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.ts +32 -0
- package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.ts +236 -0
- package/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.ts +434 -264
- package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +101 -27
- package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +54 -5
- package/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.ts +109 -41
- package/utils/JsViewEngineWidget/WidgetCommon.ts +29 -7
- package/utils/JsViewEngineWidget/index.ts +7 -2
- package/utils/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue +4 -0
- package/utils/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue +13 -13
- package/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.js +46 -46
- package/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue +54 -41
- package/utils/JsViewPlugin/JsvLatex/Color.ts +104 -39
- package/utils/JsViewPlugin/JsvLatex/GetVersion.js +65 -0
- package/utils/JsViewPlugin/JsvLatex/JsvLatex.vue +71 -17
- package/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.js +10 -0
- package/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue +14 -2
- package/utils/JsViewPlugin/JsvLatex/PluginLoader.js +63 -31
- package/utils/JsViewPlugin/JsvLatex/version.mjs +26 -13
- package/utils/JsViewPlugin/JsvPlayer/GetVersion.js +2 -1
- package/utils/JsViewPlugin/JsvPlayer/JsvMedia.js +402 -23
- package/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.js +100 -0
- package/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue +363 -468
- package/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer.vue → JsvPlayerBrowser-wasm.vue} +61 -11
- package/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser.vue +511 -0
- package/utils/JsViewPlugin/JsvPlayer/index-0.9.js +52 -10
- package/utils/JsViewPlugin/JsvPlayer/index.js +58 -9
- package/utils/JsViewPlugin/JsvPlayer/package.json +8 -0
- package/utils/JsViewVueTools/BlobApi.ts +55 -0
- package/utils/JsViewVueTools/FeatureActive.ts +5 -1
- package/utils/JsViewVueTools/ForgeHandles.ts +8 -2
- package/utils/JsViewVueTools/JsvInteractionMode.js +16 -0
- package/utils/JsViewVueTools/JsvPreDownloader.ts +2 -2
- package/utils/JsViewVueTools/JsvRuntimeBridge.js +125 -8
- package/utils/JsViewVueTools/JsvTextTools.ts +12 -2
- package/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.ts +180 -0
- package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.ts +1 -0
- package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.ts +304 -0
- package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.ts +38 -0
- package/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.ts +30 -12
- package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +157 -51
- package/utils/JsViewVueTools/JsvTextureStore/Store.ts +33 -21
- package/utils/JsViewVueTools/JsvTextureStore/Texture.ts +56 -41
- package/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.ts +92 -0
- package/utils/JsViewVueTools/JsvTextureStore/index.js +2 -0
- package/utils/JsViewVueTools/index.js +3 -1
- package/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue +111 -86
- package/utils/JsViewVueWidget/JsvDashPath.vue +150 -0
- package/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.ts +212 -0
- package/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.ts +146 -0
- package/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.ts +748 -0
- package/utils/JsViewVueWidget/JsvDomRenderer/index.ts +1 -0
- package/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue +10 -1
- package/utils/JsViewVueWidget/JsvEnableRenderBreak.vue +6 -0
- package/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue +11 -5
- package/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue +3 -1
- package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +3 -1
- package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +24 -8
- package/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.ts +269 -26
- package/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.ts +2 -1
- package/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.ts +24 -0
- package/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.ts +3 -0
- package/utils/JsViewVueWidget/JsvFreeMoveActor/{FreeMoveActor.vue → JsvFreeMoveActor.vue} +5 -1
- package/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.ts +10 -2
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.ts +223 -100
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.ts +245 -64
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.ts +95 -29
- package/utils/JsViewVueWidget/JsvFreeMoveActor/index.js +27 -5
- package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +11 -2
- package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +30 -2
- package/utils/JsViewVueWidget/JsvLine/JsvLine.vue +24 -7
- package/utils/JsViewVueWidget/JsvMarquee.vue +1 -1
- package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +12 -10
- package/utils/JsViewVueWidget/JsvNinePatch.vue +22 -12
- package/utils/JsViewVueWidget/JsvPieChart.vue +93 -70
- package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +34 -31
- package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +2 -1
- package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue +56 -25
- package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue +11 -11
- package/utils/JsViewVueWidget/JsvSector.vue +66 -28
- package/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue +108 -0
- package/utils/JsViewVueWidget/JsvSoundPool.js +75 -12
- package/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue +543 -0
- package/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue +3 -3
- package/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue +644 -0
- package/utils/JsViewVueWidget/JsvSwiper/index.js +3 -1
- package/utils/JsViewVueWidget/JsvTextBox.vue +30 -1
- package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +315 -299
- package/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue +56 -14
- package/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue +8 -6
- package/utils/JsViewVueWidget/TypesDiv/JsvPosterDiv.vue +54 -0
- package/utils/JsViewVueWidget/TypesDiv/JsvPosterImage.vue +88 -0
- package/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue +177 -0
- package/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue +267 -0
- package/utils/JsViewVueWidget/index.js +9 -3
- package/utils/JsViewPlugin/JsvLatex/version.js +0 -24
- package/utils/JsViewVueWidget/JsvPosterDiv.vue +0 -56
- package/utils/JsViewVueWidget/JsvPosterImage.vue +0 -105
- /package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue.d.ts → JsvPlayerBrowser-0.9.vue.d.ts} +0 -0
- /package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/{FreeMoveActor.vue.d.ts → JsvFreeMoveActor.vue.d.ts} +0 -0
- /package/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue → JsvPlayerBrowser-0.9.vue} +0 -0
|
@@ -154,22 +154,32 @@ export class WholePageSlide extends SlideSetting {
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
/**
|
|
157
|
-
*
|
|
157
|
+
* 无缝滚动的设置类
|
|
158
158
|
*
|
|
159
159
|
* @public
|
|
160
160
|
* @constructor SeamlessSlide
|
|
161
161
|
* @extends SlideSetting
|
|
162
162
|
* @param {Object} settings 设置,结构为{
|
|
163
163
|
* startPercent: 左/上侧触发滚动的比例 0-1
|
|
164
|
-
*
|
|
164
|
+
* endPercent: 右/下侧触发滚动的比例 0-1, 从起点计数, 末尾为1.0
|
|
165
165
|
* headRange: 左/上按键触发滚动的区域比例 0-1
|
|
166
|
-
* tailRange: 右/下按键触发滚动的区域比例 0-1
|
|
166
|
+
* tailRange: 右/下按键触发滚动的区域比例 0-1, 从终点计数,末尾为0
|
|
167
|
+
* startPercent/endPercent 和 headRange/tailRange 二选一
|
|
167
168
|
* headSafeArea: 保证头部item完整显示的安全区域大小
|
|
168
169
|
* tailSafeArea: 保证尾部item完整显示的安全区域大小
|
|
169
|
-
* speed:
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
170
|
+
* speed: 像素/毫秒, 用于计算duration的辅助值, 因为MetroWidget每个行间可能距离不一样,
|
|
171
|
+
* 使用时根据speed, 按匀速反算duration
|
|
172
|
+
* duration: 动画时长(毫秒)。当 duration 为 number 时优先于 speed;
|
|
173
|
+
* 若为 null/不传则按 speed 计算时长
|
|
174
|
+
* easing(String): 滚动动画的easing,可不填(实现中默认为空字符串);
|
|
175
|
+
* 非匀速时推荐为 "cubic-bezier(X, X, X, X)"
|
|
176
|
+
* boundaryProtect: 确定滚动位置能否小于0或者大于最大长度,默认值为 START_PROTECT | END_PROTECT,即都开启
|
|
177
|
+
* START_PROTECT: 是否要让头部卡在边缘而不是滚动到 headRange 的位置
|
|
178
|
+
* END_PROTECT: 是否要让尾部卡在边缘而不是滚动到 tailRange 的位置
|
|
179
|
+
* 若不开启,则 slide 出来的项目可能不是完整的项目,而是以焦点元素的边缘对齐 range(head 或 tail)的百分比位置;
|
|
180
|
+
* 对齐策略为:往 head 滑动时,用起始边缘对准 headRange,往 tail 滑动时,用起始边缘对准 tailRange
|
|
181
|
+
* fixFirstPage: 默认为false, 代表第一屏不滚动, 当到第一屏边缘开始才按照正常的无缝滚动逻辑滚动,
|
|
182
|
+
若回到第一屏区域时则会把第一屏完整的滚动回来
|
|
173
183
|
* }
|
|
174
184
|
**/
|
|
175
185
|
export class SeamlessSlide extends SlideSetting {
|
|
@@ -225,11 +235,13 @@ export class SeamlessSlide extends SlideSetting {
|
|
|
225
235
|
* easing: 滚动动画的easing
|
|
226
236
|
* boundaryProtect: 确定滚动位置能否小于0或者大于最大长度
|
|
227
237
|
* fixFirstPage: 首页不滚动
|
|
238
|
+
* align: 对齐方式 start, center, end
|
|
228
239
|
* }
|
|
229
240
|
**/
|
|
230
241
|
export class FixPositionSlide extends SlideSetting {
|
|
231
242
|
public readonly FixPercent: number;
|
|
232
243
|
public readonly FixFirstPage: boolean;
|
|
244
|
+
public readonly Align: "start" | "center" | "end";
|
|
233
245
|
|
|
234
246
|
constructor({
|
|
235
247
|
fixPercent = .5,
|
|
@@ -237,11 +249,21 @@ export class FixPositionSlide extends SlideSetting {
|
|
|
237
249
|
duration = null,
|
|
238
250
|
easing = defaultEasing,
|
|
239
251
|
fixFirstPage = false,
|
|
252
|
+
align = "center",
|
|
240
253
|
boundaryProtect = SlideSetting.START_PROTECT | SlideSetting.END_PROTECT,
|
|
254
|
+
}: {
|
|
255
|
+
fixPercent?: number;
|
|
256
|
+
speed?: number;
|
|
257
|
+
duration?: number | null;
|
|
258
|
+
easing?: string;
|
|
259
|
+
fixFirstPage?: boolean;
|
|
260
|
+
align?: "start" | "center" | "end";
|
|
261
|
+
boundaryProtect?: number;
|
|
241
262
|
} = {}) {
|
|
242
263
|
super(SlideSetting.Type.FIX_POSITION, speed, duration, easing, boundaryProtect);
|
|
243
264
|
this.FixPercent = fixPercent;
|
|
244
265
|
this.FixFirstPage = fixFirstPage;
|
|
266
|
+
this.Align = align;
|
|
245
267
|
}
|
|
246
268
|
}
|
|
247
269
|
|
|
@@ -8,10 +8,15 @@
|
|
|
8
8
|
export * from "./WidgetCommon";
|
|
9
9
|
export * from "./MetroWidget/Dispatcher";
|
|
10
10
|
|
|
11
|
+
// SimpleWidget is deprecated, please use MetroWidget instead
|
|
11
12
|
export { default as SimpleWidget } from "./MetroWidget/MetroWidget.vue";
|
|
13
|
+
|
|
12
14
|
export { default as MetroWidget } from "./MetroWidget/MetroWidget.vue";
|
|
13
15
|
export { default as ListWidget } from "./MetroWidget/ListWidget.vue";
|
|
14
|
-
export { METRO_WIDGET, METRO_WIDGET_CONST } from "./MetroWidget/Const";
|
|
16
|
+
export { METRO_WIDGET, METRO_WIDGET_CONST, ONEDGE_TYPE } from "./MetroWidget/Const";
|
|
15
17
|
|
|
16
18
|
export { default as JsvFocusBlock } from "./JsvFocus/JsvFocusBlock.vue";
|
|
17
|
-
export { jsvCreateFocusManager, useFocusHub } from "./JsvFocus/JsvFocusManager";
|
|
19
|
+
export { jsvCreateFocusManager, useFocusHub } from "./JsvFocus/JsvFocusManager";
|
|
20
|
+
|
|
21
|
+
export { default as SpatialNavProvider } from "./SpatialNavigator/SpatialNavProvider.vue";
|
|
22
|
+
export { SPATIAL_NAV_PROVIDER_NAME } from "./SpatialNavigator/SpatialNavigator";
|
|
@@ -17,12 +17,16 @@ export default {
|
|
|
17
17
|
methods: {
|
|
18
18
|
onRefProxy(audio_ref) {
|
|
19
19
|
if (audio_ref != null) {
|
|
20
|
+
// 扩展浏览器端缺少的接口
|
|
20
21
|
audio_ref.closeScreenSaver = () => {
|
|
21
22
|
//浏览器端仅提供接口, 不实现功能
|
|
22
23
|
};
|
|
23
24
|
audio_ref.openScreenSaver = () => {
|
|
24
25
|
//浏览器端仅提供接口, 不实现功能
|
|
25
26
|
};
|
|
27
|
+
audio_ref.unload = () => {
|
|
28
|
+
audio_ref.src = "";
|
|
29
|
+
}
|
|
26
30
|
}
|
|
27
31
|
this.audioRef = audio_ref;
|
|
28
32
|
// 不在此直接回调 onRef,因为onRefProxy可能会因为 .src的设置导致重新触发一次调用(vue本身问题)
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :style="{ width: 1, height: 1 }" backgroundColor="rgba(0,0,0,1)"></div>
|
|
3
3
|
</template>
|
|
4
|
-
<script
|
|
4
|
+
<script>
|
|
5
5
|
export default {
|
|
6
6
|
props: {
|
|
7
7
|
/**
|
|
8
8
|
* 回调函数,播放器对象通知接口
|
|
9
9
|
* @param {Object} video对象,可以通过此video对象调用video相关属性和方法,具体属性和方法定义见JsvMedia.js文件里相关说明。
|
|
10
10
|
*/
|
|
11
|
-
onRef: { type: Function, default: () => {
|
|
11
|
+
onRef: { type: Function, default: () => {} },
|
|
12
12
|
/**
|
|
13
13
|
* 属性,Boolean类型,true表示自动播放,默认false。
|
|
14
14
|
*/
|
|
@@ -94,8 +94,8 @@ export default {
|
|
|
94
94
|
*/
|
|
95
95
|
preDownload: {
|
|
96
96
|
type: Boolean,
|
|
97
|
-
default: false
|
|
98
|
-
}
|
|
97
|
+
default: false,
|
|
98
|
+
},
|
|
99
99
|
},
|
|
100
100
|
setup() {
|
|
101
101
|
return {
|
|
@@ -103,7 +103,7 @@ export default {
|
|
|
103
103
|
};
|
|
104
104
|
},
|
|
105
105
|
mounted() {
|
|
106
|
-
this.Jsvinit()
|
|
106
|
+
this.Jsvinit();
|
|
107
107
|
},
|
|
108
108
|
|
|
109
109
|
beforeUnmount() {
|
|
@@ -112,7 +112,7 @@ export default {
|
|
|
112
112
|
this.audio.releaseResource?.();
|
|
113
113
|
this.audio.onPlatformDestroy?.();
|
|
114
114
|
this.onRef?.(null);
|
|
115
|
-
this.unregisterOnVisibilityChange()
|
|
115
|
+
this.unregisterOnVisibilityChange();
|
|
116
116
|
}
|
|
117
117
|
},
|
|
118
118
|
|
|
@@ -123,7 +123,7 @@ export default {
|
|
|
123
123
|
this.audio.addEventListener("error", this.onError);
|
|
124
124
|
this.audio.addEventListener("loadstart", this.onLoadStart);
|
|
125
125
|
this.audio.addEventListener("loadedmetadata", this.onLoadedMetaData);
|
|
126
|
-
this.audio.addEventListener("
|
|
126
|
+
this.audio.addEventListener("loadeddata", this.onLoad); // html标准的loadeddata事件相当于jsview的onLoad
|
|
127
127
|
this.audio.addEventListener("audiofocusloss", this.onAudioFocusLoss);
|
|
128
128
|
this.audio.addEventListener("audiofocusgain", this.onAudioFocusGain);
|
|
129
129
|
}
|
|
@@ -157,19 +157,19 @@ export default {
|
|
|
157
157
|
onJsViewShow() {
|
|
158
158
|
//重新加载
|
|
159
159
|
if (!this.audio) {
|
|
160
|
-
this.Jsvinit()
|
|
160
|
+
this.Jsvinit();
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
if (this.stopByOnHide) {
|
|
164
164
|
this.stopByOnHide = false;
|
|
165
|
-
this.Jsvinit()
|
|
165
|
+
this.Jsvinit();
|
|
166
166
|
}
|
|
167
167
|
},
|
|
168
168
|
Jsvinit() {
|
|
169
169
|
this.audio = new Audio();
|
|
170
170
|
this.registerEvent();
|
|
171
171
|
if (this.src && this.src !== "") {
|
|
172
|
-
let realUrl
|
|
172
|
+
let realUrl;
|
|
173
173
|
if (window.JsView) {
|
|
174
174
|
// jsview上
|
|
175
175
|
realUrl = new window.JsView.Dom.UrlRef(this.src).href;
|
|
@@ -200,10 +200,10 @@ export default {
|
|
|
200
200
|
this.audio.confirmInitSetup?.();
|
|
201
201
|
}
|
|
202
202
|
});
|
|
203
|
-
this.registerOnVisibilityChange()
|
|
204
|
-
}
|
|
203
|
+
this.registerOnVisibilityChange();
|
|
204
|
+
},
|
|
205
205
|
},
|
|
206
206
|
};
|
|
207
207
|
</script>
|
|
208
208
|
|
|
209
|
-
<style lang="scss" scoped></style>
|
|
209
|
+
<style lang="scss" scoped></style>
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
export const getHtmlStr = (libPath, latexStr, fontSize, width, height, color) => {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
// export const getHtmlStr = (libPath, latexStr, fontSize, width, height, color) => {
|
|
2
|
+
// return (
|
|
3
|
+
// `<html>
|
|
4
|
+
// <head>
|
|
5
|
+
// <style>
|
|
6
|
+
// mjx-container[display="true"] {
|
|
7
|
+
// margin: 0 0 !important;
|
|
8
|
+
// }
|
|
9
|
+
// body {
|
|
10
|
+
// margin: 0 !important;
|
|
11
|
+
// }
|
|
12
|
+
// </style>
|
|
13
|
+
// <script type="text/javascript">
|
|
14
|
+
// MathJax = {
|
|
15
|
+
// tex: {
|
|
16
|
+
// inlineMath: [['$', '$'], ['\\\\(', '\\\\)']]
|
|
17
|
+
// },
|
|
18
|
+
// svg: {
|
|
19
|
+
// fontCache: 'global'
|
|
20
|
+
// }
|
|
21
|
+
// };
|
|
22
|
+
// function bodyOnLoad() {
|
|
23
|
+
// let divElement = document.createElement("div");
|
|
24
|
+
// divElement.style.display = "inline-block";
|
|
25
|
+
// divElement.style.fontSize = "${fontSize}px";
|
|
26
|
+
// divElement.style.color = "${color}";
|
|
27
|
+
// divElement.innerHTML = String.raw\`${latexStr}\`;
|
|
28
|
+
// //divElement.style.width = ${width} + "px";
|
|
29
|
+
// document.body.appendChild(divElement);
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
31
|
+
// MathJax.typesetPromise().then(() => {
|
|
32
|
+
// // modify the DOM here
|
|
33
|
+
// let formulaMetrics = MathJax.getMetricsFor(divElement, true);
|
|
34
|
+
// let w = Math.min(${width}, divElement.clientWidth);
|
|
35
|
+
// let scale = w / divElement.clientWidth;
|
|
36
|
+
// divElement.style.fontSize = Math.floor(scale * ${fontSize}) + "px";
|
|
37
|
+
// MathJax.typeset();
|
|
38
|
+
// }).catch((err) => console.error(err.message));
|
|
39
|
+
// }
|
|
40
|
+
// </script>
|
|
41
|
+
// <script type="text/javascript" src="${libPath}"></script>
|
|
42
|
+
// </head>
|
|
43
|
+
// <body onload="bodyOnLoad()">
|
|
44
|
+
// </body>
|
|
45
|
+
// </html>`
|
|
46
|
+
// )
|
|
47
|
+
// }
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
// import "./mathjax-tex-svg.js";
|
|
3
|
-
import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
|
|
3
|
+
// import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
|
|
4
4
|
import { ref, shallowRef, onBeforeUnmount } from "vue";
|
|
5
|
-
import { getHtmlStr } from "./BrowserDomBuilder.js";
|
|
5
|
+
// import { getHtmlStr } from "./BrowserDomBuilder.js";
|
|
6
6
|
|
|
7
7
|
const props = defineProps({
|
|
8
8
|
latexStr: {
|
|
@@ -39,52 +39,52 @@ const props = defineProps({
|
|
|
39
39
|
},
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
function precessString(original) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
let innerViewId = shallowRef(-1);
|
|
50
|
-
const clientWidth = ref(props.width);
|
|
51
|
-
const clientHeight = ref(props.height);
|
|
42
|
+
// function precessString(original) {
|
|
43
|
+
// return (
|
|
44
|
+
// "\\[\\begin{array}{l}" +
|
|
45
|
+
// original.replaceAll(/\\[\(\)\[\]]/g, "") +
|
|
46
|
+
// "\\end{array}\\]"
|
|
47
|
+
// );
|
|
48
|
+
// }
|
|
49
|
+
// let innerViewId = shallowRef(-1);
|
|
50
|
+
// const clientWidth = ref(props.width);
|
|
51
|
+
// const clientHeight = ref(props.height);
|
|
52
52
|
|
|
53
|
-
let layoutView = new Forge.IFrameView();
|
|
54
|
-
layoutView.SetIframeSize(props.width, props.height);
|
|
55
|
-
layoutView.SetInnerHtml(
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
);
|
|
65
|
-
const resizeObserver = new ResizeObserver(entries => {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
});
|
|
73
|
-
resizeObserver.observe(layoutView.GetIFrame());
|
|
53
|
+
// let layoutView = new Forge.IFrameView();
|
|
54
|
+
// layoutView.SetIframeSize(props.width, props.height);
|
|
55
|
+
// layoutView.SetInnerHtml(
|
|
56
|
+
// getHtmlStr(
|
|
57
|
+
// "https://qcast-image.oss-cn-qingdao.aliyuncs.com/JsViewTestResource/DocResource/mathjax-tex-svg.txt",
|
|
58
|
+
// precessString(props.latexStr),
|
|
59
|
+
// props.fontSize,
|
|
60
|
+
// props.width,
|
|
61
|
+
// props.height,
|
|
62
|
+
// props.color
|
|
63
|
+
// )
|
|
64
|
+
// );
|
|
65
|
+
// const resizeObserver = new ResizeObserver(entries => {
|
|
66
|
+
// if (entries.length > 0) {
|
|
67
|
+
// const e = entries[0];
|
|
68
|
+
// if (clientHeight.value == 0) {
|
|
69
|
+
// clientHeight.value = e.contentRect.height
|
|
70
|
+
// }
|
|
71
|
+
// }
|
|
72
|
+
// });
|
|
73
|
+
// resizeObserver.observe(layoutView.GetIFrame());
|
|
74
74
|
|
|
75
|
-
innerViewId.value = Forge.sViewStore.add(new Forge.ViewInfo(layoutView));
|
|
75
|
+
// innerViewId.value = Forge.sViewStore.add(new Forge.ViewInfo(layoutView));
|
|
76
76
|
|
|
77
77
|
onBeforeUnmount(() => {
|
|
78
|
-
if (innerViewId.value != -1) {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
resizeObserver.unobserve(layoutView.GetIFrame())
|
|
78
|
+
// if (innerViewId.value != -1) {
|
|
79
|
+
// Forge.sViewStore.remove(innerViewId.value);
|
|
80
|
+
// innerViewId.value = -1;
|
|
81
|
+
// console.log("success remove innerview");
|
|
82
|
+
// }
|
|
83
|
+
// resizeObserver.unobserve(layoutView.GetIFrame())
|
|
84
84
|
});
|
|
85
85
|
</script>
|
|
86
86
|
<template>
|
|
87
|
-
<div
|
|
87
|
+
<!-- <div
|
|
88
88
|
:style="{
|
|
89
89
|
left: left,
|
|
90
90
|
top: top,
|
|
@@ -93,5 +93,18 @@ onBeforeUnmount(() => {
|
|
|
93
93
|
}"
|
|
94
94
|
>
|
|
95
95
|
<div :data-jsv-vw-innerview="innerViewId"></div>
|
|
96
|
+
</div> -->
|
|
97
|
+
<div :style="{
|
|
98
|
+
left: left,
|
|
99
|
+
top: top,
|
|
100
|
+
width: width,
|
|
101
|
+
height: 100,
|
|
102
|
+
fontSize: 15,
|
|
103
|
+
color: '#ffffff',
|
|
104
|
+
textAlign: 'center',
|
|
105
|
+
backgroundColor: '#aa4444',
|
|
106
|
+
overflow: 'hidden',
|
|
107
|
+
}">
|
|
108
|
+
{{"浏览器端不支持latex公式: \n" + latexStr}}
|
|
96
109
|
</div>
|
|
97
110
|
</template>
|
|
@@ -1,43 +1,108 @@
|
|
|
1
|
+
function packArgb(alpha: number, red: number, green: number, blue: number): number {
|
|
2
|
+
return (
|
|
3
|
+
((alpha & 0xff) << 24) |
|
|
4
|
+
((red & 0xff) << 16) |
|
|
5
|
+
((green & 0xff) << 8) |
|
|
6
|
+
(blue & 0xff)
|
|
7
|
+
);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function clampChannel(value: number): number {
|
|
11
|
+
return Math.max(0, Math.min(255, Math.round(value)));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/** CSS rgba 的 alpha:0~1 按比例换算,>1 按 0~255 处理 */
|
|
15
|
+
function parseAlpha(value: string): number {
|
|
16
|
+
const alpha = parseFloat(value.trim());
|
|
17
|
+
if (Number.isNaN(alpha)) {
|
|
18
|
+
return 0xff;
|
|
19
|
+
}
|
|
20
|
+
if (alpha <= 1) {
|
|
21
|
+
return clampChannel(alpha * 255);
|
|
22
|
+
}
|
|
23
|
+
return clampChannel(alpha);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function parseRgbFunction(cssColor: string): number | null {
|
|
27
|
+
const rgbaMatch = cssColor.match(
|
|
28
|
+
/^rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)$/i
|
|
29
|
+
);
|
|
30
|
+
if (rgbaMatch) {
|
|
31
|
+
return packArgb(
|
|
32
|
+
parseAlpha(rgbaMatch[4]),
|
|
33
|
+
clampChannel(Number(rgbaMatch[1])),
|
|
34
|
+
clampChannel(Number(rgbaMatch[2])),
|
|
35
|
+
clampChannel(Number(rgbaMatch[3]))
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const rgbMatch = cssColor.match(/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);
|
|
40
|
+
if (rgbMatch) {
|
|
41
|
+
return packArgb(
|
|
42
|
+
0xff,
|
|
43
|
+
clampChannel(Number(rgbMatch[1])),
|
|
44
|
+
clampChannel(Number(rgbMatch[2])),
|
|
45
|
+
clampChannel(Number(rgbMatch[3]))
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function parseHexColor(cssColor: string): number | null {
|
|
53
|
+
if (cssColor[0] !== "#") {
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const numberStr = cssColor.slice(1);
|
|
58
|
+
if (numberStr.length === 3) {
|
|
59
|
+
try {
|
|
60
|
+
const colorNumber = parseInt(numberStr, 16);
|
|
61
|
+
const red = ((colorNumber >> 8) & 0xf) * 17;
|
|
62
|
+
const green = ((colorNumber >> 4) & 0xf) * 17;
|
|
63
|
+
const blue = (colorNumber & 0xf) * 17;
|
|
64
|
+
return packArgb(0xff, red, green, blue);
|
|
65
|
+
} catch (e) {}
|
|
66
|
+
} else if (numberStr.length === 6) {
|
|
67
|
+
try {
|
|
68
|
+
const colorNumber = parseInt(numberStr, 16);
|
|
69
|
+
const red = (colorNumber >> 16) & 0xff;
|
|
70
|
+
const green = (colorNumber >> 8) & 0xff;
|
|
71
|
+
const blue = colorNumber & 0xff;
|
|
72
|
+
return packArgb(0xff, red, green, blue);
|
|
73
|
+
} catch (e) {}
|
|
74
|
+
} else if (numberStr.length === 8) {
|
|
75
|
+
try {
|
|
76
|
+
const colorNumber = parseInt(numberStr, 16);
|
|
77
|
+
const red = (colorNumber >> 24) & 0xff;
|
|
78
|
+
const green = (colorNumber >> 16) & 0xff;
|
|
79
|
+
const blue = (colorNumber >> 8) & 0xff;
|
|
80
|
+
const alpha = colorNumber & 0xff;
|
|
81
|
+
return packArgb(alpha, red, green, blue);
|
|
82
|
+
} catch (e) {}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
|
+
|
|
1
88
|
export const cssColor2Android = (cssColor: string): number => {
|
|
2
|
-
|
|
3
|
-
if (typeof cssColor == "string" && cssColor[0] == "#") {
|
|
4
|
-
const numberStr: string = cssColor.slice(1);
|
|
5
|
-
if (numberStr.length == 3) {
|
|
6
|
-
//rgb
|
|
7
|
-
try {
|
|
8
|
-
const colorNumber = parseInt(numberStr, 16);
|
|
9
|
-
validColor = true;
|
|
10
|
-
let red = ((colorNumber >> 8) & 0xF) * 17;
|
|
11
|
-
let green = ((colorNumber >> 4) & 0xF) * 17;
|
|
12
|
-
let blue = (colorNumber & 0xF) * 17;
|
|
13
|
-
return (0xff << 24) | (red << 16) | (green << 8) | blue;
|
|
14
|
-
} catch(e) {}
|
|
15
|
-
} else if (numberStr.length == 6) {
|
|
16
|
-
//rrggbb
|
|
17
|
-
try {
|
|
18
|
-
const colorNumber = parseInt(numberStr, 16);
|
|
19
|
-
validColor = true;
|
|
20
|
-
let red = (colorNumber >> 16) & 0xFF;
|
|
21
|
-
let green = (colorNumber >> 8) & 0xFF;
|
|
22
|
-
let blue = colorNumber & 0xFF;
|
|
23
|
-
return (0xff << 24) | (red << 16) | (green << 8) | blue;
|
|
24
|
-
} catch(e) {}
|
|
25
|
-
} else if (numberStr.length == 8) {
|
|
26
|
-
//rrggbbaa
|
|
27
|
-
try {
|
|
28
|
-
const colorNumber = parseInt(numberStr, 16);
|
|
29
|
-
validColor = true;
|
|
30
|
-
let red = (colorNumber >> 24) & 0xFF;
|
|
31
|
-
let green = (colorNumber >> 16) & 0xFF;
|
|
32
|
-
let blue = (colorNumber >> 8) & 0xFF;
|
|
33
|
-
let alpha = colorNumber & 0xFF;
|
|
34
|
-
// 将通道重新组合成ARGB颜色值
|
|
35
|
-
return (alpha << 24) | (red << 16) | (green << 8) | blue;
|
|
36
|
-
} catch (e) {}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
if (!validColor) {
|
|
89
|
+
if (typeof cssColor !== "string") {
|
|
40
90
|
console.error(new Error("invalid color " + cssColor));
|
|
91
|
+
return 0;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
const input = cssColor.trim();
|
|
95
|
+
|
|
96
|
+
const rgbColor = parseRgbFunction(input);
|
|
97
|
+
if (rgbColor != null) {
|
|
98
|
+
return rgbColor;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
const hexColor = parseHexColor(input);
|
|
102
|
+
if (hexColor != null) {
|
|
103
|
+
return hexColor;
|
|
41
104
|
}
|
|
105
|
+
|
|
106
|
+
console.error(new Error("invalid color " + cssColor));
|
|
42
107
|
return 0;
|
|
43
|
-
}
|
|
108
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { PluginInfo, PluginInfo64 } from './version.mjs'
|
|
2
|
+
|
|
3
|
+
function reconfigPluginInfo() {
|
|
4
|
+
if(typeof window.jJsvRuntimeBridge!=='undefined' && window.jJsvRuntimeBridge && typeof window.jJsvRuntimeBridge.getPluginBaseUrl !== "undefined"){
|
|
5
|
+
let plugin_base = window.jJsvRuntimeBridge.getPluginBaseUrl();
|
|
6
|
+
let folder_name = "com.qcode.jsvlatex";
|
|
7
|
+
if(plugin_base){
|
|
8
|
+
let plugin_base_array = plugin_base.split("|split|");
|
|
9
|
+
let suffix = "";
|
|
10
|
+
let plugin_base_url = plugin_base_array[0];
|
|
11
|
+
if(plugin_base_array.length > 1){
|
|
12
|
+
suffix = plugin_base_array[1];
|
|
13
|
+
}
|
|
14
|
+
if(window.JsvCoreApi.ProcessType === "a64"){
|
|
15
|
+
PluginInfo64.downloadUrl = (plugin_base_url[plugin_base_url.length-1]==="/"?plugin_base_url:(plugin_base_url+"/"))+folder_name+"/JsvLatex-"+PluginInfo64.versionCodeMax+".dat"+suffix+"?md5="+PluginInfo64.md5;
|
|
16
|
+
}else{
|
|
17
|
+
PluginInfo.downloadUrl = (plugin_base_url[plugin_base_url.length-1]==="/"?plugin_base_url:(plugin_base_url+"/"))+folder_name+"/JsvLatex-"+PluginInfo.versionCodeMax+".dat"+suffix+"?md5="+PluginInfo.md5;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if(typeof window.jJsvRuntimeBridge!=='undefined' && window.jJsvRuntimeBridge && typeof window.jJsvRuntimeBridge.getBackupPluginBaseUrl !== "undefined"){
|
|
23
|
+
let folder_name = "com.qcode.jsvlatex";
|
|
24
|
+
let back_plugin_base = window.jJsvRuntimeBridge.getBackupPluginBaseUrl();
|
|
25
|
+
console.log("BackupPluginBaseUrl is "+back_plugin_base);
|
|
26
|
+
if(back_plugin_base != null && back_plugin_base != ""){
|
|
27
|
+
let back_plugin_base_array = JSON.parse(back_plugin_base);
|
|
28
|
+
if(back_plugin_base_array.length > 0){
|
|
29
|
+
if(window.JsvCoreApi.ProcessType === "a64"){
|
|
30
|
+
PluginInfo64.backupDownloadUrl = [];
|
|
31
|
+
}else{
|
|
32
|
+
PluginInfo.backupDownloadUrl = [];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
for(let i=0; i<back_plugin_base_array.length; i++){
|
|
36
|
+
let temp_array = back_plugin_base_array[i].split("|split|");
|
|
37
|
+
let temp_suffix = "";
|
|
38
|
+
let plugin_base_url = temp_array[0];
|
|
39
|
+
if(temp_array.length > 1){
|
|
40
|
+
temp_suffix = temp_array[1];
|
|
41
|
+
}
|
|
42
|
+
if(window.JsvCoreApi.ProcessType === "a64"){
|
|
43
|
+
PluginInfo64.backupDownloadUrl.push((plugin_base_url[plugin_base_url.length-1]==="/"?plugin_base_url:(plugin_base_url+"/"))+folder_name+"/JsvLatex-"+PluginInfo64.versionCodeMax+".dat"+temp_suffix+"?md5="+PluginInfo64.md5);
|
|
44
|
+
}else{
|
|
45
|
+
PluginInfo.backupDownloadUrl.push((plugin_base_url[plugin_base_url.length-1]==="/"?plugin_base_url:(plugin_base_url+"/"))+folder_name+"/JsvLatex-"+PluginInfo.versionCodeMax+".dat"+temp_suffix+"?md5="+PluginInfo.md5);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
reconfigPluginInfo();
|
|
54
|
+
|
|
55
|
+
function getPluginInfo(){
|
|
56
|
+
if(window.JsvCoreApi.ProcessType === "a64"){
|
|
57
|
+
return PluginInfo64;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return PluginInfo;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export {
|
|
64
|
+
getPluginInfo
|
|
65
|
+
}
|