@realsee/dnalogel 0.1.7-alpha.4 → 0.1.7-alpha.8
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/components/GLTFView/index.d.ts +7 -1
- package/components/GLTFView/index.js +7 -1
- package/data/_vLykj3NWrllMrG06.d.ts +95 -0
- package/data/_vLykj3NWrllMrG06.js +1 -0
- package/libs/gltf-viewer/index.d.ts +13 -4
- package/libs/gltf-viewer/index.js +63 -44
- package/package.json +1 -1
- package/plugins/CSS3DRenderPlugin/index.js +15 -10
- package/plugins/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +7 -0
- package/plugins/CSS3DRenderPlugin/utils/createResizeObserver.js +34 -0
- package/plugins/ModelChassisCompassPlugin/index.d.ts +1 -1
- package/plugins/ModelChassisCompassPlugin/index.js +2 -1
- package/plugins/floorplan/Assets/floorplanExtraObject.d.ts +1 -1
- package/plugins/floorplan/Assets/floorplanExtraObject.js +3 -3
- package/plugins/floorplan/ModelFloorplanPlugin/Controller.js +1 -1
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RuleLabels.js +2 -3
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +1 -1
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -3
- package/plugins/floorplan/TopviewFloorplanPlugin/Controller.d.ts +3 -0
- package/plugins/floorplan/TopviewFloorplanPlugin/Controller.js +13 -3
- package/plugins/floorplan/typings/floorplanServerData.d.ts +1 -1
- package/plugins/floorplan/typings/floorplanServerData.js +3 -3
- package/plugins/floorplan/utils/formatData.js +1 -1
- package/shared-utils/math/evenNumber.d.ts +3 -1
- package/shared-utils/math/evenNumber.js +4 -2
|
@@ -6,7 +6,7 @@ export declare type GLTFViewPropTypes = {
|
|
|
6
6
|
refs?: (gltfViewer: GLTFViewer) => void;
|
|
7
7
|
} & GLTFViewerConfig;
|
|
8
8
|
/**
|
|
9
|
-
* **GLTFViewer** 预览 `glTF`
|
|
9
|
+
* **GLTFViewer** 预览 `glTF` 模型文件(支持 `.gltf` 和 `.glb` 格式),附带光照等效果等配置。
|
|
10
10
|
*
|
|
11
11
|
* ### Usage
|
|
12
12
|
*
|
|
@@ -96,6 +96,12 @@ export declare type GLTFViewPropTypes = {
|
|
|
96
96
|
* pointLight?: THREE.PointLight | false
|
|
97
97
|
* directionalLight?: THREE.DirectionalLight | false
|
|
98
98
|
* ambientLight?: THREE.AmbientLight | false
|
|
99
|
+
* // 色调映射
|
|
100
|
+
* toneMapping?: {
|
|
101
|
+
* toneMapping?: THREE.ToneMapping
|
|
102
|
+
* toneMappingExposure?: number
|
|
103
|
+
* }
|
|
104
|
+
*
|
|
99
105
|
* ```
|
|
100
106
|
* 自带三种默认光照配置,你可以提供自己的光照实例。如果设置 `pointLight: false` 则禁用该光照效果。
|
|
101
107
|
*
|
|
@@ -36,7 +36,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
36
36
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
* **GLTFViewer** 预览 `glTF`
|
|
39
|
+
* **GLTFViewer** 预览 `glTF` 模型文件(支持 `.gltf` 和 `.glb` 格式),附带光照等效果等配置。
|
|
40
40
|
*
|
|
41
41
|
* ### Usage
|
|
42
42
|
*
|
|
@@ -126,6 +126,12 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
126
126
|
* pointLight?: THREE.PointLight | false
|
|
127
127
|
* directionalLight?: THREE.DirectionalLight | false
|
|
128
128
|
* ambientLight?: THREE.AmbientLight | false
|
|
129
|
+
* // 色调映射
|
|
130
|
+
* toneMapping?: {
|
|
131
|
+
* toneMapping?: THREE.ToneMapping
|
|
132
|
+
* toneMappingExposure?: number
|
|
133
|
+
* }
|
|
134
|
+
*
|
|
129
135
|
* ```
|
|
130
136
|
* 自带三种默认光照配置,你可以提供自己的光照实例。如果设置 `pointLight: false` 则禁用该光照效果。
|
|
131
137
|
*
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { FloorplanServerData } from '../plugins/floorplan/typings/floorplanServerData';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
code: string;
|
|
4
|
+
create_time: string;
|
|
5
|
+
decoration_enable: boolean;
|
|
6
|
+
editor_type: number;
|
|
7
|
+
hierarchy_floor_plan: {
|
|
8
|
+
checksum: string;
|
|
9
|
+
index: number;
|
|
10
|
+
url: string;
|
|
11
|
+
}[];
|
|
12
|
+
house_layout: string;
|
|
13
|
+
initial: {
|
|
14
|
+
flag_position: number[];
|
|
15
|
+
fov: number;
|
|
16
|
+
heading: number;
|
|
17
|
+
latitude: number;
|
|
18
|
+
longitude: number;
|
|
19
|
+
pano: number;
|
|
20
|
+
pano_index: number;
|
|
21
|
+
};
|
|
22
|
+
innovation: {
|
|
23
|
+
config: {
|
|
24
|
+
edr: boolean;
|
|
25
|
+
tiles: number[];
|
|
26
|
+
};
|
|
27
|
+
data: {};
|
|
28
|
+
};
|
|
29
|
+
is_active: number;
|
|
30
|
+
machine: {
|
|
31
|
+
create_time: string;
|
|
32
|
+
create_user: string;
|
|
33
|
+
name: string;
|
|
34
|
+
principle: string;
|
|
35
|
+
};
|
|
36
|
+
machine_id: string;
|
|
37
|
+
machine_version: string;
|
|
38
|
+
model: {
|
|
39
|
+
file_url: string;
|
|
40
|
+
material_base_url: string;
|
|
41
|
+
material_textures: string[];
|
|
42
|
+
modify_time: string;
|
|
43
|
+
score: number;
|
|
44
|
+
type: number;
|
|
45
|
+
};
|
|
46
|
+
name: string;
|
|
47
|
+
observers: {
|
|
48
|
+
accessible_nodes: number[];
|
|
49
|
+
floor_index: number;
|
|
50
|
+
index: number;
|
|
51
|
+
offset_point_count: number;
|
|
52
|
+
position: number[];
|
|
53
|
+
quaternion: {
|
|
54
|
+
w: number;
|
|
55
|
+
x: number;
|
|
56
|
+
y: number;
|
|
57
|
+
z: number;
|
|
58
|
+
};
|
|
59
|
+
standing_position: number[];
|
|
60
|
+
visible_nodes: number[];
|
|
61
|
+
}[];
|
|
62
|
+
outline_floor_plan: {
|
|
63
|
+
checksum: string;
|
|
64
|
+
index: number;
|
|
65
|
+
url: string;
|
|
66
|
+
}[];
|
|
67
|
+
panorama: {
|
|
68
|
+
base_url: string;
|
|
69
|
+
count: number;
|
|
70
|
+
list: {
|
|
71
|
+
back: string;
|
|
72
|
+
down: string;
|
|
73
|
+
front: string;
|
|
74
|
+
index: number;
|
|
75
|
+
left: string;
|
|
76
|
+
right: string;
|
|
77
|
+
up: string;
|
|
78
|
+
tiles: number[];
|
|
79
|
+
}[];
|
|
80
|
+
type: number;
|
|
81
|
+
work_code: string;
|
|
82
|
+
};
|
|
83
|
+
picture_checksum: string;
|
|
84
|
+
picture_url: string;
|
|
85
|
+
project_id: string;
|
|
86
|
+
standard_floor_plan_checksum: string;
|
|
87
|
+
standard_floor_plan_url: string;
|
|
88
|
+
status: number;
|
|
89
|
+
title: string;
|
|
90
|
+
title_picture_checksum: string;
|
|
91
|
+
title_picture_url: string;
|
|
92
|
+
user_id: number;
|
|
93
|
+
};
|
|
94
|
+
export default _default;
|
|
95
|
+
export declare const floorplanServerData: FloorplanServerData;
|