@glowjs/core 2025.3.28 → 2025.4.17
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/glow.core.d.ts +213 -2
- package/dist/glow.core.js +1 -1
- package/dist/typings/camera/CameraMgr.d.ts +4 -0
- package/dist/typings/entity/Entity.d.ts +4 -0
- package/dist/typings/entity/EntityType.d.ts +5 -1
- package/dist/typings/entity/OtherEntity.d.ts +2 -1
- package/dist/typings/entity/init/setTransition.d.ts +6 -0
- package/dist/typings/entity/poi_plus/Container.d.ts +14 -0
- package/dist/typings/entity/poi_plus/Img.d.ts +21 -0
- package/dist/typings/entity/poi_plus/Line.d.ts +15 -0
- package/dist/typings/entity/poi_plus/POIPlus.d.ts +138 -0
- package/dist/typings/entity/poi_plus/Txt.d.ts +20 -0
- package/dist/typings/entity/poi_plus/TxtAlign.d.ts +9 -0
- package/dist/typings/entity/poi_plus/render.d.ts +7 -0
- package/dist/typings/index.d.ts +2 -0
- package/dist/typings/res/ResPool.d.ts +1 -0
- package/package.json +1 -1
package/dist/glow.core.d.ts
CHANGED
|
@@ -146,6 +146,16 @@ declare class Background extends Base {
|
|
|
146
146
|
*/
|
|
147
147
|
setBackgroundEffect(): Promise<void>;
|
|
148
148
|
}
|
|
149
|
+
declare class Container$1 {
|
|
150
|
+
/** 图片 */
|
|
151
|
+
img: Img;
|
|
152
|
+
/** 线 */
|
|
153
|
+
line: Line$1;
|
|
154
|
+
/** 文本列表 */
|
|
155
|
+
txts: Txt[];
|
|
156
|
+
/** 构造函数 */
|
|
157
|
+
constructor();
|
|
158
|
+
}
|
|
149
159
|
declare class Decoration extends Base {
|
|
150
160
|
private _grid;
|
|
151
161
|
constructor(app: App);
|
|
@@ -285,6 +295,24 @@ declare class ImageProcessing extends Base {
|
|
|
285
295
|
*/
|
|
286
296
|
dispose(): void;
|
|
287
297
|
}
|
|
298
|
+
declare class Img {
|
|
299
|
+
/** 资源ID */
|
|
300
|
+
resId: string;
|
|
301
|
+
/** 原始宽度 */
|
|
302
|
+
srcWidth: number;
|
|
303
|
+
/** 原始高度 */
|
|
304
|
+
srcHeight: number;
|
|
305
|
+
/** 实际宽度 */
|
|
306
|
+
width: number;
|
|
307
|
+
/** 实际高度 */
|
|
308
|
+
height: number;
|
|
309
|
+
/** X 坐标 */
|
|
310
|
+
x: number;
|
|
311
|
+
/** Y 坐标 */
|
|
312
|
+
y: number;
|
|
313
|
+
/** 构造函数 */
|
|
314
|
+
constructor();
|
|
315
|
+
}
|
|
288
316
|
declare class Light extends Base {
|
|
289
317
|
/**
|
|
290
318
|
* 环境光1
|
|
@@ -315,6 +343,17 @@ declare class Light extends Base {
|
|
|
315
343
|
*/
|
|
316
344
|
setShadowEffect(): void;
|
|
317
345
|
}
|
|
346
|
+
declare class Line$1 {
|
|
347
|
+
points: Point2D[];
|
|
348
|
+
/** 线宽 */
|
|
349
|
+
width: number;
|
|
350
|
+
/** 颜色 */
|
|
351
|
+
color: string;
|
|
352
|
+
/** 是否显示 */
|
|
353
|
+
enable: boolean;
|
|
354
|
+
/** 构造函数 */
|
|
355
|
+
constructor();
|
|
356
|
+
}
|
|
318
357
|
declare class ManualWallBuilder {
|
|
319
358
|
/**
|
|
320
359
|
* 拥有者
|
|
@@ -617,6 +656,22 @@ declare class Tracker extends Base {
|
|
|
617
656
|
*/
|
|
618
657
|
dispose(): void;
|
|
619
658
|
}
|
|
659
|
+
declare class Txt {
|
|
660
|
+
/** 文本内容 */
|
|
661
|
+
value: string;
|
|
662
|
+
/** 对齐方式 */
|
|
663
|
+
align: TxtAlign;
|
|
664
|
+
/** 字体大小 */
|
|
665
|
+
fontSize: number;
|
|
666
|
+
/** 字体颜色 */
|
|
667
|
+
color: string;
|
|
668
|
+
/** X 坐标 */
|
|
669
|
+
x: number;
|
|
670
|
+
/** Y 坐标 */
|
|
671
|
+
y: number;
|
|
672
|
+
/** 构造函数 */
|
|
673
|
+
constructor();
|
|
674
|
+
}
|
|
620
675
|
declare enum ArchiveCabinetGroupState {
|
|
621
676
|
/**
|
|
622
677
|
* 默认
|
|
@@ -2033,6 +2088,10 @@ export declare class CameraMgr extends Base {
|
|
|
2033
2088
|
* 从给定位置和目标重建角度(alpha, beta)和半径
|
|
2034
2089
|
*/
|
|
2035
2090
|
rebuildAnglesAndRadius(): void;
|
|
2091
|
+
/**
|
|
2092
|
+
* 从给定位置和目标重置相机
|
|
2093
|
+
*/
|
|
2094
|
+
reset(target: Point3D, position: Point3D): void;
|
|
2036
2095
|
/**
|
|
2037
2096
|
* 使用一个位置来定义当前相机的相关信息,如alpha, beta和半径
|
|
2038
2097
|
* @param position 定义要设置摄像机的位置
|
|
@@ -2577,6 +2636,10 @@ export declare class Entity extends Base {
|
|
|
2577
2636
|
* 父元素
|
|
2578
2637
|
*/
|
|
2579
2638
|
parent: Entity | null;
|
|
2639
|
+
/**
|
|
2640
|
+
* 前置层级(用于存储园区转场、热点跳转、POI跳转、楼层跳转时的返回层级)
|
|
2641
|
+
*/
|
|
2642
|
+
preLevel: Entity | null;
|
|
2580
2643
|
/**
|
|
2581
2644
|
* 获取子节点列表
|
|
2582
2645
|
*/
|
|
@@ -3958,6 +4021,140 @@ export declare class POI extends Entity {
|
|
|
3958
4021
|
*/
|
|
3959
4022
|
get _ssize(): Point2D;
|
|
3960
4023
|
}
|
|
4024
|
+
/**
|
|
4025
|
+
* POI加强版
|
|
4026
|
+
*/
|
|
4027
|
+
export declare class POIPlus extends Entity {
|
|
4028
|
+
/** 容器 */
|
|
4029
|
+
container: Container$1;
|
|
4030
|
+
/**
|
|
4031
|
+
* 父物体计算包围盒时是否排除此物体,默认排除
|
|
4032
|
+
*/
|
|
4033
|
+
excludeBoundingBox: boolean;
|
|
4034
|
+
/**
|
|
4035
|
+
* 模式
|
|
4036
|
+
*/
|
|
4037
|
+
mode: "2D" | "3D";
|
|
4038
|
+
/**
|
|
4039
|
+
* 宽度
|
|
4040
|
+
*/
|
|
4041
|
+
width: number;
|
|
4042
|
+
/**
|
|
4043
|
+
* 高度
|
|
4044
|
+
*/
|
|
4045
|
+
height: number;
|
|
4046
|
+
/**
|
|
4047
|
+
* 像素宽度
|
|
4048
|
+
*/
|
|
4049
|
+
pixWidth: number;
|
|
4050
|
+
/**
|
|
4051
|
+
* 是否默认隐藏
|
|
4052
|
+
*/
|
|
4053
|
+
defaultHidden: boolean;
|
|
4054
|
+
/**
|
|
4055
|
+
* 链接ID
|
|
4056
|
+
*/
|
|
4057
|
+
linkId: string | null;
|
|
4058
|
+
/**
|
|
4059
|
+
* Base64图片
|
|
4060
|
+
*/
|
|
4061
|
+
base64: string;
|
|
4062
|
+
/**
|
|
4063
|
+
* Base64图片原始宽度
|
|
4064
|
+
*/
|
|
4065
|
+
srcWidth: number;
|
|
4066
|
+
/**
|
|
4067
|
+
* Base64图片原始高度
|
|
4068
|
+
*/
|
|
4069
|
+
srcHeight: number;
|
|
4070
|
+
/**
|
|
4071
|
+
* 像素高度
|
|
4072
|
+
*/
|
|
4073
|
+
pixHeight: number;
|
|
4074
|
+
private _img2D;
|
|
4075
|
+
private _canvas;
|
|
4076
|
+
private _pointerClickObserver;
|
|
4077
|
+
private _pointerEnterObserver;
|
|
4078
|
+
private _pointerLeaveObserver;
|
|
4079
|
+
private _pointerDownObserver;
|
|
4080
|
+
private _pointerUpObserver;
|
|
4081
|
+
private _mesh;
|
|
4082
|
+
private _showBoundingBox;
|
|
4083
|
+
private _visable;
|
|
4084
|
+
private _pivot;
|
|
4085
|
+
/**
|
|
4086
|
+
* 上一次点击的时间点,用于计算双击事件
|
|
4087
|
+
*/
|
|
4088
|
+
private _lastClickTime;
|
|
4089
|
+
/**
|
|
4090
|
+
* 构造函数
|
|
4091
|
+
* @param app 应用
|
|
4092
|
+
*/
|
|
4093
|
+
constructor(app: App);
|
|
4094
|
+
get visable(): boolean;
|
|
4095
|
+
set visable(value: boolean);
|
|
4096
|
+
/**
|
|
4097
|
+
* 获取或设置轴心点
|
|
4098
|
+
*/
|
|
4099
|
+
get pivot(): Point2D;
|
|
4100
|
+
set pivot(value: Point2D);
|
|
4101
|
+
get pickable(): boolean;
|
|
4102
|
+
set pickable(value: boolean);
|
|
4103
|
+
get cursor(): string;
|
|
4104
|
+
set cursor(value: string);
|
|
4105
|
+
get showBoundingBox(): boolean;
|
|
4106
|
+
set showBoundingBox(value: boolean);
|
|
4107
|
+
/**
|
|
4108
|
+
* 获取或设置贴图ID
|
|
4109
|
+
*/
|
|
4110
|
+
get textureId(): string;
|
|
4111
|
+
build(force?: boolean): Promise<void>;
|
|
4112
|
+
unbuild(): void;
|
|
4113
|
+
toJson(): any;
|
|
4114
|
+
fromJson(json: any): void;
|
|
4115
|
+
private _build2D;
|
|
4116
|
+
private _onResize;
|
|
4117
|
+
private _build3D;
|
|
4118
|
+
private _updatePovit;
|
|
4119
|
+
dispose(): void;
|
|
4120
|
+
/**
|
|
4121
|
+
* 获取原始贴图的像素大小,编辑器中用来实现等比缩放
|
|
4122
|
+
*/
|
|
4123
|
+
get _ssize(): Point2D;
|
|
4124
|
+
/**
|
|
4125
|
+
* 计算内容大小(编辑器用)
|
|
4126
|
+
*/
|
|
4127
|
+
_calaculateContentSize(): Point2D;
|
|
4128
|
+
/**
|
|
4129
|
+
* 获取或设置所有文本
|
|
4130
|
+
*/
|
|
4131
|
+
get txts(): string[];
|
|
4132
|
+
set txts(value: string[]);
|
|
4133
|
+
/**
|
|
4134
|
+
* 获取或设置所有文本的颜色
|
|
4135
|
+
*/
|
|
4136
|
+
get txtColors(): string[];
|
|
4137
|
+
set txtColors(value: string[]);
|
|
4138
|
+
/**
|
|
4139
|
+
* 设置单个文本内容
|
|
4140
|
+
* @param index 索引
|
|
4141
|
+
* @param value 文本内容
|
|
4142
|
+
*/
|
|
4143
|
+
setTxtValue(index: number, value: string): void;
|
|
4144
|
+
/**
|
|
4145
|
+
* 设置单个文本颜色
|
|
4146
|
+
* @param index 索引
|
|
4147
|
+
* @param color 颜色
|
|
4148
|
+
*/
|
|
4149
|
+
setTxtColor(index: number, color: string): void;
|
|
4150
|
+
/**
|
|
4151
|
+
* 设置单个文本
|
|
4152
|
+
* @param index 索引
|
|
4153
|
+
* @param value 文本内容
|
|
4154
|
+
* @param color 颜色
|
|
4155
|
+
*/
|
|
4156
|
+
setTxt(index: number, value: string, color: string): void;
|
|
4157
|
+
}
|
|
3961
4158
|
/**
|
|
3962
4159
|
* 路径
|
|
3963
4160
|
*/
|
|
@@ -4313,6 +4510,7 @@ export declare class RectangleProgress extends GradientRectangle {
|
|
|
4313
4510
|
* 资源池
|
|
4314
4511
|
*/
|
|
4315
4512
|
export declare class ResPool extends Base {
|
|
4513
|
+
readonly random: string;
|
|
4316
4514
|
/**
|
|
4317
4515
|
* 资源列表
|
|
4318
4516
|
*/
|
|
@@ -5319,7 +5517,11 @@ export declare enum EntityType {
|
|
|
5319
5517
|
/**
|
|
5320
5518
|
* 视频融合
|
|
5321
5519
|
*/
|
|
5322
|
-
VideoFusion = 131072
|
|
5520
|
+
VideoFusion = 131072,
|
|
5521
|
+
/**
|
|
5522
|
+
* POI加强版
|
|
5523
|
+
*/
|
|
5524
|
+
POIPlus = 262144
|
|
5323
5525
|
}
|
|
5324
5526
|
/**
|
|
5325
5527
|
* 环境贴图资源枚举
|
|
@@ -5742,6 +5944,15 @@ export declare enum SystemResId {
|
|
|
5742
5944
|
*/
|
|
5743
5945
|
VideoFusionOpacityTexture = "f29a93b7c7a413ddbd8e5afe18c5afcf"
|
|
5744
5946
|
}
|
|
5947
|
+
/** 文本对齐方式 */
|
|
5948
|
+
export declare enum TxtAlign {
|
|
5949
|
+
/** 左对齐 */
|
|
5950
|
+
Left = "left",
|
|
5951
|
+
/** 居中对齐 */
|
|
5952
|
+
Center = "center",
|
|
5953
|
+
/** 右对齐 */
|
|
5954
|
+
Right = "right"
|
|
5955
|
+
}
|
|
5745
5956
|
/**
|
|
5746
5957
|
* 加法,返回一个新对象
|
|
5747
5958
|
* @param a 点a
|
|
@@ -6557,7 +6768,7 @@ export type MeshFaceData = {
|
|
|
6557
6768
|
/**
|
|
6558
6769
|
* 其它实体
|
|
6559
6770
|
*/
|
|
6560
|
-
export type OtherEntity = Text3D | LeakLine | POI | Pipe | VideoFusion;
|
|
6771
|
+
export type OtherEntity = Text3D | LeakLine | POI | POIPlus | Pipe | VideoFusion;
|
|
6561
6772
|
export type ParticleData = {
|
|
6562
6773
|
id?: string;
|
|
6563
6774
|
name?: string;
|