@shijiu/jsview-vue 2.3.151-test.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/BrowserJsvLatex.vue.mjs +9 -90
- package/bin/jsview-vue.mjs +5964 -1833
- package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +18 -2
- 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 +25 -5
- 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 +3 -3
- 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 +17 -7
- 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/JsvInteractionMode.d.ts +6 -0
- package/bin/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +10 -3
- 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 +2 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +76 -26
- 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/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 +1 -0
- 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/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 +6 -3
- 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 +24 -2
- package/utils/JsViewEngineWidget/MetroWidget/Const.ts +5 -0
- package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +193 -89
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +325 -155
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.ts +15 -0
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +1035 -370
- package/utils/JsViewEngineWidget/MetroWidget/PageUpdater.ts +41 -23
- package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +138 -41
- package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +1 -0
- 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 +329 -230
- 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 +17 -7
- package/utils/JsViewEngineWidget/index.ts +7 -2
- 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} +60 -10
- 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 +3 -0
- package/utils/JsViewVueTools/ForgeHandles.ts +3 -0
- package/utils/JsViewVueTools/JsvInteractionMode.js +16 -0
- package/utils/JsViewVueTools/JsvPreDownloader.ts +2 -2
- package/utils/JsViewVueTools/JsvRuntimeBridge.js +40 -19
- package/utils/JsViewVueTools/JsvTextTools.ts +9 -1
- 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 +16 -1
- package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +154 -69
- package/utils/JsViewVueTools/JsvTextureStore/Store.ts +1 -1
- 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/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/JsvScreenFlex.vue +3 -1
- package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +23 -11
- 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 +29 -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 +32 -29
- 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/JsvTextBox.vue +30 -1
- package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +315 -305
- 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 +7 -2
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/DominantColor/GetDominantColor.d.ts +0 -7
- package/utils/JsViewPlugin/JsvLatex/version.js +0 -24
- package/utils/JsViewVueTools/JsvTextureStore/DominantColor/GetDominantColor.ts +0 -36
- 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
|
@@ -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
|
+
}
|
|
@@ -20,19 +20,23 @@
|
|
|
20
20
|
* height: {number} height
|
|
21
21
|
* lineSpace: {number} 行距
|
|
22
22
|
* color: {string} 文字颜色
|
|
23
|
+
* instantLoad: {boolean} 是否立即加载
|
|
23
24
|
* [注意事项]
|
|
24
25
|
* 1. 盒子端的字符串是直接作为数学公式解析的, 所以需要将\n替换为\\, 需要前端自己处理, 这里提供了一个辅助方法processLatexStr来处理简单的情况
|
|
26
|
+
* 2. _这样的特殊字符如果需要显示, 需要用\text{_}包裹
|
|
25
27
|
-->
|
|
26
28
|
<script setup>
|
|
27
|
-
import { onBeforeUnmount, ref } from "vue";
|
|
29
|
+
import { onBeforeUnmount, ref, watch, defineEmits } from "vue";
|
|
28
30
|
import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
|
|
29
31
|
import ForgeHandles from "../../JsViewVueTools/ForgeHandles";
|
|
30
32
|
import JsvLatexBridgeProxy from "./JsvLatexBridgeProxy";
|
|
31
33
|
import { cssColor2Android } from "./Color";
|
|
32
34
|
import { GetPluginLoader } from "./PluginLoader";
|
|
35
|
+
import { JsvFlexDiv } from "../../JsViewVueWidget";
|
|
33
36
|
|
|
34
37
|
let sPluginLoader = GetPluginLoader();
|
|
35
38
|
|
|
39
|
+
const emit = defineEmits(["update"]);
|
|
36
40
|
const props = defineProps({
|
|
37
41
|
latexStr: {
|
|
38
42
|
type: String,
|
|
@@ -52,7 +56,7 @@ const props = defineProps({
|
|
|
52
56
|
},
|
|
53
57
|
lineSpace: {
|
|
54
58
|
type: Number,
|
|
55
|
-
default:
|
|
59
|
+
default: 2,
|
|
56
60
|
},
|
|
57
61
|
color: {
|
|
58
62
|
type: String,
|
|
@@ -66,12 +70,18 @@ const props = defineProps({
|
|
|
66
70
|
type: Number,
|
|
67
71
|
default: 0,
|
|
68
72
|
},
|
|
73
|
+
instantLoad: {
|
|
74
|
+
type: Boolean,
|
|
75
|
+
default: false,
|
|
76
|
+
},
|
|
69
77
|
});
|
|
70
78
|
|
|
71
79
|
const show = ref(false);
|
|
72
80
|
let innerViewId = -1;
|
|
73
81
|
let clientWidth = ref(props.width);
|
|
74
82
|
let clientHeight = ref(props.height);
|
|
83
|
+
let drawingLatex = props.latexStr;
|
|
84
|
+
let pluginTexture = null;
|
|
75
85
|
|
|
76
86
|
const getClientSize = () => {
|
|
77
87
|
return {
|
|
@@ -79,6 +89,8 @@ const getClientSize = () => {
|
|
|
79
89
|
height: clientHeight.value,
|
|
80
90
|
};
|
|
81
91
|
};
|
|
92
|
+
let loadCbkToken = -1;
|
|
93
|
+
let updateCbkToken = -1;
|
|
82
94
|
const showView = () => {
|
|
83
95
|
show.value = true;
|
|
84
96
|
/**
|
|
@@ -94,25 +106,29 @@ const showView = () => {
|
|
|
94
106
|
* }
|
|
95
107
|
*/
|
|
96
108
|
const textureManager = ForgeHandles.TextureManager;
|
|
97
|
-
|
|
98
|
-
"
|
|
109
|
+
pluginTexture = textureManager.GetPluginTexture(
|
|
110
|
+
"JsvLatex",
|
|
99
111
|
JSON.stringify({
|
|
100
112
|
libRootPath: JsvLatexBridgeProxy.GetLibPath(),
|
|
101
|
-
latexStr:
|
|
113
|
+
latexStr: drawingLatex,
|
|
102
114
|
width: props.width,
|
|
103
115
|
textSize: props.fontSize,
|
|
104
116
|
lineSpace: props.lineSpace,
|
|
105
117
|
color: cssColor2Android(props.color),
|
|
106
|
-
})
|
|
118
|
+
}),
|
|
119
|
+
props.instantLoad
|
|
107
120
|
);
|
|
108
121
|
|
|
109
|
-
pluginTexture.RegisterLoadImageCallback(null, (data) => {
|
|
110
|
-
|
|
122
|
+
loadCbkToken = pluginTexture.RegisterLoadImageCallback(null, (data) => {
|
|
123
|
+
tryUpdateClientSize(data.width, data.height);
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
updateCbkToken = pluginTexture.RegisterUpdateImageCallback(null, (data) => {
|
|
111
127
|
tryUpdateClientSize(data.width, data.height);
|
|
128
|
+
emit("update", data.width, data.height);
|
|
112
129
|
});
|
|
113
130
|
|
|
114
131
|
const tryUpdateClientSize = (textureW, textureH) => {
|
|
115
|
-
console.log("testtet latex texture size", textureW, textureH);
|
|
116
132
|
if (textureW <= 0 || textureH <= 0) {
|
|
117
133
|
console.warn("JsvLatex get empth texture", textureW, textureH);
|
|
118
134
|
return;
|
|
@@ -129,6 +145,7 @@ const showView = () => {
|
|
|
129
145
|
};
|
|
130
146
|
|
|
131
147
|
const loadInfo = sPluginLoader.getLoadInfo();
|
|
148
|
+
|
|
132
149
|
if (loadInfo.done) {
|
|
133
150
|
if (loadInfo.succeed) {
|
|
134
151
|
showView();
|
|
@@ -146,22 +163,59 @@ onBeforeUnmount(() => {
|
|
|
146
163
|
Forge.sViewStore.remove(innerViewId);
|
|
147
164
|
innerViewId = -1;
|
|
148
165
|
}
|
|
166
|
+
|
|
167
|
+
if (pluginTexture) {
|
|
168
|
+
pluginTexture.UnregisterLoadImageCallback(loadCbkToken);
|
|
169
|
+
loadCbkToken = -1;
|
|
170
|
+
pluginTexture.UnregisterUpdateImageCallback(updateCbkToken);
|
|
171
|
+
updateCbkToken = -1;
|
|
172
|
+
}
|
|
149
173
|
});
|
|
150
174
|
|
|
175
|
+
let updateToken = -1;
|
|
176
|
+
function updateLatexStr(latexStr) {
|
|
177
|
+
drawingLatex = latexStr;
|
|
178
|
+
if (show.value) {
|
|
179
|
+
if (pluginTexture) {
|
|
180
|
+
updateToken = pluginTexture.UpdateValue(
|
|
181
|
+
JSON.stringify({
|
|
182
|
+
libRootPath: JsvLatexBridgeProxy.GetLibPath(),
|
|
183
|
+
latexStr: drawingLatex,
|
|
184
|
+
width: props.width,
|
|
185
|
+
textSize: props.fontSize,
|
|
186
|
+
lineSpace: props.lineSpace,
|
|
187
|
+
color: cssColor2Android(props.color),
|
|
188
|
+
})
|
|
189
|
+
);
|
|
190
|
+
} else {
|
|
191
|
+
console.warn("JsvLatex pluginTexture is null");
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
watch(
|
|
197
|
+
() => props.latexStr,
|
|
198
|
+
(newVal) => {
|
|
199
|
+
updateLatexStr(newVal);
|
|
200
|
+
}
|
|
201
|
+
);
|
|
202
|
+
|
|
151
203
|
defineExpose({
|
|
152
204
|
getClientSize,
|
|
205
|
+
updateLatexStr,
|
|
153
206
|
});
|
|
207
|
+
|
|
208
|
+
const onSized = (width, height) => {
|
|
209
|
+
clientWidth.value = width;
|
|
210
|
+
clientHeight.value = height;
|
|
211
|
+
};
|
|
154
212
|
</script>
|
|
155
213
|
|
|
156
214
|
<template>
|
|
157
|
-
<div
|
|
158
|
-
:style="{
|
|
159
|
-
|
|
160
|
-
top: top,
|
|
161
|
-
width: clientWidth,
|
|
162
|
-
height: clientHeight,
|
|
163
|
-
}"
|
|
215
|
+
<jsv-flex-div
|
|
216
|
+
:style="{ left: left, top: top }"
|
|
217
|
+
:onSized="onSized"
|
|
164
218
|
>
|
|
165
219
|
<div v-if="show" :data-jsv-vw-innerview="innerViewId"></div>
|
|
166
|
-
</div>
|
|
220
|
+
</jsv-flex-div>
|
|
167
221
|
</template>
|
|
@@ -13,4 +13,14 @@ export default class {
|
|
|
13
13
|
return null;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
+
|
|
17
|
+
static LoadDexWithOuter() {
|
|
18
|
+
if (typeof window.jsvLatexBridge != "undefined"
|
|
19
|
+
&& typeof window.jsvLatexBridge.LoadDexWithOuter != "undefined") {
|
|
20
|
+
return window.jsvLatexBridge.LoadDexWithOuter();
|
|
21
|
+
} else {
|
|
22
|
+
console.error("widnow.jsvLatexBridge doesn't exist.")
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
16
26
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { defineAsyncComponent } from "vue";
|
|
2
|
+
import { defineAsyncComponent, ref } from "vue";
|
|
3
3
|
import JsvLatex from "./JsvLatex.vue";
|
|
4
4
|
|
|
5
|
+
const innerRef = ref(null);
|
|
6
|
+
|
|
5
7
|
const AsyncComp = defineAsyncComponent(() => {
|
|
6
8
|
return new Promise((resolve, reject) => {
|
|
7
9
|
if (!window.JsView) {
|
|
@@ -13,8 +15,18 @@ const AsyncComp = defineAsyncComponent(() => {
|
|
|
13
15
|
}
|
|
14
16
|
});
|
|
15
17
|
});
|
|
18
|
+
|
|
19
|
+
// 转发 JsvLatex.vue 的 expose 方法,供父组件通过 ref 调用
|
|
20
|
+
defineExpose({
|
|
21
|
+
getClientSize() {
|
|
22
|
+
return innerRef.value?.getClientSize?.();
|
|
23
|
+
},
|
|
24
|
+
updateLatexStr(latexStr) {
|
|
25
|
+
innerRef.value?.updateLatexStr?.(latexStr);
|
|
26
|
+
},
|
|
27
|
+
});
|
|
16
28
|
</script>
|
|
17
29
|
|
|
18
30
|
<template>
|
|
19
|
-
<AsyncComp v-bind="$attrs" />
|
|
31
|
+
<AsyncComp ref="innerRef" v-bind="$attrs" />
|
|
20
32
|
</template>
|