@shijiu/jsview-vue 2.1.482-test.0 → 2.2.35
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/BrowserTextureAnim.vue.mjs +8 -1
- package/bin/jsview-vue.mjs +274 -119
- 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/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 +97 -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 +137 -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/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/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 +223 -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/JsvTextureStore.d.ts +24 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/Store.d.ts +10 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/Texture.d.ts +15 -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/FreeMoveActor.vue.d.ts +72 -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/index.d.ts +11 -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 +31 -0
- package/bin/types/JsViewVueWidget/JsvNinePatch.vue.d.ts +18 -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/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 +37 -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 +18 -5
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +255 -145
- package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +2 -2
- package/utils/JsViewEngineWidget/MetroWidget/VisibleInfo.ts +1 -1
- package/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.ts +21 -21
- package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +4 -4
- package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +10 -10
- package/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.ts +6 -6
- package/utils/JsViewEngineWidget/WidgetCommon.ts +18 -2
- package/utils/JsViewVueTools/JsvRuntimeBridge.js +2 -6
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.ts +8 -0
- package/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue +1 -1
- package/utils/JsViewVueWidget/JsvMindMap/rtree.js +1 -1
- package/utils/JsViewVueWidget/JsvTextBox.vue +14 -2
- package/utils/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue +18 -3
- 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
|
@@ -89,11 +89,11 @@ export class RenderItem {
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
public register(name: string, callback: Function) {
|
|
92
|
-
this.customerCallbackMap[name] = callback;
|
|
92
|
+
(this.customerCallbackMap as any)[name] = callback;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
public unregister(name: string) {
|
|
96
|
-
delete this.customerCallbackMap[name];
|
|
96
|
+
delete (this.customerCallbackMap as any)[name];
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
public onFocus(rect: object): boolean {
|
|
@@ -186,23 +186,23 @@ class CommonMetroTemplate extends MetroTemplate {
|
|
|
186
186
|
|
|
187
187
|
private _FindFocusableNeighbor(direction: string, item: TemplateItem) {
|
|
188
188
|
if (
|
|
189
|
-
item.neighborIndexList[direction].length > 0 &&
|
|
190
|
-
!this._CheckIdsHasFocusable(item.neighborIndexList[direction])
|
|
189
|
+
(item.neighborIndexList as any)[direction].length > 0 &&
|
|
190
|
+
!this._CheckIdsHasFocusable((item.neighborIndexList as any)[direction])
|
|
191
191
|
) {
|
|
192
192
|
const lastItemId =
|
|
193
|
-
item.neighborIndexList[direction][
|
|
194
|
-
item.neighborIndexList[direction].length - 1
|
|
193
|
+
(item.neighborIndexList as any)[direction][
|
|
194
|
+
(item.neighborIndexList as any)[direction].length - 1
|
|
195
195
|
];
|
|
196
196
|
const idx = this._GetValidNeighborIndex(item.id, lastItemId, direction); // 查找其左右邻居
|
|
197
197
|
if (idx !== -1) {
|
|
198
|
-
item.neighborIndexList[direction] = []; // 清除无效项
|
|
199
|
-
item.neighborIndexList[direction].push(idx);
|
|
198
|
+
(item.neighborIndexList as any)[direction] = []; // 清除无效项
|
|
199
|
+
(item.neighborIndexList as any)[direction].push(idx);
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
public addItemInner(itemObj: MeasureInfo): TemplateItem {
|
|
205
|
-
const templateItem = MetroTemplate.getTemplateItem(itemObj);
|
|
205
|
+
const templateItem: any = MetroTemplate.getTemplateItem(itemObj);
|
|
206
206
|
// Layout template items
|
|
207
207
|
const fenceStack = this._FenceStack;
|
|
208
208
|
const itemWidth = templateItem.width;
|
|
@@ -292,7 +292,7 @@ class CommonMetroTemplate extends MetroTemplate {
|
|
|
292
292
|
sizeKey = "height";
|
|
293
293
|
}
|
|
294
294
|
const curPageStart =
|
|
295
|
-
this.templateList[curPageHeadIndex][positionKey];
|
|
295
|
+
(this.templateList as any)[curPageHeadIndex][positionKey];
|
|
296
296
|
if (
|
|
297
297
|
templateItem[positionKey] + templateItem[sizeKey] >
|
|
298
298
|
curPageStart + this.pageSize
|
|
@@ -465,8 +465,8 @@ class CommonMetroTemplate extends MetroTemplate {
|
|
|
465
465
|
|
|
466
466
|
|
|
467
467
|
private getNextItemInner(index: number, offset: number,
|
|
468
|
-
vertical: boolean, useHistory: boolean, checkAnchor: number = -1) {
|
|
469
|
-
const templateList = this.templateList;
|
|
468
|
+
vertical: boolean, useHistory: boolean, checkAnchor: number = -1): any {
|
|
469
|
+
const templateList: any = this.templateList;
|
|
470
470
|
const baseItem = templateList[index];
|
|
471
471
|
if (checkAnchor < 0) {
|
|
472
472
|
// let checkAnchor = -1;
|
|
@@ -645,8 +645,8 @@ class CommonMetroTemplate extends MetroTemplate {
|
|
|
645
645
|
);
|
|
646
646
|
}
|
|
647
647
|
|
|
648
|
-
private _GetTotalNeighbor(index: number, direction: string) {
|
|
649
|
-
const item = this.templateList[index];
|
|
648
|
+
private _GetTotalNeighbor(index: number, direction: string): any {
|
|
649
|
+
const item: any = this.templateList[index];
|
|
650
650
|
return item.neighborIndexList[direction].concat(
|
|
651
651
|
item.tmpNeighborIndexList[direction]
|
|
652
652
|
);
|
|
@@ -666,7 +666,7 @@ class CommonMetroTemplate extends MetroTemplate {
|
|
|
666
666
|
return nearestIndex;
|
|
667
667
|
}
|
|
668
668
|
|
|
669
|
-
private _GetNextLoopItem(index: number, offset: number, isVertical: boolean) {
|
|
669
|
+
private _GetNextLoopItem(index: number, offset: number, isVertical: boolean): TemplateItem | null {
|
|
670
670
|
const templateList = this.templateList;
|
|
671
671
|
const baseItem = templateList[index];
|
|
672
672
|
let searchDirection = isVertical ? "right" : "bottom";
|
|
@@ -953,7 +953,7 @@ class CommonMetroTemplate extends MetroTemplate {
|
|
|
953
953
|
}
|
|
954
954
|
|
|
955
955
|
// 查找与交叉项上下左右最近的各项目,做交叉
|
|
956
|
-
const neighbor = this._FindNearestNeighbor(crossItem);
|
|
956
|
+
const neighbor: any = this._FindNearestNeighbor(crossItem);
|
|
957
957
|
// console.log(
|
|
958
958
|
// "%c cchtest find nearest neighbor",
|
|
959
959
|
// "color:red;",
|
|
@@ -1005,8 +1005,8 @@ class CommonMetroTemplate extends MetroTemplate {
|
|
|
1005
1005
|
console.log(`_IfBlockedByOtherNeighbor unknown direction:${direction}`);
|
|
1006
1006
|
break;
|
|
1007
1007
|
}
|
|
1008
|
-
const crossTemplateItem = this.getItemByIndex(crossItem.index);
|
|
1009
|
-
const targetTemplateItem = this.getItemByIndex(targetItem.index);
|
|
1008
|
+
const crossTemplateItem: any = this.getItemByIndex(crossItem.index);
|
|
1009
|
+
const targetTemplateItem: any = this.getItemByIndex(targetItem.index);
|
|
1010
1010
|
|
|
1011
1011
|
let valid = true;
|
|
1012
1012
|
if (crossTemplateItem && targetTemplateItem) {
|
|
@@ -1015,7 +1015,7 @@ class CommonMetroTemplate extends MetroTemplate {
|
|
|
1015
1015
|
const targetStart = targetTemplateItem[positionKey];
|
|
1016
1016
|
const targetEnd = targetStart + targetTemplateItem[sizeKey] - 1;
|
|
1017
1017
|
for (let i = crossNeighborList.length - 1; i >= 0; i--) {
|
|
1018
|
-
const item = this.getItemByIndex(crossNeighborList[i]);
|
|
1018
|
+
const item: any = this.getItemByIndex(crossNeighborList[i]);
|
|
1019
1019
|
|
|
1020
1020
|
if (item == null) continue;
|
|
1021
1021
|
|
|
@@ -1046,8 +1046,8 @@ class CommonMetroTemplate extends MetroTemplate {
|
|
|
1046
1046
|
}
|
|
1047
1047
|
|
|
1048
1048
|
private _CheckNeighborItemMatching(direction: string, crossItem: EdgeInfo, targetItem: EdgeInfo) {
|
|
1049
|
-
const crossEdgeObj = crossItem.edgeObj;
|
|
1050
|
-
const targetEdgeObj = targetItem.edgeObj;
|
|
1049
|
+
const crossEdgeObj: any = crossItem.edgeObj;
|
|
1050
|
+
const targetEdgeObj: any = targetItem.edgeObj;
|
|
1051
1051
|
let targetEdgeName = "rightEdge";
|
|
1052
1052
|
let crossEdgeName = "leftEdge";
|
|
1053
1053
|
switch (direction) {
|
|
@@ -1255,7 +1255,7 @@ class CommonMetroTemplate extends MetroTemplate {
|
|
|
1255
1255
|
}
|
|
1256
1256
|
|
|
1257
1257
|
private _TryUpdateItemNeighbor(tmpNeighbor: boolean, direction: string, crossItem: EdgeInfo, targetItem: EdgeInfo) {
|
|
1258
|
-
const keyMap = {
|
|
1258
|
+
const keyMap: any = {
|
|
1259
1259
|
target: {
|
|
1260
1260
|
left: "right",
|
|
1261
1261
|
right: "left",
|
|
@@ -1277,7 +1277,7 @@ class CommonMetroTemplate extends MetroTemplate {
|
|
|
1277
1277
|
|
|
1278
1278
|
const targetIndex = targetItem.index;
|
|
1279
1279
|
const crossItemIndex = crossItem.index;
|
|
1280
|
-
const templateList = this.templateList;
|
|
1280
|
+
const templateList: any = this.templateList;
|
|
1281
1281
|
if (this._IfBlockedByOtherNeighbor(direction, crossItem, targetItem)) {
|
|
1282
1282
|
if (!tmpNeighbor) {
|
|
1283
1283
|
this._CheckNeighborItemMatching(direction, crossItem, targetItem);
|
|
@@ -20,7 +20,7 @@ class ListMetroTemplate extends MetroTemplate {
|
|
|
20
20
|
|
|
21
21
|
private _addTemplateItem(templateItem: TemplateItem): void {
|
|
22
22
|
let sizeKey = this.direction == VERTICAL ? "width" : "height";
|
|
23
|
-
if (templateItem[sizeKey] > this.lineMax) {
|
|
23
|
+
if ((templateItem as any)[sizeKey] > this.lineMax) {
|
|
24
24
|
throw new Error(`item size is ${templateItem.width}x${templateItem.height}, large than lineMax ${this.lineMax}`);
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -64,9 +64,9 @@ class ListMetroTemplate extends MetroTemplate {
|
|
|
64
64
|
sizeKey = "height";
|
|
65
65
|
}
|
|
66
66
|
const curPageStart =
|
|
67
|
-
this.templateList[curPageHeadIndex][positionKey];
|
|
67
|
+
(this.templateList as any)[curPageHeadIndex][positionKey];
|
|
68
68
|
if (
|
|
69
|
-
templateItem[positionKey] + templateItem[sizeKey] >
|
|
69
|
+
(templateItem as any)[positionKey] + (templateItem as any)[sizeKey] >
|
|
70
70
|
curPageStart + this.pageSize
|
|
71
71
|
) {
|
|
72
72
|
//新的页
|
|
@@ -81,7 +81,7 @@ class ListMetroTemplate extends MetroTemplate {
|
|
|
81
81
|
|
|
82
82
|
public getNextItem(baseId: number, vOffset: number,
|
|
83
83
|
hOffset: number, moveType: number): TemplateItem | null {
|
|
84
|
-
const item = this.getItemById(baseId);
|
|
84
|
+
const item = this.getItemById(baseId) as any;
|
|
85
85
|
if (item) {
|
|
86
86
|
let neighborDirection: string | null = null;
|
|
87
87
|
if (this.direction == VERTICAL) {
|
|
@@ -86,7 +86,7 @@ const measureObjectDefine = {
|
|
|
86
86
|
findNextAnchor: {
|
|
87
87
|
type: [Object, null],
|
|
88
88
|
default: null,
|
|
89
|
-
validator(value, errorLogger) {
|
|
89
|
+
validator(value: any, errorLogger: any) {
|
|
90
90
|
if (value) {
|
|
91
91
|
if (!checkType(value.left, Number)) {
|
|
92
92
|
errorLogger(`findNextAnchor.left expected integer, got ${toRawType(value.left)}. value is ${value.left}`)
|
|
@@ -253,7 +253,7 @@ abstract class MetroTemplate {
|
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
public getItemByUid(uid: string): TemplateItem | null {
|
|
256
|
-
return this.uidMap[uid];
|
|
256
|
+
return (this.uidMap as any)[uid];
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
public abstract calculateNeighborWhenAddStop(): void;
|
|
@@ -264,7 +264,7 @@ abstract class MetroTemplate {
|
|
|
264
264
|
const item = this.addItemInner(itemObj);
|
|
265
265
|
//检查uid
|
|
266
266
|
if (itemObj.uid) {
|
|
267
|
-
this.uidMap[itemObj.uid] = item;
|
|
267
|
+
(this.uidMap as any)[itemObj.uid] = item;
|
|
268
268
|
}
|
|
269
269
|
return item;
|
|
270
270
|
}
|
|
@@ -368,26 +368,26 @@ abstract class MetroTemplate {
|
|
|
368
368
|
|
|
369
369
|
private static checkMeasureObject(obj: object): boolean {
|
|
370
370
|
let result = true;
|
|
371
|
-
const errorLog = (errorInfo) => {
|
|
371
|
+
const errorLog = (errorInfo: any) => {
|
|
372
372
|
console.error(TAG, "measure obj check error: ", errorInfo, ". raw object", obj);
|
|
373
373
|
}
|
|
374
374
|
for (let key in measureObjectDefine) {
|
|
375
|
-
const defineInfo = measureObjectDefine[key];
|
|
376
|
-
if (typeof obj[key] == "undefined") {
|
|
375
|
+
const defineInfo = (measureObjectDefine as any)[key];
|
|
376
|
+
if (typeof (obj as any)[key] == "undefined") {
|
|
377
377
|
if (typeof defineInfo.default != "undefined") {
|
|
378
|
-
obj[key] = typeof defineInfo.default == "function" ? defineInfo.default() : defineInfo.default;
|
|
378
|
+
(obj as any)[key] = typeof defineInfo.default == "function" ? defineInfo.default() : defineInfo.default;
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
|
-
if (checkType(obj[key], defineInfo.type)) {
|
|
381
|
+
if (checkType((obj as any)[key], defineInfo.type)) {
|
|
382
382
|
if (typeof defineInfo.validator != "undefined") {
|
|
383
|
-
if (!defineInfo.validator(obj[key], errorLog)) {
|
|
383
|
+
if (!defineInfo.validator((obj as any)[key], errorLog)) {
|
|
384
384
|
result = false;
|
|
385
385
|
break;
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
388
|
} else {
|
|
389
389
|
result = false;
|
|
390
|
-
errorLog(`prop ${key} expected ${getTypeName(defineInfo.type)} value, got ${toRawType(obj[key])}`)
|
|
390
|
+
errorLog(`prop ${key} expected ${getTypeName(defineInfo.type)} value, got ${toRawType((obj as any)[key])}`)
|
|
391
391
|
break;
|
|
392
392
|
}
|
|
393
393
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { MetroTemplate, TemplateItem } from "./MetroTemplate";
|
|
2
|
+
import { MetroTemplate, TemplateItem, MeasureInfo } from "./MetroTemplate";
|
|
3
3
|
import { HORIZONTAL } from "../WidgetCommon";
|
|
4
4
|
import { METRO_WIDGET_CONST } from "../MetroWidget/Const";
|
|
5
5
|
class TemplateItemAdder {
|
|
@@ -59,13 +59,13 @@ class TemplateItemAdder {
|
|
|
59
59
|
if (
|
|
60
60
|
this._CurIndex < this._Data.length &&
|
|
61
61
|
(!cur_item ||
|
|
62
|
-
cur_item[this._Key] >= (this._CurPage - 1) * this._PageRange)
|
|
62
|
+
(cur_item as any)[this._Key] >= (this._CurPage - 1) * this._PageRange)
|
|
63
63
|
) {
|
|
64
64
|
while (this._CurIndex < this._Data.length) {
|
|
65
65
|
try {
|
|
66
66
|
let { templateObj } = this.addDataToTemplate(this._Data, this._CurIndex);
|
|
67
67
|
this._CurIndex++;
|
|
68
|
-
if (templateObj[this._Key] >= (this._CurPage + page_num) * this._PageRange) {
|
|
68
|
+
if ((templateObj as any)[this._Key] >= (this._CurPage + page_num) * this._PageRange) {
|
|
69
69
|
this._CurPage += page_num;
|
|
70
70
|
break;
|
|
71
71
|
}
|
|
@@ -101,7 +101,7 @@ class TemplateItemAdder {
|
|
|
101
101
|
try {
|
|
102
102
|
let { templateObj } = this.addDataToTemplate(this._Data, this._CurIndex);
|
|
103
103
|
this._CurIndex++;
|
|
104
|
-
if (templateObj[this._Key] >= (this._CurPage + 1) * this._PageRange) {
|
|
104
|
+
if ((templateObj as any)[this._Key] >= (this._CurPage + 1) * this._PageRange) {
|
|
105
105
|
this._CurPage++;
|
|
106
106
|
}
|
|
107
107
|
} catch (e) {
|
|
@@ -131,7 +131,7 @@ class TemplateItemAdder {
|
|
|
131
131
|
try {
|
|
132
132
|
let { templateObj } = this.addDataToTemplate(this._Data, this._CurIndex);
|
|
133
133
|
cur_id = templateObj.id;
|
|
134
|
-
if (templateObj[this._Key] >= (this._CurPage + 1) * this._PageRange) {
|
|
134
|
+
if ((templateObj as any)[this._Key] >= (this._CurPage + 1) * this._PageRange) {
|
|
135
135
|
this._CurPage++;
|
|
136
136
|
}
|
|
137
137
|
this._CurIndex++;
|
|
@@ -167,7 +167,7 @@ class TemplateItemAdder {
|
|
|
167
167
|
targetItem = templateObj;
|
|
168
168
|
}
|
|
169
169
|
this._CurIndex++;
|
|
170
|
-
if (templateObj[this._Key] >= (this._CurPage + 1) * this._PageRange) {
|
|
170
|
+
if ((templateObj as any)[this._Key] >= (this._CurPage + 1) * this._PageRange) {
|
|
171
171
|
this._CurPage++;
|
|
172
172
|
}
|
|
173
173
|
} catch (e) {
|
|
@@ -155,8 +155,10 @@ export class WholePageSlide extends SlideSetting {
|
|
|
155
155
|
* @constructor SeamlessSlide
|
|
156
156
|
* @extends SlideSetting
|
|
157
157
|
* @param {Object} settings 设置,结构为{
|
|
158
|
-
* startPercent: 左/上侧触发滚动的比例
|
|
159
|
-
* endPercennt: 右/下侧触发滚动的比例
|
|
158
|
+
* startPercent: 左/上侧触发滚动的比例 0-1
|
|
159
|
+
* endPercennt: 右/下侧触发滚动的比例 0-1
|
|
160
|
+
* headRange: 左/上按键触发滚动的区域比例 0-1
|
|
161
|
+
* tailRange: 右/下按键触发滚动的区域比例 0-1
|
|
160
162
|
* speed: 滚动速度, 像素/毫秒
|
|
161
163
|
* easing: 滚动动画的easing
|
|
162
164
|
* boundaryProtect: 确定滚动位置能否小于0或者大于最大长度
|
|
@@ -171,6 +173,8 @@ export class SeamlessSlide extends SlideSetting {
|
|
|
171
173
|
constructor({
|
|
172
174
|
startPercent = 0.2,
|
|
173
175
|
endPercent = 0.8,
|
|
176
|
+
headRange = undefined,
|
|
177
|
+
tailRange = undefined,
|
|
174
178
|
speed = defaultSpeed,
|
|
175
179
|
duration = null,
|
|
176
180
|
easing = defaultEasing,
|
|
@@ -180,6 +184,18 @@ export class SeamlessSlide extends SlideSetting {
|
|
|
180
184
|
super(SlideSetting.Type.SEAMLESS, speed, duration, easing, boundaryProtect);
|
|
181
185
|
this.StartPercent = startPercent;
|
|
182
186
|
this.EndPercent = endPercent;
|
|
187
|
+
if (typeof headRange !== "undefined") {
|
|
188
|
+
this.StartPercent = headRange;
|
|
189
|
+
}
|
|
190
|
+
if (typeof tailRange !== "undefined") {
|
|
191
|
+
this.EndPercent = tailRange;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
if (this.StartPercent < 0 || this.StartPercent > 1 || this.EndPercent < 0 || this.EndPercent > 1) {
|
|
195
|
+
console.error(`SeamlessSlideSetting error: invalide value, startPercent(${this.StartPercent}) and endPercent(${this.EndPercent}) must between 0 and 1.`);
|
|
196
|
+
this.StartPercent = 0.2;
|
|
197
|
+
this.EndPercent = 0.8;
|
|
198
|
+
}
|
|
183
199
|
this.FixFirstPage = fixFirstPage;
|
|
184
200
|
}
|
|
185
201
|
}
|
|
@@ -431,7 +431,7 @@ function preDownloadSdk(core_version){
|
|
|
431
431
|
}
|
|
432
432
|
|
|
433
433
|
//! 显示声明,可以提高执行速度和利用上编辑器的成员名提示功能
|
|
434
|
-
const
|
|
434
|
+
export const jJsvRuntimeBridge = {
|
|
435
435
|
getMac,
|
|
436
436
|
getWireMac,
|
|
437
437
|
getWifiMac,
|
|
@@ -462,8 +462,4 @@ const bridge = {
|
|
|
462
462
|
warmLoadView,
|
|
463
463
|
closeWarmedView,
|
|
464
464
|
preDownloadSdk
|
|
465
|
-
};
|
|
466
|
-
|
|
467
|
-
export {
|
|
468
|
-
bridge as jJsvRuntimeBridge
|
|
469
|
-
};
|
|
465
|
+
};
|
|
@@ -269,6 +269,14 @@ 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
|
+
|
|
272
280
|
touchCount(count: number) {
|
|
273
281
|
if (!this._CheckCommonInfo()) {
|
|
274
282
|
return null;
|
|
@@ -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
|
|
@@ -51,6 +51,18 @@ const computeAlignItems = computed(() => {
|
|
|
51
51
|
return "center";
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
|
+
|
|
55
|
+
const textWidth = computed(() => {
|
|
56
|
+
let w = props.style?.width;
|
|
57
|
+
if (typeof w == "undefined" ) {
|
|
58
|
+
w = 0;
|
|
59
|
+
}
|
|
60
|
+
return w;
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
const jsvTextLatexValue = computed(() => {
|
|
64
|
+
return props.enableLatex ? 1 : 0
|
|
65
|
+
});
|
|
54
66
|
</script>
|
|
55
67
|
|
|
56
68
|
<template>
|
|
@@ -63,8 +75,8 @@ const computeAlignItems = computed(() => {
|
|
|
63
75
|
>
|
|
64
76
|
<div
|
|
65
77
|
:style="{
|
|
66
|
-
width:
|
|
67
|
-
JsvTextLatex:
|
|
78
|
+
width: textWidth,
|
|
79
|
+
JsvTextLatex: jsvTextLatexValue,
|
|
68
80
|
JsvTextLineAlign: lineAlign,
|
|
69
81
|
JsvTextInnerDirection: textDirection,
|
|
70
82
|
}"
|
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
* @Description: file content
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
|
+
// Forge共享数据引用,在Browser处理中window引用,规避Browser触发vite循环引用bug
|
|
9
|
+
const forgeTextureManager = window.JsvCode.ForgeHandles.TextureManager;
|
|
10
|
+
|
|
8
11
|
const DECORATE_BORDER_RADIUS = "BroderRaidus";
|
|
9
12
|
const DECORATE_NINEPATCH_ALPHA_MIX = "NinePatchAlphaMix";
|
|
10
13
|
const TexAlignAnchor = {
|
|
@@ -176,13 +179,25 @@ export default {
|
|
|
176
179
|
);
|
|
177
180
|
console.log("get mask style");
|
|
178
181
|
const transitionTime = this.decorate.animTime;
|
|
182
|
+
|
|
183
|
+
let decorate_url = this.decorate.url;
|
|
184
|
+
// 加入对 jsvtexturestore 模式的支持
|
|
185
|
+
// 特别注意: chromiumn 102版本上,当jsvtexturestore对应内容首次加载时不能显示,此divstyle变化后才能显示
|
|
186
|
+
if (
|
|
187
|
+
this.decorate.url &&
|
|
188
|
+
this.decorate.url.startsWith("jsvtexturestore:")
|
|
189
|
+
) {
|
|
190
|
+
let view_texture = forgeTextureManager.GetImage2(this.decorate.url);
|
|
191
|
+
decorate_url = `url(${view_texture.Source})`;
|
|
192
|
+
}
|
|
193
|
+
|
|
179
194
|
return {
|
|
180
195
|
left: this.left + "px",
|
|
181
196
|
top: this.top + "px",
|
|
182
197
|
width: this.width + "px",
|
|
183
198
|
height: this.height + "px",
|
|
184
199
|
transition: `left ${transitionTime}s, top ${transitionTime}s, width ${transitionTime}s, height ${transitionTime}s`,
|
|
185
|
-
webkitMaskBoxImageSource:
|
|
200
|
+
webkitMaskBoxImageSource: decorate_url,
|
|
186
201
|
webkitMaskBoxImageSlice: slideWidth,
|
|
187
202
|
webkitMaskBoxImageWidth:
|
|
188
203
|
Math.ceil(
|
|
@@ -264,7 +279,7 @@ export default {
|
|
|
264
279
|
mounted() {
|
|
265
280
|
if (this.animation) {
|
|
266
281
|
//此控件直接操作dom因此不走JsvDynamicKeyframes, 直接通过dom添加keyframes
|
|
267
|
-
this.insertKeyframe("@keyframes " + this.animName + " " + this.animation)
|
|
282
|
+
this.insertKeyframe("@keyframes " + this.animName + " " + this.animation);
|
|
268
283
|
}
|
|
269
284
|
|
|
270
285
|
this.$refs.root.jsvGetProxyView().RegisterOnProxyReady(() => {
|
|
@@ -338,4 +353,4 @@ export default {
|
|
|
338
353
|
|
|
339
354
|
<template>
|
|
340
355
|
<div ref="root"></div>
|
|
341
|
-
</template>
|
|
356
|
+
</template>
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export { _sfc_main as default };
|
|
2
|
-
declare namespace _sfc_main {
|
|
3
|
-
const __name: string;
|
|
4
|
-
namespace props {
|
|
5
|
-
const src: StringConstructor;
|
|
6
|
-
const style: ObjectConstructor;
|
|
7
|
-
namespace autoPlay {
|
|
8
|
-
export const type: BooleanConstructor;
|
|
9
|
-
const _default: boolean;
|
|
10
|
-
export { _default as default };
|
|
11
|
-
}
|
|
12
|
-
namespace loopType {
|
|
13
|
-
const type_1: NumberConstructor;
|
|
14
|
-
export { type_1 as type };
|
|
15
|
-
const _default_1: number;
|
|
16
|
-
export { _default_1 as default };
|
|
17
|
-
}
|
|
18
|
-
namespace loopInfo {
|
|
19
|
-
const type_2: ArrayConstructor;
|
|
20
|
-
export { type_2 as type };
|
|
21
|
-
function _default_2(): number[][];
|
|
22
|
-
export { _default_2 as default };
|
|
23
|
-
}
|
|
24
|
-
const onStart: FunctionConstructor;
|
|
25
|
-
const onEnd: FunctionConstructor;
|
|
26
|
-
const onLoad: FunctionConstructor;
|
|
27
|
-
}
|
|
28
|
-
function setup(__props: any, { expose }: {
|
|
29
|
-
expose: any;
|
|
30
|
-
}): (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
31
|
-
[key: string]: any;
|
|
32
|
-
}>;
|
|
33
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export { _sfc_main as default };
|
|
2
|
-
declare namespace _sfc_main {
|
|
3
|
-
const __name: string;
|
|
4
|
-
namespace props {
|
|
5
|
-
const src: StringConstructor;
|
|
6
|
-
const style: ObjectConstructor;
|
|
7
|
-
const onStart: FunctionConstructor;
|
|
8
|
-
const onEnd: FunctionConstructor;
|
|
9
|
-
const onLoad: FunctionConstructor;
|
|
10
|
-
}
|
|
11
|
-
function setup(__props: any, { expose }: {
|
|
12
|
-
expose: any;
|
|
13
|
-
}): (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
14
|
-
[key: string]: any;
|
|
15
|
-
}>;
|
|
16
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
declare class GifData extends ApicDataBase {
|
|
2
|
-
toImage(frame_index: any, canvas: any, canvas_ctx: any): any;
|
|
3
|
-
}
|
|
4
|
-
declare class Viewer {
|
|
5
|
-
constructor(apic_data: any, canvas: any, listener: any);
|
|
6
|
-
_ApicData: any;
|
|
7
|
-
_Canvas: any;
|
|
8
|
-
_Context: any;
|
|
9
|
-
_Listener: any;
|
|
10
|
-
_TimeoutId: number;
|
|
11
|
-
_EndState: number;
|
|
12
|
-
_createLoopTool(loop_type: any, loop_info: any): void;
|
|
13
|
-
_LoopTool: PartLoopTool | NormalLoopTool | SingleLoopTool | undefined;
|
|
14
|
-
stop(): void;
|
|
15
|
-
play(loopType: any, loopInfo: any, endState?: number): void;
|
|
16
|
-
renderLoop(): void;
|
|
17
|
-
renderFrame(frame_index: any): any;
|
|
18
|
-
}
|
|
19
|
-
declare class WebpData extends ApicDataBase {
|
|
20
|
-
toImage(frame_index: any, canvas: any, canvas_ctx: any): any;
|
|
21
|
-
}
|
|
22
|
-
declare class ApicDataBase {
|
|
23
|
-
constructor(arrayBuffer: any);
|
|
24
|
-
LoopCount: number;
|
|
25
|
-
FrameCount: number;
|
|
26
|
-
Width: number;
|
|
27
|
-
Height: number;
|
|
28
|
-
_Canvas: any;
|
|
29
|
-
_Context: any;
|
|
30
|
-
_DecodedData: any;
|
|
31
|
-
decode(arrayBuffer: any): void;
|
|
32
|
-
toImage(frameIndex: any, canvas: any, canvasCtx: any): void;
|
|
33
|
-
}
|
|
34
|
-
declare class PartLoopTool extends LoopToolBase {
|
|
35
|
-
constructor(info_list: any);
|
|
36
|
-
mLoopPeriod: number;
|
|
37
|
-
mCurLoopStartFrame: number;
|
|
38
|
-
mCurLoopEndFrame: number;
|
|
39
|
-
mCurLoopNum: number;
|
|
40
|
-
mCurLoopCount: number;
|
|
41
|
-
mLoopInfo: any;
|
|
42
|
-
mValid: boolean | undefined;
|
|
43
|
-
updateLoop(): boolean;
|
|
44
|
-
}
|
|
45
|
-
declare class NormalLoopTool extends LoopToolBase {
|
|
46
|
-
constructor(loop_type: any, loop_num: any);
|
|
47
|
-
mLoopType: any;
|
|
48
|
-
mLoopCount: number;
|
|
49
|
-
mValid: boolean | undefined;
|
|
50
|
-
}
|
|
51
|
-
declare class SingleLoopTool extends LoopToolBase {
|
|
52
|
-
constructor(index: any);
|
|
53
|
-
mTargetIndex: any;
|
|
54
|
-
}
|
|
55
|
-
import { a as LoopToolBase } from "../jsview-vue-common.mjs";
|
|
56
|
-
export { GifData as G, Viewer as V, WebpData as W };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
export { _sfc_main as default };
|
|
2
|
-
declare namespace _sfc_main {
|
|
3
|
-
const __name: string;
|
|
4
|
-
namespace props {
|
|
5
|
-
namespace latexStr {
|
|
6
|
-
const type: StringConstructor;
|
|
7
|
-
const required: boolean;
|
|
8
|
-
}
|
|
9
|
-
namespace width {
|
|
10
|
-
const type_1: NumberConstructor;
|
|
11
|
-
export { type_1 as type };
|
|
12
|
-
const required_1: boolean;
|
|
13
|
-
export { required_1 as required };
|
|
14
|
-
}
|
|
15
|
-
namespace height {
|
|
16
|
-
const type_2: NumberConstructor;
|
|
17
|
-
export { type_2 as type };
|
|
18
|
-
const _default: number;
|
|
19
|
-
export { _default as default };
|
|
20
|
-
}
|
|
21
|
-
namespace fontSize {
|
|
22
|
-
const type_3: NumberConstructor;
|
|
23
|
-
export { type_3 as type };
|
|
24
|
-
const _default_1: number;
|
|
25
|
-
export { _default_1 as default };
|
|
26
|
-
}
|
|
27
|
-
namespace lineSpace {
|
|
28
|
-
const type_4: NumberConstructor;
|
|
29
|
-
export { type_4 as type };
|
|
30
|
-
const _default_2: number;
|
|
31
|
-
export { _default_2 as default };
|
|
32
|
-
}
|
|
33
|
-
namespace color {
|
|
34
|
-
const type_5: StringConstructor;
|
|
35
|
-
export { type_5 as type };
|
|
36
|
-
const _default_3: string;
|
|
37
|
-
export { _default_3 as default };
|
|
38
|
-
}
|
|
39
|
-
namespace left {
|
|
40
|
-
const type_6: NumberConstructor;
|
|
41
|
-
export { type_6 as type };
|
|
42
|
-
const _default_4: number;
|
|
43
|
-
export { _default_4 as default };
|
|
44
|
-
}
|
|
45
|
-
namespace top {
|
|
46
|
-
const type_7: NumberConstructor;
|
|
47
|
-
export { type_7 as type };
|
|
48
|
-
const _default_5: number;
|
|
49
|
-
export { _default_5 as default };
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
function setup(__props: any): (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
53
|
-
[key: string]: any;
|
|
54
|
-
}>;
|
|
55
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export { _sfc_main as default };
|
|
2
|
-
declare namespace _sfc_main {
|
|
3
|
-
const __name: string;
|
|
4
|
-
namespace props {
|
|
5
|
-
const preloadList: ArrayConstructor;
|
|
6
|
-
const downloadList: ArrayConstructor;
|
|
7
|
-
const onPreloadDone: FunctionConstructor;
|
|
8
|
-
const onDownloadDone: FunctionConstructor;
|
|
9
|
-
const onPreloading: FunctionConstructor;
|
|
10
|
-
}
|
|
11
|
-
function setup(__props: any): (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
}>;
|
|
14
|
-
}
|