@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,168 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
left: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
};
|
|
5
|
+
top: {
|
|
6
|
+
type: NumberConstructor;
|
|
7
|
+
};
|
|
8
|
+
name: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
};
|
|
11
|
+
provideData: {
|
|
12
|
+
type: FunctionConstructor;
|
|
13
|
+
require: boolean;
|
|
14
|
+
};
|
|
15
|
+
row: {
|
|
16
|
+
type: NumberConstructor;
|
|
17
|
+
require: boolean;
|
|
18
|
+
};
|
|
19
|
+
column: {
|
|
20
|
+
type: NumberConstructor;
|
|
21
|
+
require: boolean;
|
|
22
|
+
};
|
|
23
|
+
itemSize: {
|
|
24
|
+
type: ObjectConstructor;
|
|
25
|
+
require: boolean;
|
|
26
|
+
};
|
|
27
|
+
updateType: {
|
|
28
|
+
type: typeof UpdateType;
|
|
29
|
+
default(): PageType;
|
|
30
|
+
};
|
|
31
|
+
initFocusId: {
|
|
32
|
+
type: NumberConstructor;
|
|
33
|
+
default: number;
|
|
34
|
+
};
|
|
35
|
+
gapInfo: {
|
|
36
|
+
type: ObjectConstructor;
|
|
37
|
+
default(): {
|
|
38
|
+
row: number;
|
|
39
|
+
column: number;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
verticalUpdate: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
};
|
|
45
|
+
columnFirst: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
};
|
|
48
|
+
onEdge: {
|
|
49
|
+
type: FunctionConstructor;
|
|
50
|
+
};
|
|
51
|
+
loopUpdate: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
focusMoveType: {
|
|
56
|
+
type: NumberConstructor;
|
|
57
|
+
default: number;
|
|
58
|
+
};
|
|
59
|
+
}, {
|
|
60
|
+
originDataList: never[];
|
|
61
|
+
divInfoList: never[];
|
|
62
|
+
startIndex: number;
|
|
63
|
+
dataList: never[];
|
|
64
|
+
dataInfo: {
|
|
65
|
+
endIndex: number;
|
|
66
|
+
};
|
|
67
|
+
focusDataIndex: number;
|
|
68
|
+
preFocusDataIndex: number;
|
|
69
|
+
focused: boolean;
|
|
70
|
+
}, any, {}, {
|
|
71
|
+
_getCurrentFocusId(): any;
|
|
72
|
+
_getDivIndex(dataIndex: any): number;
|
|
73
|
+
_initDivInfoList(): void;
|
|
74
|
+
_cleanOldData(): void;
|
|
75
|
+
_indexConvert(i: any): any;
|
|
76
|
+
_formatData(): void;
|
|
77
|
+
_updateData(startIndex: any): void;
|
|
78
|
+
_getStartIndex(targetIndex: any, direction: any): any;
|
|
79
|
+
_sendOnEdge(edgeDirection: any, divIndex: any): void;
|
|
80
|
+
_moveTo(hOffset: any, vOffset: any): void;
|
|
81
|
+
_onFocus(): void;
|
|
82
|
+
_onBlur(): void;
|
|
83
|
+
_onKeyDown(ev: any): boolean;
|
|
84
|
+
getFocusBlockRef(): any;
|
|
85
|
+
setFocusId(id: any): void;
|
|
86
|
+
refreshData(): void;
|
|
87
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
88
|
+
left: {
|
|
89
|
+
type: NumberConstructor;
|
|
90
|
+
};
|
|
91
|
+
top: {
|
|
92
|
+
type: NumberConstructor;
|
|
93
|
+
};
|
|
94
|
+
name: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
};
|
|
97
|
+
provideData: {
|
|
98
|
+
type: FunctionConstructor;
|
|
99
|
+
require: boolean;
|
|
100
|
+
};
|
|
101
|
+
row: {
|
|
102
|
+
type: NumberConstructor;
|
|
103
|
+
require: boolean;
|
|
104
|
+
};
|
|
105
|
+
column: {
|
|
106
|
+
type: NumberConstructor;
|
|
107
|
+
require: boolean;
|
|
108
|
+
};
|
|
109
|
+
itemSize: {
|
|
110
|
+
type: ObjectConstructor;
|
|
111
|
+
require: boolean;
|
|
112
|
+
};
|
|
113
|
+
updateType: {
|
|
114
|
+
type: typeof UpdateType;
|
|
115
|
+
default(): PageType;
|
|
116
|
+
};
|
|
117
|
+
initFocusId: {
|
|
118
|
+
type: NumberConstructor;
|
|
119
|
+
default: number;
|
|
120
|
+
};
|
|
121
|
+
gapInfo: {
|
|
122
|
+
type: ObjectConstructor;
|
|
123
|
+
default(): {
|
|
124
|
+
row: number;
|
|
125
|
+
column: number;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
verticalUpdate: {
|
|
129
|
+
type: BooleanConstructor;
|
|
130
|
+
};
|
|
131
|
+
columnFirst: {
|
|
132
|
+
type: BooleanConstructor;
|
|
133
|
+
};
|
|
134
|
+
onEdge: {
|
|
135
|
+
type: FunctionConstructor;
|
|
136
|
+
};
|
|
137
|
+
loopUpdate: {
|
|
138
|
+
type: BooleanConstructor;
|
|
139
|
+
default: boolean;
|
|
140
|
+
};
|
|
141
|
+
focusMoveType: {
|
|
142
|
+
type: NumberConstructor;
|
|
143
|
+
default: number;
|
|
144
|
+
};
|
|
145
|
+
}>>, {
|
|
146
|
+
initFocusId: number;
|
|
147
|
+
focusMoveType: number;
|
|
148
|
+
updateType: UpdateType;
|
|
149
|
+
gapInfo: Record<string, any>;
|
|
150
|
+
verticalUpdate: boolean;
|
|
151
|
+
columnFirst: boolean;
|
|
152
|
+
loopUpdate: boolean;
|
|
153
|
+
}>;
|
|
154
|
+
export default _default;
|
|
155
|
+
export class PageType extends UpdateType {
|
|
156
|
+
constructor();
|
|
157
|
+
}
|
|
158
|
+
export class LineType extends UpdateType {
|
|
159
|
+
constructor(start: any, end: any);
|
|
160
|
+
start: any;
|
|
161
|
+
end: any;
|
|
162
|
+
}
|
|
163
|
+
import { FocusMoveType } from "../JsViewEngineWidget/WidgetCommon";
|
|
164
|
+
declare class UpdateType {
|
|
165
|
+
constructor(type: any);
|
|
166
|
+
type: any;
|
|
167
|
+
}
|
|
168
|
+
export { FocusMoveType };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
left: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
default: number;
|
|
5
|
+
};
|
|
6
|
+
top: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
default: number;
|
|
9
|
+
};
|
|
10
|
+
width: NumberConstructor;
|
|
11
|
+
height: NumberConstructor;
|
|
12
|
+
color: StringConstructor;
|
|
13
|
+
}, {
|
|
14
|
+
intervalToken: number;
|
|
15
|
+
visible: import("vue").Ref<boolean>;
|
|
16
|
+
}, any, {}, {
|
|
17
|
+
_cleanInterval(): void;
|
|
18
|
+
startBlink(): void;
|
|
19
|
+
stopBlink(show: any): void;
|
|
20
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
left: {
|
|
22
|
+
type: NumberConstructor;
|
|
23
|
+
default: number;
|
|
24
|
+
};
|
|
25
|
+
top: {
|
|
26
|
+
type: NumberConstructor;
|
|
27
|
+
default: number;
|
|
28
|
+
};
|
|
29
|
+
width: NumberConstructor;
|
|
30
|
+
height: NumberConstructor;
|
|
31
|
+
color: StringConstructor;
|
|
32
|
+
}>>, {
|
|
33
|
+
left: number;
|
|
34
|
+
top: number;
|
|
35
|
+
}>;
|
|
36
|
+
export default _default;
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
name: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
};
|
|
5
|
+
left: {
|
|
6
|
+
type: NumberConstructor;
|
|
7
|
+
default: number;
|
|
8
|
+
};
|
|
9
|
+
top: {
|
|
10
|
+
type: NumberConstructor;
|
|
11
|
+
default: number;
|
|
12
|
+
};
|
|
13
|
+
width: {
|
|
14
|
+
type: NumberConstructor;
|
|
15
|
+
default: number;
|
|
16
|
+
};
|
|
17
|
+
height: {
|
|
18
|
+
type: NumberConstructor;
|
|
19
|
+
default: number;
|
|
20
|
+
};
|
|
21
|
+
type: {
|
|
22
|
+
type: NumberConstructor;
|
|
23
|
+
default: any;
|
|
24
|
+
};
|
|
25
|
+
placeholder: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
placeholderColor: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
maxLength: {
|
|
34
|
+
type: NumberConstructor;
|
|
35
|
+
default: number;
|
|
36
|
+
};
|
|
37
|
+
readonly: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
value: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
fontStyle: {
|
|
46
|
+
type: (ObjectConstructor | ArrayConstructor)[];
|
|
47
|
+
default(): {
|
|
48
|
+
textAlign: string;
|
|
49
|
+
fontSize: number;
|
|
50
|
+
color: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
cursorShow: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
cursorWidth: {
|
|
58
|
+
type: NumberConstructor;
|
|
59
|
+
default: number;
|
|
60
|
+
};
|
|
61
|
+
cursorColor: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
onTextOverflow: {
|
|
66
|
+
type: FunctionConstructor;
|
|
67
|
+
};
|
|
68
|
+
onTextChange: {
|
|
69
|
+
type: FunctionConstructor;
|
|
70
|
+
};
|
|
71
|
+
onEdge: {
|
|
72
|
+
type: FunctionConstructor;
|
|
73
|
+
};
|
|
74
|
+
}, {
|
|
75
|
+
editControlView: null;
|
|
76
|
+
editControlViewId: number;
|
|
77
|
+
isFocus: boolean;
|
|
78
|
+
visibleAreaCurStart: number;
|
|
79
|
+
visibleAreaCurPos: number;
|
|
80
|
+
visibleAreaCurEnd: number;
|
|
81
|
+
cursorPauseTimeoutToken: number;
|
|
82
|
+
}, {
|
|
83
|
+
fullString: string;
|
|
84
|
+
curOffset: number;
|
|
85
|
+
textWidth: number;
|
|
86
|
+
textLeft: number;
|
|
87
|
+
}, {
|
|
88
|
+
realText(): string;
|
|
89
|
+
placeholderVisible(): boolean;
|
|
90
|
+
cursorLeft(): any;
|
|
91
|
+
cursorColorInner(): any;
|
|
92
|
+
}, {
|
|
93
|
+
_updateTextWidth(text: any): void;
|
|
94
|
+
_onTextChanged(text: any, cursor_pos: any, moved: any): void;
|
|
95
|
+
_onStatusChanged(status: any): void;
|
|
96
|
+
_getStringWithFont(str: any): any;
|
|
97
|
+
_getFullStringLength(str: any): any;
|
|
98
|
+
add(string: any): void;
|
|
99
|
+
delete(): void;
|
|
100
|
+
clear(): void;
|
|
101
|
+
replace(string: any): void;
|
|
102
|
+
_calculateCursorPosition(full_str: any, cursor_offset: any): any;
|
|
103
|
+
_getLeftWithDelChar(current_cursor_position: any, target_str: any): number;
|
|
104
|
+
_getLeftWithMoveRight(): number;
|
|
105
|
+
_getLeftWithMoveLeft(): number;
|
|
106
|
+
_updateVisibleAreaCursor(offset: any): void;
|
|
107
|
+
_getLeftWithAddChar(current_cursor_position: any, end_add: any): number;
|
|
108
|
+
_calculateSlide(pre_str: any, target_str: any, cur_index: any, moved: any): number;
|
|
109
|
+
onFocus(): void;
|
|
110
|
+
onBlur(): void;
|
|
111
|
+
clearCursorPauseTimer(): void;
|
|
112
|
+
pauseCursorBlink(): void;
|
|
113
|
+
onKeyDown(keyEvent: any): boolean;
|
|
114
|
+
_GetRealText(src_str: any): any;
|
|
115
|
+
_GetShowText(): any;
|
|
116
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
117
|
+
name: {
|
|
118
|
+
type: StringConstructor;
|
|
119
|
+
};
|
|
120
|
+
left: {
|
|
121
|
+
type: NumberConstructor;
|
|
122
|
+
default: number;
|
|
123
|
+
};
|
|
124
|
+
top: {
|
|
125
|
+
type: NumberConstructor;
|
|
126
|
+
default: number;
|
|
127
|
+
};
|
|
128
|
+
width: {
|
|
129
|
+
type: NumberConstructor;
|
|
130
|
+
default: number;
|
|
131
|
+
};
|
|
132
|
+
height: {
|
|
133
|
+
type: NumberConstructor;
|
|
134
|
+
default: number;
|
|
135
|
+
};
|
|
136
|
+
type: {
|
|
137
|
+
type: NumberConstructor;
|
|
138
|
+
default: any;
|
|
139
|
+
};
|
|
140
|
+
placeholder: {
|
|
141
|
+
type: StringConstructor;
|
|
142
|
+
default: string;
|
|
143
|
+
};
|
|
144
|
+
placeholderColor: {
|
|
145
|
+
type: StringConstructor;
|
|
146
|
+
default: string;
|
|
147
|
+
};
|
|
148
|
+
maxLength: {
|
|
149
|
+
type: NumberConstructor;
|
|
150
|
+
default: number;
|
|
151
|
+
};
|
|
152
|
+
readonly: {
|
|
153
|
+
type: BooleanConstructor;
|
|
154
|
+
default: boolean;
|
|
155
|
+
};
|
|
156
|
+
value: {
|
|
157
|
+
type: StringConstructor;
|
|
158
|
+
default: string;
|
|
159
|
+
};
|
|
160
|
+
fontStyle: {
|
|
161
|
+
type: (ObjectConstructor | ArrayConstructor)[];
|
|
162
|
+
default(): {
|
|
163
|
+
textAlign: string;
|
|
164
|
+
fontSize: number;
|
|
165
|
+
color: string;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
cursorShow: {
|
|
169
|
+
type: BooleanConstructor;
|
|
170
|
+
default: boolean;
|
|
171
|
+
};
|
|
172
|
+
cursorWidth: {
|
|
173
|
+
type: NumberConstructor;
|
|
174
|
+
default: number;
|
|
175
|
+
};
|
|
176
|
+
cursorColor: {
|
|
177
|
+
type: StringConstructor;
|
|
178
|
+
default: string;
|
|
179
|
+
};
|
|
180
|
+
onTextOverflow: {
|
|
181
|
+
type: FunctionConstructor;
|
|
182
|
+
};
|
|
183
|
+
onTextChange: {
|
|
184
|
+
type: FunctionConstructor;
|
|
185
|
+
};
|
|
186
|
+
onEdge: {
|
|
187
|
+
type: FunctionConstructor;
|
|
188
|
+
};
|
|
189
|
+
}>>, {
|
|
190
|
+
type: number;
|
|
191
|
+
height: number;
|
|
192
|
+
width: number;
|
|
193
|
+
left: number;
|
|
194
|
+
top: number;
|
|
195
|
+
fontStyle: unknown[] | Record<string, any>;
|
|
196
|
+
value: string;
|
|
197
|
+
readonly: boolean;
|
|
198
|
+
placeholder: string;
|
|
199
|
+
placeholderColor: string;
|
|
200
|
+
maxLength: number;
|
|
201
|
+
cursorShow: boolean;
|
|
202
|
+
cursorWidth: number;
|
|
203
|
+
cursorColor: string;
|
|
204
|
+
}>;
|
|
205
|
+
export default _default;
|
|
206
|
+
export namespace InputType {
|
|
207
|
+
const TEXT: any;
|
|
208
|
+
const NUMBER: any;
|
|
209
|
+
const PASSWORD: any;
|
|
210
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
$props: {
|
|
3
|
+
readonly backgroundColor?: string | undefined;
|
|
4
|
+
readonly backgroundImage?: string | undefined;
|
|
5
|
+
readonly borderRadius?: number | undefined;
|
|
6
|
+
readonly appear?: string | undefined;
|
|
7
|
+
readonly lineWidth?: number | undefined;
|
|
8
|
+
readonly startPos?: Record<string, any> | undefined;
|
|
9
|
+
readonly endPos?: Record<string, any> | undefined;
|
|
10
|
+
};
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function createTexture(lineWidth: any, color: any): any;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
$props: {
|
|
3
|
+
readonly style?: Record<string, any> | undefined;
|
|
4
|
+
readonly text?: string | undefined;
|
|
5
|
+
readonly slideSpeed?: number | undefined;
|
|
6
|
+
readonly slideDirection?: string | undefined;
|
|
7
|
+
readonly forceSlide?: boolean | undefined;
|
|
8
|
+
readonly timeGap?: number | undefined;
|
|
9
|
+
readonly textGap?: number | undefined;
|
|
10
|
+
};
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
class: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
};
|
|
5
|
+
style: {
|
|
6
|
+
type: (ObjectConstructor | ArrayConstructor)[];
|
|
7
|
+
};
|
|
8
|
+
maskSrc: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
};
|
|
11
|
+
viewSrc: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
};
|
|
14
|
+
maskTop: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
};
|
|
17
|
+
maskBottom: {
|
|
18
|
+
type: NumberConstructor;
|
|
19
|
+
};
|
|
20
|
+
maskLeft: {
|
|
21
|
+
type: NumberConstructor;
|
|
22
|
+
};
|
|
23
|
+
maskRight: {
|
|
24
|
+
type: NumberConstructor;
|
|
25
|
+
};
|
|
26
|
+
maskWidth: {
|
|
27
|
+
type: NumberConstructor;
|
|
28
|
+
};
|
|
29
|
+
maskHeight: {
|
|
30
|
+
type: NumberConstructor;
|
|
31
|
+
};
|
|
32
|
+
}, {
|
|
33
|
+
innerView: null;
|
|
34
|
+
innerViewId: number;
|
|
35
|
+
styleDetail: null;
|
|
36
|
+
html: boolean;
|
|
37
|
+
cache: {
|
|
38
|
+
viewSrc: null;
|
|
39
|
+
maskSrc: null;
|
|
40
|
+
maskTop: number;
|
|
41
|
+
maskLeft: number;
|
|
42
|
+
maskWidth: number;
|
|
43
|
+
maskHeight: number;
|
|
44
|
+
styleList: null;
|
|
45
|
+
};
|
|
46
|
+
}, any, {}, {
|
|
47
|
+
_drawClip(canvas: any, clip_image: any, clip_ready: any, bg_image: any, bg_ready: any): void;
|
|
48
|
+
updateMainTexturePosition(): void;
|
|
49
|
+
_initForHtml(): void;
|
|
50
|
+
_updateInnerView(): void;
|
|
51
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
52
|
+
class: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
};
|
|
55
|
+
style: {
|
|
56
|
+
type: (ObjectConstructor | ArrayConstructor)[];
|
|
57
|
+
};
|
|
58
|
+
maskSrc: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
};
|
|
61
|
+
viewSrc: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
};
|
|
64
|
+
maskTop: {
|
|
65
|
+
type: NumberConstructor;
|
|
66
|
+
};
|
|
67
|
+
maskBottom: {
|
|
68
|
+
type: NumberConstructor;
|
|
69
|
+
};
|
|
70
|
+
maskLeft: {
|
|
71
|
+
type: NumberConstructor;
|
|
72
|
+
};
|
|
73
|
+
maskRight: {
|
|
74
|
+
type: NumberConstructor;
|
|
75
|
+
};
|
|
76
|
+
maskWidth: {
|
|
77
|
+
type: NumberConstructor;
|
|
78
|
+
};
|
|
79
|
+
maskHeight: {
|
|
80
|
+
type: NumberConstructor;
|
|
81
|
+
};
|
|
82
|
+
}>>, {}>;
|
|
83
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Direction = "left" | "top" | "right" | "bottom";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const LEFT = "left";
|
|
2
|
+
export declare const TOP = "top";
|
|
3
|
+
export declare const RIGHT = "right";
|
|
4
|
+
export declare const BOTTOM = "bottom";
|
|
5
|
+
export declare const LEFT_BIT = 1;
|
|
6
|
+
export declare const TOP_BIT = 2;
|
|
7
|
+
export declare const RIGHT_BIT = 4;
|
|
8
|
+
export declare const BOTTOM_BIT = 8;
|
|
9
|
+
export declare function dirStrToBit(dir: string): number;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Rect } from "./Geometry";
|
|
2
|
+
import { Direction } from "./CommonType";
|
|
3
|
+
type MoveType = "star" | "layer" | "inherit";
|
|
4
|
+
export declare class DataNode {
|
|
5
|
+
idToken: number;
|
|
6
|
+
private static readonly DEFAULT_MOVE_TYPE;
|
|
7
|
+
parent: DataNode | null;
|
|
8
|
+
children: Array<DataNode>;
|
|
9
|
+
rect: Rect;
|
|
10
|
+
depth: number;
|
|
11
|
+
customerData: any;
|
|
12
|
+
customerId: string;
|
|
13
|
+
moveType: MoveType;
|
|
14
|
+
private lineList;
|
|
15
|
+
private moveInfoCache;
|
|
16
|
+
constructor(rect: Rect, depth: number, id: string, data: any, moveType?: MoveType);
|
|
17
|
+
get minX(): number;
|
|
18
|
+
get maxX(): number;
|
|
19
|
+
get minY(): number;
|
|
20
|
+
get maxY(): number;
|
|
21
|
+
addLine(lineObj: any): void;
|
|
22
|
+
getLineList(): any[];
|
|
23
|
+
getParentDir(): Direction | null;
|
|
24
|
+
insert(r: DataNode): void;
|
|
25
|
+
find(equalFunc: Function): DataNode | null;
|
|
26
|
+
/**
|
|
27
|
+
* 获取子tree的所有节点的列表(包含此节点)
|
|
28
|
+
*/
|
|
29
|
+
all(): DataNode[];
|
|
30
|
+
/**
|
|
31
|
+
* 寻找指定方向的node
|
|
32
|
+
* 移动逻辑说明:
|
|
33
|
+
* moveType代表本节点和其子节点之间的移动方式
|
|
34
|
+
* star:
|
|
35
|
+
*/
|
|
36
|
+
findNode(direction: Direction): symbol | DataNode | null;
|
|
37
|
+
private calculateMoveInfo;
|
|
38
|
+
private getLayoutChildDir;
|
|
39
|
+
private findListCommonDir;
|
|
40
|
+
/**
|
|
41
|
+
* 寻找指定方向的同级节点, 寻找逻辑:
|
|
42
|
+
* 1. 寻找该方向的最近兄弟节点, 否则就寻找父的最近兄弟节点, 直到找到节点或者到达根节点
|
|
43
|
+
* 2. 若找到的是其他子树的节点, 则往叶方向寻找与本分支同级节点最近的节点, 直到无子或者找到与本节点同级的节点为止
|
|
44
|
+
* @param direction
|
|
45
|
+
*/
|
|
46
|
+
private findNearestBrother;
|
|
47
|
+
private cleanMoveInfoCache;
|
|
48
|
+
private getMoveType;
|
|
49
|
+
/**
|
|
50
|
+
* 寻找最近的node
|
|
51
|
+
*/
|
|
52
|
+
private findNearest;
|
|
53
|
+
private findDirNearest;
|
|
54
|
+
private customerListener;
|
|
55
|
+
private mounted;
|
|
56
|
+
private focused;
|
|
57
|
+
private divRef;
|
|
58
|
+
private lineStyle;
|
|
59
|
+
setLineStyle(style: any): void;
|
|
60
|
+
getLineStyle(): any;
|
|
61
|
+
onFocus(): void;
|
|
62
|
+
onBlur(): void;
|
|
63
|
+
onClick(): void;
|
|
64
|
+
getRegister(): {
|
|
65
|
+
register: (name: string, func: Function) => void;
|
|
66
|
+
};
|
|
67
|
+
onRef: (divRef: any) => void;
|
|
68
|
+
}
|
|
69
|
+
export {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Direction } from "./CommonType";
|
|
2
|
+
export declare function opposite(dir: Direction): Direction;
|
|
3
|
+
export declare class Point {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
constructor(x: number, y: number);
|
|
7
|
+
distance(p: Point, quad?: boolean): number;
|
|
8
|
+
/**
|
|
9
|
+
* 获取两点指点的相对位置(四向划分, 以45度线为界)
|
|
10
|
+
* @param p
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
relativeTo(p: Point): "left" | "right" | "bottom" | "top";
|
|
14
|
+
clone(): Point;
|
|
15
|
+
}
|
|
16
|
+
export declare class Line {
|
|
17
|
+
p0: Point;
|
|
18
|
+
p1: Point;
|
|
19
|
+
constructor(p0: Point, p1: Point);
|
|
20
|
+
get center(): Point;
|
|
21
|
+
}
|
|
22
|
+
export declare class Rect {
|
|
23
|
+
x: number;
|
|
24
|
+
y: number;
|
|
25
|
+
width: number;
|
|
26
|
+
height: number;
|
|
27
|
+
constructor(x: number, y: number, width: number, height: number);
|
|
28
|
+
/**
|
|
29
|
+
* 计算两个矩形之间的最小距离
|
|
30
|
+
* @param rect
|
|
31
|
+
* @param quad
|
|
32
|
+
* @returns
|
|
33
|
+
*/
|
|
34
|
+
distance(rect: Rect, quad?: boolean): number;
|
|
35
|
+
/**
|
|
36
|
+
* 获取两个矩形的相对位置
|
|
37
|
+
* @param rect 自身相对于rect的位置
|
|
38
|
+
* @returns
|
|
39
|
+
*/
|
|
40
|
+
relativeTo(rect: Rect, eightDirInfo?: {
|
|
41
|
+
value: number;
|
|
42
|
+
} | null): "left" | "right" | "bottom" | "top";
|
|
43
|
+
getEdge(dir: Direction): Line;
|
|
44
|
+
containPoint(point: Point): boolean;
|
|
45
|
+
containRect(rect: Rect): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* 获取矩形中离点最近的点
|
|
48
|
+
* @param point
|
|
49
|
+
*/
|
|
50
|
+
getClosestPoint(point: Point): Point;
|
|
51
|
+
get topLeft(): Point;
|
|
52
|
+
get topRight(): Point;
|
|
53
|
+
get bottomLeft(): Point;
|
|
54
|
+
get bottomRight(): Point;
|
|
55
|
+
get center(): Point;
|
|
56
|
+
get leftEdge(): Line;
|
|
57
|
+
get topEdge(): Line;
|
|
58
|
+
get rightEdge(): Line;
|
|
59
|
+
get bottomEdge(): Line;
|
|
60
|
+
get left(): number;
|
|
61
|
+
get top(): number;
|
|
62
|
+
get right(): number;
|
|
63
|
+
get bottom(): number;
|
|
64
|
+
get minX(): number;
|
|
65
|
+
get maxX(): number;
|
|
66
|
+
get minY(): number;
|
|
67
|
+
get maxY(): number;
|
|
68
|
+
}
|