@shijiu/jsview-vue 2.1.340-test.0 → 2.1.362-test.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- import { ref, computed, toRaw, reactive, nextTick, onMounted, onUpdated, onBeforeUnmount, onBeforeUpdate, openBlock, renderSlot, createElementBlock, shallowRef, resolveComponent, normalizeStyle, unref, createElementVNode, Fragment, withCtx, createVNode, createCommentVNode, renderList, inject, provide, onUnmounted, onActivated, onDeactivated, createBlock, watchEffect, toDisplayString, watch, mergeProps, vShow, withDirectives } from 'vue';
1
+ import { ref, computed, toRaw, reactive, nextTick, onMounted, onUpdated, onBeforeUnmount, onBeforeUpdate, openBlock, createElementBlock, renderSlot, shallowRef, resolveComponent, normalizeStyle, createElementVNode, unref, createVNode, withCtx, Fragment, renderList, createCommentVNode, inject, provide, onUnmounted, onActivated, onDeactivated, createBlock, watchEffect, toDisplayString, watch, mergeProps, withDirectives, vShow } from 'vue';
2
2
  import { Forge as Forge$1, ForgeExtension } from '@shijiu/jsview/dom/jsv-forge-define';
3
- import { L as LoopType } from './jsview-common.mjs';
4
- export { A as ApicEndState } from './jsview-common.mjs';
3
+ import { L as LoopType } from './jsview-vue-common.mjs';
4
+ export { A as ApicEndState } from './jsview-vue-common.mjs';
5
5
  import { _ as _export_sfc } from './export-sfc.mjs';
6
6
  import { createWebHashHistory, createMemoryHistory } from 'vue-router';
7
7
 
@@ -9,6 +9,7 @@ import { createWebHashHistory, createMemoryHistory } from 'vue-router';
9
9
  //! utils/JsViewEngineWidget/WidgetCommon.ts;
10
10
  //!
11
11
  class BaseDispatcher {
12
+ _Component;
12
13
  constructor() {
13
14
  console.error("BaseDispatcher is deprecated and will be removed soon. Use MetroWidget exposed methods instead.");
14
15
  this._Component = null;
@@ -89,9 +90,19 @@ const HORIZONTAL = Symbol("horizontal");
89
90
  const defaultSpeed = 1.5;
90
91
  const defaultEasing = "";
91
92
  class SlideSetting {
93
+ static Type = {
94
+ WHOLE_PAGE: 0,
95
+ SEAMLESS: 1,
96
+ FIX_POSITION: 2
97
+ };
98
+ static START_PROTECT = 1;
99
+ static END_PROTECT = 2;
100
+ Type;
101
+ Speed = null;
102
+ Easing;
103
+ BoundaryProtect;
104
+ Duration = null;
92
105
  constructor(type, speed, duration, easing, boundaryProtect) {
93
- this.Speed = null;
94
- this.Duration = null;
95
106
  if (typeof speed != "number" || speed <= 0) {
96
107
  console.error("SlideSetting error: speed must be number greater than 0.");
97
108
  speed = defaultSpeed;
@@ -102,19 +113,6 @@ class SlideSetting {
102
113
  this.Duration = duration;
103
114
  this.BoundaryProtect = boundaryProtect;
104
115
  }
105
- static {
106
- this.Type = {
107
- WHOLE_PAGE: 0,
108
- SEAMLESS: 1,
109
- FIX_POSITION: 2
110
- };
111
- }
112
- static {
113
- this.START_PROTECT = 1;
114
- }
115
- static {
116
- this.END_PROTECT = 2;
117
- }
118
116
  }
119
117
  class WholePageSlide extends SlideSetting {
120
118
  constructor({
@@ -127,6 +125,9 @@ class WholePageSlide extends SlideSetting {
127
125
  }
128
126
  }
129
127
  class SeamlessSlide extends SlideSetting {
128
+ StartPercent;
129
+ EndPercent;
130
+ FixFirstPage;
130
131
  constructor({
131
132
  startPercent = 0.2,
132
133
  endPercent = 0.8,
@@ -143,6 +144,8 @@ class SeamlessSlide extends SlideSetting {
143
144
  }
144
145
  }
145
146
  class FixPositionSlide extends SlideSetting {
147
+ FixPercent;
148
+ FixFirstPage;
146
149
  constructor({
147
150
  fixPercent = 0.5,
148
151
  speed = defaultSpeed,
@@ -182,6 +185,20 @@ Dispatcher.Type = {
182
185
  //! utils/JsViewEngineWidget/TemplateParser/Fence.ts;
183
186
  //!
184
187
  class Fence {
188
+ /**
189
+ * MetroLayout用于计算使用区域的Fence(栅栏)
190
+ *
191
+ * @private
192
+ * @constructor _Fence
193
+ * @memberof Forge.MetroLayout
194
+ * @param {int} takenStartPos 栅栏使用区域的起始位置
195
+ * @param {int} width 栅栏使用区域的宽度
196
+ * @param {int} fenceWidth 栅栏的总宽度
197
+ * @param {int} offsetAhead 栅栏的横向位置
198
+ * */
199
+ Gaps;
200
+ FenceTotalWidth;
201
+ AheadOffsetInner;
185
202
  constructor(takenStartPos, width, fenceWidth, offsetAhead) {
186
203
  this.Gaps = [{ GapStart: 0, GapEnd: fenceWidth - 1 }];
187
204
  this.FenceTotalWidth = fenceWidth;
@@ -485,9 +502,17 @@ const measureObjectDefine = {
485
502
  }
486
503
  };
487
504
  class MetroTemplate {
505
+ supportHistoryPath;
506
+ idsMap;
507
+ uidMap;
508
+ templateList;
509
+ direction;
510
+ lineMax;
511
+ pageSize;
512
+ layoutType;
513
+ tailItemIndex = -1;
514
+ cachedLayoutRange = [];
488
515
  constructor(direction, lineMax, pageSize, layoutType, supportHistoryPath) {
489
- this.tailItemIndex = -1;
490
- this.cachedLayoutRange = [];
491
516
  this.idsMap = [];
492
517
  this.templateList = [];
493
518
  this.direction = direction;
@@ -947,6 +972,9 @@ const TAG$5 = "CommonTemplateParser";
947
972
  ;
948
973
  ;
949
974
  class CommonMetroTemplate extends MetroTemplate {
975
+ _FenceStack;
976
+ _FenceEdge;
977
+ _NotOccupiedEdgeList;
950
978
  constructor(direction, lineMax, pageSize, layoutType, supportHistoryPath) {
951
979
  super(direction, lineMax, pageSize, layoutType, supportHistoryPath);
952
980
  this._FenceStack = [new Fence(0, 0, this.lineMax, 0)];
@@ -1481,9 +1509,7 @@ class CommonMetroTemplate extends MetroTemplate {
1481
1509
  static intersects(s0, e0, s1, e1) {
1482
1510
  return s0 <= e1 && s1 <= e0;
1483
1511
  }
1484
- static {
1485
- this.iterCount = 0;
1486
- }
1512
+ static iterCount = 0;
1487
1513
  /** get visible item list functions */
1488
1514
  getVisibleItemList(visibleStart, visibleEnd, baseId) {
1489
1515
  if (visibleStart > visibleEnd || this.templateList.length == 0) {
@@ -1862,6 +1888,16 @@ class CommonMetroTemplate extends MetroTemplate {
1862
1888
  //! utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.ts;
1863
1889
  //!
1864
1890
  class TemplateItemAdder {
1891
+ _MetroTemplate;
1892
+ _Data;
1893
+ _PageRange;
1894
+ _MeasureFunc;
1895
+ _CurIndex;
1896
+ _CurPage;
1897
+ _SideEffect;
1898
+ _Key;
1899
+ _ID;
1900
+ _OnAddDone;
1865
1901
  constructor(template_parser, data, measure_func, page_range, side_effect, id, onAddDone = null) {
1866
1902
  this._MetroTemplate = template_parser;
1867
1903
  this._Data = data;
@@ -2170,8 +2206,11 @@ class ListMetroTemplate extends MetroTemplate {
2170
2206
  //! utils/JsViewEngineWidget/MetroWidget/PageUpdater.ts;
2171
2207
  //!
2172
2208
  class PageUpdater {
2209
+ tmpRangeSet;
2210
+ rangeSet;
2211
+ updateFunc;
2212
+ count = 1;
2173
2213
  constructor(updateFunc) {
2174
- this.count = 1;
2175
2214
  this.tmpRangeSet = /* @__PURE__ */ new Set();
2176
2215
  this.rangeSet = /* @__PURE__ */ new Set();
2177
2216
  ;
@@ -2250,32 +2289,20 @@ class PageUpdater {
2250
2289
  //!
2251
2290
  ;
2252
2291
  class RenderItem {
2292
+ divMountedCallback = [];
2293
+ customerData;
2294
+ templateInfo;
2295
+ renderStyle;
2296
+ itemConfig;
2297
+ mounted = ref(false);
2298
+ touchInit = false;
2299
+ rootDiv = null;
2300
+ enableTap = false;
2301
+ customerCallbackMap = {};
2302
+ onRef;
2303
+ registerObj;
2304
+ query;
2253
2305
  constructor(templateInfo, customerData, renderStyle, itemConfig, onRef, query) {
2254
- this.divMountedCallback = [];
2255
- this.mounted = ref(false);
2256
- this.touchInit = false;
2257
- this.rootDiv = null;
2258
- this.enableTap = false;
2259
- this.customerCallbackMap = {};
2260
- this.divRef = (ele) => {
2261
- this.rootDiv = ele;
2262
- if (ele) {
2263
- this.onDivMounted();
2264
- } else {
2265
- this.onDivUnmounted();
2266
- }
2267
- };
2268
- this.slotRef = (ele) => {
2269
- if (!this.mounted.value && ele) {
2270
- this.mounted.value = true;
2271
- this.onRef?.();
2272
- } else if (!ele && this.mounted.value) {
2273
- this.mounted.value = false;
2274
- }
2275
- };
2276
- this.onTap = computed(() => {
2277
- return this.enableTap ? { click: this.onClick.bind(this) } : {};
2278
- });
2279
2306
  this.templateInfo = templateInfo;
2280
2307
  this.customerData = customerData;
2281
2308
  this.renderStyle = renderStyle;
@@ -2292,6 +2319,23 @@ class RenderItem {
2292
2319
  get index() {
2293
2320
  return this.templateInfo.index;
2294
2321
  }
2322
+ //TODO item的div ref 会调用多次, 待调查
2323
+ divRef = (ele) => {
2324
+ this.rootDiv = ele;
2325
+ if (ele) {
2326
+ this.onDivMounted();
2327
+ } else {
2328
+ this.onDivUnmounted();
2329
+ }
2330
+ };
2331
+ slotRef = (ele) => {
2332
+ if (!this.mounted.value && ele) {
2333
+ this.mounted.value = true;
2334
+ this.onRef?.();
2335
+ } else if (!ele && this.mounted.value) {
2336
+ this.mounted.value = false;
2337
+ }
2338
+ };
2295
2339
  register(name, callback) {
2296
2340
  this.customerCallbackMap[name] = callback;
2297
2341
  }
@@ -2314,6 +2358,9 @@ class RenderItem {
2314
2358
  return false;
2315
2359
  }
2316
2360
  }
2361
+ onTap = computed(() => {
2362
+ return this.enableTap ? { click: this.onClick.bind(this) } : {};
2363
+ });
2317
2364
  onClick() {
2318
2365
  if (this.mounted.value) {
2319
2366
  this.customerCallbackMap.onClick?.();
@@ -2358,11 +2405,10 @@ class RenderItem {
2358
2405
  //! utils/JsViewEngineWidget/MetroWidget/VisibleInfo.ts;
2359
2406
  //!
2360
2407
  class VisibleInfo {
2361
- constructor() {
2362
- this._start = 0;
2363
- this.range = 0;
2364
- this._startMax = 0;
2365
- }
2408
+ _start = 0;
2409
+ range = 0;
2410
+ padding;
2411
+ _startMax = 0;
2366
2412
  set start(value) {
2367
2413
  this._start = value;
2368
2414
  this._startMax = Math.max(this._start, this._startMax);
@@ -2396,13 +2442,15 @@ class VisibleInfo {
2396
2442
  //! utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.ts;
2397
2443
  //!
2398
2444
  class WidgetRectInfo {
2445
+ mWidth;
2446
+ mHeight;
2447
+ mPadding = {
2448
+ left: 0,
2449
+ top: 0,
2450
+ right: 0,
2451
+ bottom: 0
2452
+ };
2399
2453
  constructor(w, h, padding) {
2400
- this.mPadding = {
2401
- left: 0,
2402
- top: 0,
2403
- right: 0,
2404
- bottom: 0
2405
- };
2406
2454
  this.mWidth = w;
2407
2455
  this.mHeight = h;
2408
2456
  this.mPadding.left = padding?.left ?? 0;
@@ -2440,11 +2488,14 @@ var TaskType = /* @__PURE__ */ ((TaskType2) => {
2440
2488
  return TaskType2;
2441
2489
  })(TaskType || {});
2442
2490
  class MacroEndTaskManager {
2491
+ taskList = [];
2492
+ frameCount;
2493
+ customerOnFlushTakEnd;
2494
+ customerOnBreak;
2495
+ mTaskToken = ref(0);
2496
+ mToken = 0;
2497
+ mFlushedFrameCount = -1;
2443
2498
  constructor(onFlushTask, onBreak) {
2444
- this.taskList = [];
2445
- this.mTaskToken = ref(0);
2446
- this.mToken = 0;
2447
- this.mFlushedFrameCount = -1;
2448
2499
  this.customerOnBreak = onBreak;
2449
2500
  this.customerOnFlushTakEnd = onFlushTask;
2450
2501
  }
@@ -2499,6 +2550,10 @@ class MacroEndTaskManager {
2499
2550
  }
2500
2551
  }
2501
2552
  class AnimObject {
2553
+ frameCount;
2554
+ forgeAnim;
2555
+ element;
2556
+ animSetting;
2502
2557
  constructor(frameCount, element, from, to, setting) {
2503
2558
  this.frameCount = frameCount;
2504
2559
  this.animSetting = setting;
@@ -2538,10 +2593,8 @@ class AnimObject {
2538
2593
  }
2539
2594
  }
2540
2595
  class AnimationManager {
2541
- constructor() {
2542
- this.animList = [];
2543
- this.frameCount = 0;
2544
- }
2596
+ animList = [];
2597
+ frameCount = 0;
2545
2598
  startSlideAnim(element, from, to, setting) {
2546
2599
  let curFrameCount = Forge$1.sFrameCount.count;
2547
2600
  if (curFrameCount != this.frameCount) {
@@ -2596,6 +2649,10 @@ const setChildCommnadPackList = (conditionSet, callbackManager, cmdPackList) =>
2596
2649
  ConditionSetBuilder.SetCmdPackList(conditionSet, cmdPackList);
2597
2650
  };
2598
2651
  class ConditionPackBuilder {
2652
+ _Callbacks;
2653
+ _CommonInfo;
2654
+ _CommonInfoValid;
2655
+ _ContorlSlefNexus;
2599
2656
  constructor(callbackManager, selfNexus) {
2600
2657
  this._Callbacks = callbackManager;
2601
2658
  this._CommonInfo = ConditionSetBuilder.InitCommonInfo();
@@ -2816,6 +2873,13 @@ const ActOnGetAcrossSpeed = (builderThis, xSpeed, ySpeed, acts, isFinal, callbac
2816
2873
  }, acts, isFinal, callback);
2817
2874
  };
2818
2875
  class ActorPackBuilder {
2876
+ _CallbackManager;
2877
+ _ActionTokenGen;
2878
+ _SpeedKeeps;
2879
+ _AccKeeps;
2880
+ _NexusRecv;
2881
+ _CommonInfoValid;
2882
+ _ContorlSlefNexus;
2819
2883
  constructor(callbackManager, selfNexus) {
2820
2884
  this._CallbackManager = callbackManager;
2821
2885
  this._ActionTokenGen = 1;
@@ -3191,9 +3255,16 @@ class StatePackBuilder {
3191
3255
  //! utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.ts;
3192
3256
  //!
3193
3257
  class CallbackInfo {
3258
+ funcRef;
3259
+ // 回调函数
3260
+ times;
3261
+ // 回调的次数
3262
+ once;
3194
3263
  // 是否单次回调就销毁
3195
3264
  }
3196
3265
  class CallbackManager {
3266
+ _CallbackMap;
3267
+ _IdGen;
3197
3268
  constructor() {
3198
3269
  this._CallbackMap = /* @__PURE__ */ new Map();
3199
3270
  this._IdGen = 1;
@@ -3250,6 +3321,7 @@ class CallbackManager {
3250
3321
  //!
3251
3322
  let sNexusIdGen = 1073741824;
3252
3323
  class NexusNode {
3324
+ token;
3253
3325
  constructor() {
3254
3326
  sNexusIdGen = (sNexusIdGen + 1 - 1073741824) % 1073741824 + 1073741824;
3255
3327
  this.token = sNexusIdGen;
@@ -3263,6 +3335,13 @@ function newNexus() {
3263
3335
  //! utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.ts;
3264
3336
  //!
3265
3337
  class ActorControl {
3338
+ _BindView;
3339
+ _BindAnim;
3340
+ _Callbacks;
3341
+ _SelfNexusRecv;
3342
+ _SharedQuickConditionPackBuilder;
3343
+ _SharedQuickActionPackBuilder;
3344
+ _StatePackBuilder;
3266
3345
  constructor() {
3267
3346
  this._BindView = null;
3268
3347
  this._BindAnim = null;
@@ -5919,6 +5998,7 @@ const _sfc_main$D = {
5919
5998
  //! utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.ts;
5920
5999
  //!
5921
6000
  class JsvFocusHubApi {
6001
+ _FocusHub;
5922
6002
  // JsvFocusableNode中的class Hub
5923
6003
  constructor(focusableHubRef) {
5924
6004
  this._FocusHub = focusableHubRef;
@@ -6715,7 +6795,7 @@ window.top.CreatePlayerResult = function(result) {
6715
6795
  } else {
6716
6796
  logError("Create player failed, key=" + result_obj.key);
6717
6797
  }
6718
- }.bind(void 0);
6798
+ }.bind(globalThis);
6719
6799
  function JsvPlayerPluginEvent(data) {
6720
6800
  console.log("LoadPlugin2 result: " + data);
6721
6801
  let obj = JSON.parse(data);
@@ -9995,7 +10075,8 @@ const JsvInput = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_rende
9995
10075
  -->
9996
10076
 
9997
10077
 
9998
-
10078
+
10079
+
9999
10080
  */
10000
10081
  const CONST_FORMAT_TOKEN = "_JsvP_";
10001
10082
  const buildPreloadInfo$1 = (url, width = 0, height = 0, color_type = "RGBA_8888", net_setting = null, is_poster_img) => {
@@ -10145,19 +10226,16 @@ const _sfc_main$u = {
10145
10226
  preloadStateList[index] = true;
10146
10227
  return;
10147
10228
  }
10148
- const callback_token = texture.RegisterLoadImageCallback(
10149
- null,
10150
- (params) => {
10151
- console.log(`preload succeed ${image_url}`, params);
10152
- preloadStateList[index] = true;
10153
- preloadResultMap[item.url] = {
10154
- width: params.width,
10155
- height: params.height
10156
- };
10157
- console.log(`preload succeed ${item.url}, params:${params}`);
10158
- _checkPreload();
10159
- }
10160
- );
10229
+ const callback_token = texture.RegisterLoadImageCallback(null, (params) => {
10230
+ console.log(`preload succeed ${image_url}`, params);
10231
+ preloadStateList[index] = true;
10232
+ preloadResultMap[item.url] = {
10233
+ width: params.width,
10234
+ height: params.height
10235
+ };
10236
+ console.log(`preload succeed ${item.url}, params:${params}`);
10237
+ _checkPreload();
10238
+ });
10161
10239
  texture.EnableBackgroundLoad();
10162
10240
  const texture_setting = new Forge$1.ExternalTextureSetting(texture);
10163
10241
  const preload_view = new Forge$1.PreloadView(texture_setting);
@@ -10174,10 +10252,7 @@ const _sfc_main$u = {
10174
10252
  loadedNum = state ? ++loadedNum : loadedNum;
10175
10253
  });
10176
10254
  if (props.onDownloadDone && loadedNum === downloadStateList.length - downloadIsNullNum) {
10177
- props.onDownloadDone(
10178
- downloadStateList,
10179
- downloadResultMap
10180
- );
10255
+ props.onDownloadDone(downloadStateList, downloadResultMap);
10181
10256
  }
10182
10257
  };
10183
10258
  const _getDownloadViewIdList = () => {
@@ -10213,9 +10288,7 @@ const _sfc_main$u = {
10213
10288
  item.getImageSize
10214
10289
  );
10215
10290
  if (!texture) {
10216
- console.error(
10217
- "Error: Down view build texture failed for " + image_url
10218
- );
10291
+ console.error("Error: Down view build texture failed for " + image_url);
10219
10292
  downloadStateList[index] = "invalid";
10220
10293
  return;
10221
10294
  }
@@ -10244,8 +10317,6 @@ const _sfc_main$u = {
10244
10317
  });
10245
10318
  };
10246
10319
  _releaseForgeView();
10247
- _getPreloadViewIdList();
10248
- _getDownloadViewIdList();
10249
10320
  watchEffect(() => {
10250
10321
  if (props.preloadList) {
10251
10322
  console.log("JsvPreload: update preloadList");
@@ -10698,26 +10769,24 @@ const getsAnimationToken = () => {
10698
10769
  let keyFrameStyleSheet = getKeyFramesGroup(null);
10699
10770
  const TRANSFORM_ORIGIN_LEFT_TOP = "left top";
10700
10771
  class TransformInfoResule {
10701
- constructor() {
10702
- this.csw = 1;
10703
- this.csh = 1;
10704
- this.cx = 0;
10705
- this.cy = 0;
10706
- this.sw = 1;
10707
- this.sh = 1;
10708
- this.x = 0;
10709
- this.y = 0;
10710
- }
10772
+ csw = 1;
10773
+ csh = 1;
10774
+ cx = 0;
10775
+ cy = 0;
10776
+ sw = 1;
10777
+ sh = 1;
10778
+ x = 0;
10779
+ y = 0;
10711
10780
  }
10712
10781
  class SpritePack {
10713
- constructor() {
10714
- this.keyFrameRefName = null;
10715
- this.clipKeyFrameName = null;
10716
- this.transKeyFrameName = null;
10717
- this.clipStyle = null;
10718
- this.transStyle = null;
10719
- this.imageStyle = null;
10720
- }
10782
+ keyFrameRefName = null;
10783
+ clipKeyFrameName = null;
10784
+ transKeyFrameName = null;
10785
+ clipStyle = null;
10786
+ // 对应clip div的style控制
10787
+ transStyle = null;
10788
+ // 对应translate div的style控制
10789
+ imageStyle = null;
10721
10790
  // 对应最内部的图片展示的div的style控制
10722
10791
  }
10723
10792
  function getAnimNameBase() {
@@ -10866,8 +10935,9 @@ function newFrozeFrame(image_url, frame_info_list, index, canvas_width, canvas_h
10866
10935
  ;
10867
10936
 
10868
10937
  //!
10869
- //! utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue?vue&type=style&index=0&scoped=3f4fc537&lang.css;
10938
+ //! utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue?vue&type=style&index=0&scoped=fa78d758&lang.css;
10870
10939
  //!
10940
+ const JsvSpriteAnim_vue_vue_type_style_index_0_scoped_fa78d758_lang = "";
10871
10941
 
10872
10942
  //!
10873
10943
  //! utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue;
@@ -11134,7 +11204,7 @@ const _sfc_main$r = {
11134
11204
  indexArray = "all";
11135
11205
  }
11136
11206
  if (!loopSet) {
11137
- loopSet = "";
11207
+ loopSet = props.loop;
11138
11208
  }
11139
11209
  if (!duration) {
11140
11210
  duration = props.duration;
@@ -11197,9 +11267,9 @@ const _sfc_main$r = {
11197
11267
  };
11198
11268
  }
11199
11269
  };
11200
- const styleSheetsContent$1 = { "0": { "sprite-tag-3f4fc537": "@keyframes sprite-tag-3f4fc537 {}" } };
11270
+ const styleSheetsContent$1 = { "0": { "sprite-tag-fa78d758": "@keyframes sprite-tag-fa78d758 {}" } };
11201
11271
  window.JsvCode.Dom.DeclareStyleSheets(styleSheetsContent$1);
11202
- const JsvSpriteAnim = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-3f4fc537"]]);
11272
+ const JsvSpriteAnim = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-fa78d758"]]);
11203
11273
 
11204
11274
  //!
11205
11275
  //! utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue;
@@ -12199,6 +12269,7 @@ const _sfc_main$n = {
12199
12269
  let startPosX = leftArray[i + 1].left + leftArray[i + 1].width / 2;
12200
12270
  leftArray[i].left = startPosX - space.value - leftArray[i].width / 2;
12201
12271
  }
12272
+ let aniDistance = leftArray[midIndex].left - leftArray[midIndex - 1].left;
12202
12273
  for (let i = midIndex + 1; i < items.length; i++) {
12203
12274
  let startPosX = leftArray[i - 1].left + leftArray[i - 1].width / 2;
12204
12275
  leftArray[i].left = startPosX + space.value - leftArray[i].width / 2;
@@ -12321,7 +12392,7 @@ const _sfc_main$n = {
12321
12392
  let styleShell = getKeyFramesGroup();
12322
12393
  let slideToLeftA = `@keyframes slideToLeftA {
12323
12394
  from {
12324
- transform: translate3d(${-150}, 0, 0);
12395
+ transform: translate3d(${-aniDistance}, 0, 0);
12325
12396
  }
12326
12397
  to {
12327
12398
  transform: translate3d(0, 0, 0);
@@ -12330,7 +12401,7 @@ const _sfc_main$n = {
12330
12401
  styleShell.insertRule(slideToLeftA);
12331
12402
  let slideToLeftB = `@keyframes slideToLeftB {
12332
12403
  from {
12333
- transform: translate3d(${-150}, 0, 0);
12404
+ transform: translate3d(${-aniDistance}, 0, 0);
12334
12405
  }
12335
12406
  to {
12336
12407
  transform: translate3d(0, 0, 0);
@@ -12339,7 +12410,7 @@ const _sfc_main$n = {
12339
12410
  styleShell.insertRule(slideToLeftB);
12340
12411
  let slideToRightA = `@keyframes slideToRightA {
12341
12412
  from {
12342
- transform: translate3d(${150}, 0, 0);
12413
+ transform: translate3d(${aniDistance}, 0, 0);
12343
12414
  }
12344
12415
  to {
12345
12416
  transform: translate3d(0, 0, 0);
@@ -12348,7 +12419,7 @@ const _sfc_main$n = {
12348
12419
  styleShell.insertRule(slideToRightA);
12349
12420
  let slideToRightB = `@keyframes slideToRightB {
12350
12421
  from {
12351
- transform: translate3d(${150}, 0, 0);
12422
+ transform: translate3d(${aniDistance}, 0, 0);
12352
12423
  }
12353
12424
  to {
12354
12425
  transform: translate3d(0, 0, 0);
@@ -12357,7 +12428,7 @@ const _sfc_main$n = {
12357
12428
  styleShell.insertRule(slideToRightB);
12358
12429
  let lowerA = `@keyframes lowerA {
12359
12430
  from {
12360
- transform: scale3d(1.1, 1.1, 1);
12431
+ transform: scale3d(${1 + props.sideScale},${1 + props.sideScale}, 1);
12361
12432
  }
12362
12433
  to {
12363
12434
  transform: scale3d(1, 1, 1);
@@ -12366,7 +12437,7 @@ const _sfc_main$n = {
12366
12437
  styleShell.insertRule(lowerA);
12367
12438
  let lowerB = `@keyframes lowerB {
12368
12439
  from {
12369
- transform: scale3d(1.1, 1.1, 1);
12440
+ transform: scale3d(${1 + props.sideScale},${1 + props.sideScale}, 1);
12370
12441
  }
12371
12442
  to {
12372
12443
  transform: scale3d(1, 1, 1);
@@ -12375,7 +12446,7 @@ const _sfc_main$n = {
12375
12446
  styleShell.insertRule(lowerB);
12376
12447
  let biggerA = `@keyframes biggerA {
12377
12448
  from {
12378
- transform: scale3d(${1 / 1.1},${1 / 1.1} , 1);
12449
+ transform: scale3d(${1 / (1 + props.sideScale)},${1 / (1 + props.sideScale)} , 1);
12379
12450
  }
12380
12451
  to {
12381
12452
  transform: scale3d(1, 1, 1);
@@ -12384,7 +12455,7 @@ const _sfc_main$n = {
12384
12455
  styleShell.insertRule(biggerA);
12385
12456
  let biggerB = `@keyframes biggerB {
12386
12457
  from {
12387
- transform: scale3d(${1 / 1.1},${1 / 1.1} , 1);
12458
+ transform: scale3d(${1 / (1 + props.sideScale)},${1 / (1 + props.sideScale)} , 1);
12388
12459
  }
12389
12460
  to {
12390
12461
  transform: scale3d(1, 1, 1);
@@ -12393,7 +12464,7 @@ const _sfc_main$n = {
12393
12464
  styleShell.insertRule(biggerB);
12394
12465
  let slideToLeft0A = `@keyframes slideToLeft0A {
12395
12466
  from {
12396
- transform: translate3d(${150}, 0, 0);
12467
+ transform: translate3d(${aniDistance}, 0, 0);
12397
12468
  }
12398
12469
  to {
12399
12470
  transform: translate3d(0, 0, 0);
@@ -12402,7 +12473,7 @@ const _sfc_main$n = {
12402
12473
  styleShell.insertRule(slideToLeft0A);
12403
12474
  let slideToLeft0B = `@keyframes slideToLeft0B {
12404
12475
  from {
12405
- transform: translate3d(${150}, 0, 0);
12476
+ transform: translate3d(${aniDistance}, 0, 0);
12406
12477
  }
12407
12478
  to {
12408
12479
  transform: translate3d(0, 0, 0);
@@ -12411,7 +12482,7 @@ const _sfc_main$n = {
12411
12482
  styleShell.insertRule(slideToLeft0B);
12412
12483
  let slideToRight0A = `@keyframes slideToRight0A {
12413
12484
  from {
12414
- transform: translate3d(${-150}, 0, 0);
12485
+ transform: translate3d(${-aniDistance}, 0, 0);
12415
12486
  }
12416
12487
  to {
12417
12488
  transform: translate3d(0, 0, 0);
@@ -12420,7 +12491,7 @@ const _sfc_main$n = {
12420
12491
  styleShell.insertRule(slideToRight0A);
12421
12492
  let slideToRight0B = `@keyframes slideToRight0B {
12422
12493
  from {
12423
- transform: translate3d(${-150}, 0, 0);
12494
+ transform: translate3d(${-aniDistance}, 0, 0);
12424
12495
  }
12425
12496
  to {
12426
12497
  transform: translate3d(0, 0, 0);
@@ -12452,6 +12523,20 @@ const _sfc_main$n = {
12452
12523
  onFocus: props.onFocus,
12453
12524
  onBlur: props.onBlur
12454
12525
  };
12526
+ onBeforeUnmount(() => {
12527
+ styleShell.removeRule("slideToLeftA");
12528
+ styleShell.removeRule("slideToLeftB");
12529
+ styleShell.removeRule("slideToRightA");
12530
+ styleShell.removeRule("slideToRightB");
12531
+ styleShell.removeRule("slideToLeft0A");
12532
+ styleShell.removeRule("slideToLeft0B");
12533
+ styleShell.removeRule("slideToRight0A");
12534
+ styleShell.removeRule("slideToRight0B");
12535
+ styleShell.removeRule("lowerA");
12536
+ styleShell.removeRule("lowerB");
12537
+ styleShell.removeRule("biggerA");
12538
+ styleShell.removeRule("biggerB");
12539
+ });
12455
12540
  return (_ctx, _cache) => {
12456
12541
  const _component_jsv_focus_block = resolveComponent("jsv-focus-block");
12457
12542
  return openBlock(), createBlock(_component_jsv_focus_block, {
@@ -14929,9 +15014,7 @@ const disableNativeViewListener = (listenerId) => {
14929
15014
  //! utils/JsViewVueTools/JsvPerformance.ts;
14930
15015
  //!
14931
15016
  class JsvPerformance {
14932
- static {
14933
- this.posterSingleThreadDecode = false;
14934
- }
15017
+ static posterSingleThreadDecode = false;
14935
15018
  static setPosterSingleThreadDecode(v) {
14936
15019
  JsvPerformance.posterSingleThreadDecode = v;
14937
15020
  }
@@ -14944,8 +15027,8 @@ class JsvPerformance {
14944
15027
  //! utils/JsViewVueTools/JsvTextureStore/Store.ts;
14945
15028
  //!
14946
15029
  class JsvTextureStore {
15030
+ textureMap = /* @__PURE__ */ new Map();
14947
15031
  constructor() {
14948
- this.textureMap = /* @__PURE__ */ new Map();
14949
15032
  }
14950
15033
  addToStore(storeName, textureRef) {
14951
15034
  this.textureMap.set(storeName, textureRef);
@@ -14970,10 +15053,11 @@ let sStore = new JsvTextureStore();
14970
15053
  //! utils/JsViewVueTools/JsvTextureStore/Texture.ts;
14971
15054
  //!
14972
15055
  class TextureBase {
15056
+ baseName = "T";
15057
+ textureRef = null;
15058
+ // Forge.ImageTexture
15059
+ storeName = "";
14973
15060
  constructor(baseName) {
14974
- this.baseName = "T";
14975
- this.textureRef = null;
14976
- this.storeName = "";
14977
15061
  if (baseName) {
14978
15062
  this.baseName = baseName;
14979
15063
  }
@@ -15027,10 +15111,10 @@ const PATH_CMD_CLOSE = 33;
15027
15111
  //! utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.ts;
15028
15112
  //!
15029
15113
  class DrawingPath {
15114
+ drawCommandsRefs = [];
15115
+ finishedDraw = false;
15030
15116
  // 控制stroke和fill只能调用一次
15031
15117
  constructor(drawCmds) {
15032
- this.drawCommandsRefs = [];
15033
- this.finishedDraw = false;
15034
15118
  this.drawCommandsRefs = drawCmds;
15035
15119
  }
15036
15120
  /**
@@ -15077,6 +15161,10 @@ class DrawingPath {
15077
15161
  }
15078
15162
  }
15079
15163
  class RectPath extends DrawingPath {
15164
+ rectLeft;
15165
+ rectTop;
15166
+ rectRight;
15167
+ rectBottom;
15080
15168
  constructor(drawCmds, left, top, right, bottom) {
15081
15169
  super(drawCmds);
15082
15170
  this.rectLeft = left;
@@ -15096,6 +15184,9 @@ class RectPath extends DrawingPath {
15096
15184
  }
15097
15185
  }
15098
15186
  class CirclePath extends DrawingPath {
15187
+ circleCenterX;
15188
+ circleCenterY;
15189
+ circleRadius;
15099
15190
  constructor(drawCmds, centerX, centerY, radius) {
15100
15191
  super(drawCmds);
15101
15192
  this.circleCenterX = centerX;
@@ -15113,9 +15204,9 @@ class CirclePath extends DrawingPath {
15113
15204
  }
15114
15205
  }
15115
15206
  class CustomPath extends DrawingPath {
15207
+ pathCommands = [];
15116
15208
  constructor(drawCmds) {
15117
15209
  super(drawCmds);
15118
- this.pathCommands = [];
15119
15210
  }
15120
15211
  /**
15121
15212
  * moveTo
@@ -15195,6 +15286,8 @@ class CustomPath extends DrawingPath {
15195
15286
  //! utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CanvasTexture.ts;
15196
15287
  //!
15197
15288
  class CanvasTexture extends TextureBase {
15289
+ drawCommands = [];
15290
+ commited = false;
15198
15291
  // commit只能执行一次, 执行过后无法再更改texture内容
15199
15292
  /**
15200
15293
  * canvasTexture
@@ -15205,8 +15298,6 @@ class CanvasTexture extends TextureBase {
15205
15298
  */
15206
15299
  constructor(width, height, baseName) {
15207
15300
  super(baseName);
15208
- this.drawCommands = [];
15209
- this.commited = false;
15210
15301
  this.drawCommands?.push({
15211
15302
  "cmd": CMD_ALLOC_CANVAS,
15212
15303
  "w": width,
@@ -17011,6 +17102,7 @@ class LineTexture {
17011
17102
  //!
17012
17103
  //! utils/JsViewVueWidget/JsvLine/JsvLine.vue?vue&type=style&index=0&scoped=10b9ebcf&lang.css;
17013
17104
  //!
17105
+ const JsvLine_vue_vue_type_style_index_0_scoped_10b9ebcf_lang = "";
17014
17106
 
17015
17107
  //!
17016
17108
  //! utils/JsViewVueWidget/JsvLine/JsvLine.vue;
@@ -17910,9 +18002,9 @@ function opposite(dir) {
17910
18002
  }
17911
18003
  }
17912
18004
  class Point {
18005
+ x = 0;
18006
+ y = 0;
17913
18007
  constructor(x, y) {
17914
- this.x = 0;
17915
- this.y = 0;
17916
18008
  this.x = x;
17917
18009
  this.y = y;
17918
18010
  }
@@ -17945,6 +18037,8 @@ class Point {
17945
18037
  }
17946
18038
  }
17947
18039
  class Line {
18040
+ p0;
18041
+ p1;
17948
18042
  constructor(p0, p1) {
17949
18043
  this.p0 = p0;
17950
18044
  this.p1 = p1;
@@ -17954,6 +18048,10 @@ class Line {
17954
18048
  }
17955
18049
  }
17956
18050
  class Rect {
18051
+ x;
18052
+ y;
18053
+ width;
18054
+ height;
17957
18055
  constructor(x, y, width, height) {
17958
18056
  this.x = x;
17959
18057
  this.y = y;
@@ -18142,48 +18240,33 @@ class Rect {
18142
18240
  const NO_NEIGHBOR = Symbol("noNeighbor");
18143
18241
  let token = 0;
18144
18242
  class DataNode {
18243
+ idToken = token++;
18244
+ static DEFAULT_MOVE_TYPE = "star";
18245
+ parent = null;
18246
+ children = [];
18247
+ rect;
18248
+ depth;
18249
+ customerData;
18250
+ customerId;
18251
+ moveType = "inherit";
18252
+ lineList = [];
18253
+ //焦点移动相关
18254
+ moveInfoCache = {
18255
+ moveType: null,
18256
+ parentDir: null,
18257
+ childDir: null,
18258
+ left: null,
18259
+ top: null,
18260
+ right: null,
18261
+ bottom: null
18262
+ };
18145
18263
  constructor(rect, depth, id, data, moveType = "inherit") {
18146
- this.idToken = token++;
18147
- this.parent = null;
18148
- this.children = [];
18149
- this.moveType = "inherit";
18150
- this.lineList = [];
18151
- this.moveInfoCache = {
18152
- moveType: null,
18153
- parentDir: null,
18154
- childDir: null,
18155
- left: null,
18156
- top: null,
18157
- right: null,
18158
- bottom: null
18159
- };
18160
- this.customerListener = {};
18161
- this.mounted = false;
18162
- this.focused = false;
18163
- this.divRef = null;
18164
- this.lineStyle = null;
18165
- this.onRef = (divRef) => {
18166
- if (this.divRef == null && !!divRef) {
18167
- this.mounted = true;
18168
- this.divRef = divRef;
18169
- if (this.focused) {
18170
- this.customerListener.onFocus?.();
18171
- }
18172
- } else if (this.divRef != null && !divRef) {
18173
- this.divRef = null;
18174
- this.mounted = false;
18175
- this.customerListener = {};
18176
- }
18177
- };
18178
18264
  this.rect = rect;
18179
18265
  this.depth = depth;
18180
18266
  this.customerData = data;
18181
18267
  this.moveType = moveType;
18182
18268
  this.customerId = id;
18183
18269
  }
18184
- static {
18185
- this.DEFAULT_MOVE_TYPE = "star";
18186
- }
18187
18270
  //>>>>为了对接rtree库>>>>
18188
18271
  get minX() {
18189
18272
  return this.rect.minX;
@@ -18452,6 +18535,12 @@ class DataNode {
18452
18535
  }
18453
18536
  return targetChild;
18454
18537
  }
18538
+ //描画相关代码
18539
+ customerListener = {};
18540
+ mounted = false;
18541
+ focused = false;
18542
+ divRef = null;
18543
+ lineStyle = null;
18455
18544
  setLineStyle(style) {
18456
18545
  this.lineStyle = style;
18457
18546
  }
@@ -18476,6 +18565,19 @@ class DataNode {
18476
18565
  }
18477
18566
  };
18478
18567
  }
18568
+ onRef = (divRef) => {
18569
+ if (this.divRef == null && !!divRef) {
18570
+ this.mounted = true;
18571
+ this.divRef = divRef;
18572
+ if (this.focused) {
18573
+ this.customerListener.onFocus?.();
18574
+ }
18575
+ } else if (this.divRef != null && !divRef) {
18576
+ this.divRef = null;
18577
+ this.mounted = false;
18578
+ this.customerListener = {};
18579
+ }
18580
+ };
18479
18581
  }
18480
18582
 
18481
18583
  //!
@@ -19993,10 +20095,10 @@ let PluginInfo$1 = {
19993
20095
  // downloadUrl:"http://192.168.0.63:8080/plugin/JsvAudio-164.zip", //插件下载地址
19994
20096
  packageName: "com.qcode.jsvaudio",
19995
20097
  name: "音频插件",
19996
- version: "1.0.26",
20098
+ version: "1.0.27",
19997
20099
  //插件需要的版本号
19998
- versionCodeMin: 26,
19999
- versionCodeMax: 26,
20100
+ versionCodeMin: 27,
20101
+ versionCodeMax: 27,
20000
20102
  bridgeName: "jsvAudioBridge",
20001
20103
  //插件bridge注册到jsview的名称
20002
20104
  className: "com.qcode.jsvaudio.JsvAudio",
@@ -20656,9 +20758,10 @@ const _sfc_main$1 = {
20656
20758
  },
20657
20759
  setup(__props) {
20658
20760
  const props = __props;
20659
- let key = "JsvAudio_" + window.JsView?.getJsContextId?.() + "_" + getKeyToken();
20761
+ const jsviewCoreInfo = window.JsView?.getJsContextId?.() + "_" + window.JsView.CodeRevision;
20762
+ let key = "JsvAudio_" + jsviewCoreInfo + "_" + getKeyToken();
20660
20763
  if (props.playerKey) {
20661
- key = props.playerKey + "_" + window.JsView?.getJsContextId?.();
20764
+ key = props.playerKey + "_" + jsviewCoreInfo;
20662
20765
  }
20663
20766
  console.log("player key:" + key);
20664
20767
  const audio = sAudioManager.createAudio(key);