@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
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
* @Description: file content
|
|
7
7
|
-->
|
|
8
8
|
<script setup>
|
|
9
|
-
import {
|
|
10
|
-
Viewer,
|
|
11
|
-
WebpData,
|
|
12
|
-
GifData
|
|
13
|
-
} from "../JsvBrowserApicLib/BrowserApicLib";
|
|
9
|
+
import { Viewer, WebpData, GifData } from "../JsvBrowserApicLib/BrowserApicLib";
|
|
14
10
|
import { LoopType } from "../JsvCommonLoopToolBase";
|
|
15
11
|
import { onMounted, shallowRef } from "vue";
|
|
16
12
|
|
|
13
|
+
const renderDocument = window.JsvCode.Dom.RenderDocument
|
|
14
|
+
? window.JsvCode.Dom.RenderDocument
|
|
15
|
+
: window.JsvCode.Dom.BrowserDocument;
|
|
16
|
+
|
|
17
17
|
const loadImage = (url) => {
|
|
18
18
|
return new Promise((resolve, reject) => {
|
|
19
19
|
let xhr = new XMLHttpRequest();
|
|
@@ -89,7 +89,7 @@ onMounted(() => {
|
|
|
89
89
|
let domLayoutView = canvasProxyRef.value.jsvGetProxyView();
|
|
90
90
|
domLayoutView.RegisterOnProxyReady(() => {
|
|
91
91
|
// 制作canvas
|
|
92
|
-
let canvas =
|
|
92
|
+
let canvas = renderDocument.createElement("canvas");
|
|
93
93
|
canvas.style.width = props.style.width + "px";
|
|
94
94
|
canvas.style.height = props.style.height + "px";
|
|
95
95
|
domLayoutView.HtmlGetElement().appendChild(canvas);
|
|
@@ -6,15 +6,14 @@
|
|
|
6
6
|
* @Description: file content
|
|
7
7
|
-->
|
|
8
8
|
<script setup>
|
|
9
|
-
import {
|
|
10
|
-
Viewer,
|
|
11
|
-
WebpData,
|
|
12
|
-
GifData
|
|
13
|
-
} from "../JsvBrowserApicLib/BrowserApicLib";
|
|
9
|
+
import { Viewer, WebpData, GifData } from "../JsvBrowserApicLib/BrowserApicLib";
|
|
14
10
|
import { LoopType } from "../JsvCommonLoopToolBase.js";
|
|
15
11
|
import { onMounted, shallowRef } from "vue";
|
|
16
12
|
|
|
17
13
|
let waitForPlayInfo = null;
|
|
14
|
+
const renderDocument = window.JsvCode.Dom.RenderDocument
|
|
15
|
+
? window.JsvCode.Dom.RenderDocument
|
|
16
|
+
: window.JsvCode.Dom.BrowserDocument;
|
|
18
17
|
|
|
19
18
|
const loadImage = (url) => {
|
|
20
19
|
return new Promise((resolve, reject) => {
|
|
@@ -71,7 +70,7 @@ onMounted(() => {
|
|
|
71
70
|
let domLayoutView = canvasProxyRef.value.jsvGetProxyView();
|
|
72
71
|
domLayoutView.RegisterOnProxyReady(() => {
|
|
73
72
|
// 制作canvas
|
|
74
|
-
let canvas =
|
|
73
|
+
let canvas = renderDocument.createElement("canvas");
|
|
75
74
|
canvas.style.width = props.style.width + "px";
|
|
76
75
|
canvas.style.height = props.style.height + "px";
|
|
77
76
|
domLayoutView.HtmlGetElement().appendChild(canvas);
|
|
@@ -6,13 +6,17 @@
|
|
|
6
6
|
* @Description: file content
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
const renderDocument = window.JsvCode.Dom.RenderDocument
|
|
10
|
+
? window.JsvCode.Dom.RenderDocument
|
|
11
|
+
: window.JsvCode.Dom.BrowserDocument;
|
|
12
|
+
|
|
9
13
|
class ApicDataBase {
|
|
10
14
|
constructor(arrayBuffer) {
|
|
11
15
|
this.LoopCount = 0;
|
|
12
16
|
this.FrameCount = 0;
|
|
13
17
|
this.Width = 0;
|
|
14
18
|
this.Height = 0;
|
|
15
|
-
this._Canvas =
|
|
19
|
+
this._Canvas = renderDocument.createElement("canvas");
|
|
16
20
|
this._Context = this._Canvas.getContext("2d");
|
|
17
21
|
this._DecodedData = null;
|
|
18
22
|
this.decode(arrayBuffer);
|
|
@@ -18,6 +18,7 @@ class ActorControl {
|
|
|
18
18
|
private _BindAnim: any;
|
|
19
19
|
private _Callbacks: CallbackManager;
|
|
20
20
|
private _SelfNexusRecv: NexusNode;
|
|
21
|
+
private _SizeMode: Boolean = false;
|
|
21
22
|
|
|
22
23
|
private _SharedQuickConditionPackBuilder: ConditionPackBuilder;
|
|
23
24
|
private _SharedQuickActionPackBuilder: ActionPackBuilder;
|
|
@@ -33,6 +34,14 @@ class ActorControl {
|
|
|
33
34
|
this._StatePackBuilder = new StatePackBuilder();
|
|
34
35
|
}
|
|
35
36
|
|
|
37
|
+
asSizeMode() {
|
|
38
|
+
if (this._BindAnim != null) {
|
|
39
|
+
console.error("error: asSizeMode should call before bindForgeView");
|
|
40
|
+
} else {
|
|
41
|
+
this._SizeMode = true;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
36
45
|
// debugGetAnimId() {
|
|
37
46
|
// return this._BindAnim?.AnimNativeId;
|
|
38
47
|
// }
|
|
@@ -140,6 +149,16 @@ class ActorControl {
|
|
|
140
149
|
return this._StatePackBuilder;
|
|
141
150
|
}
|
|
142
151
|
|
|
152
|
+
getBindedAnim() {
|
|
153
|
+
this._EnsureAnim();
|
|
154
|
+
return this._BindAnim;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
getBindedView() {
|
|
158
|
+
this._EnsureAnim();
|
|
159
|
+
return this._BindView;
|
|
160
|
+
}
|
|
161
|
+
|
|
143
162
|
_OnEchoEvent(retJson: string) {
|
|
144
163
|
// 遇到layout后仍然会因为新broadcast有动作时,一帧中可能会有多次回调
|
|
145
164
|
let retJsonObject: any = JSON.parse(retJson);
|
|
@@ -158,7 +177,10 @@ class ActorControl {
|
|
|
158
177
|
|
|
159
178
|
_EnsureAnim() {
|
|
160
179
|
if (!this._BindAnim) {
|
|
161
|
-
this._BindAnim = new FreeMoveAnimClass(
|
|
180
|
+
this._BindAnim = new FreeMoveAnimClass(
|
|
181
|
+
this._OnEchoEvent.bind(this),
|
|
182
|
+
this._SelfNexusRecv.token,
|
|
183
|
+
this._SizeMode);
|
|
162
184
|
this._BindView.StartAnimation(this._BindAnim);
|
|
163
185
|
}
|
|
164
186
|
}
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
import { StateCmdBuilder } from "./ForgeTypeDefine"
|
|
9
9
|
|
|
10
10
|
class CallbackInfo {
|
|
11
|
-
public funcRef
|
|
12
|
-
public times: number; // 回调的次数
|
|
13
|
-
public once: boolean; // 是否单次回调就销毁
|
|
11
|
+
public funcRef!: Function; // 回调函数
|
|
12
|
+
public times: number = 0; // 回调的次数
|
|
13
|
+
public once: boolean = false; // 是否单次回调就销毁
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
class CallbackManager {
|
|
@@ -49,9 +49,9 @@ class CallbackManager {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
public invokeCallback(id: string, actorState: Object,
|
|
53
|
-
customDataStr: string | null | undefined,
|
|
54
|
-
nexusCustomDataStr:string | null | undefined) {
|
|
52
|
+
public invokeCallback(id: string, actorState: Object,
|
|
53
|
+
customDataStr: string | null | undefined,
|
|
54
|
+
nexusCustomDataStr: string | null | undefined) {
|
|
55
55
|
let callbackObj = this._CallbackMap.get(id);
|
|
56
56
|
if (callbackObj) {
|
|
57
57
|
if (callbackObj.once) {
|
|
@@ -7,16 +7,43 @@
|
|
|
7
7
|
|
|
8
8
|
<!--
|
|
9
9
|
* 【模块 export 内容】
|
|
10
|
-
* JsvFreeMoveActor
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* JsvFreeMoveActor/JsvFreeMoveDiv:
|
|
11
|
+
* 帧动画控制组件,通过control
|
|
12
|
+
* .action() 单一运动指令,新指令发生时会冲掉旧指令
|
|
13
|
+
* .condition() 条件设置,有时间维度,X/Y维度
|
|
14
|
+
* .state() 状态调整指令
|
|
13
15
|
*
|
|
16
|
+
* props说明:
|
|
17
|
+
* class: String, 等同于div的class设置(目前未实装,后续支持...)
|
|
18
|
+
* style: Object, 等同于div的style设置
|
|
19
|
+
* 特别注意: 在sizeMode模式下,非hidden,控制的是background/image的展示区域,
|
|
20
|
+
* overflow:hidden时,控制的是剪切区域,展示区域保持最初的width/height
|
|
21
|
+
* sizeMode: Boolean, 从控制div左上角坐标的模式改为改为通过div矩形宽高
|
|
22
|
+
* (指令控制右下角坐标,实现对[0,0]->[右下角x,y]的矩形的宽高调整,另外,不支持负坐标)
|
|
23
|
+
* expose说明:
|
|
24
|
+
* control: Object 控制器句柄,具体参考 ActorControl
|
|
14
25
|
-->
|
|
15
26
|
<script setup>
|
|
16
27
|
import ActControl from "./ActorControl.ts";
|
|
17
28
|
import { shallowRef, onMounted } from "vue";
|
|
18
29
|
|
|
19
30
|
const props = defineProps({
|
|
31
|
+
// div的style设置,
|
|
32
|
+
// 其中top, left会作用于父节点,其余内容作用于子节点
|
|
33
|
+
// width和height在size模式下为初始尺寸
|
|
34
|
+
// 例如backgroundColor/backgroundImage/overflowHidden
|
|
35
|
+
style: {
|
|
36
|
+
type: Object,
|
|
37
|
+
default: {},
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
// 动画转而控制width/height,而不是x,y
|
|
41
|
+
sizeMode: {
|
|
42
|
+
default: false,
|
|
43
|
+
type: Boolean,
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
// Deprecated
|
|
20
47
|
// 设置给父节点,动画节点必须top/left为0, 以保证PC端模拟通过style直接获取当前位置信息的逻辑能通过
|
|
21
48
|
top: {
|
|
22
49
|
default: 0,
|
|
@@ -27,7 +54,9 @@ const props = defineProps({
|
|
|
27
54
|
type: Number,
|
|
28
55
|
},
|
|
29
56
|
|
|
30
|
-
//
|
|
57
|
+
// Deprecated
|
|
58
|
+
// 设置给实际的动画节点, 在size模式下为初始尺寸
|
|
59
|
+
// 可能会被style.width, style.height替代
|
|
31
60
|
width: {
|
|
32
61
|
default: 0,
|
|
33
62
|
type: Number,
|
|
@@ -40,9 +69,13 @@ const props = defineProps({
|
|
|
40
69
|
|
|
41
70
|
let mainDivRef = shallowRef(null);
|
|
42
71
|
let controller = new ActControl();
|
|
72
|
+
if (props.sizeMode) {
|
|
73
|
+
// 启用size模式
|
|
74
|
+
controller.asSizeMode();
|
|
75
|
+
}
|
|
43
76
|
|
|
44
77
|
onMounted(() => {
|
|
45
|
-
controller.bindForgeView(mainDivRef.value.jsvGetProxyView());
|
|
78
|
+
controller.bindForgeView(mainDivRef.value.jsvGetProxyView(true));
|
|
46
79
|
});
|
|
47
80
|
|
|
48
81
|
defineExpose({
|
|
@@ -53,17 +86,18 @@ defineExpose({
|
|
|
53
86
|
<template>
|
|
54
87
|
<div
|
|
55
88
|
:style="{
|
|
56
|
-
top: props.top,
|
|
57
|
-
left: props.left,
|
|
89
|
+
top: props.style.top ? props.style.top : props.top,
|
|
90
|
+
left: props.style.left ? props.style.left : props.left,
|
|
58
91
|
}"
|
|
59
92
|
>
|
|
60
93
|
<div
|
|
61
94
|
ref="mainDivRef"
|
|
62
95
|
:style="{
|
|
63
|
-
top: 0,
|
|
64
|
-
left: 0,
|
|
65
96
|
width: props.width,
|
|
66
97
|
height: props.height,
|
|
98
|
+
...props.style,
|
|
99
|
+
top: 0,
|
|
100
|
+
left: 0,
|
|
67
101
|
}"
|
|
68
102
|
>
|
|
69
103
|
<slot></slot>
|
|
@@ -479,6 +479,30 @@ class ActorPackBuilder {
|
|
|
479
479
|
return CmdPackBuilder.InitActCmdPack(this._SpeedKeeps, this._AccKeeps, this._NexusRecv?.token, cmdList);
|
|
480
480
|
}
|
|
481
481
|
|
|
482
|
+
/**
|
|
483
|
+
* ackMovementSync
|
|
484
|
+
* 只能放在 movementSync 的then中,用于将Sync同步信息按比例转化成
|
|
485
|
+
* (注意): 如果触发链条上有自己发出的信息,则将不再产生动作,规避循环触发
|
|
486
|
+
*
|
|
487
|
+
* @param {int} left 运动识别区域的left, 可以为负
|
|
488
|
+
* @param {int} top 运动识别区域的top, 可以为负
|
|
489
|
+
* @param {int} right 运动识别区域的right, 可以为负,必须大于left
|
|
490
|
+
* @param {int} bottom 运动识别区域的bottom, 可以为负,必须大于bottom
|
|
491
|
+
* @param {int} xyEnable x,y是否都触发, 0b01对应x, 0b10对应y, 可以或运算在一起
|
|
492
|
+
* @param {int} syncType 换算公式:
|
|
493
|
+
* 1: 正比公式:selfPercent = givenPercent
|
|
494
|
+
* 2: 反比公式:selfPercent = (1 - givenPercent)
|
|
495
|
+
*/
|
|
496
|
+
ackMovementSync(left: number, top: number, right: number, bottom: number, xyEnable: number, syncType: number) {
|
|
497
|
+
if (!this._BasicPreProcess("ackMovementSync")) {
|
|
498
|
+
return;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
let cmdList: Array<Object> = [];
|
|
502
|
+
cmdList.push(ActionCmdBuilder.AckMovementSync(left, top, right, bottom, xyEnable, syncType));
|
|
503
|
+
return CmdPackBuilder.InitActCmdPack(this._SpeedKeeps, this._AccKeeps, this._NexusRecv?.token, cmdList);
|
|
504
|
+
}
|
|
505
|
+
|
|
482
506
|
_BuildAccelOnPole(
|
|
483
507
|
builderThis: ActorPackBuilder,
|
|
484
508
|
cmdList: Array<Object>,
|
|
@@ -88,7 +88,7 @@ class ConditionPackBuilder {
|
|
|
88
88
|
return this._BuildPack(ConditionSetBuilder.WallPosition(direction, xPosition, yPosition, this._CommonInfo));
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
boxPosition(left: UNumber, top: UNumber, right: UNumber, bottom: UNumber):
|
|
91
|
+
boxPosition(left: UNumber, top: UNumber, right: UNumber, bottom: UNumber): any {
|
|
92
92
|
if (!this._CheckCommonInfo()) {
|
|
93
93
|
return null;
|
|
94
94
|
}
|
|
@@ -269,6 +269,19 @@ class ConditionPackBuilder {
|
|
|
269
269
|
return this._BuildPack(ConditionSetBuilder.OnFlingCancel(this._CommonInfo, this._ContorlSlefNexus.token));
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
+
onFlingDrop() {
|
|
273
|
+
if (!this._CheckCommonInfo()) {
|
|
274
|
+
return null;
|
|
275
|
+
}
|
|
276
|
+
this._CommonInfoValid = false;
|
|
277
|
+
return this._BuildPack(ConditionSetBuilder.OnFlingDrop(this._CommonInfo, this._ContorlSlefNexus.token));
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* touchCount
|
|
282
|
+
* 当touchDown时,Count会++,用于解决多次touchDown引发的时序问题
|
|
283
|
+
* 当native的count计数等于给定的参数设定的count时,触发condition
|
|
284
|
+
*/
|
|
272
285
|
touchCount(count: number) {
|
|
273
286
|
if (!this._CheckCommonInfo()) {
|
|
274
287
|
return null;
|
|
@@ -277,6 +290,50 @@ class ConditionPackBuilder {
|
|
|
277
290
|
return this._BuildPack(ConditionSetBuilder.TouchCount(this._CommonInfo, count));
|
|
278
291
|
}
|
|
279
292
|
|
|
293
|
+
/**
|
|
294
|
+
* onMovement
|
|
295
|
+
* 当FreeMove块移动时,移动了给定的距离值后触发条件, 给定的距离值由sensitivity定义
|
|
296
|
+
*
|
|
297
|
+
* @param {float} xSensitivity x轴的敏感度设置,表示移动了多少像素时就触发条件, 最小值为1
|
|
298
|
+
* @param {float} ySensitivity y轴的敏感度设置,表示移动了多少像素时就触发条件, undefined时等于xSensitivity
|
|
299
|
+
* @param {int} xyEnables x,y两轴哪个生效, 0b1 为x, 0b10 为y, 默认为都enable
|
|
300
|
+
*/
|
|
301
|
+
onMovement(xSensitivity: number,
|
|
302
|
+
ySensitivity: number | undefined = undefined,
|
|
303
|
+
xyEnables: number | undefined = undefined) {
|
|
304
|
+
if (!this._CheckCommonInfo()) {
|
|
305
|
+
return null;
|
|
306
|
+
}
|
|
307
|
+
this._CommonInfoValid = false;
|
|
308
|
+
|
|
309
|
+
if (!xSensitivity || xSensitivity < 1) {
|
|
310
|
+
xSensitivity = 1;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
if (typeof ySensitivity == "undefined") {
|
|
314
|
+
ySensitivity = xSensitivity;
|
|
315
|
+
xyEnables = 0b11;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
if (typeof xyEnables == "undefined") {
|
|
319
|
+
xyEnables = 0b11;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
return this._BuildPack(ConditionSetBuilder.OnMovement(
|
|
323
|
+
this._CommonInfo,
|
|
324
|
+
xSensitivity, ySensitivity, xyEnables));
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
movementSync(nexusRef: NexusNode) {
|
|
328
|
+
if (!this._CheckCommonInfo()) {
|
|
329
|
+
return null;
|
|
330
|
+
}
|
|
331
|
+
this._CommonInfoValid = false;
|
|
332
|
+
return this._BuildPack(ConditionSetBuilder.MovementSyncNexus(this._CommonInfo,
|
|
333
|
+
nexusRef?.token ? nexusRef.token : 0,
|
|
334
|
+
));
|
|
335
|
+
}
|
|
336
|
+
|
|
280
337
|
_CheckCommonInfo(): boolean {
|
|
281
338
|
if (!this._CommonInfoValid) {
|
|
282
339
|
console.error("Error: must call from new conditoin()");
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { StateCmdBuilder, CmdPackBuilder } from "./ForgeTypeDefine"
|
|
3
3
|
import { NexusNode } from "./NexusNode";
|
|
4
|
+
import ActorControl from "./ActorControl";
|
|
4
5
|
|
|
5
6
|
class StatePackBuilder {
|
|
6
7
|
constructor() {
|
|
@@ -99,6 +100,61 @@ class StatePackBuilder {
|
|
|
99
100
|
fireNexusEvent(nexusRecv: NexusNode, detailEventType: number) {
|
|
100
101
|
return CmdPackBuilder.InitStateCmdPack(StateCmdBuilder.FireNexusEvent(detailEventType, nexusRecv.token));
|
|
101
102
|
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* setTouchAttractChild
|
|
106
|
+
*
|
|
107
|
+
* 绑定一个子view中的FreeMoveDiv
|
|
108
|
+
* 当Touch触控到本div时,这个子div会立刻移动到手指按下的位置,并接受焦点
|
|
109
|
+
*
|
|
110
|
+
* @param {ActorControl} otherFreeMoveControl 其他FreeMoveDiv的control对象
|
|
111
|
+
*/
|
|
112
|
+
setTouchAttractChild(otherFreeMoveControl: ActorControl) {
|
|
113
|
+
if (otherFreeMoveControl) {
|
|
114
|
+
let animRef = otherFreeMoveControl.getBindedAnim();
|
|
115
|
+
return CmdPackBuilder.InitStateCmdPack(StateCmdBuilder.SetTouchAttractChild(animRef));
|
|
116
|
+
} else {
|
|
117
|
+
return CmdPackBuilder.InitStateCmdPack(StateCmdBuilder.SetTouchAttractChild(null));
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* startMovementSync
|
|
123
|
+
*
|
|
124
|
+
* 发出进度同步信号(可以一个FreeMove绑定多个信号发生器,但目前场景估计只需要一个发生器即可)
|
|
125
|
+
* 计算当前freeMove的postion和运动识别区域的比值
|
|
126
|
+
* xPercent = (xPos - left) / (right - left)
|
|
127
|
+
* yPercent = (yPos - top) / (bottom - top)
|
|
128
|
+
* x和y可以为负数,也可能>100%
|
|
129
|
+
*
|
|
130
|
+
* 当多次调用时,nexusRef相同时,则为更新运动识别区域,nexusRef不同时则为新建信号发起器
|
|
131
|
+
*
|
|
132
|
+
* @param {NexusNode} nexusRef 绑定的nexus句柄,接受者用这个句柄来进行监听
|
|
133
|
+
* @param {int} left 运动识别区域的left, 可以为负
|
|
134
|
+
* @param {int} top 运动识别区域的top, 可以为负
|
|
135
|
+
* @param {int} right 运动识别区域的right, 可以为负,必须大于left
|
|
136
|
+
* @param {int} bottom 运动识别区域的bottom, 可以为负,必须大于bottom
|
|
137
|
+
* @param {int} xyEnable x,y是否都触发, 0b01对应x, 0b10对应y, 可以或运算在一起
|
|
138
|
+
*/
|
|
139
|
+
startMovementSync(nexusRef: NexusNode, left: number, top: number, right: number, bottom: number, xyEnable: number) {
|
|
140
|
+
return CmdPackBuilder.InitStateCmdPack(StateCmdBuilder.StartMovementSync(
|
|
141
|
+
nexusRef?.token ? nexusRef.token : 0,
|
|
142
|
+
left,
|
|
143
|
+
top,
|
|
144
|
+
right,
|
|
145
|
+
bottom,
|
|
146
|
+
xyEnable));
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/*
|
|
150
|
+
* stopMovementSync
|
|
151
|
+
*
|
|
152
|
+
* 停止由startMovementSync发起的的同步信号
|
|
153
|
+
* 目前阶段,为关闭所有的信号发起器
|
|
154
|
+
*/
|
|
155
|
+
stopMovementSync() {
|
|
156
|
+
return CmdPackBuilder.InitStateCmdPack(StateCmdBuilder.StopMovementSync());
|
|
157
|
+
}
|
|
102
158
|
}
|
|
103
159
|
|
|
104
160
|
export default StatePackBuilder;
|
|
@@ -3,6 +3,7 @@ import { ActEventDefine } from "./ForgeTypeDefine.ts"
|
|
|
3
3
|
import { default as KeepFlags } from "./KeepFlags.ts"
|
|
4
4
|
import JsvEnvBlocker from "./JsvEnvBlocker.vue"
|
|
5
5
|
import { newNexus } from "./NexusNode"
|
|
6
|
+
import { default as ActControlDebug } from "./ActorControl.ts"
|
|
6
7
|
|
|
7
8
|
let FreeMoveDef = {
|
|
8
9
|
ActEventDefine,
|
|
@@ -11,10 +12,12 @@ let FreeMoveDef = {
|
|
|
11
12
|
|
|
12
13
|
let FreeMoveFunc = {
|
|
13
14
|
newNexus,
|
|
15
|
+
ActControlDebug
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
export {
|
|
17
19
|
JsvFreeMoveActor,
|
|
20
|
+
JsvFreeMoveActor as JsvFreeMoveDiv,
|
|
18
21
|
JsvEnvBlocker,
|
|
19
22
|
FreeMoveDef,
|
|
20
23
|
FreeMoveFunc
|
|
@@ -14,6 +14,11 @@
|
|
|
14
14
|
<script>
|
|
15
15
|
import { Forge, ForgeExtension } from "@shijiu/jsview/dom/jsv-forge-define";
|
|
16
16
|
import ForgeHandles from "../JsViewVueTools/ForgeHandles";
|
|
17
|
+
|
|
18
|
+
const renderDocument = window.JsvCode.Dom.RenderDocument
|
|
19
|
+
? window.JsvCode.Dom.RenderDocument
|
|
20
|
+
: window.JsvCode.Dom.BrowserDocument;
|
|
21
|
+
|
|
17
22
|
export default {
|
|
18
23
|
props: {
|
|
19
24
|
class: {
|
|
@@ -112,7 +117,7 @@ export default {
|
|
|
112
117
|
this.$refs.innerViewDiv
|
|
113
118
|
?.jsvGetProxyView(true)
|
|
114
119
|
.RegisterOnProxyReady(() => {
|
|
115
|
-
const canvas =
|
|
120
|
+
const canvas = renderDocument.createElement("canvas");
|
|
116
121
|
canvas.style.width = _this.style.width + "px";
|
|
117
122
|
canvas.style.height = _this.style.height + "px";
|
|
118
123
|
_this.$refs.innerViewDiv
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
import { ref, shallowRef, reactive } from "vue";
|
|
82
82
|
import { DataNode } from "./DataTree";
|
|
83
83
|
import { Rect, opposite } from "./Geometry";
|
|
84
|
-
import RBush from "./rtree";
|
|
84
|
+
import RBush from "./rtree.js";
|
|
85
85
|
import { EdgeDirection } from "../../JsViewEngineWidget/WidgetCommon";
|
|
86
86
|
import JsvLine from "../JsvLine";
|
|
87
87
|
|
|
@@ -53,7 +53,7 @@ function defaultCompare(a, b) {
|
|
|
53
53
|
return a < b ? -1 : a > b ? 1 : 0;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
function RBush(maxEntries) {
|
|
57
57
|
if (maxEntries === void 0) maxEntries = 9;
|
|
58
58
|
|
|
59
59
|
// max entries in a node is 9 by default; min node fill is 40% for best performance
|