@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
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
new (...args: any[]): {
|
|
3
|
-
$: import("vue").ComponentInternalInstance;
|
|
4
|
-
$data: {};
|
|
5
|
-
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
6
|
-
$attrs: {
|
|
7
|
-
[x: string]: unknown;
|
|
8
|
-
};
|
|
9
|
-
$refs: {
|
|
10
|
-
[x: string]: unknown;
|
|
11
|
-
};
|
|
12
|
-
$slots: Readonly<{
|
|
13
|
-
[name: string]: import("vue").Slot | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
16
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
17
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
18
|
-
$el: any;
|
|
19
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
20
|
-
control: any;
|
|
21
|
-
$props: {
|
|
22
|
-
readonly style?: Record<string, any> | undefined;
|
|
23
|
-
readonly top?: number | undefined;
|
|
24
|
-
readonly left?: number | undefined;
|
|
25
|
-
readonly width?: number | undefined;
|
|
26
|
-
readonly height?: number | undefined;
|
|
27
|
-
readonly sizeMode?: boolean | undefined;
|
|
28
|
-
};
|
|
29
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
|
|
30
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
31
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
32
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
33
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
37
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
38
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
39
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
40
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
41
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
42
|
-
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
43
|
-
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
44
|
-
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
45
|
-
};
|
|
46
|
-
$forceUpdate: () => void;
|
|
47
|
-
$nextTick: typeof import("vue").nextTick;
|
|
48
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
49
|
-
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{
|
|
50
|
-
control: any;
|
|
51
|
-
$props: {
|
|
52
|
-
readonly style?: Record<string, any> | undefined;
|
|
53
|
-
readonly top?: number | undefined;
|
|
54
|
-
readonly left?: number | undefined;
|
|
55
|
-
readonly width?: number | undefined;
|
|
56
|
-
readonly height?: number | undefined;
|
|
57
|
-
readonly sizeMode?: boolean | undefined;
|
|
58
|
-
};
|
|
59
|
-
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
60
|
-
__isFragment?: undefined;
|
|
61
|
-
__isTeleport?: undefined;
|
|
62
|
-
__isSuspense?: undefined;
|
|
63
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
64
|
-
control: any;
|
|
65
|
-
$props: {
|
|
66
|
-
readonly style?: Record<string, any> | undefined;
|
|
67
|
-
readonly top?: number | undefined;
|
|
68
|
-
readonly left?: number | undefined;
|
|
69
|
-
readonly width?: number | undefined;
|
|
70
|
-
readonly height?: number | undefined;
|
|
71
|
-
readonly sizeMode?: boolean | undefined;
|
|
72
|
-
};
|
|
73
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
74
|
-
$slots: {
|
|
75
|
-
default: (_: {}) => any;
|
|
76
|
-
};
|
|
77
|
-
});
|
|
78
|
-
export default _default;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
new (...args: any[]): {
|
|
3
|
-
$: import("vue").ComponentInternalInstance;
|
|
4
|
-
$data: {};
|
|
5
|
-
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
6
|
-
$attrs: {
|
|
7
|
-
[x: string]: unknown;
|
|
8
|
-
};
|
|
9
|
-
$refs: {
|
|
10
|
-
[x: string]: unknown;
|
|
11
|
-
};
|
|
12
|
-
$slots: Readonly<{
|
|
13
|
-
[name: string]: import("vue").Slot | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
16
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
17
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
18
|
-
$el: any;
|
|
19
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
20
|
-
$props: {
|
|
21
|
-
readonly enableAA?: boolean | undefined;
|
|
22
|
-
readonly style?: Record<string, any> | undefined;
|
|
23
|
-
};
|
|
24
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
|
|
25
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
26
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
27
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
28
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
29
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
30
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
31
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
32
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
33
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
37
|
-
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
38
|
-
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
39
|
-
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
40
|
-
};
|
|
41
|
-
$forceUpdate: () => void;
|
|
42
|
-
$nextTick: typeof import("vue").nextTick;
|
|
43
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
44
|
-
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{
|
|
45
|
-
$props: {
|
|
46
|
-
readonly enableAA?: boolean | undefined;
|
|
47
|
-
readonly style?: Record<string, any> | undefined;
|
|
48
|
-
};
|
|
49
|
-
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
50
|
-
__isFragment?: undefined;
|
|
51
|
-
__isTeleport?: undefined;
|
|
52
|
-
__isSuspense?: undefined;
|
|
53
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
54
|
-
$props: {
|
|
55
|
-
readonly enableAA?: boolean | undefined;
|
|
56
|
-
readonly style?: Record<string, any> | undefined;
|
|
57
|
-
};
|
|
58
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
59
|
-
$slots: {
|
|
60
|
-
default: (_: {}) => any;
|
|
61
|
-
};
|
|
62
|
-
});
|
|
63
|
-
export default _default;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
new (...args: any[]): {
|
|
3
|
-
$: import("vue").ComponentInternalInstance;
|
|
4
|
-
$data: {};
|
|
5
|
-
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
6
|
-
$attrs: {
|
|
7
|
-
[x: string]: unknown;
|
|
8
|
-
};
|
|
9
|
-
$refs: {
|
|
10
|
-
[x: string]: unknown;
|
|
11
|
-
};
|
|
12
|
-
$slots: Readonly<{
|
|
13
|
-
[name: string]: import("vue").Slot | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
16
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
17
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
18
|
-
$el: any;
|
|
19
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
20
|
-
$props: {
|
|
21
|
-
readonly src?: string | undefined;
|
|
22
|
-
readonly enableAA?: boolean | undefined;
|
|
23
|
-
readonly colorSpace?: string | undefined;
|
|
24
|
-
readonly imageCompress?: boolean | undefined;
|
|
25
|
-
readonly isPosterImage?: boolean | undefined;
|
|
26
|
-
readonly fadeIn?: boolean | undefined;
|
|
27
|
-
readonly style?: Record<string, any> | undefined;
|
|
28
|
-
};
|
|
29
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
|
|
30
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
31
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
32
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
33
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
37
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
38
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
39
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
40
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
41
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
42
|
-
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
43
|
-
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
44
|
-
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
45
|
-
};
|
|
46
|
-
$forceUpdate: () => void;
|
|
47
|
-
$nextTick: typeof import("vue").nextTick;
|
|
48
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
49
|
-
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{
|
|
50
|
-
$props: {
|
|
51
|
-
readonly src?: string | undefined;
|
|
52
|
-
readonly enableAA?: boolean | undefined;
|
|
53
|
-
readonly colorSpace?: string | undefined;
|
|
54
|
-
readonly imageCompress?: boolean | undefined;
|
|
55
|
-
readonly isPosterImage?: boolean | undefined;
|
|
56
|
-
readonly fadeIn?: boolean | undefined;
|
|
57
|
-
readonly style?: Record<string, any> | undefined;
|
|
58
|
-
};
|
|
59
|
-
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
60
|
-
__isFragment?: undefined;
|
|
61
|
-
__isTeleport?: undefined;
|
|
62
|
-
__isSuspense?: undefined;
|
|
63
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
64
|
-
$props: {
|
|
65
|
-
readonly src?: string | undefined;
|
|
66
|
-
readonly enableAA?: boolean | undefined;
|
|
67
|
-
readonly colorSpace?: string | undefined;
|
|
68
|
-
readonly imageCompress?: boolean | undefined;
|
|
69
|
-
readonly isPosterImage?: boolean | undefined;
|
|
70
|
-
readonly fadeIn?: boolean | undefined;
|
|
71
|
-
readonly style?: Record<string, any> | undefined;
|
|
72
|
-
};
|
|
73
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
74
|
-
$slots: {
|
|
75
|
-
default: (_: {}) => any;
|
|
76
|
-
};
|
|
77
|
-
});
|
|
78
|
-
export default _default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: ChenChanghua
|
|
3
|
-
* @Date: 2023-02-22 18:22:26
|
|
4
|
-
* @Description: file content
|
|
5
|
-
*/
|
|
6
|
-
let PluginInfo = {
|
|
7
|
-
// downloadUrl: "http://192.168.2.1:8097/pluginpackapp.zip", //插件下载地址
|
|
8
|
-
packageName: "com.qcode.jsvlatex",
|
|
9
|
-
name: "数学公式插件",
|
|
10
|
-
version: "1.0.4", //插件需要的版本号
|
|
11
|
-
versionCodeMin: 4,
|
|
12
|
-
versionCodeMax: 4,
|
|
13
|
-
bridgeName: "jsvLatexBridge", //插件bridge注册到jsview的名称
|
|
14
|
-
className: "com.qcode.jsvlatex.JsvLatex", //插件初始化类名称
|
|
15
|
-
initMethod: "createInstance", //插件初始化方法
|
|
16
|
-
listener: "top.JsvLatexPluginLoadResult", //插件加载结果回调
|
|
17
|
-
listener2: "top.JsvLatexPluginStatus",
|
|
18
|
-
// debug:true,
|
|
19
|
-
// md5: "f8a12f63d450df862abc6dbf273e258d"
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
// 不要用export default,update-env脚本不能解析
|
|
23
|
-
// 导出字段要含有 pluginVersionInfo 信息,作为npm时版本参考
|
|
24
|
-
module.exports = PluginInfo;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import ForgeHandles from "../../../JsViewVueTools/ForgeHandles";
|
|
2
|
-
/**
|
|
3
|
-
* 使用ForgeTexture获取图片的dominant color, 注意, 此方法会hold住texture资源, 需要保证组件unmount时调用释放处理
|
|
4
|
-
* @param src 图片的src
|
|
5
|
-
* @param cbk 回调函数, 参数: info
|
|
6
|
-
* @returns 用于cancel的句柄,当cancel时,会清理对div和Callback的引用
|
|
7
|
-
*/
|
|
8
|
-
export function getDominantColorByForgeTexture(
|
|
9
|
-
src: string,
|
|
10
|
-
cbk: (i: any) => void
|
|
11
|
-
) {
|
|
12
|
-
if (!src) {
|
|
13
|
-
console.warn("getDominantColorByForgeTexture: src is empty");
|
|
14
|
-
return () => {};
|
|
15
|
-
}
|
|
16
|
-
const setting = { src };
|
|
17
|
-
let texture = (ForgeHandles.TextureManager as any).GetImageProcessTexture(
|
|
18
|
-
JSON.stringify(setting)
|
|
19
|
-
);
|
|
20
|
-
let canceled = false;
|
|
21
|
-
const callback = (info: any) => {
|
|
22
|
-
if (canceled) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
cbk(info.extra);
|
|
26
|
-
texture?.RequestToUnload();
|
|
27
|
-
texture = null;
|
|
28
|
-
};
|
|
29
|
-
texture.DisableAutoRecycle();
|
|
30
|
-
texture.RegisterLoadImageCallback(src, callback, null);
|
|
31
|
-
return () => {
|
|
32
|
-
canceled = true;
|
|
33
|
-
texture?.RequestToUnload();
|
|
34
|
-
texture = null;
|
|
35
|
-
};
|
|
36
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @file
|
|
3
|
-
*
|
|
4
|
-
* 【模块 export 内容】
|
|
5
|
-
* JsvPosterDiv:Vue高阶组件,海报描画, 其字内容为占位图
|
|
6
|
-
* props说明:
|
|
7
|
-
* style {Object} 包含
|
|
8
|
-
* left/top/width/height
|
|
9
|
-
* border-radius
|
|
10
|
-
* backgroundImage/backgroundColor
|
|
11
|
-
* 的style设置
|
|
12
|
-
* enableAA: {boolean} 启用非全局的抗锯齿处理,不过这个处理会使绘制的矩形比原尺寸每边少2~3像素点
|
|
13
|
-
-->
|
|
14
|
-
<script setup>
|
|
15
|
-
import { reactive, watchEffect, shallowRef } from "vue";
|
|
16
|
-
|
|
17
|
-
const props = defineProps({
|
|
18
|
-
style: Object,
|
|
19
|
-
enableAA: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
default: false,
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
let common_style = reactive({});
|
|
26
|
-
let image_style = reactive({});
|
|
27
|
-
let rEnableAA = shallowRef("0");
|
|
28
|
-
|
|
29
|
-
watchEffect(() => {
|
|
30
|
-
if (props.style) {
|
|
31
|
-
let { left, top, width, height, transformStyle, ...others } = props.style;
|
|
32
|
-
|
|
33
|
-
common_style.left = left;
|
|
34
|
-
common_style.top = top;
|
|
35
|
-
common_style.transformStyle = transformStyle;
|
|
36
|
-
|
|
37
|
-
image_style.width = width;
|
|
38
|
-
image_style.height = height;
|
|
39
|
-
Object.assign(image_style, others);
|
|
40
|
-
}
|
|
41
|
-
rEnableAA.value = props.enableAA ? "1" : "0";
|
|
42
|
-
});
|
|
43
|
-
</script>
|
|
44
|
-
|
|
45
|
-
<template>
|
|
46
|
-
<div :style="common_style">
|
|
47
|
-
<slot></slot>
|
|
48
|
-
<div
|
|
49
|
-
data-jsv-vw-enable-fade="true"
|
|
50
|
-
data-jsv-vw-mask-poster-on-top="true"
|
|
51
|
-
:style="image_style"
|
|
52
|
-
:data-jsv-img-enable-aa="rEnableAA"
|
|
53
|
-
v-bind="$attrs"
|
|
54
|
-
/>
|
|
55
|
-
</div>
|
|
56
|
-
</template>
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @file
|
|
3
|
-
*
|
|
4
|
-
* 【模块 export 内容】
|
|
5
|
-
* JsvPosterImage:Vue高阶组件,海报描画,可设置color space 和 texture size
|
|
6
|
-
* props说明:
|
|
7
|
-
* style {Object} 包含left/top/width/height/border-radius的style设置
|
|
8
|
-
* colorSpace {String} 颜色空间,调整其他颜色空间可以节省内存,默认RGBA_8888
|
|
9
|
-
* imageCompress {boolean} 是否压缩图片, 默认打开
|
|
10
|
-
* src {string} 图片的加载地址
|
|
11
|
-
* fadeIn: {boolean} 图片加载完成是否有淡入效果,默认为打开
|
|
12
|
-
* isPosterImage: 标识是否用于海报位,对于海报位的内容,可以有下载线程控制等策略来优化整体体验
|
|
13
|
-
* enableAA: {boolean} 启用非全局的抗锯齿处理,不过这个处理会使绘制的矩形比原尺寸每边少2~3像素点
|
|
14
|
-
-->
|
|
15
|
-
|
|
16
|
-
<script setup>
|
|
17
|
-
import { reactive, watchEffect, computed, shallowRef } from "vue";
|
|
18
|
-
import { JsvPerformance } from "../JsViewVueTools/JsvPerformance.ts";
|
|
19
|
-
|
|
20
|
-
const props = defineProps({
|
|
21
|
-
colorSpace: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: "RGBA_8888",
|
|
24
|
-
},
|
|
25
|
-
imageCompress: {
|
|
26
|
-
type: Boolean,
|
|
27
|
-
default: true,
|
|
28
|
-
},
|
|
29
|
-
isPosterImage: {
|
|
30
|
-
type: Boolean,
|
|
31
|
-
default: true,
|
|
32
|
-
},
|
|
33
|
-
fadeIn: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: true,
|
|
36
|
-
},
|
|
37
|
-
src: {
|
|
38
|
-
type: String,
|
|
39
|
-
default: null,
|
|
40
|
-
},
|
|
41
|
-
enableAA: {
|
|
42
|
-
type: Boolean,
|
|
43
|
-
default: false,
|
|
44
|
-
},
|
|
45
|
-
style: Object,
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
const scaleddown = computed(() => {
|
|
49
|
-
return props.imageCompress ? "true" : "false";
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
const isPosterImage = computed(() => {
|
|
53
|
-
return JsvPerformance.getPosterSingleThreadDecode() || props.isPosterImage
|
|
54
|
-
? "true"
|
|
55
|
-
: "false";
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
let common_style = reactive({});
|
|
59
|
-
let image_style = reactive({});
|
|
60
|
-
let rEnableAA = shallowRef("0");
|
|
61
|
-
|
|
62
|
-
watchEffect(() => {
|
|
63
|
-
if (props.style) {
|
|
64
|
-
// 提取left, top, width, height, 并去掉干扰项 backgroundImage backgroundColor(会引起同位置重复图片绘制)
|
|
65
|
-
let {
|
|
66
|
-
left,
|
|
67
|
-
top,
|
|
68
|
-
width,
|
|
69
|
-
height,
|
|
70
|
-
transformStyle,
|
|
71
|
-
backgroundImage,
|
|
72
|
-
backgroundColor,
|
|
73
|
-
...others
|
|
74
|
-
} = props.style;
|
|
75
|
-
|
|
76
|
-
// 承接x,y偏移和动画设置, 规避默认淡出动画被影响
|
|
77
|
-
common_style.left = left;
|
|
78
|
-
common_style.top = top;
|
|
79
|
-
common_style.transformStyle = transformStyle;
|
|
80
|
-
|
|
81
|
-
image_style.width = width;
|
|
82
|
-
image_style.height = height;
|
|
83
|
-
Object.assign(image_style, others);
|
|
84
|
-
}
|
|
85
|
-
rEnableAA.value = props.enableAA ? "1" : "0";
|
|
86
|
-
});
|
|
87
|
-
</script>
|
|
88
|
-
|
|
89
|
-
<template>
|
|
90
|
-
<div :style="common_style">
|
|
91
|
-
<slot />
|
|
92
|
-
<img
|
|
93
|
-
v-if="!!props.src"
|
|
94
|
-
:data-jsv-vw-enable-fade="props.fadeIn"
|
|
95
|
-
data-jsv-vw-mask-poster-on-top="true"
|
|
96
|
-
:data-jsv-img-scaledown-tex="scaleddown"
|
|
97
|
-
:data-jsv-img-color-space="colorSpace"
|
|
98
|
-
:data-jsv-img-poster-image="isPosterImage"
|
|
99
|
-
:data-jsv-img-enable-aa="rEnableAA"
|
|
100
|
-
:style="image_style"
|
|
101
|
-
:src="props.src"
|
|
102
|
-
v-bind="$attrs"
|
|
103
|
-
/>
|
|
104
|
-
</div>
|
|
105
|
-
</template>
|
|
File without changes
|