@glowjs/core 2025.3.28 → 2025.4.21
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 +221 -2
- package/dist/glow.core.js +1 -1
- package/dist/typings/camera/CameraMgr.d.ts +4 -0
- package/dist/typings/entity/Building.d.ts +8 -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
|
* 默认
|
|
@@ -1498,6 +1553,14 @@ export declare class Building extends Entity {
|
|
|
1498
1553
|
* 鼠标移入楼层链接的透明度
|
|
1499
1554
|
*/
|
|
1500
1555
|
static floorLinkAlpha: number;
|
|
1556
|
+
/**
|
|
1557
|
+
* 链接ID
|
|
1558
|
+
*/
|
|
1559
|
+
linkId: string | null;
|
|
1560
|
+
/**
|
|
1561
|
+
* 链接名称
|
|
1562
|
+
*/
|
|
1563
|
+
linkName: string | null;
|
|
1501
1564
|
/**
|
|
1502
1565
|
* 是否总是显示建筑结构
|
|
1503
1566
|
*/
|
|
@@ -2033,6 +2096,10 @@ export declare class CameraMgr extends Base {
|
|
|
2033
2096
|
* 从给定位置和目标重建角度(alpha, beta)和半径
|
|
2034
2097
|
*/
|
|
2035
2098
|
rebuildAnglesAndRadius(): void;
|
|
2099
|
+
/**
|
|
2100
|
+
* 从给定位置和目标重置相机
|
|
2101
|
+
*/
|
|
2102
|
+
reset(target: Point3D, position: Point3D): void;
|
|
2036
2103
|
/**
|
|
2037
2104
|
* 使用一个位置来定义当前相机的相关信息,如alpha, beta和半径
|
|
2038
2105
|
* @param position 定义要设置摄像机的位置
|
|
@@ -2577,6 +2644,10 @@ export declare class Entity extends Base {
|
|
|
2577
2644
|
* 父元素
|
|
2578
2645
|
*/
|
|
2579
2646
|
parent: Entity | null;
|
|
2647
|
+
/**
|
|
2648
|
+
* 前置层级(用于存储园区转场、热点跳转、POI跳转、楼层跳转时的返回层级)
|
|
2649
|
+
*/
|
|
2650
|
+
preLevel: Entity | null;
|
|
2580
2651
|
/**
|
|
2581
2652
|
* 获取子节点列表
|
|
2582
2653
|
*/
|
|
@@ -3958,6 +4029,140 @@ export declare class POI extends Entity {
|
|
|
3958
4029
|
*/
|
|
3959
4030
|
get _ssize(): Point2D;
|
|
3960
4031
|
}
|
|
4032
|
+
/**
|
|
4033
|
+
* POI加强版
|
|
4034
|
+
*/
|
|
4035
|
+
export declare class POIPlus extends Entity {
|
|
4036
|
+
/** 容器 */
|
|
4037
|
+
container: Container$1;
|
|
4038
|
+
/**
|
|
4039
|
+
* 父物体计算包围盒时是否排除此物体,默认排除
|
|
4040
|
+
*/
|
|
4041
|
+
excludeBoundingBox: boolean;
|
|
4042
|
+
/**
|
|
4043
|
+
* 模式
|
|
4044
|
+
*/
|
|
4045
|
+
mode: "2D" | "3D";
|
|
4046
|
+
/**
|
|
4047
|
+
* 宽度
|
|
4048
|
+
*/
|
|
4049
|
+
width: number;
|
|
4050
|
+
/**
|
|
4051
|
+
* 高度
|
|
4052
|
+
*/
|
|
4053
|
+
height: number;
|
|
4054
|
+
/**
|
|
4055
|
+
* 像素宽度
|
|
4056
|
+
*/
|
|
4057
|
+
pixWidth: number;
|
|
4058
|
+
/**
|
|
4059
|
+
* 是否默认隐藏
|
|
4060
|
+
*/
|
|
4061
|
+
defaultHidden: boolean;
|
|
4062
|
+
/**
|
|
4063
|
+
* 链接ID
|
|
4064
|
+
*/
|
|
4065
|
+
linkId: string | null;
|
|
4066
|
+
/**
|
|
4067
|
+
* Base64图片
|
|
4068
|
+
*/
|
|
4069
|
+
base64: string;
|
|
4070
|
+
/**
|
|
4071
|
+
* Base64图片原始宽度
|
|
4072
|
+
*/
|
|
4073
|
+
srcWidth: number;
|
|
4074
|
+
/**
|
|
4075
|
+
* Base64图片原始高度
|
|
4076
|
+
*/
|
|
4077
|
+
srcHeight: number;
|
|
4078
|
+
/**
|
|
4079
|
+
* 像素高度
|
|
4080
|
+
*/
|
|
4081
|
+
pixHeight: number;
|
|
4082
|
+
private _img2D;
|
|
4083
|
+
private _canvas;
|
|
4084
|
+
private _pointerClickObserver;
|
|
4085
|
+
private _pointerEnterObserver;
|
|
4086
|
+
private _pointerLeaveObserver;
|
|
4087
|
+
private _pointerDownObserver;
|
|
4088
|
+
private _pointerUpObserver;
|
|
4089
|
+
private _mesh;
|
|
4090
|
+
private _showBoundingBox;
|
|
4091
|
+
private _visable;
|
|
4092
|
+
private _pivot;
|
|
4093
|
+
/**
|
|
4094
|
+
* 上一次点击的时间点,用于计算双击事件
|
|
4095
|
+
*/
|
|
4096
|
+
private _lastClickTime;
|
|
4097
|
+
/**
|
|
4098
|
+
* 构造函数
|
|
4099
|
+
* @param app 应用
|
|
4100
|
+
*/
|
|
4101
|
+
constructor(app: App);
|
|
4102
|
+
get visable(): boolean;
|
|
4103
|
+
set visable(value: boolean);
|
|
4104
|
+
/**
|
|
4105
|
+
* 获取或设置轴心点
|
|
4106
|
+
*/
|
|
4107
|
+
get pivot(): Point2D;
|
|
4108
|
+
set pivot(value: Point2D);
|
|
4109
|
+
get pickable(): boolean;
|
|
4110
|
+
set pickable(value: boolean);
|
|
4111
|
+
get cursor(): string;
|
|
4112
|
+
set cursor(value: string);
|
|
4113
|
+
get showBoundingBox(): boolean;
|
|
4114
|
+
set showBoundingBox(value: boolean);
|
|
4115
|
+
/**
|
|
4116
|
+
* 获取或设置贴图ID
|
|
4117
|
+
*/
|
|
4118
|
+
get textureId(): string;
|
|
4119
|
+
build(force?: boolean): Promise<void>;
|
|
4120
|
+
unbuild(): void;
|
|
4121
|
+
toJson(): any;
|
|
4122
|
+
fromJson(json: any): void;
|
|
4123
|
+
private _build2D;
|
|
4124
|
+
private _onResize;
|
|
4125
|
+
private _build3D;
|
|
4126
|
+
private _updatePovit;
|
|
4127
|
+
dispose(): void;
|
|
4128
|
+
/**
|
|
4129
|
+
* 获取原始贴图的像素大小,编辑器中用来实现等比缩放
|
|
4130
|
+
*/
|
|
4131
|
+
get _ssize(): Point2D;
|
|
4132
|
+
/**
|
|
4133
|
+
* 计算内容大小(编辑器用)
|
|
4134
|
+
*/
|
|
4135
|
+
_calaculateContentSize(): Point2D;
|
|
4136
|
+
/**
|
|
4137
|
+
* 获取或设置所有文本
|
|
4138
|
+
*/
|
|
4139
|
+
get txts(): string[];
|
|
4140
|
+
set txts(value: string[]);
|
|
4141
|
+
/**
|
|
4142
|
+
* 获取或设置所有文本的颜色
|
|
4143
|
+
*/
|
|
4144
|
+
get txtColors(): string[];
|
|
4145
|
+
set txtColors(value: string[]);
|
|
4146
|
+
/**
|
|
4147
|
+
* 设置单个文本内容
|
|
4148
|
+
* @param index 索引
|
|
4149
|
+
* @param value 文本内容
|
|
4150
|
+
*/
|
|
4151
|
+
setTxtValue(index: number, value: string): void;
|
|
4152
|
+
/**
|
|
4153
|
+
* 设置单个文本颜色
|
|
4154
|
+
* @param index 索引
|
|
4155
|
+
* @param color 颜色
|
|
4156
|
+
*/
|
|
4157
|
+
setTxtColor(index: number, color: string): void;
|
|
4158
|
+
/**
|
|
4159
|
+
* 设置单个文本
|
|
4160
|
+
* @param index 索引
|
|
4161
|
+
* @param value 文本内容
|
|
4162
|
+
* @param color 颜色
|
|
4163
|
+
*/
|
|
4164
|
+
setTxt(index: number, value: string, color: string): void;
|
|
4165
|
+
}
|
|
3961
4166
|
/**
|
|
3962
4167
|
* 路径
|
|
3963
4168
|
*/
|
|
@@ -4313,6 +4518,7 @@ export declare class RectangleProgress extends GradientRectangle {
|
|
|
4313
4518
|
* 资源池
|
|
4314
4519
|
*/
|
|
4315
4520
|
export declare class ResPool extends Base {
|
|
4521
|
+
readonly random: string;
|
|
4316
4522
|
/**
|
|
4317
4523
|
* 资源列表
|
|
4318
4524
|
*/
|
|
@@ -5319,7 +5525,11 @@ export declare enum EntityType {
|
|
|
5319
5525
|
/**
|
|
5320
5526
|
* 视频融合
|
|
5321
5527
|
*/
|
|
5322
|
-
VideoFusion = 131072
|
|
5528
|
+
VideoFusion = 131072,
|
|
5529
|
+
/**
|
|
5530
|
+
* POI加强版
|
|
5531
|
+
*/
|
|
5532
|
+
POIPlus = 262144
|
|
5323
5533
|
}
|
|
5324
5534
|
/**
|
|
5325
5535
|
* 环境贴图资源枚举
|
|
@@ -5742,6 +5952,15 @@ export declare enum SystemResId {
|
|
|
5742
5952
|
*/
|
|
5743
5953
|
VideoFusionOpacityTexture = "f29a93b7c7a413ddbd8e5afe18c5afcf"
|
|
5744
5954
|
}
|
|
5955
|
+
/** 文本对齐方式 */
|
|
5956
|
+
export declare enum TxtAlign {
|
|
5957
|
+
/** 左对齐 */
|
|
5958
|
+
Left = "left",
|
|
5959
|
+
/** 居中对齐 */
|
|
5960
|
+
Center = "center",
|
|
5961
|
+
/** 右对齐 */
|
|
5962
|
+
Right = "right"
|
|
5963
|
+
}
|
|
5745
5964
|
/**
|
|
5746
5965
|
* 加法,返回一个新对象
|
|
5747
5966
|
* @param a 点a
|
|
@@ -6557,7 +6776,7 @@ export type MeshFaceData = {
|
|
|
6557
6776
|
/**
|
|
6558
6777
|
* 其它实体
|
|
6559
6778
|
*/
|
|
6560
|
-
export type OtherEntity = Text3D | LeakLine | POI | Pipe | VideoFusion;
|
|
6779
|
+
export type OtherEntity = Text3D | LeakLine | POI | POIPlus | Pipe | VideoFusion;
|
|
6561
6780
|
export type ParticleData = {
|
|
6562
6781
|
id?: string;
|
|
6563
6782
|
name?: string;
|