@shijiu/jsview-vue 2.2.373 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/jsview-vue-common.mjs +1 -1
- package/bin/jsview-vue.mjs +7678 -7306
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/CheckType.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusBlock.vue.d.ts +0 -34
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusHub.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusManager.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Const.d.ts +0 -4
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/DebugFrame.vue.d.ts +8 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/DebugTools.d.ts +5 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Dispatcher.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/ListWidget.vue.d.ts +24 -14
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +179 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/MetroWidgetSetup.d.ts +9 -6
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/PageUpdater.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/RenderItem.d.ts +3 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Slide.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/SlotComponent.vue.d.ts +0 -4
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +64 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/TokenGenerator.d.ts +4 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/VisibleInfo.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/WidgetRectInfo.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/RangeModel.d.ts +0 -4
- package/bin/types/utils/JsViewEngineWidget/RectUtils.d.ts +61 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/CommonMetroTemplate.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/Fence.d.ts +2 -6
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/ListMetroTemplate.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/MetroTemplate.d.ts +3 -7
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/TemplateItemAdder.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/index.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/WidgetCommon.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/index.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAccount/JsvAccount.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvAudio/AudioProxy.d.ts +2 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +4 -8
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/CheckType.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/Events.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudio.vue.d.ts +4 -8
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudioBridgeProxy.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudioProxy.vue.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvAudio/PluginLoader.d.ts +1 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/ScreenLockManager.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/index.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvAudio/version.d.mts +14 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/version.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/BrowserDomBuilder.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/BrowserJsvLatex.vue.d.ts +5 -9
- package/bin/types/utils/JsViewPlugin/JsvLatex/Color.d.ts +1 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatex.vue.d.ts +5 -29
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +3 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatexProxy.vue.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvLatex/PluginLoader.d.ts +1 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/index.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +13 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/version.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvPlayer/AckEventDefine.d.ts +10 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer-0.9.vue.d.ts +45 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer.vue.d.ts +596 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/GetVersion.d.ts +13 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +420 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +57 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +588 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +358 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +358 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/version.d.mts +14 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/index.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ConstSymbol.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DebugContentShellJBridge.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DebugTool.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DefaultKeyMap.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/FeatureActive.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ForgeConstDefine.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ForgeHandles.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDynamicCssStyle.d.ts +0 -17
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDynamicKeyFrames.d.ts +0 -17
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvFederationTools.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvHashHistory.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvImpactTracer.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvPerformance.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvPreDownloader.d.ts +0 -21
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvRefTaker.d.ts +0 -26
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvRuntimeBridge.d.ts +6 -8
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvStyleClass.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvStyleSheetsDeclarer.d.ts +0 -18
- package/bin/types/utils/JsViewVueTools/JsvTextTools.d.ts +61 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureDefines.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureLoadTool.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/CommandList.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/Path.d.ts +20 -3
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/JsvTextureStore.d.ts +1 -23
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/Store.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/Texture.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/NinePatchHelper.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/TextureManagerTools.d.ts +0 -4
- package/bin/types/utils/JsViewVueTools/TypeCheckAndSet.d.ts +3 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/index.d.ts +0 -6
- package/bin/types/utils/JsViewVueWidget/Jsv3dDiv.vue.d.ts +120 -0
- package/bin/types/utils/JsViewVueWidget/Jsv3dStage.vue.d.ts +144 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/ActorControlBase.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +64 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/JsvActorMoveControl.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/index.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/BrowserApic.vue.d.ts +1 -5
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/JsvApic.vue.d.ts +0 -20
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +50 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +1 -5
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +23 -0
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +23 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/GifData.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/Viewer.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/WebpData.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvCommonLoopToolBase.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvClipDiv/JsvClipDiv.vue.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvClipDiv/index.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +13 -0
- package/bin/types/utils/JsViewVueWidget/JsvConnectLine/index.d.ts +2 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvDragBox/JsvDragBox.vue.d.ts +0 -25
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvDriftScope/JsvDriftScope.vue.d.ts +4 -8
- package/bin/types/utils/JsViewVueWidget/JsvDriftScope/index.d.ts +1 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvEnableRenderBreak.vue.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFilterView.vue.d.ts +6 -25
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +72 -0
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue.d.ts +78 -0
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +75 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFlexCell/index.d.ts +1 -4
- package/bin/types/{JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue.d.ts → utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts} +1 -5
- package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/index.d.ts +1 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActorControl.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/CallbackManager.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ForgeTypeDefine.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +12 -37
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +6 -28
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/KeepFlags.d.ts +7 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/NexusNode.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetAction.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetCondition.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetState.d.ts +1 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SyncLinkManager.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/index.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvGrid.vue.d.ts +0 -73
- package/bin/types/utils/JsViewVueWidget/JsvHole.d.ts +2 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/Cursor.vue.d.ts +2 -6
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/EditViewOperator.d.ts +2 -5
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/EditVisibleArea.d.ts +4 -5
- package/bin/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +12 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/SharedDefine.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/SystemTextTools.d.ts +7 -5
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/index.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +12 -0
- package/bin/types/utils/JsViewVueWidget/JsvLine/LineManager.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvLine/index.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvMarquee.vue.d.ts +12 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMaskClipDiv.vue.d.ts +0 -22
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/Constant.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/DataTree.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/Geometry.d.ts +2 -6
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/JsvMindMap.vue.d.ts +12 -95
- package/bin/types/utils/JsViewVueWidget/JsvMindMap/index.d.ts +1 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/rtree.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvNativeSharedDiv.vue.d.ts +0 -18
- package/bin/types/utils/JsViewVueWidget/JsvNinePatch.vue.d.ts +21 -0
- package/bin/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +9 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPosterDiv.vue.d.ts +3 -17
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPosterImage.vue.d.ts +3 -18
- package/bin/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +25 -0
- package/bin/types/utils/JsViewVueWidget/JsvPreload/index.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvProgressBar.vue.d.ts +12 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvQrcode/JsvQrcode.vue.d.ts +1 -26
- package/bin/types/utils/JsViewVueWidget/JsvRadarChart.vue.d.ts +13 -0
- package/bin/types/utils/JsViewVueWidget/JsvRipple/Constant.d.ts +4 -0
- package/bin/types/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +84 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvRipple/index.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +10 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/JsvScrollBox.vue.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/JsvScrollFollow.vue.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +4 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/ScrollSymbol.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/index.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSector.vue.d.ts +0 -18
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSoundPool.d.ts +0 -42
- package/bin/types/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +11 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/FrameBuidler.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +18 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +0 -16
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteTools.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/SpriteController.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/index.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +16 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper/JsvSwiper.vue.d.ts +0 -39
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +16 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper3D/JsvSwiper.vue.d.ts +3 -27
- package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/index.d.ts +2 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextBox.vue.d.ts +0 -26
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextureAnim/CommonType.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextureAnim/JsvTextureAnim.vue.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/index.d.ts +4 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTouchModeSwitcher.vue.d.ts +3 -28
- package/bin/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +23 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +9 -34
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvVisibleSensor/index.d.ts +9 -13
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/index.d.ts +4 -6
- package/bin/types/{index.d.ts → utils/index.d.ts} +0 -4
- package/index.d.ts +2 -2
- package/package.json +1 -1
- package/tools/jsview-vue-build.mjs +3 -2
- package/tsconfig.json +27 -0
- package/utils/JsViewEngineWidget/CheckType.js +3 -3
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue +25 -6
- package/utils/JsViewEngineWidget/MetroWidget/DebugFrame.vue +22 -0
- package/utils/JsViewEngineWidget/MetroWidget/DebugTools.ts +37 -0
- package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +42 -7
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +62 -10
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +177 -77
- package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +30 -0
- package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +1 -1
- package/utils/JsViewEngineWidget/TemplateParser/Fence.ts +2 -2
- package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +2 -4
- package/utils/JsViewPlugin/JsvPlayer/AckEventDefine.ts +82 -0
- package/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer.vue +49 -31
- package/utils/JsViewVueTools/JsvHashHistory.js +26 -29
- package/utils/JsViewVueTools/JsvRuntimeBridge.js +82 -73
- package/utils/JsViewVueTools/JsvTextTools.ts +63 -130
- package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.ts +38 -2
- package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +1 -1
- package/utils/JsViewVueTools/TypeCheckAndSet.ts +66 -0
- package/utils/JsViewVueTools/index.js +1 -2
- package/utils/JsViewVueWidget/Jsv3dDiv.vue +85 -0
- package/utils/JsViewVueWidget/Jsv3dStage.vue +50 -0
- package/utils/JsViewVueWidget/JsvApic/JsvApic/index.js +1 -8
- package/utils/JsViewVueWidget/JsvApic/JsvApic2/index.js +1 -8
- package/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue +1 -1
- package/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue +151 -0
- package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +11 -16
- package/utils/JsViewVueWidget/JsvFlexCell/index.js +1 -0
- package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +4 -1
- package/utils/JsViewVueWidget/JsvFragShaderView/index.js +2 -9
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.ts +8 -0
- package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +48 -15
- package/utils/JsViewVueWidget/JsvInput/EditVisibleArea.ts +43 -10
- package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +22 -9
- package/utils/JsViewVueWidget/JsvInput/SystemTextTools.ts +41 -27
- package/utils/JsViewVueWidget/JsvMaskClipDiv.vue +3 -57
- package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +57 -71
- package/utils/JsViewVueWidget/JsvPosterDiv.vue +15 -8
- package/utils/JsViewVueWidget/JsvPosterImage.vue +12 -3
- package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +21 -44
- package/utils/JsViewVueWidget/JsvPreload/index.js +2 -13
- package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +3 -2
- package/utils/JsViewVueWidget/JsvSoundPool.js +3 -7
- package/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue +116 -75
- package/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue +0 -5
- package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +27 -32
- package/utils/JsViewVueWidget/JsvTextureAnim/index.js +2 -9
- package/utils/JsViewVueWidget/index.js +4 -2
- package/bin/browser/BrowserApic.vue.mjs +0 -114
- package/bin/browser/BrowserApic2.vue.mjs +0 -108
- package/bin/browser/BrowserApicLib.mjs +0 -431
- package/bin/browser/BrowserJsvFragShaderView.vue.mjs +0 -79
- package/bin/browser/BrowserPreload.vue.mjs +0 -139
- package/bin/browser/BrowserQrcode.vue.mjs +0 -176
- package/bin/browser/BrowserSpray.vue.mjs +0 -56
- package/bin/browser/BrowserTextureAnim.vue.mjs +0 -322
- package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +0 -435
- package/bin/types/JsViewPlugin/JsvAudio/AudioProxy.d.ts +0 -6
- package/bin/types/JsViewPlugin/JsvAudio/PluginLoader.d.ts +0 -5
- package/bin/types/JsViewPlugin/JsvLatex/Color.d.ts +0 -5
- package/bin/types/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +0 -7
- package/bin/types/JsViewPlugin/JsvLatex/PluginLoader.d.ts +0 -5
- package/bin/types/JsViewVueTools/JsvDemoTester.d.ts +0 -6
- package/bin/types/JsViewVueTools/JsvTextTools.d.ts +0 -95
- package/bin/types/JsViewVueTools/TypeCheckAndSet.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +0 -102
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +0 -51
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvClipDiv/index.d.ts +0 -5
- package/bin/types/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +0 -5
- package/bin/types/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +0 -34
- package/bin/types/JsViewVueWidget/JsvConnectLine/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvDriftScope/index.d.ts +0 -5
- package/bin/types/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +0 -106
- package/bin/types/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +0 -106
- package/bin/types/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +0 -60
- package/bin/types/JsViewVueWidget/JsvFragShaderView/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvHole.d.ts +0 -19
- package/bin/types/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +0 -65
- package/bin/types/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +0 -32
- package/bin/types/JsViewVueWidget/JsvLine/LineManager.d.ts +0 -5
- package/bin/types/JsViewVueWidget/JsvLine/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvMarquee.vue.d.ts +0 -33
- package/bin/types/JsViewVueWidget/JsvMindMap/index.d.ts +0 -5
- package/bin/types/JsViewVueWidget/JsvNinePatch.vue.d.ts +0 -50
- package/bin/types/JsViewVueWidget/JsvPieChart.vue.d.ts +0 -26
- package/bin/types/JsViewVueWidget/JsvPreload/BrowserPreload.vue.d.ts +0 -14
- package/bin/types/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +0 -67
- package/bin/types/JsViewVueWidget/JsvPreload/index.d.ts +0 -21
- package/bin/types/JsViewVueWidget/JsvProgressBar.vue.d.ts +0 -31
- package/bin/types/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue.d.ts +0 -15
- package/bin/types/JsViewVueWidget/JsvQrcode/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvRadarChart.vue.d.ts +0 -37
- package/bin/types/JsViewVueWidget/JsvRipple/Constant.d.ts +0 -8
- package/bin/types/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +0 -129
- package/bin/types/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +0 -28
- package/bin/types/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +0 -8
- package/bin/types/JsViewVueWidget/JsvSpray/BrowserSpray.vue.d.ts +0 -29
- package/bin/types/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +0 -78
- package/bin/types/JsViewVueWidget/JsvSpray/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +0 -70
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvSwiper/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvSwiper3D/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue.d.ts +0 -155
- package/bin/types/JsViewVueWidget/JsvTextureAnim/index.d.ts +0 -18
- package/tools/config/tsconfig.json +0 -16
- package/utils/JsViewVueTools/JsvDemoTester.js +0 -81
- package/utils/JsViewVueTools/TypeCheckAndSet.js +0 -27
- package/utils/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue +0 -75
- package/utils/JsViewVueWidget/JsvPreload/BrowserPreload.vue +0 -144
- package/utils/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue +0 -189
- package/utils/JsViewVueWidget/JsvQrcode/index.js +0 -18
- package/utils/JsViewVueWidget/JsvSpray/BrowserSpray.vue +0 -55
- package/utils/JsViewVueWidget/JsvSpray/index.js +0 -17
- package/utils/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue +0 -359
- /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActionRefObject.d.ts +0 -0
- /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActorState.d.ts +0 -0
- /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/CommonType.d.ts +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Forge } from "@shijiu/jsview/dom/jsv-forge-define.mjs";
|
|
2
2
|
|
|
3
|
+
// 按照Css的style设置名称对应
|
|
3
4
|
declare interface FontStyleDefine {
|
|
4
5
|
fontFamily: string,
|
|
5
6
|
fontSize: number,
|
|
@@ -23,14 +24,8 @@ declare interface FontStyleDefine {
|
|
|
23
24
|
* @return {int} 文字宽度
|
|
24
25
|
**/
|
|
25
26
|
const getTextWidth = (text: string, style: FontStyleDefine) => {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
font: style.fontFamily ? style.fontFamily : Forge.TextUtils.sDefaultFont,
|
|
29
|
-
size: style.fontSize ? style.fontSize : Forge.TextUtils.sDefaultFontSize,
|
|
30
|
-
italic: style.fontStyle === "italic" ? "italic" : "",
|
|
31
|
-
bold: style.fontWeight === "bold" ? "bold" : "",
|
|
32
|
-
};
|
|
33
|
-
return (window as any).PlatformUtils.GetTextWidth(textParams);
|
|
27
|
+
let forgeRef = Forge;
|
|
28
|
+
return Forge.TextUtils.GetTextWidth(text, style);
|
|
34
29
|
};
|
|
35
30
|
|
|
36
31
|
/*!
|
|
@@ -57,27 +52,8 @@ const getOneLineTextDrawWidth = (text: string, style: FontStyleDefine) => {
|
|
|
57
52
|
if (text && typeof text != "string") {
|
|
58
53
|
text = "" + text; // 规避text为非字符串导致接口调用错误的问题
|
|
59
54
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
style.fontFamily ?? Forge.TextUtils.sDefaultFont,
|
|
63
|
-
style.fontSize ?? Forge.TextUtils.sDefaultFontSize,
|
|
64
|
-
style.fontStyle === "italic" ? "italic" : "",
|
|
65
|
-
style.fontWeight === "bold" ? "bold" : "");
|
|
66
|
-
const result: {
|
|
67
|
-
totalWidth: number,
|
|
68
|
-
sliceInfo: Array<any>
|
|
69
|
-
} = {
|
|
70
|
-
totalWidth: info[0],
|
|
71
|
-
sliceInfo: [],
|
|
72
|
-
}
|
|
73
|
-
for (let i = 1; i < info.length; i += 3) {
|
|
74
|
-
result.sliceInfo.push({
|
|
75
|
-
start: info[i],
|
|
76
|
-
end: info[i + 1],
|
|
77
|
-
width: info[2 + 2],
|
|
78
|
-
})
|
|
79
|
-
}
|
|
80
|
-
return result;
|
|
55
|
+
|
|
56
|
+
return Forge.TextUtils.GetOneLineTextDrawWidth(text, style);
|
|
81
57
|
}
|
|
82
58
|
|
|
83
59
|
const isRtl = (str: string) => {
|
|
@@ -95,16 +71,28 @@ const isRtl = (str: string) => {
|
|
|
95
71
|
return false;
|
|
96
72
|
}
|
|
97
73
|
|
|
74
|
+
declare interface CssFontStyle {
|
|
75
|
+
fontFamily: string,
|
|
76
|
+
fontSize: number,
|
|
77
|
+
fontStyle: string,
|
|
78
|
+
fontWeight: string
|
|
79
|
+
}
|
|
98
80
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
81
|
+
declare interface CssTextLayoutStyle {
|
|
82
|
+
width?: number,
|
|
83
|
+
height?: number,
|
|
84
|
+
textAlign?: String,
|
|
85
|
+
lineHeight?: number,
|
|
86
|
+
whiteSpace?: String, // normal, nowrap (换行规则)
|
|
87
|
+
wordWrap?: String, // break-word, normal, (仅对英文有效, 只在whiteSpace规定为非换行时生效)
|
|
88
|
+
textOverflow?: String,
|
|
103
89
|
}
|
|
104
90
|
|
|
105
|
-
declare interface
|
|
91
|
+
declare interface CursorResult {
|
|
92
|
+
parseSuccess: boolean,
|
|
106
93
|
x: number,
|
|
107
|
-
y: number
|
|
94
|
+
y: number,
|
|
95
|
+
cachedId: number, // 解析缓存的id,当设置不变的时候使用cache, 0为无效cache
|
|
108
96
|
}
|
|
109
97
|
|
|
110
98
|
/**
|
|
@@ -112,112 +100,57 @@ declare interface PostionDefine {
|
|
|
112
100
|
*
|
|
113
101
|
* @public
|
|
114
102
|
* @func GetCursorPosition
|
|
115
|
-
* @
|
|
116
|
-
* @params {string} str 文字字符串
|
|
117
|
-
* @params {Forge.RectArea} max_rect
|
|
118
|
-
* @param {PackedFontParams} font_params 文本描述符(来源自 PackFontParams 函数)
|
|
119
|
-
* @param {PackedTextAttrs} text_attr (来源自 PackTextAttrs 函数)
|
|
120
|
-
* @param {int} line_height
|
|
121
|
-
* @param {int} pos_x 光标的偏移
|
|
122
|
-
* @return {Object} 光标的所在位置{x:0,y:0}
|
|
103
|
+
* @return {CursorResult} 光标的所在位置{x:0,y:0}
|
|
123
104
|
**/
|
|
124
|
-
function
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
return { x: 0, y: 0 }
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
class PackedFontParams {
|
|
142
|
-
public font?: string; // font family name
|
|
143
|
-
public size?: number; // font size
|
|
144
|
-
public bold?: string; // ""/"bold"
|
|
145
|
-
public italic?: string; // ""/"italic"
|
|
146
|
-
public alignment?: string; // left / right /center
|
|
147
|
-
public textColour?: string;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/**k
|
|
151
|
-
* 创建文本描述符
|
|
152
|
-
*
|
|
153
|
-
* @public
|
|
154
|
-
* @func PackFontParam
|
|
155
|
-
* @param {string} font_family CSS字体名字,如“黑体 欧文”(支持多字体设置)
|
|
156
|
-
* @param {int} font_size
|
|
157
|
-
* @param {boolean} italic 是否为斜体
|
|
158
|
-
* @param {boolean} bold 是否加粗
|
|
159
|
-
* @param {string} alignment 水平对齐方式,支持("left", "middle", "right", "justify")
|
|
160
|
-
* @param {string} text_color 文字颜色(format "#FFFFFF")
|
|
161
|
-
**/
|
|
162
|
-
function PackFontParams(
|
|
163
|
-
font_family: string | null,
|
|
164
|
-
font_size: number,
|
|
165
|
-
bold: boolean,
|
|
166
|
-
italic: boolean,
|
|
167
|
-
alignment: string,
|
|
168
|
-
text_color: string | null): PackedFontParams {
|
|
169
|
-
|
|
170
|
-
let packed = new PackedFontParams();
|
|
171
|
-
|
|
172
|
-
if (!font_size) font_size = Forge.TextUtils.sDefaultFontSize;
|
|
173
|
-
if (!font_family) font_family = Forge.TextUtils.sDefaultFont;
|
|
174
|
-
|
|
175
|
-
packed.size = font_size;
|
|
176
|
-
packed.font = font_family!;
|
|
177
|
-
packed.italic = italic ? "italic" : "";
|
|
178
|
-
packed.bold = bold ? "bold" : "";
|
|
179
|
-
|
|
180
|
-
packed.alignment = (alignment && alignment.length > 0) ? alignment : "left";
|
|
181
|
-
packed.textColour = text_color ? text_color : Forge.TextUtils.sDefaultFontColor;
|
|
182
|
-
|
|
183
|
-
return packed;
|
|
105
|
+
function getCursorPosition(
|
|
106
|
+
cursorOffset: number,
|
|
107
|
+
text: String,
|
|
108
|
+
fontStyle: CssFontStyle,
|
|
109
|
+
textLayoutStyle: CssTextLayoutStyle,
|
|
110
|
+
buildCache: boolean
|
|
111
|
+
): CursorResult {
|
|
112
|
+
let result: CursorResult = Forge.TextUtils.GetCursorPosition(
|
|
113
|
+
0,
|
|
114
|
+
cursorOffset, text,
|
|
115
|
+
fontStyle, textLayoutStyle,
|
|
116
|
+
buildCache);
|
|
117
|
+
return result;
|
|
184
118
|
}
|
|
185
119
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
120
|
+
/**
|
|
121
|
+
* 获取光标的位置
|
|
122
|
+
*
|
|
123
|
+
* @public
|
|
124
|
+
* @func GetCursorPositionCached
|
|
125
|
+
* @return {CursorResult} 光标的所在位置{x:0,y:0}
|
|
126
|
+
**/
|
|
127
|
+
function getCursorPositionCached(
|
|
128
|
+
cachedId: number,
|
|
129
|
+
cursorOffset: number
|
|
130
|
+
): CursorResult {
|
|
131
|
+
let result: CursorResult = Forge.TextUtils.GetCursorPosition(
|
|
132
|
+
cachedId,
|
|
133
|
+
cursorOffset,
|
|
134
|
+
null,
|
|
135
|
+
null,
|
|
136
|
+
null,
|
|
137
|
+
true);
|
|
138
|
+
return result;
|
|
189
139
|
}
|
|
190
140
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
* @func PackTextAttrs
|
|
196
|
-
* @param {String} text_overflow 超过描画边界时的处理方式:<br>
|
|
197
|
-
* "none" 按照文字宽度描画<br>
|
|
198
|
-
* "clip" 超出本分不显示(默认)<br>
|
|
199
|
-
* "ellipsis" 如果超出,则末尾显示“...”
|
|
200
|
-
* 其余字符 当文字超出时,用此字符替换“...”的位置
|
|
201
|
-
* @param {String} word_wrap 设置自然换行规则<br>
|
|
202
|
-
* "none":“不折行”<br>
|
|
203
|
-
* "normal":折行时,尽量不切断单词(仅支持英文单词)<br>
|
|
204
|
-
* "break_word":不去识别单词,到达边缘就折行(执行效率高)
|
|
205
|
-
* @return {PackedTextAttrs} 文本区域描述符
|
|
206
|
-
**/
|
|
207
|
-
function PackTextAttrs(text_overflow: string, word_wrap: string): PackedTextAttrs {
|
|
208
|
-
if (!text_overflow) text_overflow = "none";
|
|
209
|
-
if (!word_wrap) word_wrap = "none";
|
|
210
|
-
|
|
211
|
-
return { text_overflow: text_overflow, word_wrap: word_wrap };
|
|
141
|
+
function recycleCursorPositionCache(
|
|
142
|
+
cached_id: number
|
|
143
|
+
) {
|
|
144
|
+
Forge.TextUtils.RemoveCursorTextCache(cached_id);
|
|
212
145
|
}
|
|
213
146
|
|
|
214
147
|
const TextTools = {
|
|
215
148
|
getOneLineTextDrawWidth,
|
|
216
149
|
getTextWidth,
|
|
217
150
|
isRtl,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
151
|
+
getCursorPosition,
|
|
152
|
+
getCursorPositionCached,
|
|
153
|
+
recycleCursorPositionCache
|
|
221
154
|
}
|
|
222
155
|
|
|
223
156
|
export { getTextWidth, TextTools };
|
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
import * as Constants from "./CommandList"
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* PathStrokeSetting
|
|
5
|
+
* 描边样式设定
|
|
6
|
+
* lineWidth: 描边线宽
|
|
7
|
+
* color: 描边颜色
|
|
8
|
+
* dash: 描边虚线样式,例如[10, 5]表示10px实线,5px虚线,交替出现
|
|
9
|
+
* phase: 描边虚线样式起始位置,例如0表示从虚线开始位置开始绘制
|
|
10
|
+
*/
|
|
11
|
+
interface PathStrokeSetting {
|
|
12
|
+
lineWidth: Number,
|
|
13
|
+
color: String,
|
|
14
|
+
dash?: Array<Number>,
|
|
15
|
+
phase?: Number
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function pathStrokeSettingToJson(setting: PathStrokeSetting): Object {
|
|
19
|
+
return {
|
|
20
|
+
"lineWidth": setting.lineWidth,
|
|
21
|
+
"clr": setting.color,
|
|
22
|
+
"dash": setting.dash,
|
|
23
|
+
"phase": setting.phase
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
3
27
|
class DrawingPath {
|
|
4
28
|
protected drawCommandsRefs: Array<Object> = [];
|
|
5
29
|
protected finishedDraw: boolean = false; // 控制stroke和fill只能调用一次
|
|
@@ -16,6 +40,19 @@ class DrawingPath {
|
|
|
16
40
|
* @param {String} color 颜色设定,例如rgba(red:0~255, green:0~255, blue:0~255, alpla:0~1.0), 或则 #AARRGGBB
|
|
17
41
|
*/
|
|
18
42
|
public stroke(lineWidth: Number, color: String) {
|
|
43
|
+
this.strokeWithSetting({
|
|
44
|
+
lineWidth: lineWidth,
|
|
45
|
+
color: color,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* strokeWithSetting
|
|
51
|
+
* 绘制边框,并设置描边样式
|
|
52
|
+
*
|
|
53
|
+
* @param {PathStrokeSetting} setting 描边样式设定
|
|
54
|
+
*/
|
|
55
|
+
public strokeWithSetting(setting: PathStrokeSetting) {
|
|
19
56
|
if (this.finishedDraw) {
|
|
20
57
|
console.error("Error: path can only draw once");
|
|
21
58
|
return;
|
|
@@ -24,8 +61,7 @@ class DrawingPath {
|
|
|
24
61
|
this.drawCommandsRefs.push({
|
|
25
62
|
"cmd": Constants.CMD_PREPARE_PAINT,
|
|
26
63
|
"type": "stroke",
|
|
27
|
-
|
|
28
|
-
"clr": color
|
|
64
|
+
...pathStrokeSettingToJson(setting)
|
|
29
65
|
});
|
|
30
66
|
this.onFinishDraw(); // 调用继承类的完成处理执行绘制
|
|
31
67
|
this.finishedDraw = true;
|
|
@@ -38,7 +38,7 @@ let sTextureStoreApi = {
|
|
|
38
38
|
* @param {String|null} baseName 可选, 访问名的前缀信息
|
|
39
39
|
* @return {CanvasTexture}
|
|
40
40
|
*/
|
|
41
|
-
canvasTexture: (width: Number, height: Number, baseName: String | null): CanvasTexture => {
|
|
41
|
+
canvasTexture: (width: Number, height: Number, baseName: String | null = null): CanvasTexture => {
|
|
42
42
|
return new CanvasTexture(width, height, baseName);
|
|
43
43
|
},
|
|
44
44
|
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
var number_convert_tmp = new Float32Array(1);
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 创建基于基地址的全地址模式
|
|
5
|
+
* 主要用于转化以下的URL类型
|
|
6
|
+
* 类型1: "url(/相对路径/项目资源/1.png)"
|
|
7
|
+
* 类型2: "/相对路径/项目资源/1.png"
|
|
8
|
+
* 类型3: jsview内定类型 "jsvtexturestore:xxxx"
|
|
9
|
+
* 类型4: 未知的内定类型 "data:xxxx"
|
|
10
|
+
*
|
|
11
|
+
* 同时兼容送入http://完整路径/1.png,转换出来结果等同于没有对此url进行变化
|
|
12
|
+
*
|
|
13
|
+
* @param {string} origin_url
|
|
14
|
+
* @return {String}
|
|
15
|
+
*/
|
|
16
|
+
function parseUrl(origin_url: String): String {
|
|
17
|
+
let url_result = origin_url;
|
|
18
|
+
|
|
19
|
+
// url(/xxx/xxx) 格式
|
|
20
|
+
if (url_result.startsWith('url') === true) {
|
|
21
|
+
let startIdx = url_result.indexOf('(') + 1;
|
|
22
|
+
let endIdx = url_result.lastIndexOf(')');
|
|
23
|
+
url_result = url_result.substring(startIdx, endIdx).trim();
|
|
24
|
+
if (url_result === "undefined" || url_result === "null" || url_result.length === 0) {
|
|
25
|
+
// 空内容,不进行其他自动解析和填充
|
|
26
|
+
return url_result;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// data:xxxx, jsvtexturestore:xxxx 格式
|
|
31
|
+
if (url_result.startsWith('data:') === true || url_result.startsWith('jsvtexturestore:') === true) {
|
|
32
|
+
return url_result;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// 拆掉 url() 包装后的url相对路径转换
|
|
36
|
+
let base_url = (window.location as any).jsvGetLocation ?
|
|
37
|
+
(window.location as any).jsvGetLocation() // native运行场景,启动链接为 mjs 非 index.html场景
|
|
38
|
+
: window.location.href;
|
|
39
|
+
let url_parse = new (window as any).JsvCoreApi.UrlBuilder(url_result, base_url);
|
|
40
|
+
|
|
41
|
+
return url_parse.href;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function numberCheckSet(number: number): number {
|
|
45
|
+
number_convert_tmp[0] = number; // 强制类型转换, 避免JSON化时类型出错,因为 '123' 123 都能通过Nan检测
|
|
46
|
+
if (!isNaN(number_convert_tmp[0])) {
|
|
47
|
+
return number_convert_tmp[0];
|
|
48
|
+
} else {
|
|
49
|
+
console.warn(`${number} is not type of number, default as 0`);
|
|
50
|
+
return 0;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function urlCheckSet(origin_url: String): String {
|
|
55
|
+
if (origin_url && origin_url.indexOf("http") === 0) {
|
|
56
|
+
// 包含http和https两种请求
|
|
57
|
+
return origin_url;
|
|
58
|
+
} else {
|
|
59
|
+
return parseUrl(origin_url);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export {
|
|
64
|
+
numberCheckSet,
|
|
65
|
+
urlCheckSet
|
|
66
|
+
};
|
|
@@ -9,7 +9,7 @@ export * from "./JsvDynamicCssStyle";
|
|
|
9
9
|
export * from "./JsvDynamicKeyFrames";
|
|
10
10
|
export * from "./JsvRuntimeBridge";
|
|
11
11
|
export * from "./NinePatchHelper";
|
|
12
|
-
export * from "./TypeCheckAndSet";
|
|
12
|
+
export * from "./TypeCheckAndSet.ts";
|
|
13
13
|
export * from "./JsvRefTaker";
|
|
14
14
|
export * from "./JsvStyleClass";
|
|
15
15
|
export * from "./JsvStyleSheetsDeclarer";
|
|
@@ -19,7 +19,6 @@ export * from "./JsvImpactTracer";
|
|
|
19
19
|
export * from "./JsvTextTools";
|
|
20
20
|
export * from "./JsvPreDownloader"
|
|
21
21
|
export { default as DefaultKeyCodeMap } from "./DefaultKeyMap";
|
|
22
|
-
export * from "./JsvDemoTester"
|
|
23
22
|
export * from "./JsvPerformance"
|
|
24
23
|
export * from "./JsvTextureStore/JsvTextureStore"
|
|
25
24
|
export * from "./JsvTextureDefines"
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* @file
|
|
4
|
+
*
|
|
5
|
+
* 【模块 export 内容】
|
|
6
|
+
* JsvPosterDiv:Vue高阶组件,海报描画
|
|
7
|
+
* props说明:
|
|
8
|
+
* @prop {{x:number, y:number, z:number}} position 坐标信息,优先级高于style中的left, top
|
|
9
|
+
* @prop {Object} style {Object} 包含
|
|
10
|
+
* left/top/width/height
|
|
11
|
+
* border-radius
|
|
12
|
+
* backgroundImage/backgroundColor
|
|
13
|
+
* 的style设置
|
|
14
|
+
* @prop {boolean} enableAA 默认开启的。anti-alias(局部)算法,此算法会引起边缘2~3像素虚化
|
|
15
|
+
*/
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<script setup lang="ts">
|
|
19
|
+
import { watchEffect, withDefaults, defineProps, shallowRef } from "vue";
|
|
20
|
+
|
|
21
|
+
interface PositionType {
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
z: number;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const rProps = withDefaults(
|
|
28
|
+
defineProps<{
|
|
29
|
+
style: Object | null;
|
|
30
|
+
position: any; // PositionType
|
|
31
|
+
enableAA: boolean;
|
|
32
|
+
}>(),
|
|
33
|
+
{
|
|
34
|
+
style: null,
|
|
35
|
+
position: null,
|
|
36
|
+
enableAA: true,
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
let rPositionX = shallowRef(0);
|
|
41
|
+
let rPositionY = shallowRef(0);
|
|
42
|
+
let rPositionZ = shallowRef(0);
|
|
43
|
+
|
|
44
|
+
let rDivStyle = shallowRef({});
|
|
45
|
+
let rEnableAA = shallowRef("0");
|
|
46
|
+
|
|
47
|
+
watchEffect(() => {
|
|
48
|
+
if (rProps.style) {
|
|
49
|
+
let { left, top, ...others } = rProps.style as any;
|
|
50
|
+
|
|
51
|
+
rPositionX.value = left;
|
|
52
|
+
rPositionY.value = top;
|
|
53
|
+
rPositionZ.value = 0;
|
|
54
|
+
|
|
55
|
+
rDivStyle.value = others;
|
|
56
|
+
}
|
|
57
|
+
if (rProps.position) {
|
|
58
|
+
rPositionX.value = isNaN(rProps.position.x)
|
|
59
|
+
? rPositionX.value
|
|
60
|
+
: rProps.position.x;
|
|
61
|
+
rPositionY.value = isNaN(rProps.position.y)
|
|
62
|
+
? rPositionY.value
|
|
63
|
+
: rProps.position.y;
|
|
64
|
+
rPositionZ.value = isNaN(rProps.position.z)
|
|
65
|
+
? rPositionZ.value
|
|
66
|
+
: rProps.position.z;
|
|
67
|
+
}
|
|
68
|
+
rEnableAA.value = rProps.enableAA ? "1" : "0";
|
|
69
|
+
});
|
|
70
|
+
</script>
|
|
71
|
+
|
|
72
|
+
<template>
|
|
73
|
+
<div
|
|
74
|
+
:style="{
|
|
75
|
+
left: rPositionX,
|
|
76
|
+
top: rPositionY,
|
|
77
|
+
...rDivStyle,
|
|
78
|
+
}"
|
|
79
|
+
:data-jsv-img-enable-aa="rEnableAA"
|
|
80
|
+
v-bind="$attrs"
|
|
81
|
+
:data-jsv-vw-set-z="rPositionZ"
|
|
82
|
+
>
|
|
83
|
+
<slot></slot>
|
|
84
|
+
</div>
|
|
85
|
+
</template>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* @file
|
|
4
|
+
*
|
|
5
|
+
* 【模块 export 内容】
|
|
6
|
+
* JsvPosterDiv:Vue高阶组件,海报描画
|
|
7
|
+
* props说明:
|
|
8
|
+
* @prop {Object} style 包含
|
|
9
|
+
left/top/width/height
|
|
10
|
+
的style设置
|
|
11
|
+
* @prop {number} perspective 透视精神,默认1000,要求透视效果前后差距越大,此值约小,
|
|
12
|
+
推荐档位
|
|
13
|
+
透视效果非常明显的场景: 300
|
|
14
|
+
透视效果适中的场景: 1000~2000
|
|
15
|
+
*/
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<script setup lang="ts">
|
|
19
|
+
import { withDefaults, defineProps } from "vue";
|
|
20
|
+
|
|
21
|
+
const rProps = withDefaults(
|
|
22
|
+
defineProps<{
|
|
23
|
+
style: { top: number; left: number; width: number; height: number };
|
|
24
|
+
perspective: number;
|
|
25
|
+
}>(),
|
|
26
|
+
{
|
|
27
|
+
style: {
|
|
28
|
+
top: 0,
|
|
29
|
+
left: 0,
|
|
30
|
+
width: 0,
|
|
31
|
+
height: 0,
|
|
32
|
+
} as any,
|
|
33
|
+
perspective: 1000,
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<template>
|
|
39
|
+
<div
|
|
40
|
+
:style="{
|
|
41
|
+
left: rProps.style.left,
|
|
42
|
+
top: rProps.style.top,
|
|
43
|
+
width: rProps.style.width,
|
|
44
|
+
height: rProps.style.height,
|
|
45
|
+
perspective: rProps.perspective,
|
|
46
|
+
}"
|
|
47
|
+
>
|
|
48
|
+
<slot></slot>
|
|
49
|
+
</div>
|
|
50
|
+
</template>
|
|
@@ -7,11 +7,4 @@
|
|
|
7
7
|
*/
|
|
8
8
|
//! 考虑到.vue文件除了export default的component外,还有可能export其他对象,因此使用import * as
|
|
9
9
|
import * as JsvApic from "./JsvApic.vue";
|
|
10
|
-
|
|
11
|
-
if (window.JsView) {
|
|
12
|
-
_JsvApic = JsvApic.default;
|
|
13
|
-
} else {
|
|
14
|
-
const BrowserApic = await import("./BrowserApic.vue");
|
|
15
|
-
_JsvApic = BrowserApic.default;
|
|
16
|
-
}
|
|
17
|
-
export default _JsvApic;
|
|
10
|
+
export default JsvApic.default;
|
|
@@ -7,11 +7,4 @@
|
|
|
7
7
|
*/
|
|
8
8
|
//! 考虑到.vue文件除了export default的component外,还有可能export其他对象,因此使用import * as
|
|
9
9
|
import * as JsvApic2 from "./JsvApic2.vue";
|
|
10
|
-
|
|
11
|
-
if (window.JsView) {
|
|
12
|
-
_JsvApic2 = JsvApic2.default;
|
|
13
|
-
} else {
|
|
14
|
-
const BrowserApic2 = await import("./BrowserApic2.vue");
|
|
15
|
-
_JsvApic2 = BrowserApic2.default;
|
|
16
|
-
}
|
|
17
|
-
export default _JsvApic2;
|
|
10
|
+
export default JsvApic2.default
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* alignSelf: auto|flex-start|flex-end|center|stretch 默认auto, 覆盖container的alignItems设置
|
|
28
28
|
* 特别注意: 这些属性会引起位置对齐问题, 所以会自动去掉: "overflow:hidden"
|
|
29
29
|
* askSize: boolean 设置会跟进flex的尺寸变化,设置后可通过getWidth/getHeight拿到尺寸,但会降低性能
|
|
30
|
-
* onSized: Function 比askSize更进一步,可以通过回调知道尺寸变化后的时机,回调参数(width, height)为flex后的尺寸
|
|
30
|
+
* onSized: Function(width:number, height:number) 比askSize更进一步,可以通过回调知道尺寸变化后的时机,回调参数(width, height)为flex后的尺寸
|
|
31
31
|
*
|
|
32
32
|
* expose说明:
|
|
33
33
|
* getWidth(): 当askSize或者onSize生效时,获取元素的宽度
|