@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
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
getWidth: () => undefined;
|
|
21
|
+
getHeight: () => undefined;
|
|
22
|
+
$props: {
|
|
23
|
+
readonly askSize?: boolean | undefined;
|
|
24
|
+
readonly onSized?: Function | undefined;
|
|
25
|
+
readonly style?: Record<string, any> | undefined;
|
|
26
|
+
};
|
|
27
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
|
|
28
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
29
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
30
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
31
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
32
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
33
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
37
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
38
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
39
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
40
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
41
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
42
|
+
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;
|
|
43
|
+
};
|
|
44
|
+
$forceUpdate: () => void;
|
|
45
|
+
$nextTick: typeof import("vue").nextTick;
|
|
46
|
+
$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;
|
|
47
|
+
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{
|
|
48
|
+
getWidth: () => undefined;
|
|
49
|
+
getHeight: () => undefined;
|
|
50
|
+
$props: {
|
|
51
|
+
readonly askSize?: boolean | undefined;
|
|
52
|
+
readonly onSized?: Function | undefined;
|
|
53
|
+
readonly style?: Record<string, any> | undefined;
|
|
54
|
+
};
|
|
55
|
+
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
56
|
+
__isFragment?: undefined;
|
|
57
|
+
__isTeleport?: undefined;
|
|
58
|
+
__isSuspense?: undefined;
|
|
59
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
60
|
+
getWidth: () => undefined;
|
|
61
|
+
getHeight: () => undefined;
|
|
62
|
+
$props: {
|
|
63
|
+
readonly askSize?: boolean | undefined;
|
|
64
|
+
readonly onSized?: Function | undefined;
|
|
65
|
+
readonly style?: Record<string, any> | undefined;
|
|
66
|
+
};
|
|
67
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
68
|
+
$slots: {
|
|
69
|
+
default: (_: {}) => any;
|
|
70
|
+
};
|
|
71
|
+
});
|
|
72
|
+
export default _default;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import ConditionPackBuilder from "./SetCondition";
|
|
2
|
+
import ActionPackBuilder from "./SetAction";
|
|
3
|
+
import StatePackBuilder from "./SetState";
|
|
4
|
+
import { NexusNode } from "./NexusNode";
|
|
5
|
+
declare class ActorControl {
|
|
6
|
+
private _BindView;
|
|
7
|
+
private _BindAnim;
|
|
8
|
+
private _Callbacks;
|
|
9
|
+
private _SelfNexusRecv;
|
|
10
|
+
private _SizeMode;
|
|
11
|
+
private _SharedQuickConditionPackBuilder;
|
|
12
|
+
private _SharedQuickActionPackBuilder;
|
|
13
|
+
private _StatePackBuilder;
|
|
14
|
+
constructor();
|
|
15
|
+
asSizeMode(): void;
|
|
16
|
+
bindForgeView(bindView: any, instantActive: boolean): void;
|
|
17
|
+
/**
|
|
18
|
+
* run 执行编排好的intent集合
|
|
19
|
+
*
|
|
20
|
+
* @param {Array} cmdPackList 内容来自 Condition(), State(), Action() 这些工厂类创建的Command pack
|
|
21
|
+
*/
|
|
22
|
+
run(cmdPackList: Array<Object>): void;
|
|
23
|
+
_WrappedRun(cmdPackList: Array<Object>): void;
|
|
24
|
+
/**
|
|
25
|
+
* Condition
|
|
26
|
+
* 获取创建 ConditionPack 的工厂对象
|
|
27
|
+
* ConditionPack对应支持 .then(cmdPackList), 可传入同 Run 的处理队列
|
|
28
|
+
* 可用方法见 ./SetCondition.js
|
|
29
|
+
* @param {int} group 可选参数,默认为0, 有效值为0~3, 对应默认组, 1组, 2组, 3组, 便于remove时,按组进行清理
|
|
30
|
+
* @param {boolean} multiTimes 可选参数,默认为false, 是否要多次执行, 若为单次,则执行后condition作废
|
|
31
|
+
* @param {string} specName 可选参数,默认null, 命名condition, 用于指定名字进行active/deactive动作的场景
|
|
32
|
+
* @param {boolean} shoudRenderBreak 可选参数,默认false, 关联的回调是否会发起RenderBreak
|
|
33
|
+
* @return {ConditionPackBuilder} ConditionPack 的工厂对象
|
|
34
|
+
*/
|
|
35
|
+
condition(group?: number, multiTimes?: boolean, specName?: string | null, shoudRenderBreak?: boolean): ConditionPackBuilder;
|
|
36
|
+
/**
|
|
37
|
+
* Action
|
|
38
|
+
* 获取创建 ActionPack 的工厂对象
|
|
39
|
+
* 注意: ActionPack 是指会改变 speed 或 accelerate 并自动生成子condition的指令,
|
|
40
|
+
* 每个新的Action会覆盖掉前一次的Action设置,包括其关联的condition,
|
|
41
|
+
* 以及上一个action中的回调,以及上一个action中规划中的ActionEvent
|
|
42
|
+
* 可用方法见 ./SetAction.js
|
|
43
|
+
*
|
|
44
|
+
* @param {int} xySpeedKeeps xy轴上的速度是否保持(与新Action不冲突的才会被保留),
|
|
45
|
+
* x轴保持为1, y轴保持为2,可"与或"让两个轴都保持
|
|
46
|
+
* @param {int} xyAccKeeps xy轴上的加速度是否保持(与新Action不冲突的才会被保留),
|
|
47
|
+
* x轴保持为1, y轴保持为2,可"与或"让两个轴都保持
|
|
48
|
+
* @param {NexusNode} nexusRecv 此动作发出的 nexusEvent 的接受者
|
|
49
|
+
* @return {ActionPackBuilder} ActionPack 的工厂对象
|
|
50
|
+
*/
|
|
51
|
+
action(xySpeedKeeps?: number, xyAccKeeps?: number, nexusRecv?: NexusNode | null): ActionPackBuilder;
|
|
52
|
+
/**
|
|
53
|
+
* State
|
|
54
|
+
* 获取创建 StatePack 的工厂对象
|
|
55
|
+
* 在下一帧运行前的设置值,例如清理condition, 或者在下一帧运动的前调整启动运动的位置
|
|
56
|
+
* 可用方法见 ./SetState.js
|
|
57
|
+
* @return {StatePackBuilder} StatePack 的工厂对象
|
|
58
|
+
*/
|
|
59
|
+
state(): StatePackBuilder;
|
|
60
|
+
getBindedAnim(): any;
|
|
61
|
+
getBindedView(): any;
|
|
62
|
+
_OnEchoEvent(retJson: string): void;
|
|
63
|
+
_EnsureAnim(): void;
|
|
64
|
+
}
|
|
65
|
+
export default ActorControl;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare class CallbackManager {
|
|
2
|
+
private _CallbackMap;
|
|
3
|
+
private _IdGen;
|
|
4
|
+
constructor();
|
|
5
|
+
private addCallback;
|
|
6
|
+
clearCallback(): void;
|
|
7
|
+
expiredIds(ids: Array<string>): void;
|
|
8
|
+
invokeCallback(id: string, actorState: Object, customDataStr: string | null | undefined, nexusCustomDataStr: string | null | undefined): void;
|
|
9
|
+
buildCallbackCmd(func: Function): Object;
|
|
10
|
+
}
|
|
11
|
+
export default CallbackManager;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const ActEventDefine: {
|
|
2
|
+
ActFinish: any;
|
|
3
|
+
SpeedRevertX: any;
|
|
4
|
+
SpeedRevertY: any;
|
|
5
|
+
ActReject: any;
|
|
6
|
+
};
|
|
7
|
+
declare const GroupType_ActionAssoc: number;
|
|
8
|
+
declare const ConditionSetBuilder: any;
|
|
9
|
+
declare const StateCmdBuilder: any;
|
|
10
|
+
declare const ActionCmdBuilder: any;
|
|
11
|
+
declare const CmdPackBuilder: any;
|
|
12
|
+
declare const FreeMoveAnimClass: any;
|
|
13
|
+
declare const RunFreeMoveCmdPacks: Function;
|
|
14
|
+
declare const FinishRenderBreak: Function;
|
|
15
|
+
export { GroupType_ActionAssoc, ActEventDefine, ConditionSetBuilder, ActionCmdBuilder, StateCmdBuilder, CmdPackBuilder, FreeMoveAnimClass, RunFreeMoveCmdPacks, FinishRenderBreak };
|
|
@@ -0,0 +1,78 @@
|
|
|
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 height?: number | undefined;
|
|
23
|
+
readonly width?: number | undefined;
|
|
24
|
+
readonly left?: number | undefined;
|
|
25
|
+
readonly top?: number | undefined;
|
|
26
|
+
readonly style?: Record<string, any> | 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 height?: number | undefined;
|
|
53
|
+
readonly width?: number | undefined;
|
|
54
|
+
readonly left?: number | undefined;
|
|
55
|
+
readonly top?: number | undefined;
|
|
56
|
+
readonly style?: Record<string, any> | 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 height?: number | undefined;
|
|
67
|
+
readonly width?: number | undefined;
|
|
68
|
+
readonly left?: number | undefined;
|
|
69
|
+
readonly top?: number | undefined;
|
|
70
|
+
readonly style?: Record<string, any> | 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;
|
|
@@ -0,0 +1,84 @@
|
|
|
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 left?: number | undefined;
|
|
22
|
+
readonly top?: number | undefined;
|
|
23
|
+
readonly enable?: boolean | undefined;
|
|
24
|
+
readonly height?: number | undefined;
|
|
25
|
+
readonly width?: number | undefined;
|
|
26
|
+
readonly topGID?: number | undefined;
|
|
27
|
+
readonly bottomGID?: number | undefined;
|
|
28
|
+
readonly leftGID?: number | undefined;
|
|
29
|
+
readonly rightGID?: number | undefined;
|
|
30
|
+
};
|
|
31
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
|
|
32
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
33
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
37
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
38
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
39
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
40
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
41
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
42
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
43
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
44
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
45
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
46
|
+
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;
|
|
47
|
+
};
|
|
48
|
+
$forceUpdate: () => void;
|
|
49
|
+
$nextTick: typeof import("vue").nextTick;
|
|
50
|
+
$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;
|
|
51
|
+
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{
|
|
52
|
+
$props: {
|
|
53
|
+
readonly left?: number | undefined;
|
|
54
|
+
readonly top?: number | undefined;
|
|
55
|
+
readonly enable?: boolean | undefined;
|
|
56
|
+
readonly height?: number | undefined;
|
|
57
|
+
readonly width?: number | undefined;
|
|
58
|
+
readonly topGID?: number | undefined;
|
|
59
|
+
readonly bottomGID?: number | undefined;
|
|
60
|
+
readonly leftGID?: number | undefined;
|
|
61
|
+
readonly rightGID?: number | undefined;
|
|
62
|
+
};
|
|
63
|
+
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
64
|
+
__isFragment?: undefined;
|
|
65
|
+
__isTeleport?: undefined;
|
|
66
|
+
__isSuspense?: undefined;
|
|
67
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
68
|
+
$props: {
|
|
69
|
+
readonly left?: number | undefined;
|
|
70
|
+
readonly top?: number | undefined;
|
|
71
|
+
readonly enable?: boolean | undefined;
|
|
72
|
+
readonly height?: number | undefined;
|
|
73
|
+
readonly width?: number | undefined;
|
|
74
|
+
readonly topGID?: number | undefined;
|
|
75
|
+
readonly bottomGID?: number | undefined;
|
|
76
|
+
readonly leftGID?: number | undefined;
|
|
77
|
+
readonly rightGID?: number | undefined;
|
|
78
|
+
};
|
|
79
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
80
|
+
$slots: {
|
|
81
|
+
default: (_: {}) => any;
|
|
82
|
+
};
|
|
83
|
+
});
|
|
84
|
+
export default _default;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import CallbackManager from "./CallbackManager";
|
|
2
|
+
import { NexusNode } from "./NexusNode";
|
|
3
|
+
declare class ActorPackBuilder {
|
|
4
|
+
_CallbackManager: CallbackManager;
|
|
5
|
+
private _ActionTokenGen;
|
|
6
|
+
private _SpeedKeeps;
|
|
7
|
+
private _AccKeeps;
|
|
8
|
+
private _NexusRecv;
|
|
9
|
+
private _CommonInfoValid;
|
|
10
|
+
private _ContorlSlefNexus;
|
|
11
|
+
constructor(callbackManager: CallbackManager, selfNexus: NexusNode);
|
|
12
|
+
isInUsing(): boolean;
|
|
13
|
+
updateCommonInfo(xySpdEnables: number, xyAccEnables: number, nexusRecv: NexusNode | null): void;
|
|
14
|
+
private _CheckCommonInfo;
|
|
15
|
+
/**
|
|
16
|
+
* teleportTo 将Actor在下一帧直接传送到目标位置
|
|
17
|
+
* 注意点: 此过程可以触发所有position的cross条件,但不会触发speed的相关判断,常用于拖拽 + 边界判断
|
|
18
|
+
*
|
|
19
|
+
* @param {int} targetX 带符号整数,标识运动的目标位置,相对于Actor当前位置, 如果设置为undefined, 则表示该轴不设目标
|
|
20
|
+
* @param {int} targetY 带符号整数,标识运动的目标位置,相对于Actor当前位置, 如果设置为undefined, 则表示该轴不设目标
|
|
21
|
+
* @return CommandPack(放入run或者then的CmdPackList队列)
|
|
22
|
+
*/
|
|
23
|
+
teleportTo(targetX: number | undefined, targetY: number | undefined): any;
|
|
24
|
+
/**
|
|
25
|
+
* teleportOffset 将Actor在下一帧直接传送到目标位置
|
|
26
|
+
* 注意点: 此过程可以触发所有position的cross条件,但不会触发speed的相关判断,常用于拖拽 + 边界判断
|
|
27
|
+
*
|
|
28
|
+
* @param {int} offsetX 带符号整数,标识运动的目标位置,相对于Actor当前位置, 如果设置为undefined, 则表示该轴不设目标
|
|
29
|
+
* @param {int} offsetY 带符号整数,标识运动的目标位置,相对于Actor当前位置, 如果设置为undefined, 则表示该轴不设目标
|
|
30
|
+
* @return CommandPack(放入run或者then的CmdPackList队列)
|
|
31
|
+
*/
|
|
32
|
+
teleportOffset(offsetX: number | undefined, offsetY: number | undefined): any;
|
|
33
|
+
/**
|
|
34
|
+
* moveTo 以给定速度移动, 知道边界满足
|
|
35
|
+
*
|
|
36
|
+
* @param {int} edgeX 带符号整数,标识运动的边界位置,相对于Actor原始位置, 如果设置为undefined, 则表示该轴不设目标
|
|
37
|
+
* @param {int} edgeY 带符号整数,标识运动的边界位置,相对于Actor原始位置, 如果设置为undefined, 则表示该轴不设目标
|
|
38
|
+
* @param {double} xSpeed 运行速度,使用时会自动取绝对值,单位(pixel/帧),
|
|
39
|
+
* undefined时,若edgeX设置, 则把edge作为运动目标,以另一轴速度反推此速度, 否则不改变该轴速度
|
|
40
|
+
* @param {double} ySpeed 运行速度,使用时会自动取绝对值,单位(pixel/帧)
|
|
41
|
+
* undefined时,若targetY设置, 则把edge作为运动目标,以另一轴速度反推此速度, 否则不改变该轴速度
|
|
42
|
+
* @param {function} endCallback 参数(x, y) 运动到目标位置后的回调函数, x或者y达到后即回调,以先到为准,回报当前Actor的相对于原始位置的x,y
|
|
43
|
+
* @return CommandPack(放入run或者then的CmdPackList队列)
|
|
44
|
+
*/
|
|
45
|
+
moveTo(edgeX: number | undefined, edgeY: number | undefined, xSpeed: number | undefined, ySpeed: number | undefined, endCallback?: Function | null): any;
|
|
46
|
+
altSpeed(xSpeed: number | undefined, ySpeed: number | undefined, spreadFrame: number | undefined, finishCallback?: Function | null): any;
|
|
47
|
+
brakeToPosition(targetX: number | undefined, targetY: number | undefined, finishCallback?: Function | null, rejectedCallback?: Function | null): any;
|
|
48
|
+
setSpeed(spdX: number | undefined, spdY: number | undefined): any;
|
|
49
|
+
setAccel(accelX: number | undefined, accelY: number | undefined, onRevertX?: Function | null, onRevertY?: Function | null): any;
|
|
50
|
+
setSpdAndAccel(spdX: number | undefined, spdY: number | undefined, accelX: number | undefined, accelY: number | undefined, onRevertX?: Function | null, onRevertY?: Function | null): any;
|
|
51
|
+
stopMoving(isExact?: boolean): any;
|
|
52
|
+
/**
|
|
53
|
+
* ackMovementSync
|
|
54
|
+
* 只能放在 movementSync 的then中,用于将Sync同步信息按比例转化成
|
|
55
|
+
* (注意): 如果触发链条上有自己发出的信息,则将不再产生动作,规避循环触发
|
|
56
|
+
*
|
|
57
|
+
* @param {int} left 运动识别区域的left, 可以为负
|
|
58
|
+
* @param {int} top 运动识别区域的top, 可以为负
|
|
59
|
+
* @param {int} right 运动识别区域的right, 可以为负,必须大于left
|
|
60
|
+
* @param {int} bottom 运动识别区域的bottom, 可以为负,必须大于bottom
|
|
61
|
+
* @param {int} xyEnable x,y是否都触发, 0b01对应x, 0b10对应y, 可以或运算在一起
|
|
62
|
+
* @param {int} syncType 换算公式:
|
|
63
|
+
* 1: 正比公式:selfPercent = givenPercent
|
|
64
|
+
* 2: 反比公式:selfPercent = (1 - givenPercent)
|
|
65
|
+
*/
|
|
66
|
+
ackMovementSync(left: number, top: number, right: number, bottom: number, xyEnable: number, syncType: number): any;
|
|
67
|
+
_BuildAccelOnPole(builderThis: ActorPackBuilder, cmdList: Array<Object>, nexusRecv: NexusNode | null, onRevertX: Function | null, onRevertY: Function | null): void;
|
|
68
|
+
_BasicPreProcess(procName: string): boolean;
|
|
69
|
+
private _TeleportToInner;
|
|
70
|
+
}
|
|
71
|
+
export default ActorPackBuilder;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import CallbackManager from "./CallbackManager";
|
|
2
|
+
import { NexusNode } from "./NexusNode";
|
|
3
|
+
type UNumber = undefined | number;
|
|
4
|
+
type WallDirection = "left" | "right" | "top" | "bottom";
|
|
5
|
+
declare class ConditionPackBuilder {
|
|
6
|
+
_Callbacks: CallbackManager;
|
|
7
|
+
private _CommonInfo;
|
|
8
|
+
private _CommonInfoValid;
|
|
9
|
+
private _ContorlSlefNexus;
|
|
10
|
+
constructor(callbackManager: CallbackManager, selfNexus: NexusNode);
|
|
11
|
+
isInUsing(): boolean;
|
|
12
|
+
updateCommandInfo(group: number, multiTimes: boolean, specName: string | null, shoudRenderBreak: boolean): void;
|
|
13
|
+
/**
|
|
14
|
+
* reachPosition
|
|
15
|
+
* 获取 ReachPosition 的condition
|
|
16
|
+
* x或y已经处于,或者被越过时触发
|
|
17
|
+
*
|
|
18
|
+
* @param {double} xPosition 位置有效值,可以传入undefined来决定此值不设置
|
|
19
|
+
* @param {double} yPosition 位置有效值,可以传入undefined来决定此值不设置
|
|
20
|
+
*/
|
|
21
|
+
reachPosition(xPosition: number | undefined, yPosition: number | undefined): Object | null;
|
|
22
|
+
/**
|
|
23
|
+
* reachPosition
|
|
24
|
+
* 获取 ReachPosition 的condition
|
|
25
|
+
* x或y已经处于,或者被越过时触发
|
|
26
|
+
*
|
|
27
|
+
* @param {double} xPosition 位置有效值,可以传入undefined来决定此值不设置
|
|
28
|
+
* @param {double} yPosition 位置有效值,可以传入undefined来决定此值不设置
|
|
29
|
+
*/
|
|
30
|
+
wallPosition(direction: WallDirection, xPosition: UNumber, yPosition: UNumber): object | null;
|
|
31
|
+
boxPosition(left: UNumber, top: UNumber, right: UNumber, bottom: UNumber): any;
|
|
32
|
+
offsetPosition(left: UNumber, top: UNumber, right: UNumber, bottom: UNumber): object | null;
|
|
33
|
+
startMove(xEnable: boolean, yEnable: boolean): any;
|
|
34
|
+
/**
|
|
35
|
+
* AcrossPosition
|
|
36
|
+
* 获取 AcrossPosition 的condition
|
|
37
|
+
* x或y被越过时触发
|
|
38
|
+
*
|
|
39
|
+
* @param {double} xPosition 位置有效值,可以传入undefined来决定此值不设置
|
|
40
|
+
* @param {double} yPosition 位置有效值,可以传入undefined来决定此值不设置
|
|
41
|
+
*/
|
|
42
|
+
acrossPosition(xPosition: number | undefined, yPosition: number | undefined): Object | null;
|
|
43
|
+
/**
|
|
44
|
+
* OnNexusEvent
|
|
45
|
+
* 响应 actRef 关联的 action 所发出的内部状态信息
|
|
46
|
+
*
|
|
47
|
+
* @param {NexusNode} nexusRecv 由 FreeMoveFunc.newNexus() 创建, 作为通讯句柄,类似电话号,被fireNexusEvent调用
|
|
48
|
+
* @param {number} detailEventType 监听的事件类型, 类比与分机号,和fireNexusEvent发出的id约定, 自定义内容要求1000以上
|
|
49
|
+
*/
|
|
50
|
+
onNexusEvent(nexusRecv: NexusNode, detailEventType: number): Object | null;
|
|
51
|
+
/**
|
|
52
|
+
* OnHitBlock
|
|
53
|
+
* 监听Actor关联的LayoutView与blocker碰撞的状态
|
|
54
|
+
* 碰撞发生后,可以 State.revertWithHitBlock 将LayoutView返回到紧贴到碰撞点的状态
|
|
55
|
+
*
|
|
56
|
+
* @param {number} blkGID 想监听的blocker集群的组ID, 例如所有的跳板横向碰撞面,或者所有的跳板边缘的纵向碰撞面, 0为无效值
|
|
57
|
+
*/
|
|
58
|
+
onHitBlock(blkGID: number): any;
|
|
59
|
+
/**
|
|
60
|
+
* onNextTick
|
|
61
|
+
* 用于对一些Condition激活进行延迟,例如teleportTo处理后延迟激活 OnHitBlock 动作,规避teleportTo处理直接触发OnHitBlocker
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
onNextTick(tickGap?: number): any;
|
|
65
|
+
/** 指定的swapcount前才能执行 */
|
|
66
|
+
onSwapCount(): any;
|
|
67
|
+
onDragStart(): any;
|
|
68
|
+
onDragEnd(): any;
|
|
69
|
+
onTouchDown(): any;
|
|
70
|
+
onTouchRelease(): any;
|
|
71
|
+
onFlingStart(): any;
|
|
72
|
+
onFlingProgress(): any;
|
|
73
|
+
onFlingEnd(): any;
|
|
74
|
+
onFlingCancel(): any;
|
|
75
|
+
onFlingDrop(): any;
|
|
76
|
+
/**
|
|
77
|
+
* touchCount
|
|
78
|
+
* 当touchDown时,Count会++,用于解决多次touchDown引发的时序问题
|
|
79
|
+
* 当native的count计数等于给定的参数设定的count时,触发condition
|
|
80
|
+
*/
|
|
81
|
+
touchCount(count: number): any;
|
|
82
|
+
/**
|
|
83
|
+
* onMovement
|
|
84
|
+
* 当FreeMove块移动时,移动了给定的距离值后触发条件, 给定的距离值由sensitivity定义
|
|
85
|
+
*
|
|
86
|
+
* @param {float} xSensitivity x轴的敏感度设置,表示移动了多少像素时就触发条件, 最小值为1
|
|
87
|
+
* @param {float} ySensitivity y轴的敏感度设置,表示移动了多少像素时就触发条件, undefined时等于xSensitivity
|
|
88
|
+
* @param {int} xyEnables x,y两轴哪个生效, 0b1 为x, 0b10 为y, 默认为都enable
|
|
89
|
+
*/
|
|
90
|
+
onMovement(xSensitivity: number, ySensitivity?: number | undefined, xyEnables?: number | undefined): any;
|
|
91
|
+
movementSync(nexusRef: NexusNode): any;
|
|
92
|
+
_CheckCommonInfo(): boolean;
|
|
93
|
+
_BuildPack(conditionSet: Object): any;
|
|
94
|
+
}
|
|
95
|
+
export default ConditionPackBuilder;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { NexusNode } from "./NexusNode";
|
|
2
|
+
import ActorControl from "./ActorControl";
|
|
3
|
+
declare class StatePackBuilder {
|
|
4
|
+
constructor();
|
|
5
|
+
clearAllConditions(): Object;
|
|
6
|
+
removeConditionByGroup(group: number): Object;
|
|
7
|
+
/**
|
|
8
|
+
* activeCondition
|
|
9
|
+
* 重新激活对应gid或者specName的condition
|
|
10
|
+
* 一个condition处于非激活有两种可能,
|
|
11
|
+
* 1. 允许触发一次的condition已经完成触发
|
|
12
|
+
* 2. 被DeactiveCondition关闭过的condition
|
|
13
|
+
*
|
|
14
|
+
* @param {int} groupType (可选)对应condition的groupType, 与specName二选一
|
|
15
|
+
* @param {String} specName (可选)对应condition的specName, 与groupId二选一, 当groupId为 undefined 或 -1 时生效
|
|
16
|
+
*/
|
|
17
|
+
activeCondition(groupType: number | undefined, specName: String | undefined): Object;
|
|
18
|
+
/**
|
|
19
|
+
* deactiveCondition
|
|
20
|
+
* 停止对应gid或者specName的condition
|
|
21
|
+
*
|
|
22
|
+
* @param {int} groupType (可选)对应condition的groupType, 与specName二选一
|
|
23
|
+
* @param {String} specName (可选)对应condition的specName, 与groupId二选一, 当groupId为 undefined 或 -1 时生效
|
|
24
|
+
*/
|
|
25
|
+
deactiveCondition(groupType: number | undefined, specName: String | undefined): Object;
|
|
26
|
+
setStartPos(targetX: number | undefined, targetY: number | undefined): any;
|
|
27
|
+
setStartOffsetPos(offsetX: number | undefined, offsetY: number | undefined): any;
|
|
28
|
+
revertWithHitBlock(): any;
|
|
29
|
+
setHitWallOverflow(): any;
|
|
30
|
+
touchLockSwitch(isLock: boolean, direction: number, unlockThreshold?: number): any;
|
|
31
|
+
fireNexusEvent(nexusRecv: NexusNode, detailEventType: number): any;
|
|
32
|
+
/**
|
|
33
|
+
* setTouchAttractChild
|
|
34
|
+
*
|
|
35
|
+
* 绑定一个子view中的FreeMoveDiv
|
|
36
|
+
* 当Touch触控到本div时,这个子div会立刻移动到手指按下的位置,并接受焦点
|
|
37
|
+
*
|
|
38
|
+
* @param {ActorControl} otherFreeMoveControl 其他FreeMoveDiv的control对象
|
|
39
|
+
*/
|
|
40
|
+
setTouchAttractChild(otherFreeMoveControl: ActorControl): any;
|
|
41
|
+
/**
|
|
42
|
+
* startMovementSync
|
|
43
|
+
*
|
|
44
|
+
* 发出进度同步信号(可以一个FreeMove绑定多个信号发生器,但目前场景估计只需要一个发生器即可)
|
|
45
|
+
* 计算当前freeMove的postion和运动识别区域的比值
|
|
46
|
+
* xPercent = (xPos - left) / (right - left)
|
|
47
|
+
* yPercent = (yPos - top) / (bottom - top)
|
|
48
|
+
* x和y可以为负数,也可能>100%
|
|
49
|
+
*
|
|
50
|
+
* 当多次调用时,nexusRef相同时,则为更新运动识别区域,nexusRef不同时则为新建信号发起器
|
|
51
|
+
*
|
|
52
|
+
* @param {NexusNode} nexusRef 绑定的nexus句柄,接受者用这个句柄来进行监听
|
|
53
|
+
* @param {int} left 运动识别区域的left, 可以为负
|
|
54
|
+
* @param {int} top 运动识别区域的top, 可以为负
|
|
55
|
+
* @param {int} right 运动识别区域的right, 可以为负,必须大于left
|
|
56
|
+
* @param {int} bottom 运动识别区域的bottom, 可以为负,必须大于bottom
|
|
57
|
+
* @param {int} xyEnable x,y是否都触发, 0b01对应x, 0b10对应y, 可以或运算在一起
|
|
58
|
+
*/
|
|
59
|
+
startMovementSync(nexusRef: NexusNode, left: number, top: number, right: number, bottom: number, xyEnable: number): any;
|
|
60
|
+
stopMovementSync(): any;
|
|
61
|
+
}
|
|
62
|
+
export default StatePackBuilder;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import JsvFreeMoveActor from "./FreeMoveActor.vue";
|
|
2
|
+
import JsvEnvBlocker from "./JsvEnvBlocker.vue";
|
|
3
|
+
export namespace FreeMoveDef {
|
|
4
|
+
export { ActEventDefine };
|
|
5
|
+
export { KeepFlags };
|
|
6
|
+
}
|
|
7
|
+
export namespace FreeMoveFunc {
|
|
8
|
+
export { newNexus };
|
|
9
|
+
export { ActControlDebug };
|
|
10
|
+
}
|
|
11
|
+
import { newNexus } from "./NexusNode";
|
|
12
|
+
export { JsvFreeMoveActor, JsvFreeMoveActor as JsvFreeMoveDiv, JsvEnvBlocker };
|