@realsee/dnalogel 3.11.0 → 3.12.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.
- package/dist/CruisePlugin/BaseController.d.ts +5 -0
- package/dist/CruisePlugin/Work.d.ts +1 -5
- package/dist/GuideLinePlugin/Controller.d.ts +4 -0
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +2 -3
- package/dist/PanoTagPlugin/controller/index.d.ts +1 -0
- package/dist/PanoTagPlugin/utils/DebugUtil.d.ts +6 -0
- package/dist/base/BasePlugin.d.ts +1 -1
- package/dist/index.cjs.js +52 -52
- package/dist/index.js +3178 -3067
- package/dist/index.umd.js +44 -44
- package/dist/shared-utils/Utils/BaseUtil.d.ts +5 -0
- package/dist/shared-utils/Utils/FiveUtil.d.ts +10 -0
- package/dist/shared-utils/Utils/WorkUtil.d.ts +33 -0
- package/libs/CruisePlugin/BaseController.d.ts +5 -0
- package/libs/CruisePlugin/BaseController.js +66 -54
- package/libs/CruisePlugin/Move.js +29 -25
- package/libs/CruisePlugin/Work.d.ts +1 -5
- package/libs/CruisePlugin/Work.js +133 -129
- package/libs/CruisePlugin/index.js +10 -6
- package/libs/GuideLinePlugin/Controller.d.ts +4 -0
- package/libs/GuideLinePlugin/Controller.js +41 -30
- package/libs/GuideLinePlugin/GuideLineItem.js +6 -2
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +61 -61
- package/libs/GuideLinePlugin/GuideLineModeItem.js +5 -2
- package/libs/GuideLinePlugin/index.js +12 -8
- package/libs/PanoTagPlugin/controller/TagComputer.js +24 -22
- package/libs/PanoTagPlugin/controller/TagRender.js +4 -2
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +2 -3
- package/libs/PanoTagPlugin/controller/TagUtil.js +92 -100
- package/libs/PanoTagPlugin/controller/index.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/index.js +32 -26
- package/libs/PanoTagPlugin/index.js +14 -11
- package/libs/PanoTagPlugin/utils/DebugUtil.d.ts +6 -0
- package/libs/PanoTagPlugin/utils/DebugUtil.js +25 -0
- package/libs/base/BasePlugin.d.ts +1 -1
- package/libs/base/BasePlugin.js +2 -2
- package/libs/index.js +125 -121
- package/libs/shared-utils/Utils/BaseUtil.d.ts +5 -0
- package/libs/shared-utils/Utils/BaseUtil.js +12 -0
- package/libs/shared-utils/Utils/FiveUtil.d.ts +10 -0
- package/libs/shared-utils/Utils/FiveUtil.js +27 -0
- package/libs/shared-utils/Utils/WorkUtil.d.ts +33 -0
- package/libs/shared-utils/Utils/WorkUtil.js +68 -0
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -4,9 +4,14 @@ import type { GuideLinePluginExportType } from '../GuideLinePlugin';
|
|
|
4
4
|
import * as BasePlugin from '../base/BasePlugin';
|
|
5
5
|
import type { PluginState, EventMap, MoveEffect } from './typing';
|
|
6
6
|
import type { PartialDeep } from 'type-fest';
|
|
7
|
+
import { FiveUtil } from '../shared-utils/Utils/FiveUtil';
|
|
7
8
|
export declare const pluginFlag: (name: string) => string;
|
|
8
9
|
export default abstract class CruiseController<PluginData, Config = unknown> extends BasePlugin.Controller<PluginState, EventMap> {
|
|
9
10
|
state: PluginState;
|
|
11
|
+
set workCode(workCode: string);
|
|
12
|
+
get workCode(): string;
|
|
13
|
+
protected fiveUtil: FiveUtil;
|
|
14
|
+
protected workUtil: import("../shared-utils/Utils/WorkUtil").WorkUtil;
|
|
10
15
|
protected data?: PluginData & {
|
|
11
16
|
id: string | number;
|
|
12
17
|
};
|
|
@@ -78,11 +78,7 @@ export default class WalkController extends CruiseController<PluginData, Config>
|
|
|
78
78
|
protected setPauseData(): Map<string | number, {
|
|
79
79
|
fiveState: Partial<State>;
|
|
80
80
|
id?: string | number;
|
|
81
|
-
playedProgress: number;
|
|
82
|
-
* privateState.playing 和 state.playing 的区别:
|
|
83
|
-
* state.playing 先为true,然后才 handleplay,handleplay方法内会检查privateState.playing,如果已经开始(privateState.playing === true),就不执行操作,如果为false,就执行操作
|
|
84
|
-
* 其实就是加了一个不允许重复执行handleplay的逻辑
|
|
85
|
-
*/
|
|
81
|
+
playedProgress: number;
|
|
86
82
|
duration?: number;
|
|
87
83
|
}>;
|
|
88
84
|
/**
|
|
@@ -5,10 +5,14 @@ import type * as PluginType from './typing';
|
|
|
5
5
|
import type { Config } from '../base/BasePlugin';
|
|
6
6
|
import { GuideLineItem } from './GuideLineItem';
|
|
7
7
|
import CruisePluginController from '../CruisePlugin/Work';
|
|
8
|
+
import { WorkUtil } from '../shared-utils/Utils/WorkUtil';
|
|
8
9
|
export declare const pluginFlag: (name: string) => string;
|
|
9
10
|
export default class Controller extends BasePluginWithData.Controller<PluginState, EventMap, PluginServerData, PluginData> {
|
|
10
11
|
readonly name = "GuideLinePlugin";
|
|
11
12
|
readonly cruisePlugin: CruisePluginController;
|
|
13
|
+
set workCode(workCode: string);
|
|
14
|
+
get workCode(): string;
|
|
15
|
+
workUtils: WorkUtil;
|
|
12
16
|
/** GuideLineItem 索引 */
|
|
13
17
|
readonly itemMap: Map<string | number, GuideLineItem>;
|
|
14
18
|
get config(): Config;
|
|
@@ -7,12 +7,13 @@ import { Five } from '@realsee/five';
|
|
|
7
7
|
import type { State as FiveState } from '@realsee/five';
|
|
8
8
|
import type { Mode } from '@realsee/five';
|
|
9
9
|
import { FiveDomEvents } from '../../shared-utils/five/FiveDomEvents';
|
|
10
|
+
import { WorkUtil } from '../../shared-utils/Utils/WorkUtil';
|
|
10
11
|
export declare abstract class TagUtil extends TagCache {
|
|
11
12
|
tags: TagInstance[];
|
|
12
13
|
config: Pick<Tags, 'globalConfig' | 'contentTypeConfig'>;
|
|
13
14
|
set workCode(workCode: string);
|
|
14
15
|
get workCode(): string;
|
|
15
|
-
|
|
16
|
+
workUtil: WorkUtil;
|
|
16
17
|
protected mediaStore: MediaStore;
|
|
17
18
|
/** css3DRenderPlugin */
|
|
18
19
|
protected css3DRenderPlugin?: CSS3DRenderPluginExportType;
|
|
@@ -27,7 +28,6 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
27
28
|
disposed: boolean;
|
|
28
29
|
};
|
|
29
30
|
protected domEvents: FiveDomEvents;
|
|
30
|
-
private _workCode;
|
|
31
31
|
protected constructor(five: Five);
|
|
32
32
|
getTagById<C extends TagContentType = TagContentType, S extends StickType = StickType>(id: TagId): TagInstance<C, S> | undefined;
|
|
33
33
|
/** 暂停当前标签内进行的所有多媒体 */
|
|
@@ -43,7 +43,6 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
43
43
|
* @description 获取标签当前状态
|
|
44
44
|
*/
|
|
45
45
|
getCurrentVisibleState(tag: TagInstance): boolean;
|
|
46
|
-
protected getObserverPosition: (index: number) => THREE.Vector3;
|
|
47
46
|
protected loadVideoFirstFrame: () => void;
|
|
48
47
|
protected updateTagConfig(): void;
|
|
49
48
|
protected can<T extends Tag>(action: 'show' | 'hide' | 'fold' | 'unfold', paramsTag: T): boolean;
|