@shijiu/jsview-vue 2.1.482-test.0 → 2.2.128
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/browser/BrowserApic.vue.mjs +2 -1
- package/bin/browser/BrowserApic2.vue.mjs +2 -1
- package/bin/browser/BrowserApicLib.mjs +2 -1
- package/bin/browser/BrowserQrcode.vue.mjs +3 -1
- package/bin/browser/BrowserTextureAnim.vue.mjs +15 -7
- package/bin/jsview-vue.mjs +1734 -916
- package/bin/types/JsViewEngineWidget/CheckType.d.ts +3 -0
- package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +102 -0
- package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +88 -0
- package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +10 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/Const.d.ts +16 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/Dispatcher.d.ts +14 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +158 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +158 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +46 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +21 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +46 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/Slide.d.ts +21 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/SlotComponent.vue.d.ts +48 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/VisibleInfo.d.ts +16 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +17 -0
- package/bin/types/JsViewEngineWidget/RangeModel.d.ts +162 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +37 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/Fence.d.ts +58 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +15 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +91 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +22 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/index.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/WidgetCommon.d.ts +143 -0
- package/bin/types/JsViewEngineWidget/index.d.ts +6 -0
- package/bin/types/JsViewPlugin/JsvAccount/JsvAccount.d.ts +42 -0
- package/bin/types/JsViewPlugin/JsvAudio/AudioProxy.d.ts +2 -0
- package/bin/types/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +18 -0
- package/bin/types/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +208 -0
- package/bin/types/JsViewPlugin/JsvAudio/CheckType.d.ts +2 -0
- package/bin/types/JsViewPlugin/JsvAudio/Events.d.ts +13 -0
- package/bin/types/JsViewPlugin/JsvAudio/JsvAudio.vue.d.ts +18 -0
- package/bin/types/JsViewPlugin/JsvAudio/JsvAudioBridgeProxy.d.ts +8 -0
- package/bin/types/JsViewPlugin/JsvAudio/JsvAudioProxy.vue.d.ts +2 -0
- package/bin/types/JsViewPlugin/JsvAudio/PluginLoader.d.ts +1 -0
- package/bin/types/JsViewPlugin/JsvAudio/ScreenLockManager.d.ts +5 -0
- package/bin/types/JsViewPlugin/JsvAudio/index.d.ts +3 -0
- package/bin/types/JsViewPlugin/JsvAudio/version.d.ts +10 -0
- package/bin/types/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +1 -0
- package/bin/types/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue.d.ts +13 -0
- package/bin/types/JsViewPlugin/JsvLatex/Color.d.ts +1 -0
- package/bin/types/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +17 -0
- package/bin/types/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +3 -0
- package/bin/types/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +2 -0
- package/bin/types/JsViewPlugin/JsvLatex/PluginLoader.d.ts +1 -0
- package/bin/types/JsViewPlugin/JsvLatex/index.d.ts +3 -0
- package/bin/types/JsViewPlugin/JsvLatex/version.d.ts +10 -0
- package/bin/types/JsViewPlugin/index.d.ts +3 -0
- package/bin/types/JsViewVueTools/ConstSymbol.d.ts +2 -0
- package/bin/types/JsViewVueTools/DebugContentShellJBridge.d.ts +6 -0
- package/bin/types/JsViewVueTools/DebugTool.d.ts +8 -0
- package/bin/types/JsViewVueTools/DefaultKeyMap.d.ts +10 -0
- package/bin/types/JsViewVueTools/ForgeConstDefine.d.ts +11 -0
- package/bin/types/JsViewVueTools/ForgeHandles.d.ts +6 -0
- package/bin/types/JsViewVueTools/JsvDemoTester.d.ts +2 -0
- package/bin/types/JsViewVueTools/JsvDynamicCssStyle.d.ts +14 -0
- package/bin/types/JsViewVueTools/JsvDynamicKeyFrames.d.ts +21 -0
- package/bin/types/JsViewVueTools/JsvHashHistory.d.ts +16 -0
- package/bin/types/JsViewVueTools/JsvImpactTracer.d.ts +40 -0
- package/bin/types/JsViewVueTools/JsvRefTaker.d.ts +27 -0
- package/bin/types/JsViewVueTools/JsvRuntimeBridge.d.ts +279 -0
- package/bin/types/JsViewVueTools/JsvStyleClass.d.ts +31 -0
- package/bin/types/JsViewVueTools/JsvStyleSheetsDeclarer.d.ts +15 -0
- package/bin/types/JsViewVueTools/JsvTextTools.d.ts +37 -0
- package/bin/types/JsViewVueTools/JsvTextureDefines.d.ts +6 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +95 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +15 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +75 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +11 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +24 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/Store.d.ts +10 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/Texture.d.ts +23 -0
- package/bin/types/JsViewVueTools/NinePatchHelper.d.ts +21 -0
- package/bin/types/JsViewVueTools/TypeCheckAndSet.d.ts +2 -0
- package/bin/types/JsViewVueTools/index.d.ts +14 -0
- package/bin/types/JsViewVueWidget/JsvActorMove/ActorControlBase.d.ts +31 -0
- package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +64 -0
- package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMoveControl.d.ts +33 -0
- package/bin/types/JsViewVueWidget/JsvActorMove/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue.d.ts +15 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue.d.ts +50 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +13 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +23 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +13 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +3 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/GifData.d.ts +5 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +7 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +12 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +5 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/Viewer.d.ts +19 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/WebpData.d.ts +5 -0
- package/bin/types/{jsview-vue-common.d.mts → JsViewVueWidget/JsvApic/JsvCommonLoopToolBase.d.ts} +12 -13
- package/bin/types/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +1 -0
- package/bin/types/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +13 -0
- package/bin/types/JsViewVueWidget/JsvConnectLine/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvEnableRenderBreak.vue.d.ts +51 -0
- package/bin/types/JsViewVueWidget/JsvFilterView.vue.d.ts +72 -0
- package/bin/types/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +72 -0
- package/bin/types/JsViewVueWidget/JsvFlexCell/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/ActionRefObject.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +65 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/ActorState.d.ts +6 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.d.ts +11 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.d.ts +15 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +78 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +84 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +6 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +71 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +95 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +62 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +12 -0
- package/bin/types/JsViewVueWidget/JsvGrid.vue.d.ts +168 -0
- package/bin/types/JsViewVueWidget/JsvHole.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +36 -0
- package/bin/types/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +210 -0
- package/bin/types/JsViewVueWidget/JsvInput/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +12 -0
- package/bin/types/JsViewVueWidget/JsvLine/LineManager.d.ts +1 -0
- package/bin/types/JsViewVueWidget/JsvLine/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvMarquee.vue.d.ts +12 -0
- package/bin/types/JsViewVueWidget/JsvMaskClipDiv.vue.d.ts +83 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/CommonType.d.ts +1 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/Constant.d.ts +9 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/DataTree.d.ts +69 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/Geometry.d.ts +68 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/JsvMindMap.vue.d.ts +145 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/index.d.ts +1 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/rtree.d.ts +40 -0
- package/bin/types/JsViewVueWidget/JsvNativeSharedDiv.vue.d.ts +69 -0
- package/bin/types/JsViewVueWidget/JsvNinePatch.vue.d.ts +19 -0
- package/bin/types/JsViewVueWidget/JsvPieChart.vue.d.ts +9 -0
- package/bin/types/JsViewVueWidget/JsvPosterDiv.vue.d.ts +60 -0
- package/bin/types/JsViewVueWidget/JsvPosterImage.vue.d.ts +75 -0
- package/bin/types/JsViewVueWidget/JsvPreload/BrowserPreload.vue.d.ts +10 -0
- package/bin/types/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +25 -0
- package/bin/types/JsViewVueWidget/JsvPreload/index.d.ts +17 -0
- package/bin/types/JsViewVueWidget/JsvProgressBar.vue.d.ts +12 -0
- package/bin/types/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue.d.ts +11 -0
- package/bin/types/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +60 -0
- package/bin/types/JsViewVueWidget/JsvQrcode/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvRadarChart.vue.d.ts +13 -0
- package/bin/types/JsViewVueWidget/JsvRipple/Constant.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +84 -0
- package/bin/types/JsViewVueWidget/JsvRipple/index.d.ts +3 -0
- package/bin/types/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +10 -0
- package/bin/types/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +176 -0
- package/bin/types/JsViewVueWidget/JsvScrollBox/ScrollSymbol.d.ts +7 -0
- package/bin/types/JsViewVueWidget/JsvScrollBox/index.d.ts +1 -0
- package/bin/types/JsViewVueWidget/JsvSector.vue.d.ts +10 -0
- package/bin/types/JsViewVueWidget/JsvSoundPool.d.ts +84 -0
- package/bin/types/JsViewVueWidget/JsvSpray/BrowserSpray.vue.d.ts +25 -0
- package/bin/types/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +38 -0
- package/bin/types/JsViewVueWidget/JsvSpray/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/FrameBuidler.d.ts +14 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +18 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +69 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteTools.d.ts +11 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/SpriteController.d.ts +17 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/index.d.ts +5 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvSwiper/JsvSwiper.vue.d.ts +209 -0
- package/bin/types/JsViewVueWidget/JsvSwiper/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue.d.ts +97 -0
- package/bin/types/JsViewVueWidget/JsvSwiper3D/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvTextBox.vue.d.ts +75 -0
- package/bin/types/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue.d.ts +151 -0
- package/bin/types/JsViewVueWidget/JsvTextureAnim/CommonType.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +107 -0
- package/bin/types/JsViewVueWidget/JsvTextureAnim/index.d.ts +14 -0
- package/bin/types/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +84 -0
- package/bin/types/JsViewVueWidget/JsvVisibleSensor/index.d.ts +84 -0
- package/bin/types/JsViewVueWidget/index.d.ts +38 -0
- package/bin/types/index.d.ts +4 -0
- package/index.d.ts +1 -1
- package/package.json +1 -1
- package/tools/config/tsconfig.json +6 -6
- package/tools/jsview-vue-build.mjs +13 -4
- package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +7 -4
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +28 -6
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +568 -369
- package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +4 -3
- package/utils/JsViewEngineWidget/MetroWidget/Slide.ts +56 -0
- package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +51 -10
- package/utils/JsViewEngineWidget/MetroWidget/TokenGenerator.ts +10 -0
- package/utils/JsViewEngineWidget/MetroWidget/VisibleInfo.ts +1 -1
- package/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.ts +21 -21
- package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +13 -7
- package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +35 -45
- package/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.ts +6 -6
- package/utils/JsViewEngineWidget/WidgetCommon.ts +34 -5
- package/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer.vue +13 -1
- package/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue +470 -338
- package/utils/JsViewVueTools/ConstSymbol.ts +3 -0
- package/utils/JsViewVueTools/ForgeConstDefine.ts +11 -0
- package/utils/JsViewVueTools/JsvRuntimeBridge.js +166 -48
- package/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.ts +62 -0
- package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +41 -7
- package/utils/JsViewVueTools/JsvTextureStore/Texture.ts +15 -1
- package/utils/JsViewVueTools/index.js +2 -0
- package/utils/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue +6 -6
- package/utils/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue +5 -6
- package/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/ApicDataBase.js +5 -1
- package/utils/JsViewVueWidget/JsvFreeMoveActor/ActionRefObject.ts +1 -1
- package/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.ts +23 -1
- package/utils/JsViewVueWidget/JsvFreeMoveActor/ActorState.ts +4 -4
- package/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.ts +6 -6
- package/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.ts +1 -1
- package/utils/JsViewVueWidget/JsvFreeMoveActor/FreeMoveActor.vue +43 -9
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.ts +24 -0
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.ts +58 -1
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.ts +56 -0
- package/utils/JsViewVueWidget/JsvFreeMoveActor/index.js +3 -0
- package/utils/JsViewVueWidget/JsvMaskClipDiv.vue +6 -1
- package/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue +1 -1
- package/utils/JsViewVueWidget/JsvMindMap/rtree.js +1 -1
- package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +121 -68
- package/utils/JsViewVueWidget/JsvNinePatch.vue +4 -1
- package/utils/JsViewVueWidget/JsvPosterImage.vue +22 -9
- package/utils/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue +6 -2
- package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue +309 -0
- package/utils/JsViewVueWidget/JsvScrollBox/ScrollSymbol.ts +15 -0
- package/utils/JsViewVueWidget/JsvScrollBox/index.js +2 -0
- package/utils/JsViewVueWidget/JsvTextBox.vue +24 -4
- package/utils/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue +27 -9
- package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +2 -0
- package/utils/JsViewVueWidget/index.js +1 -0
- package/bin/types/browser/BrowserApic.vue.d.mts +0 -33
- package/bin/types/browser/BrowserApic2.vue.d.mts +0 -16
- package/bin/types/browser/BrowserApicLib.d.mts +0 -56
- package/bin/types/browser/BrowserAudio.vue.d.mts +0 -2
- package/bin/types/browser/BrowserJsvLatex.vue.d.mts +0 -55
- package/bin/types/browser/BrowserPreload.vue.d.mts +0 -14
- package/bin/types/browser/BrowserQrcode.vue.d.mts +0 -29
- package/bin/types/browser/BrowserSpray.vue.d.mts +0 -2
- package/bin/types/browser/BrowserTextureAnim.vue.d.mts +0 -2
- package/bin/types/export-sfc.d.mts +0 -2
- package/bin/types/jsview-vue.d.mts +0 -2511
|
@@ -3,11 +3,15 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
* JsvTextBox:Vue
|
|
6
|
+
* JsvTextBox:Vue高阶组件,用于文字绘制要精细调整的场景,
|
|
7
|
+
* 注意: 其中Jsv打头的属性为内部属性,不要在组件外直接使用,规避后续调整时进行变名等调整导致使用不了。
|
|
7
8
|
* props说明:
|
|
8
9
|
* verticalAlign {string} 垂直对齐方式 (必需) top、middle、bottom
|
|
9
10
|
* style {object} 样式(必需)
|
|
10
11
|
* enableLatex {bool} 是否启用Latex文字描画模式
|
|
12
|
+
* textDirection {string} 文字方向,主要考虑阿拉伯语的方向场景
|
|
13
|
+
* syncDraw {string} 文字较长时,是强制同步绘制还是自动的进入异步绘制,可选"auto","sync","async"
|
|
14
|
+
* 其中"async"为强制包含短文字的场景也异步绘制
|
|
11
15
|
* latex语法样例
|
|
12
16
|
* 1. 颜色: "测试\\textcolor{#FF0000}{红色}文字"
|
|
13
17
|
* 2. 加粗: "测试\\textb{加粗}文字"
|
|
@@ -33,11 +37,14 @@ const props = defineProps({
|
|
|
33
37
|
default: "middle",
|
|
34
38
|
},
|
|
35
39
|
enableLatex: Boolean,
|
|
36
|
-
className: String,
|
|
37
40
|
textDirection: {
|
|
38
41
|
type: String,
|
|
39
42
|
default: "unset",
|
|
40
43
|
},
|
|
44
|
+
syncDraw: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: "auto",
|
|
47
|
+
},
|
|
41
48
|
});
|
|
42
49
|
|
|
43
50
|
const computeAlignItems = computed(() => {
|
|
@@ -51,6 +58,18 @@ const computeAlignItems = computed(() => {
|
|
|
51
58
|
return "center";
|
|
52
59
|
}
|
|
53
60
|
});
|
|
61
|
+
|
|
62
|
+
const textWidth = computed(() => {
|
|
63
|
+
let w = props.style?.width;
|
|
64
|
+
if (typeof w == "undefined") {
|
|
65
|
+
w = 0;
|
|
66
|
+
}
|
|
67
|
+
return w;
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
const jsvTextLatexValue = computed(() => {
|
|
71
|
+
return props.enableLatex ? 1 : 0;
|
|
72
|
+
});
|
|
54
73
|
</script>
|
|
55
74
|
|
|
56
75
|
<template>
|
|
@@ -63,11 +82,12 @@ const computeAlignItems = computed(() => {
|
|
|
63
82
|
>
|
|
64
83
|
<div
|
|
65
84
|
:style="{
|
|
66
|
-
width:
|
|
67
|
-
JsvTextLatex:
|
|
85
|
+
width: textWidth,
|
|
86
|
+
JsvTextLatex: jsvTextLatexValue,
|
|
68
87
|
JsvTextLineAlign: lineAlign,
|
|
69
88
|
JsvTextInnerDirection: textDirection,
|
|
70
89
|
}"
|
|
90
|
+
:data-jsv-perf-loadtex="props.syncDraw"
|
|
71
91
|
>
|
|
72
92
|
<slot />
|
|
73
93
|
</div>
|
|
@@ -5,6 +5,12 @@
|
|
|
5
5
|
* @Description: file content
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
|
+
// Forge共享数据引用,在Browser处理中window引用,规避Browser触发vite循环引用bug
|
|
9
|
+
const forgeTextureManager = window.JsvCode.ForgeHandles.TextureManager;
|
|
10
|
+
const renderDocument = window.JsvCode.Dom.RenderDocument
|
|
11
|
+
? window.JsvCode.Dom.RenderDocument
|
|
12
|
+
: window.JsvCode.Dom.BrowserDocument;
|
|
13
|
+
|
|
8
14
|
const DECORATE_BORDER_RADIUS = "BroderRaidus";
|
|
9
15
|
const DECORATE_NINEPATCH_ALPHA_MIX = "NinePatchAlphaMix";
|
|
10
16
|
const TexAlignAnchor = {
|
|
@@ -176,13 +182,25 @@ export default {
|
|
|
176
182
|
);
|
|
177
183
|
console.log("get mask style");
|
|
178
184
|
const transitionTime = this.decorate.animTime;
|
|
185
|
+
|
|
186
|
+
let decorate_url = this.decorate.url;
|
|
187
|
+
// 加入对 jsvtexturestore 模式的支持
|
|
188
|
+
// 特别注意: chromiumn 102版本上,当jsvtexturestore对应内容首次加载时不能显示,此divstyle变化后才能显示
|
|
189
|
+
if (
|
|
190
|
+
this.decorate.url &&
|
|
191
|
+
this.decorate.url.startsWith("jsvtexturestore:")
|
|
192
|
+
) {
|
|
193
|
+
let view_texture = forgeTextureManager.GetImage2(this.decorate.url);
|
|
194
|
+
decorate_url = `url(${view_texture.Source})`;
|
|
195
|
+
}
|
|
196
|
+
|
|
179
197
|
return {
|
|
180
198
|
left: this.left + "px",
|
|
181
199
|
top: this.top + "px",
|
|
182
200
|
width: this.width + "px",
|
|
183
201
|
height: this.height + "px",
|
|
184
202
|
transition: `left ${transitionTime}s, top ${transitionTime}s, width ${transitionTime}s, height ${transitionTime}s`,
|
|
185
|
-
webkitMaskBoxImageSource:
|
|
203
|
+
webkitMaskBoxImageSource: decorate_url,
|
|
186
204
|
webkitMaskBoxImageSlice: slideWidth,
|
|
187
205
|
webkitMaskBoxImageWidth:
|
|
188
206
|
Math.ceil(
|
|
@@ -246,11 +264,11 @@ export default {
|
|
|
246
264
|
},
|
|
247
265
|
|
|
248
266
|
insertKeyframe(animDefine) {
|
|
249
|
-
const index =
|
|
250
|
-
|
|
267
|
+
const index = renderDocument.styleSheets[0].cssRules.length;
|
|
268
|
+
renderDocument.styleSheets[0].insertRule(animDefine, index);
|
|
251
269
|
},
|
|
252
270
|
removeKeyframe(animName) {
|
|
253
|
-
const styleSheetRef =
|
|
271
|
+
const styleSheetRef = renderDocument.styleSheets[0];
|
|
254
272
|
const cssRulesRef = styleSheetRef.cssRules;
|
|
255
273
|
// 对CssRules进行删除操作,倒序轮询
|
|
256
274
|
for (let i = cssRulesRef.length - 1; i >= 0; i--) {
|
|
@@ -264,24 +282,24 @@ export default {
|
|
|
264
282
|
mounted() {
|
|
265
283
|
if (this.animation) {
|
|
266
284
|
//此控件直接操作dom因此不走JsvDynamicKeyframes, 直接通过dom添加keyframes
|
|
267
|
-
this.insertKeyframe("@keyframes " + this.animName + " " + this.animation)
|
|
285
|
+
this.insertKeyframe("@keyframes " + this.animName + " " + this.animation);
|
|
268
286
|
}
|
|
269
287
|
|
|
270
288
|
this.$refs.root.jsvGetProxyView().RegisterOnProxyReady(() => {
|
|
271
289
|
const root = this.$refs.root.jsvGetProxyView().HtmlGetElement();
|
|
272
290
|
//绕过 jsview 对document 的 hook
|
|
273
|
-
this.clipDiv =
|
|
291
|
+
this.clipDiv = renderDocument.createElement("div");
|
|
274
292
|
Object.assign(this.clipDiv.style, this.maskStyle);
|
|
275
293
|
|
|
276
294
|
const textureLayout = this.textureLayout;
|
|
277
|
-
this.animDiv =
|
|
295
|
+
this.animDiv = renderDocument.createElement("div");
|
|
278
296
|
Object.assign(this.animDiv.style, textureLayout);
|
|
279
297
|
this.animDiv.onanimationend = () => {
|
|
280
298
|
this.animDiv.style.animation = null;
|
|
281
299
|
this.onAnimationEnd?.();
|
|
282
300
|
};
|
|
283
301
|
|
|
284
|
-
this.imgDiv =
|
|
302
|
+
this.imgDiv = renderDocument.createElement("div");
|
|
285
303
|
this.imgDiv.style.width = textureLayout.width;
|
|
286
304
|
this.imgDiv.style.height = textureLayout.height;
|
|
287
305
|
this.imgDiv.style.backgroundImage = `url(${this.src})`;
|
|
@@ -338,4 +356,4 @@ export default {
|
|
|
338
356
|
|
|
339
357
|
<template>
|
|
340
358
|
<div ref="root"></div>
|
|
341
|
-
</template>
|
|
359
|
+
</template>
|
|
@@ -337,6 +337,7 @@ export default {
|
|
|
337
337
|
1
|
|
338
338
|
);
|
|
339
339
|
this.forgeAnimation.EnableDelay(this.delay).SetRepeat(this.repeat);
|
|
340
|
+
this.forgeAnimation.Enable(Forge.AnimationEnable.ReleaseAfterEndCallback);
|
|
340
341
|
this.forgeAnimation.SetAnimationListener(
|
|
341
342
|
new Forge.AnimationListener(null, this._onAnimationEnd, null)
|
|
342
343
|
);
|
|
@@ -373,6 +374,7 @@ export default {
|
|
|
373
374
|
1
|
|
374
375
|
);
|
|
375
376
|
this.forgeAnimation.EnableDelay(this.delay).SetRepeat(this.repeat);
|
|
377
|
+
this.forgeAnimation.Enable(Forge.AnimationEnable.ReleaseAfterEndCallback);
|
|
376
378
|
this.forgeAnimation.SetAnimationListener(
|
|
377
379
|
new Forge.AnimationListener(null, this._onAnimationEnd, null)
|
|
378
380
|
);
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export { _sfc_main as default };
|
|
2
|
-
declare namespace _sfc_main {
|
|
3
|
-
const __name: string;
|
|
4
|
-
namespace props {
|
|
5
|
-
const src: StringConstructor;
|
|
6
|
-
const style: ObjectConstructor;
|
|
7
|
-
namespace autoPlay {
|
|
8
|
-
export const type: BooleanConstructor;
|
|
9
|
-
const _default: boolean;
|
|
10
|
-
export { _default as default };
|
|
11
|
-
}
|
|
12
|
-
namespace loopType {
|
|
13
|
-
const type_1: NumberConstructor;
|
|
14
|
-
export { type_1 as type };
|
|
15
|
-
const _default_1: number;
|
|
16
|
-
export { _default_1 as default };
|
|
17
|
-
}
|
|
18
|
-
namespace loopInfo {
|
|
19
|
-
const type_2: ArrayConstructor;
|
|
20
|
-
export { type_2 as type };
|
|
21
|
-
function _default_2(): number[][];
|
|
22
|
-
export { _default_2 as default };
|
|
23
|
-
}
|
|
24
|
-
const onStart: FunctionConstructor;
|
|
25
|
-
const onEnd: FunctionConstructor;
|
|
26
|
-
const onLoad: FunctionConstructor;
|
|
27
|
-
}
|
|
28
|
-
function setup(__props: any, { expose }: {
|
|
29
|
-
expose: any;
|
|
30
|
-
}): (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
31
|
-
[key: string]: any;
|
|
32
|
-
}>;
|
|
33
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export { _sfc_main as default };
|
|
2
|
-
declare namespace _sfc_main {
|
|
3
|
-
const __name: string;
|
|
4
|
-
namespace props {
|
|
5
|
-
const src: StringConstructor;
|
|
6
|
-
const style: ObjectConstructor;
|
|
7
|
-
const onStart: FunctionConstructor;
|
|
8
|
-
const onEnd: FunctionConstructor;
|
|
9
|
-
const onLoad: FunctionConstructor;
|
|
10
|
-
}
|
|
11
|
-
function setup(__props: any, { expose }: {
|
|
12
|
-
expose: any;
|
|
13
|
-
}): (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
14
|
-
[key: string]: any;
|
|
15
|
-
}>;
|
|
16
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
declare class GifData extends ApicDataBase {
|
|
2
|
-
toImage(frame_index: any, canvas: any, canvas_ctx: any): any;
|
|
3
|
-
}
|
|
4
|
-
declare class Viewer {
|
|
5
|
-
constructor(apic_data: any, canvas: any, listener: any);
|
|
6
|
-
_ApicData: any;
|
|
7
|
-
_Canvas: any;
|
|
8
|
-
_Context: any;
|
|
9
|
-
_Listener: any;
|
|
10
|
-
_TimeoutId: number;
|
|
11
|
-
_EndState: number;
|
|
12
|
-
_createLoopTool(loop_type: any, loop_info: any): void;
|
|
13
|
-
_LoopTool: PartLoopTool | NormalLoopTool | SingleLoopTool | undefined;
|
|
14
|
-
stop(): void;
|
|
15
|
-
play(loopType: any, loopInfo: any, endState?: number): void;
|
|
16
|
-
renderLoop(): void;
|
|
17
|
-
renderFrame(frame_index: any): any;
|
|
18
|
-
}
|
|
19
|
-
declare class WebpData extends ApicDataBase {
|
|
20
|
-
toImage(frame_index: any, canvas: any, canvas_ctx: any): any;
|
|
21
|
-
}
|
|
22
|
-
declare class ApicDataBase {
|
|
23
|
-
constructor(arrayBuffer: any);
|
|
24
|
-
LoopCount: number;
|
|
25
|
-
FrameCount: number;
|
|
26
|
-
Width: number;
|
|
27
|
-
Height: number;
|
|
28
|
-
_Canvas: any;
|
|
29
|
-
_Context: any;
|
|
30
|
-
_DecodedData: any;
|
|
31
|
-
decode(arrayBuffer: any): void;
|
|
32
|
-
toImage(frameIndex: any, canvas: any, canvasCtx: any): void;
|
|
33
|
-
}
|
|
34
|
-
declare class PartLoopTool extends LoopToolBase {
|
|
35
|
-
constructor(info_list: any);
|
|
36
|
-
mLoopPeriod: number;
|
|
37
|
-
mCurLoopStartFrame: number;
|
|
38
|
-
mCurLoopEndFrame: number;
|
|
39
|
-
mCurLoopNum: number;
|
|
40
|
-
mCurLoopCount: number;
|
|
41
|
-
mLoopInfo: any;
|
|
42
|
-
mValid: boolean | undefined;
|
|
43
|
-
updateLoop(): boolean;
|
|
44
|
-
}
|
|
45
|
-
declare class NormalLoopTool extends LoopToolBase {
|
|
46
|
-
constructor(loop_type: any, loop_num: any);
|
|
47
|
-
mLoopType: any;
|
|
48
|
-
mLoopCount: number;
|
|
49
|
-
mValid: boolean | undefined;
|
|
50
|
-
}
|
|
51
|
-
declare class SingleLoopTool extends LoopToolBase {
|
|
52
|
-
constructor(index: any);
|
|
53
|
-
mTargetIndex: any;
|
|
54
|
-
}
|
|
55
|
-
import { a as LoopToolBase } from "../jsview-vue-common.mjs";
|
|
56
|
-
export { GifData as G, Viewer as V, WebpData as W };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
export { _sfc_main as default };
|
|
2
|
-
declare namespace _sfc_main {
|
|
3
|
-
const __name: string;
|
|
4
|
-
namespace props {
|
|
5
|
-
namespace latexStr {
|
|
6
|
-
const type: StringConstructor;
|
|
7
|
-
const required: boolean;
|
|
8
|
-
}
|
|
9
|
-
namespace width {
|
|
10
|
-
const type_1: NumberConstructor;
|
|
11
|
-
export { type_1 as type };
|
|
12
|
-
const required_1: boolean;
|
|
13
|
-
export { required_1 as required };
|
|
14
|
-
}
|
|
15
|
-
namespace height {
|
|
16
|
-
const type_2: NumberConstructor;
|
|
17
|
-
export { type_2 as type };
|
|
18
|
-
const _default: number;
|
|
19
|
-
export { _default as default };
|
|
20
|
-
}
|
|
21
|
-
namespace fontSize {
|
|
22
|
-
const type_3: NumberConstructor;
|
|
23
|
-
export { type_3 as type };
|
|
24
|
-
const _default_1: number;
|
|
25
|
-
export { _default_1 as default };
|
|
26
|
-
}
|
|
27
|
-
namespace lineSpace {
|
|
28
|
-
const type_4: NumberConstructor;
|
|
29
|
-
export { type_4 as type };
|
|
30
|
-
const _default_2: number;
|
|
31
|
-
export { _default_2 as default };
|
|
32
|
-
}
|
|
33
|
-
namespace color {
|
|
34
|
-
const type_5: StringConstructor;
|
|
35
|
-
export { type_5 as type };
|
|
36
|
-
const _default_3: string;
|
|
37
|
-
export { _default_3 as default };
|
|
38
|
-
}
|
|
39
|
-
namespace left {
|
|
40
|
-
const type_6: NumberConstructor;
|
|
41
|
-
export { type_6 as type };
|
|
42
|
-
const _default_4: number;
|
|
43
|
-
export { _default_4 as default };
|
|
44
|
-
}
|
|
45
|
-
namespace top {
|
|
46
|
-
const type_7: NumberConstructor;
|
|
47
|
-
export { type_7 as type };
|
|
48
|
-
const _default_5: number;
|
|
49
|
-
export { _default_5 as default };
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
function setup(__props: any): (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
53
|
-
[key: string]: any;
|
|
54
|
-
}>;
|
|
55
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export { _sfc_main as default };
|
|
2
|
-
declare namespace _sfc_main {
|
|
3
|
-
const __name: string;
|
|
4
|
-
namespace props {
|
|
5
|
-
const preloadList: ArrayConstructor;
|
|
6
|
-
const downloadList: ArrayConstructor;
|
|
7
|
-
const onPreloadDone: FunctionConstructor;
|
|
8
|
-
const onDownloadDone: FunctionConstructor;
|
|
9
|
-
const onPreloading: FunctionConstructor;
|
|
10
|
-
}
|
|
11
|
-
function setup(__props: any): (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
}>;
|
|
14
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export { _sfc_main as default };
|
|
2
|
-
declare namespace _sfc_main {
|
|
3
|
-
const __name: string;
|
|
4
|
-
namespace props {
|
|
5
|
-
const value: StringConstructor;
|
|
6
|
-
const size: NumberConstructor;
|
|
7
|
-
namespace fgColor {
|
|
8
|
-
export const type: StringConstructor;
|
|
9
|
-
const _default: string;
|
|
10
|
-
export { _default as default };
|
|
11
|
-
}
|
|
12
|
-
namespace bgColor {
|
|
13
|
-
const type_1: StringConstructor;
|
|
14
|
-
export { type_1 as type };
|
|
15
|
-
const _default_1: string;
|
|
16
|
-
export { _default_1 as default };
|
|
17
|
-
}
|
|
18
|
-
namespace level {
|
|
19
|
-
const type_2: StringConstructor;
|
|
20
|
-
export { type_2 as type };
|
|
21
|
-
const _default_2: string;
|
|
22
|
-
export { _default_2 as default };
|
|
23
|
-
}
|
|
24
|
-
const imageSettings: ObjectConstructor;
|
|
25
|
-
}
|
|
26
|
-
function setup(__props: any): (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
}>;
|
|
29
|
-
}
|