@shijiu/jsview-vue 2.3.151-test.0 → 3.0.0-test.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/browser/BrowserAudio.mjs +200 -0
- package/bin/browser/BrowserJsvLatex.mjs +61 -0
- package/bin/export-sfc.mjs +8 -9
- package/bin/jsview-vue-common.mjs +9 -35
- package/bin/jsview-vue.mjs +22246 -23643
- package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +9 -71
- 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/DebugFrame.vue.d.ts +10 -7
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +19 -178
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +19 -178
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +24 -3
- 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/SlotComponent.vue.d.ts +9 -47
- 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 +40 -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 +2 -1
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +2 -1
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +6 -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/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +140 -7
- package/bin/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +12 -11
- package/bin/types/utils/JsViewPlugin/JsvAudio/Events.d.ts +10 -10
- package/bin/types/utils/JsViewPlugin/JsvAudio/JsvAudio.vue.d.ts +204 -17
- package/bin/types/utils/JsViewPlugin/JsvAudio/JsvAudioProxy.vue.d.ts +2 -1
- package/bin/types/utils/JsViewPlugin/JsvAudio/version.d.mts +11 -11
- package/bin/types/utils/JsViewPlugin/JsvAudio/version.d.ts +11 -11
- package/bin/types/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +0 -1
- package/bin/types/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue.d.ts +75 -12
- package/bin/types/utils/JsViewPlugin/JsvLatex/GetVersion.d.ts +14 -0
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +88 -13
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +1 -0
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +5 -1
- package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +39 -12
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +120 -17
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +62 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +108 -29
- package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue.d.ts → JsvPlayerBrowser-0.9.vue.d.ts} +8 -7
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-wasm.vue.d.ts +614 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer.vue.d.ts → JsvPlayerBrowser.vue.d.ts} +36 -34
- package/bin/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +89 -30
- package/bin/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +89 -30
- package/bin/types/utils/JsViewPlugin/JsvPlayer/version.d.mts +11 -11
- package/bin/types/utils/JsViewVueTools/BlobApi.d.ts +38 -0
- package/bin/types/utils/JsViewVueTools/DebugTool.d.ts +1 -1
- package/bin/types/utils/JsViewVueTools/DefaultKeyMap.d.ts +7 -7
- 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 +3 -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 +4 -1
- package/bin/types/utils/JsViewVueWidget/Jsv3dDiv.vue.d.ts +10 -98
- package/bin/types/utils/JsViewVueWidget/Jsv3dStage.vue.d.ts +10 -114
- package/bin/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +20 -61
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue.d.ts +44 -13
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue.d.ts +12 -11
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +5 -5
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +16 -10
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +21 -17
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +19 -16
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvCommonLoopToolBase.d.ts +7 -7
- package/bin/types/utils/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue.d.ts +12 -66
- package/bin/types/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +73 -12
- package/bin/types/utils/JsViewVueWidget/JsvDashPath.vue.d.ts +59 -10
- package/bin/types/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue.d.ts +41 -81
- package/bin/types/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue.d.ts +17 -100
- package/bin/types/utils/JsViewVueWidget/JsvEnableRenderBreak.vue.d.ts +13 -50
- package/bin/types/utils/JsViewVueWidget/JsvFilterView.vue.d.ts +50 -70
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +32 -68
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue.d.ts +57 -74
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +41 -71
- package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +83 -14
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +151 -18
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +79 -83
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvFreeMoveActor.vue.d.ts +70 -0
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +20 -0
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +108 -5
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +88 -3
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +6 -1
- package/bin/types/utils/JsViewVueWidget/JsvGrid.vue.d.ts +19 -18
- package/bin/types/utils/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +34 -11
- package/bin/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +4 -1
- package/bin/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +193 -6
- package/bin/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +54 -11
- package/bin/types/utils/JsViewVueWidget/JsvMarquee.vue.d.ts +89 -11
- package/bin/types/utils/JsViewVueWidget/JsvMaskClipDiv.vue.d.ts +9 -8
- package/bin/types/utils/JsViewVueWidget/JsvMindMap/Geometry.d.ts +2 -2
- package/bin/types/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue.d.ts +170 -138
- package/bin/types/utils/JsViewVueWidget/JsvMindMap/rtree.d.ts +5 -5
- package/bin/types/utils/JsViewVueWidget/JsvNativeSharedDiv.vue.d.ts +48 -72
- package/bin/types/utils/JsViewVueWidget/JsvNinePatch.vue.d.ts +139 -20
- package/bin/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +56 -8
- package/bin/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +20 -11
- package/bin/types/utils/JsViewVueWidget/JsvProgressBar.vue.d.ts +63 -11
- package/bin/types/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +8 -7
- package/bin/types/utils/JsViewVueWidget/JsvRadarChart.vue.d.ts +95 -12
- package/bin/types/utils/JsViewVueWidget/JsvRipple/Constant.d.ts +2 -2
- package/bin/types/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +51 -78
- package/bin/types/utils/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +5 -4
- package/bin/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +84 -193
- package/bin/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue.d.ts +23 -148
- package/bin/types/utils/JsViewVueWidget/JsvSector.vue.d.ts +56 -9
- package/bin/types/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue.d.ts +22 -67
- package/bin/types/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +44 -10
- package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +47 -14
- package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +26 -67
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +7 -6
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue.d.ts +147 -109
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue.d.ts +173 -16
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue.d.ts +216 -139
- package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +7 -6
- package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue.d.ts +101 -96
- package/bin/types/utils/JsViewVueWidget/JsvTextBox.vue.d.ts +89 -74
- package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +21 -20
- package/bin/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +43 -70
- package/bin/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +6 -5
- package/bin/types/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +62 -82
- package/bin/types/utils/JsViewVueWidget/JsvVisibleSensor/index.d.ts +95 -74
- package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvPosterDiv.vue.d.ts +51 -0
- package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvPosterImage.vue.d.ts +105 -0
- package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue.d.ts +51 -0
- package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue.d.ts +105 -0
- package/bin/types/utils/JsViewVueWidget/index.d.ts +5 -3
- package/package.json +2 -2
- package/tools/jsview-vue-build.mjs +13 -9
- package/tsconfig.json +2 -2
- 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 +183 -89
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +269 -122
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +989 -357
- 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 +50 -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 +342 -174
- package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +101 -27
- package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +12 -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/GetVersion.js +65 -0
- package/utils/JsViewPlugin/JsvLatex/JsvLatex.vue +54 -12
- package/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.js +10 -0
- package/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue +15 -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 +25 -18
- 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/JsvClipDiv/JsvClipDiv.vue +1 -1
- package/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue +11 -2
- package/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue +1 -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 +242 -25
- package/utils/JsViewVueWidget/JsvFreeMoveActor/{FreeMoveActor.vue → JsvFreeMoveActor.vue} +1 -1
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.ts +11 -5
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.ts +118 -6
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.ts +56 -14
- package/utils/JsViewVueWidget/JsvFreeMoveActor/index.js +2 -1
- package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +11 -2
- package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +30 -2
- package/utils/JsViewVueWidget/JsvLine/JsvLine.vue +24 -7
- package/utils/JsViewVueWidget/JsvMarquee.vue +1 -1
- package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +12 -10
- package/utils/JsViewVueWidget/JsvNinePatch.vue +13 -8
- 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 +25 -3
- package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue +0 -3
- package/utils/JsViewVueWidget/JsvSector.vue +66 -28
- package/utils/JsViewVueWidget/JsvTextBox.vue +30 -1
- 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 +6 -2
- package/bin/browser/BrowserAudio.vue.mjs +0 -258
- package/bin/browser/BrowserJsvLatex.vue.mjs +0 -145
- package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.ts +0 -10
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/DominantColor/GetDominantColor.d.ts +0 -7
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +0 -78
- package/bin/types/utils/JsViewVueWidget/JsvPosterDiv.vue.d.ts +0 -63
- package/bin/types/utils/JsViewVueWidget/JsvPosterImage.vue.d.ts +0 -78
- 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/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue → JsvPlayerBrowser-0.9.vue} +0 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { JsvTextureStoreApi } from "./JsvTextureStore";
|
|
2
|
+
import ForgeHandles from "../../JsViewVueTools/ForgeHandles";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* CircleNinePatchTextureOptions
|
|
6
|
+
* 生成圆角九宫格纹理时的输入参数
|
|
7
|
+
*
|
|
8
|
+
* @property {number} targetCornerRadius 目标圆角半径
|
|
9
|
+
* @property {number} circleLineWidth 圆环描边宽度
|
|
10
|
+
* @property {string} [bgColor] 画布背景色,默认值: rgba(255,255,255,0)
|
|
11
|
+
* @property {string} [circleColor] 圆环描边颜色,默认值: #000000FF
|
|
12
|
+
* @property {number} [displayScale] 显示缩放比例,提高此值一提高清晰度,
|
|
13
|
+
* 默认值: jsview.config.js的designMap.displayScale
|
|
14
|
+
*/
|
|
15
|
+
type CircleNinePatchTextureOptions = {
|
|
16
|
+
cornerRadius: number;
|
|
17
|
+
circleLineWidth: number;
|
|
18
|
+
bgColor?: string;
|
|
19
|
+
circleColor?: string;
|
|
20
|
+
displayScale?: number;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* NinePatchTextureResult
|
|
25
|
+
* 圆角九宫格纹理构建结果
|
|
26
|
+
*
|
|
27
|
+
* @property {number} BorderOutset 九宫格外边距(像素)
|
|
28
|
+
* @property {number} ImageWidth 纹理图片宽度(像素)
|
|
29
|
+
* @property {number} CenterWidth 九宫格中心区域宽度(像素)
|
|
30
|
+
* @property {string} textureUrl 可用于背景图/图片src的纹理访问地址
|
|
31
|
+
*/
|
|
32
|
+
type NinePatchTextureResult = {
|
|
33
|
+
BorderOutset: number;
|
|
34
|
+
ImageWidth: number;
|
|
35
|
+
ImageDspWidth: number;
|
|
36
|
+
CenterWidth: number;
|
|
37
|
+
texAccessName: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* buildCircleNinePatchTexture
|
|
42
|
+
* 生成用于 JsvNinePatch 的圆角九宫格纹理,
|
|
43
|
+
* 并返回可用于样式访问的texture URL与JsvNinePatch的参数
|
|
44
|
+
*
|
|
45
|
+
* 特别注意!!: texAccessName 需要在不使用时使用 JsvTextureStoreApi.deleteTexture 释放资源
|
|
46
|
+
*
|
|
47
|
+
* @param {CircleNinePatchTextureOptions} options 生成圆角九宫格纹理的参数
|
|
48
|
+
* @return {NinePatchTextureResult}
|
|
49
|
+
*/
|
|
50
|
+
function buildCircleNinePatchTexture(
|
|
51
|
+
options: CircleNinePatchTextureOptions
|
|
52
|
+
): NinePatchTextureResult {
|
|
53
|
+
const {
|
|
54
|
+
cornerRadius,
|
|
55
|
+
circleLineWidth,
|
|
56
|
+
bgColor = "rgba(255,255,255,0)", // 默认为透明白色底色
|
|
57
|
+
circleColor = "#000000FF", // 默认为黑色
|
|
58
|
+
displayScale = ForgeHandles.sRenderBridge.GetScreenInfo().scaleRatio,
|
|
59
|
+
} = options;
|
|
60
|
+
const innerRadius2 = Math.floor(cornerRadius * 2 * displayScale);
|
|
61
|
+
const innerLineWidth = Math.floor(circleLineWidth * displayScale);
|
|
62
|
+
const borderOutset = innerLineWidth + 4; // 外延4像素, 因为Canvas绘制外边缘有至少2px的过渡色以提升抗锯齿效果
|
|
63
|
+
const imageWidth = innerRadius2 + borderOutset * 2;
|
|
64
|
+
const centerWidth = 1;
|
|
65
|
+
|
|
66
|
+
const canvasRef = JsvTextureStoreApi.canvasTexture(imageWidth, imageWidth);
|
|
67
|
+
const circleRadius =
|
|
68
|
+
Math.floor(innerRadius2 / 2) + Math.floor(innerLineWidth / 2);
|
|
69
|
+
const circlePath = canvasRef.circlePath(
|
|
70
|
+
Math.floor(imageWidth / 2),
|
|
71
|
+
Math.floor(imageWidth / 2),
|
|
72
|
+
circleRadius
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
canvasRef.drawColor(bgColor);
|
|
76
|
+
circlePath?.stroke(innerLineWidth, circleColor);
|
|
77
|
+
|
|
78
|
+
const sourceId = String(canvasRef.commit());
|
|
79
|
+
return {
|
|
80
|
+
BorderOutset: borderOutset,
|
|
81
|
+
ImageWidth: imageWidth,
|
|
82
|
+
ImageDspWidth: Math.floor(imageWidth / displayScale),
|
|
83
|
+
CenterWidth: centerWidth,
|
|
84
|
+
texAccessName: sourceId,
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const TextureBuilder = {
|
|
89
|
+
buildCircleNinePatchTexture,
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export default TextureBuilder;
|
|
@@ -20,7 +20,7 @@ export * from "./JsvTextTools";
|
|
|
20
20
|
export * from "./JsvPreDownloader"
|
|
21
21
|
export { default as DefaultKeyCodeMap } from "./DefaultKeyMap";
|
|
22
22
|
export * from "./JsvPerformance"
|
|
23
|
-
export * from "./JsvTextureStore
|
|
23
|
+
export * from "./JsvTextureStore"
|
|
24
24
|
export * from "./JsvTextureDefines"
|
|
25
25
|
export * from "./JsvFederationTools"
|
|
26
26
|
export * from "./ConstSymbol"
|
|
@@ -28,3 +28,5 @@ export * from "./ForgeConstDefine"
|
|
|
28
28
|
export * from "./TextureManagerTools"
|
|
29
29
|
export * from "./FeatureActive"
|
|
30
30
|
export * from "./JsvTextureLoadTool"
|
|
31
|
+
export * from "./JsvInteractionMode"
|
|
32
|
+
export {default as BlobApi} from "./BlobApi"
|
|
@@ -14,6 +14,9 @@
|
|
|
14
14
|
* prop说明:
|
|
15
15
|
* src {string} 对应img标签的src, 传url时需要注意使用url([链接])
|
|
16
16
|
* style {object} 对应img标签的style
|
|
17
|
+
* onStart 开始播放回调
|
|
18
|
+
* onEnd 结束播放回调
|
|
19
|
+
* onLoad 加载完成回调
|
|
17
20
|
* 通过ref=拿到句柄后,可调用的方法:
|
|
18
21
|
* stop(): 停止播放
|
|
19
22
|
* show(): 显示某一帧
|
|
@@ -29,9 +32,10 @@
|
|
|
29
32
|
* 播放结束后的状态: ApicEndState.HIDE 隐藏
|
|
30
33
|
* ApicEndState.LAST_FRAME 保持最后一帧
|
|
31
34
|
-->
|
|
32
|
-
<script>
|
|
35
|
+
<script setup>
|
|
36
|
+
import { ref, onMounted, onBeforeUnmount } from "vue";
|
|
33
37
|
import ForgeHandles from "../../../JsViewVueTools/ForgeHandles";
|
|
34
|
-
|
|
38
|
+
import { ApicEndState } from "../JsvCommonLoopToolBase";
|
|
35
39
|
|
|
36
40
|
//为了打包后少加载一个文件这里单独定义
|
|
37
41
|
const LoopType = {
|
|
@@ -42,99 +46,120 @@ const LoopType = {
|
|
|
42
46
|
LOOP_SINGLE: 4,
|
|
43
47
|
};
|
|
44
48
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
onEnd: Function,
|
|
51
|
-
onLoad: Function,
|
|
49
|
+
const props = defineProps({
|
|
50
|
+
src: String,
|
|
51
|
+
style: Object,
|
|
52
|
+
onStart: {
|
|
53
|
+
type: Function,
|
|
52
54
|
},
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
element: {},
|
|
56
|
-
};
|
|
55
|
+
onEnd: {
|
|
56
|
+
type: Function,
|
|
57
57
|
},
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
onStartId: -1,
|
|
61
|
-
onEndId: -1,
|
|
62
|
-
};
|
|
63
|
-
},
|
|
64
|
-
methods: {
|
|
65
|
-
show(frameIndex = 0) {
|
|
66
|
-
if (!isNaN(frameIndex)) {
|
|
67
|
-
this.play(LoopType.LOOP_SINGLE, [[0, frameIndex, 0]]);
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
play(loopType, loopInfo, endState) {
|
|
71
|
-
let params = {
|
|
72
|
-
LT: loopType,
|
|
73
|
-
ES: endState,
|
|
74
|
-
};
|
|
75
|
-
if (loopInfo instanceof Array) {
|
|
76
|
-
//[[循环次数1,循环开始帧1,循环结束帧1], [循环次数2,循环开始帧2,循环结束帧2], ...]
|
|
77
|
-
params.LI = loopInfo;
|
|
78
|
-
} else if (!isNaN(loopInfo)) {
|
|
79
|
-
params.LI = [[loopInfo, 0, 0]];
|
|
80
|
-
} else {
|
|
81
|
-
params.LI = [[0, 0, 0]];
|
|
82
|
-
}
|
|
83
|
-
if (this.$refs.element) {
|
|
84
|
-
let mainViewTexture = this.$refs.element.jsvGetProxyTexture(
|
|
85
|
-
ForgeHandles.TextureManager
|
|
86
|
-
);
|
|
58
|
+
onLoad: Function,
|
|
59
|
+
});
|
|
87
60
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
61
|
+
const element = ref(null);
|
|
62
|
+
const onStartId = ref(-1);
|
|
63
|
+
const onEndId = ref(-1);
|
|
64
|
+
|
|
65
|
+
const show = (frameIndex = 0) => {
|
|
66
|
+
if (element.value) {
|
|
67
|
+
let mainViewTexture = element.value.jsvGetProxyTexture(
|
|
68
|
+
ForgeHandles.TextureManager
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
mainViewTexture.DispatchCommand(
|
|
72
|
+
Forge.NativeConstant.APIC_SHOW_FRAME,
|
|
73
|
+
JSON.stringify({
|
|
74
|
+
index: frameIndex,
|
|
75
|
+
})
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
const play = (loopType, loopInfo, endState, onstart = null, onend = null) => {
|
|
81
|
+
let params = {
|
|
82
|
+
LT: loopType,
|
|
83
|
+
ES: endState,
|
|
84
|
+
};
|
|
85
|
+
if (loopInfo instanceof Array) {
|
|
86
|
+
//[[循环次数1,循环开始帧1,循环结束帧1], [循环次数2,循环开始帧2,循环结束帧2], ...]
|
|
87
|
+
params.LI = loopInfo;
|
|
88
|
+
} else if (!isNaN(loopInfo)) {
|
|
89
|
+
params.LI = [[loopInfo, 0, 0]];
|
|
90
|
+
} else {
|
|
91
|
+
params.LI = [[0, 0, 0]];
|
|
92
|
+
}
|
|
93
|
+
if (element.value) {
|
|
94
|
+
let mainViewTexture = element.value.jsvGetProxyTexture(
|
|
95
|
+
ForgeHandles.TextureManager
|
|
96
|
+
);
|
|
97
|
+
|
|
98
|
+
mainViewTexture.DispatchCommand(
|
|
99
|
+
Forge.NativeConstant.APIC_PLAY,
|
|
100
|
+
JSON.stringify(params)
|
|
101
|
+
);
|
|
102
|
+
mainViewTexture.unregisterOnStart(onStartId.value);
|
|
103
|
+
onStartId.value = -1;
|
|
104
|
+
let onStart = onstart || props.onStart;
|
|
105
|
+
if (onStart) {
|
|
106
|
+
onStartId.value = mainViewTexture.registerOnStart(onStart);
|
|
119
107
|
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
if (
|
|
124
|
-
|
|
108
|
+
mainViewTexture.unregisterOnEnd(onEndId.value);
|
|
109
|
+
onEndId.value = -1;
|
|
110
|
+
let onEnd = onend || props.onEnd;
|
|
111
|
+
if (onEnd) {
|
|
112
|
+
onEndId.value = mainViewTexture.registerOnEnd(onEnd);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
const stop = (frameCount = -1) => {
|
|
118
|
+
if (element.value) {
|
|
119
|
+
let mainViewTexture = element.value.jsvGetProxyTexture(
|
|
120
|
+
ForgeHandles.TextureManager
|
|
121
|
+
);
|
|
122
|
+
mainViewTexture.DispatchCommand(
|
|
123
|
+
Forge.NativeConstant.APIC_STOP,
|
|
124
|
+
`{"TF":${frameCount}}`
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
onMounted(() => {
|
|
130
|
+
if (props.onLoad) {
|
|
131
|
+
if (element.value) {
|
|
132
|
+
let mainViewTexture = element.value.jsvGetProxyTexture(
|
|
125
133
|
ForgeHandles.TextureManager
|
|
126
134
|
);
|
|
135
|
+
mainViewTexture.RegisterLoadImageCallback(null, props.onLoad, null);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
});
|
|
127
139
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
140
|
+
onBeforeUnmount(() => {
|
|
141
|
+
stop(0);
|
|
142
|
+
if (element.value) {
|
|
143
|
+
let mainViewTexture = element.value.jsvGetProxyTexture(
|
|
144
|
+
ForgeHandles.TextureManager
|
|
145
|
+
);
|
|
131
146
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}
|
|
147
|
+
if (onStartId.value >= 0) {
|
|
148
|
+
mainViewTexture.unregisterOnStart(onStartId.value);
|
|
135
149
|
}
|
|
136
|
-
|
|
137
|
-
|
|
150
|
+
|
|
151
|
+
if (onEndId.value >= 0) {
|
|
152
|
+
mainViewTexture.unregisterOnEnd(onEndId.value);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
// 暴露方法给外部使用
|
|
158
|
+
defineExpose({
|
|
159
|
+
show,
|
|
160
|
+
play,
|
|
161
|
+
stop,
|
|
162
|
+
});
|
|
138
163
|
</script>
|
|
139
164
|
|
|
140
165
|
<template>
|
|
@@ -45,7 +45,7 @@ const props = defineProps({
|
|
|
45
45
|
},
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
let valide = true;
|
|
49
49
|
if (
|
|
50
50
|
props.boxRect.width <= props.dragRect.width ||
|
|
51
51
|
props.boxRect.height <= props.dragRect.height
|
|
@@ -75,6 +75,7 @@ let vOnDragStart = null;
|
|
|
75
75
|
let vOnDragRelease = null;
|
|
76
76
|
|
|
77
77
|
function initDragBox() {
|
|
78
|
+
// 定制dragBox的活动区域
|
|
78
79
|
cController.run((cmds) => [
|
|
79
80
|
cmds.state().removeConditionByGroup(cWallConditionGroup),
|
|
80
81
|
cmds
|
|
@@ -109,6 +110,7 @@ function setSensor(callback, sensitivity) {
|
|
|
109
110
|
cmds.state().removeConditionByGroup(cSensorConditionGroup),
|
|
110
111
|
]);
|
|
111
112
|
if (callback != null) {
|
|
113
|
+
// 设置运动过程位置信息的回调
|
|
112
114
|
cController.run((cmds) => [
|
|
113
115
|
cmds
|
|
114
116
|
.condition(cSensorConditionGroup, true)
|
|
@@ -131,6 +133,7 @@ function moveTo(left, top) {
|
|
|
131
133
|
);
|
|
132
134
|
return;
|
|
133
135
|
}
|
|
136
|
+
// 接受moveTo坐标,主动移动到指定位置
|
|
134
137
|
cController.run((cmds) => [cmds.action().teleportTo(left, top)]);
|
|
135
138
|
}
|
|
136
139
|
|
|
@@ -144,6 +147,9 @@ onMounted(() => {
|
|
|
144
147
|
}
|
|
145
148
|
let divView = rMainDiv.value.jsvGetProxyView();
|
|
146
149
|
cController.bindForgeView(divView, true);
|
|
150
|
+
// TOUCH_RECV_MOVE_BIT 激活跟随触控位置移动
|
|
151
|
+
// TOUCH_RECV_FIRST_START 激活首次触摸开始的事件, 让condistion.onDragStart生效
|
|
152
|
+
// TOUCH_RECV_LAST_END 激活最后一次触摸结束的事件, 让condistion.onTouchRelease生效
|
|
147
153
|
divView.DragEnables?.(
|
|
148
154
|
ForgeConst.DragFlags.TOUCH_RECV_MOVE_BIT |
|
|
149
155
|
// (cEnableFling ? ForgeConst.DragFlags.TOUCH_RECV_FLING_BIT : 0) |
|
|
@@ -157,9 +163,12 @@ onMounted(() => {
|
|
|
157
163
|
typeof props.dragRect.left == "number" ? props.dragRect.left : 0;
|
|
158
164
|
let initTop = typeof props.dragRect.top == "number" ? props.dragRect.top : 0;
|
|
159
165
|
if (initLeft != 0 || initTop != 0) {
|
|
166
|
+
// 将dragBox移动到初始位置
|
|
160
167
|
cController.run((cmds) => [cmds.action().teleportTo(initLeft, initTop)]);
|
|
161
168
|
}
|
|
162
169
|
|
|
170
|
+
// 注册 onDragStart 和 onTouchRelease 回调
|
|
171
|
+
// 制作初始的onSensor回调,敏感度默认为10
|
|
163
172
|
cController.run((cmds) => [
|
|
164
173
|
cmds
|
|
165
174
|
.condition(undefined, true)
|
|
@@ -189,7 +198,7 @@ onMounted(() => {
|
|
|
189
198
|
]),
|
|
190
199
|
cmds
|
|
191
200
|
.condition(cSensorConditionGroup, true)
|
|
192
|
-
.onMovement(
|
|
201
|
+
.onMovement(vSensitivity) // 默认设置x或y移动超过10时才触发回调,以此减少回调的频次,规避js的性能影响
|
|
193
202
|
.then([onSensor]),
|
|
194
203
|
]);
|
|
195
204
|
});
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
</template>
|
|
42
42
|
|
|
43
43
|
<script setup lang="ts">
|
|
44
|
-
import { shallowRef, watchEffect
|
|
44
|
+
import { shallowRef, watchEffect } from "vue";
|
|
45
45
|
import JsvClipDiv from "../JsvClipDiv/JsvClipDiv.vue";
|
|
46
46
|
|
|
47
47
|
interface FrameStyleDefine {
|
|
@@ -69,12 +69,18 @@ let SizeHeight = shallowRef(undefined);
|
|
|
69
69
|
let onSizeCallback = (x, y, width, height) => {
|
|
70
70
|
SizeX.value = x;
|
|
71
71
|
SizeY.value = y;
|
|
72
|
-
SizeWidth.value = width;
|
|
73
|
-
SizeHeight.value = height;
|
|
74
72
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
73
|
+
let origin_width = SizeWidth.value;
|
|
74
|
+
let origin_height = SizeHeight.value;
|
|
75
|
+
|
|
76
|
+
if (origin_width != width || origin_height != height) {
|
|
77
|
+
SizeWidth.value = width;
|
|
78
|
+
SizeHeight.value = height;
|
|
79
|
+
|
|
80
|
+
if (width != 0 && height != 0) {
|
|
81
|
+
// 忽略0尺寸这个中间过程的回调
|
|
82
|
+
props.onSized?.(width, height);
|
|
83
|
+
}
|
|
78
84
|
}
|
|
79
85
|
};
|
|
80
86
|
let containerRef = shallowRef(null);
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
* askSize: boolean 设置会跟进flex的尺寸变化,设置后可通过getWidth/getHeight拿到尺寸,但会降低性能
|
|
19
19
|
* onSized: Function(width:number, height:number)
|
|
20
20
|
比askSize更进一步,可以通过回调知道尺寸变化后的时机,回调参数(width, height)为flex后的尺寸* background: {string} (选填)背景图案 可选值: 绝对路径url|url(相对路径url)|#FFFFFF|rbga(255,0,0,1.0)
|
|
21
|
+
background: {string} (选填)背景图片url或者背景颜色 可选值: #FFFFFF|rbga(255,0,0,1.0)
|
|
22
|
+
背景图会被按照objectFit:cover的形式显示
|
|
21
23
|
*
|
|
22
24
|
* expose说明:
|
|
23
25
|
* getWidth(): 当askSize或者onSize生效时,获取元素的宽度
|
|
@@ -85,7 +87,7 @@ watchEffect(() => {
|
|
|
85
87
|
const texture_manager = ForgeHandles.TextureManager;
|
|
86
88
|
if (
|
|
87
89
|
vTextureStringCache.trim().startsWith("#") ||
|
|
88
|
-
vTextureStringCache.trim().startsWith("
|
|
90
|
+
vTextureStringCache.trim().startsWith("rgb")
|
|
89
91
|
) {
|
|
90
92
|
texture_setting = new Forge.TextureSetting(
|
|
91
93
|
ForgeTextureApis.GetColorTexture(texture_manager, vTextureStringCache)
|
|
@@ -88,6 +88,11 @@ const rProps = defineProps({
|
|
|
88
88
|
onStart: {
|
|
89
89
|
type: Function,
|
|
90
90
|
},
|
|
91
|
+
// 是否已经在外部保证其加载性了
|
|
92
|
+
loadComfirmed: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
default: false,
|
|
95
|
+
},
|
|
91
96
|
});
|
|
92
97
|
|
|
93
98
|
// 激活引擎中的功能支持
|
|
@@ -138,20 +143,27 @@ if (rProps.textures) {
|
|
|
138
143
|
}
|
|
139
144
|
}
|
|
140
145
|
// 对图片进行预加载,等所有图片预加载完成后才能开始动画,以确保动画的完整性
|
|
146
|
+
if (!rProps.loadComfirmed) {
|
|
147
|
+
vPreloadHandler = JsvTextureLoadTool.preload(preload_textures, () => {
|
|
148
|
+
vPreloadDone = true;
|
|
141
149
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
// 加载完成后直接释放句柄即可
|
|
146
|
-
vPreloadHandler.recycleResource();
|
|
147
|
-
vPreloadHandler = null;
|
|
150
|
+
// 加载完成后直接释放句柄即可
|
|
151
|
+
vPreloadHandler.recycleResource();
|
|
152
|
+
vPreloadHandler = null;
|
|
148
153
|
|
|
149
|
-
|
|
150
|
-
|
|
154
|
+
if (vStartingPromise != null) {
|
|
155
|
+
vStartingPromise.resolve();
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
if (vPreloadHandler == null) {
|
|
159
|
+
// 无需要preload的内容,直接视为preloadDone
|
|
160
|
+
vPreloadDone = true;
|
|
161
|
+
if (vStartingPromise != null) {
|
|
162
|
+
vStartingPromise.resolve();
|
|
163
|
+
}
|
|
151
164
|
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
// 无需要preload的内容,直接视为preloadDone
|
|
165
|
+
} else {
|
|
166
|
+
// 已经确认加载性, 不再做preload
|
|
155
167
|
vPreloadDone = true;
|
|
156
168
|
if (vStartingPromise != null) {
|
|
157
169
|
vStartingPromise.resolve();
|