@realsee/five 6.0.0-alpha.112 → 6.0.0-alpha.113
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/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/plugins.BackgroundPluginController.html +37 -0
- package/docs/classes/plugins.BasePlugin.Controller.html +1 -1
- package/docs/classes/plugins.OrientationPluginController.html +9 -9
- package/docs/enums/plugins.BackgroundPluginType.WarningCodeType.html +2 -0
- package/docs/functions/plugins.BackgroundPlugin.html +1 -0
- package/docs/hierarchy.html +1 -1
- package/docs/interfaces/plugins.BackgroundPluginType.Config.html +1 -0
- package/docs/interfaces/plugins.BackgroundPluginType.EventMap.html +20 -0
- package/docs/interfaces/plugins.BackgroundPluginType.Params.html +3 -0
- package/docs/interfaces/plugins.BackgroundPluginType.PluginDataItem.html +1 -0
- package/docs/interfaces/plugins.OrientationPluginType.Config.html +3 -2
- package/docs/interfaces/plugins.OrientationPluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.OrientationPluginType.Params.html +2 -2
- package/docs/interfaces/plugins.OrientationPluginType.State.html +4 -4
- package/docs/modules/plugins.BackgroundPluginType.html +10 -0
- package/docs/modules/plugins.html +6 -3
- package/docs/types/plugins.BackgroundPluginType.Mirror.html +1 -0
- package/docs/types/plugins.BackgroundPluginType.Mode.html +1 -0
- package/docs/types/plugins.BackgroundPluginType.PluginData.html +1 -0
- package/docs/types/plugins.BackgroundPluginType.State.html +1 -0
- package/five/index.js +3 -3
- package/five/index.mjs +4 -4
- package/gltf-loader/index.js +3 -3
- package/gltf-loader/index.mjs +3 -3
- package/line/index.js +3 -3
- package/line/index.mjs +3 -3
- package/package.json +1 -1
- package/plugins/index.d.ts +90 -0
- package/plugins/index.js +180 -159
- package/plugins/index.mjs +1678 -1606
- package/react/index.js +2 -2
- package/react/index.mjs +2 -2
- package/sticker/index.js +3 -3
- package/sticker/index.mjs +3 -3
- package/umd/five-gltf-loader.js +3 -3
- package/umd/five-line.js +3 -3
- package/umd/five-plugins.js +179 -158
- package/umd/five-react.js +2 -2
- package/umd/five-sticker.js +3 -3
- package/umd/five-vfx.js +2 -2
- package/umd/five-vue.js +2 -2
- package/umd/five.js +3 -3
- package/vfx/index.js +2 -2
- package/vfx/index.mjs +2 -2
- package/vue/index.js +2 -2
- package/vue/index.mjs +2 -2
package/line/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five
|
|
4
|
-
* Generated:
|
|
5
|
-
* Version: 6.0.0-alpha.
|
|
4
|
+
* Generated: 2024/8/5
|
|
5
|
+
* Version: 6.0.0-alpha.113
|
|
6
6
|
* Terms:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
* Update: July 28, 2021
|
|
@@ -735,7 +735,7 @@ var T = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAA
|
|
|
735
735
|
}
|
|
736
736
|
return Object.defineProperty(o, "version", {
|
|
737
737
|
get: function() {
|
|
738
|
-
return "6.0.0-alpha.
|
|
738
|
+
return "6.0.0-alpha.113";
|
|
739
739
|
},
|
|
740
740
|
enumerable: !1,
|
|
741
741
|
configurable: !0
|
package/package.json
CHANGED
package/plugins/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BasePlugin as BasePlugin_2 } from '@realsee/five/plugins';
|
|
1
2
|
import { Camera } from '@realsee/five';
|
|
2
3
|
import { CSS3DRenderer } from 'three/examples/jsm/renderers/CSS3DRenderer';
|
|
3
4
|
import { Five } from '@realsee/five';
|
|
@@ -5,6 +6,41 @@ import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls';
|
|
|
5
6
|
import { Subscribe } from '@realsee/five';
|
|
6
7
|
import * as THREE_2 from 'three';
|
|
7
8
|
|
|
9
|
+
export declare const BackgroundPlugin: (five: Five, params?: BackgroundPluginType.Params) => BackgroundPluginController;
|
|
10
|
+
|
|
11
|
+
export declare class BackgroundPluginController extends BasePlugin_2.Controller<State_3, EventMap_3, any, PluginData_3> {
|
|
12
|
+
protected data: PluginData_3;
|
|
13
|
+
state: State_3;
|
|
14
|
+
private gradientBg?;
|
|
15
|
+
private groundBg?;
|
|
16
|
+
private style?;
|
|
17
|
+
readonly pluginName = "BackgroundPlugin";
|
|
18
|
+
constructor(five: Five, params?: Params_3);
|
|
19
|
+
private _onFiveCameraUpdate;
|
|
20
|
+
private _addEventListener;
|
|
21
|
+
private _removeEventListener;
|
|
22
|
+
load: () => Promise<void>;
|
|
23
|
+
setState: (state: Partial<State_3>, options?: BasePlugin_2.BaseOptions) => void;
|
|
24
|
+
enable: () => void;
|
|
25
|
+
disable: (options?: BasePlugin_2.BaseOptions) => void;
|
|
26
|
+
dispose: () => void;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare namespace BackgroundPluginType {
|
|
30
|
+
export {
|
|
31
|
+
WarningCodeType,
|
|
32
|
+
Mode,
|
|
33
|
+
Mirror,
|
|
34
|
+
State_3 as State,
|
|
35
|
+
PluginDataItem,
|
|
36
|
+
PluginData_3 as PluginData,
|
|
37
|
+
Config_3 as Config,
|
|
38
|
+
Params_3 as Params,
|
|
39
|
+
EventMap_3 as EventMap
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export { BackgroundPluginType }
|
|
43
|
+
|
|
8
44
|
export declare namespace BasePlugin {
|
|
9
45
|
/**
|
|
10
46
|
* 基本属性字段
|
|
@@ -134,6 +170,10 @@ declare interface Config {
|
|
|
134
170
|
/** 插件配置 */
|
|
135
171
|
declare interface Config_2 {
|
|
136
172
|
orthoView?: boolean;
|
|
173
|
+
fixedLongitude?: number;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
declare interface Config_3 {
|
|
137
177
|
}
|
|
138
178
|
|
|
139
179
|
/** 插件事件 */
|
|
@@ -144,6 +184,33 @@ declare interface EventMap extends BasePlugin.EventMap<State, ServerData> {
|
|
|
144
184
|
declare interface EventMap_2 extends BasePlugin.EventMap<State_2, ServerData_2> {
|
|
145
185
|
}
|
|
146
186
|
|
|
187
|
+
declare interface EventMap_3 extends BasePlugin_2.EventMap<State_3, PluginData_3> {
|
|
188
|
+
/**
|
|
189
|
+
* @param event.userAction 是否是用户操作
|
|
190
|
+
* @description enabled 从 false 到 true 的回调
|
|
191
|
+
*/
|
|
192
|
+
enable: (event: {
|
|
193
|
+
userAction: boolean;
|
|
194
|
+
}) => void;
|
|
195
|
+
/**
|
|
196
|
+
* @param event.userAction 是否是用户操作
|
|
197
|
+
* @description enabled 从 true 到 false 的回调
|
|
198
|
+
*/
|
|
199
|
+
disable: (event: {
|
|
200
|
+
userAction: boolean;
|
|
201
|
+
}) => void;
|
|
202
|
+
/**
|
|
203
|
+
* @description 插件 dispose
|
|
204
|
+
* */
|
|
205
|
+
dispose: () => void;
|
|
206
|
+
click: (index: number) => void;
|
|
207
|
+
/**
|
|
208
|
+
* @description 历史堆栈更新
|
|
209
|
+
* @param historyStackLength 历史堆栈当前数量
|
|
210
|
+
* */
|
|
211
|
+
historyLengthChange: (historyStackLength: number) => void;
|
|
212
|
+
}
|
|
213
|
+
|
|
147
214
|
export declare class ItemMaskController extends BasePlugin.Controller<ItemMaskPluginType.State, ItemMaskPluginType.EventMap, ItemMaskPluginType.ServerData, ItemMaskPluginType.PluginData> {
|
|
148
215
|
/** 当前使用的数据 */
|
|
149
216
|
data?: ItemMaskPluginType.PluginData;
|
|
@@ -233,6 +300,10 @@ declare interface MaskType {
|
|
|
233
300
|
object_mask_url: string;
|
|
234
301
|
}
|
|
235
302
|
|
|
303
|
+
declare type Mirror<T extends string> = Record<T, T>;
|
|
304
|
+
|
|
305
|
+
declare type Mode = 'Idle' | 'View' | 'Marking' | 'Waiting';
|
|
306
|
+
|
|
236
307
|
export declare const OrientationPlugin: (five: Five, params?: OrientationPluginType.Params) => OrientationPluginController;
|
|
237
308
|
|
|
238
309
|
export declare class OrientationPluginController extends BasePlugin.Controller<OrientationPluginType.State, OrientationPluginType.EventMap, OrientationPluginType.ServerData, OrientationPluginType.PluginData> {
|
|
@@ -267,6 +338,7 @@ export declare class OrientationPluginController extends BasePlugin.Controller<O
|
|
|
267
338
|
controls?: OrbitControls;
|
|
268
339
|
get config(): {
|
|
269
340
|
orthoView: boolean;
|
|
341
|
+
fixedLongitude: number;
|
|
270
342
|
};
|
|
271
343
|
private updateState;
|
|
272
344
|
constructor(five: Five, params?: OrientationPluginType.Params);
|
|
@@ -334,6 +406,11 @@ declare interface Params_2 {
|
|
|
334
406
|
initialState?: Partial<State_2>;
|
|
335
407
|
}
|
|
336
408
|
|
|
409
|
+
declare interface Params_3 {
|
|
410
|
+
config?: Partial<Config_3>;
|
|
411
|
+
initialState?: Partial<State_3>;
|
|
412
|
+
}
|
|
413
|
+
|
|
337
414
|
declare type PluginData = {
|
|
338
415
|
data_list: ItemType[];
|
|
339
416
|
object_mask_list: MaskType[];
|
|
@@ -341,6 +418,11 @@ declare type PluginData = {
|
|
|
341
418
|
|
|
342
419
|
declare type PluginData_2 = any;
|
|
343
420
|
|
|
421
|
+
declare type PluginData_3 = PluginDataItem;
|
|
422
|
+
|
|
423
|
+
declare interface PluginDataItem {
|
|
424
|
+
}
|
|
425
|
+
|
|
344
426
|
export declare class RoundedBoxGeometry extends THREE_2.BufferGeometry {
|
|
345
427
|
parameters: {
|
|
346
428
|
width: number;
|
|
@@ -383,4 +465,12 @@ declare interface State_2 extends BasePlugin.State {
|
|
|
383
465
|
arrowsVisible: boolean;
|
|
384
466
|
}
|
|
385
467
|
|
|
468
|
+
declare type State_3 = {
|
|
469
|
+
enabled: boolean;
|
|
470
|
+
};
|
|
471
|
+
|
|
472
|
+
declare enum WarningCodeType {
|
|
473
|
+
Warning_1 = "CAN_NOT_DRAW_ZONE"
|
|
474
|
+
}
|
|
475
|
+
|
|
386
476
|
export { }
|