@glowjs/core 2025.2.25 → 2025.3.5
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 +105 -27
- package/dist/glow.core.js +1 -1
- package/dist/typings/camera/CameraMgr.d.ts +3 -1
- package/dist/typings/camera/EasingFunction.d.ts +36 -0
- package/dist/typings/entity/Building.d.ts +5 -27
- package/dist/typings/entity/POI.d.ts +4 -0
- package/dist/typings/entity/building/buildBuilding.d.ts +7 -0
- package/dist/typings/entity/building/buildBuildingOnClient.d.ts +2 -0
- package/dist/typings/entity/building/buildBuildingOnEditor.d.ts +2 -0
- package/dist/typings/entity/component/archive/ArchiveCabinet.d.ts +22 -0
- package/dist/typings/entity/component/archive/ArchiveCabinetGroup.d.ts +13 -0
- package/dist/typings/entity/component/archive/ArchiveDoor.d.ts +5 -0
- package/dist/typings/entity/component/archive/ColumnPosition.d.ts +17 -0
- package/dist/typings/entity/init/afterLevelCreate.d.ts +6 -0
- package/dist/typings/entity/init/setBuildings.d.ts +2 -0
- package/dist/typings/entity/init/setDefaultView.d.ts +6 -0
- package/dist/typings/entity/init/setPOILink.d.ts +5 -0
- package/dist/typings/gui/ToolTip.d.ts +5 -0
- package/dist/typings/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/typings/entity/building/initPoolingLoop.d.ts +0 -6
- package/dist/typings/entity/building/initPoolingMouse.d.ts +0 -6
package/dist/glow.core.d.ts
CHANGED
|
@@ -98,6 +98,11 @@ declare class ArchiveDoor extends Component {
|
|
|
98
98
|
* 获取最近的密集架列
|
|
99
99
|
*/
|
|
100
100
|
get nearest(): ArchiveCabinet;
|
|
101
|
+
/**
|
|
102
|
+
* 获取或设置与前一列的偏移位置(单位:厘米)
|
|
103
|
+
*/
|
|
104
|
+
get offsetPos(): number;
|
|
105
|
+
set offsetPos(value: number);
|
|
101
106
|
}
|
|
102
107
|
declare class AutoRotate {
|
|
103
108
|
/**
|
|
@@ -576,6 +581,11 @@ declare class ToolTip extends Rectangle {
|
|
|
576
581
|
*/
|
|
577
582
|
get text(): string;
|
|
578
583
|
set text(value: string);
|
|
584
|
+
/**
|
|
585
|
+
* 获取或设置文本颜色
|
|
586
|
+
*/
|
|
587
|
+
get textColor(): string;
|
|
588
|
+
set textColor(value: string);
|
|
579
589
|
private _onFrameUpdate;
|
|
580
590
|
}
|
|
581
591
|
declare class Tracker extends Base {
|
|
@@ -624,6 +634,20 @@ declare enum ArchiveCabinetGroupState {
|
|
|
624
634
|
*/
|
|
625
635
|
Capacity = 8
|
|
626
636
|
}
|
|
637
|
+
declare enum ColumnPosition {
|
|
638
|
+
/**
|
|
639
|
+
* 固定列左侧
|
|
640
|
+
*/
|
|
641
|
+
Left = -1,
|
|
642
|
+
/**
|
|
643
|
+
* 固定列
|
|
644
|
+
*/
|
|
645
|
+
Fixed = 0,
|
|
646
|
+
/**
|
|
647
|
+
* 固定列右侧
|
|
648
|
+
*/
|
|
649
|
+
Right = 1
|
|
650
|
+
}
|
|
627
651
|
declare enum LinkObjectType {
|
|
628
652
|
/**
|
|
629
653
|
* 实体
|
|
@@ -969,6 +993,10 @@ export declare class ArchiveCabinet extends Component {
|
|
|
969
993
|
* 获取密集架对象
|
|
970
994
|
*/
|
|
971
995
|
get group(): ArchiveCabinetGroup;
|
|
996
|
+
/**
|
|
997
|
+
* 获取是否固定列
|
|
998
|
+
*/
|
|
999
|
+
get isFixed(): boolean;
|
|
972
1000
|
/**
|
|
973
1001
|
* 获取列号
|
|
974
1002
|
*/
|
|
@@ -977,6 +1005,23 @@ export declare class ArchiveCabinet extends Component {
|
|
|
977
1005
|
* 获取列号(数字类型)
|
|
978
1006
|
*/
|
|
979
1007
|
get columnIndex(): number;
|
|
1008
|
+
/**
|
|
1009
|
+
* 实际索引号(从0开始)
|
|
1010
|
+
*/
|
|
1011
|
+
get realIndex(): number;
|
|
1012
|
+
/**
|
|
1013
|
+
* 获取前一列
|
|
1014
|
+
*/
|
|
1015
|
+
get front(): ArchiveCabinet;
|
|
1016
|
+
/**
|
|
1017
|
+
* 列位置
|
|
1018
|
+
*/
|
|
1019
|
+
get columnPosition(): ColumnPosition;
|
|
1020
|
+
/**
|
|
1021
|
+
* 获取或设置与前一列的偏移位置(单位:厘米)
|
|
1022
|
+
*/
|
|
1023
|
+
get offsetPos(): number;
|
|
1024
|
+
set offsetPos(value: number);
|
|
980
1025
|
/**
|
|
981
1026
|
* 获取列类型,1=左活动列,0=固定列,2=右活动列
|
|
982
1027
|
*/
|
|
@@ -1096,6 +1141,18 @@ export declare class ArchiveCabinetGroup extends Component {
|
|
|
1096
1141
|
* @param entity 实体(组)
|
|
1097
1142
|
*/
|
|
1098
1143
|
constructor(entity: Entity);
|
|
1144
|
+
/**
|
|
1145
|
+
* 获取起始列号
|
|
1146
|
+
*/
|
|
1147
|
+
get startIndex(): number;
|
|
1148
|
+
/**
|
|
1149
|
+
* 获取已排序的密集架列表(列号从小到大排序)
|
|
1150
|
+
*/
|
|
1151
|
+
get sortedCabinets(): ArchiveCabinet[];
|
|
1152
|
+
/**
|
|
1153
|
+
* 获取排序标识,true=从左往右,false=从右往左
|
|
1154
|
+
*/
|
|
1155
|
+
get sortFlag(): boolean;
|
|
1099
1156
|
/**
|
|
1100
1157
|
* 实体ID
|
|
1101
1158
|
*/
|
|
@@ -1115,6 +1172,7 @@ export declare class ArchiveCabinetGroup extends Component {
|
|
|
1115
1172
|
*/
|
|
1116
1173
|
get columnPosition(): number[];
|
|
1117
1174
|
set columnPosition(value: number[]);
|
|
1175
|
+
updateJTColumnPosition(value: number[]): void;
|
|
1118
1176
|
/**
|
|
1119
1177
|
* 固定列
|
|
1120
1178
|
*/
|
|
@@ -1432,13 +1490,13 @@ export declare class BoardCard extends Entity {
|
|
|
1432
1490
|
*/
|
|
1433
1491
|
export declare class Building extends Entity {
|
|
1434
1492
|
/**
|
|
1435
|
-
*
|
|
1493
|
+
* 鼠标移入楼层链接的颜色
|
|
1436
1494
|
*/
|
|
1437
|
-
static
|
|
1495
|
+
static floorLinkColor: string;
|
|
1438
1496
|
/**
|
|
1439
|
-
*
|
|
1497
|
+
* 鼠标移入楼层链接的透明度
|
|
1440
1498
|
*/
|
|
1441
|
-
static
|
|
1499
|
+
static floorLinkAlpha: number;
|
|
1442
1500
|
/**
|
|
1443
1501
|
* 是否总是显示建筑结构
|
|
1444
1502
|
*/
|
|
@@ -1460,7 +1518,6 @@ export declare class Building extends Entity {
|
|
|
1460
1518
|
*/
|
|
1461
1519
|
expandOffset: Point3D;
|
|
1462
1520
|
private _tweenExpand;
|
|
1463
|
-
private _pooling;
|
|
1464
1521
|
/**
|
|
1465
1522
|
* 实例化一个建筑对象
|
|
1466
1523
|
* @param app 应用
|
|
@@ -1478,18 +1535,6 @@ export declare class Building extends Entity {
|
|
|
1478
1535
|
* 获取楼层链接外立面
|
|
1479
1536
|
*/
|
|
1480
1537
|
get floorLinks(): Thing[];
|
|
1481
|
-
/**
|
|
1482
|
-
* 轮询组对象
|
|
1483
|
-
*/
|
|
1484
|
-
get polling(): Group | null;
|
|
1485
|
-
/**
|
|
1486
|
-
* 获取轮询组对象内的楼层链接外立面
|
|
1487
|
-
*/
|
|
1488
|
-
get pollingFloorLinks(): Thing[];
|
|
1489
|
-
/**
|
|
1490
|
-
* 显示建筑楼层轮询对象回调函数
|
|
1491
|
-
*/
|
|
1492
|
-
displayPoolingItemCallback: (item: Thing | null) => void;
|
|
1493
1538
|
/**
|
|
1494
1539
|
* 获取楼层
|
|
1495
1540
|
*/
|
|
@@ -1506,14 +1551,6 @@ export declare class Building extends Entity {
|
|
|
1506
1551
|
* 获取实例类型
|
|
1507
1552
|
*/
|
|
1508
1553
|
get instanceClass(): any;
|
|
1509
|
-
/**
|
|
1510
|
-
* 是否要在建筑层级显示外立面和楼层链接
|
|
1511
|
-
*/
|
|
1512
|
-
get doShowLinks(): boolean;
|
|
1513
|
-
/**
|
|
1514
|
-
* 开始轮询
|
|
1515
|
-
*/
|
|
1516
|
-
private _startPolling;
|
|
1517
1554
|
/**
|
|
1518
1555
|
* 展开楼层
|
|
1519
1556
|
* @param time 时间,默认值500,单位毫秒
|
|
@@ -1552,7 +1589,7 @@ export declare class Building extends Entity {
|
|
|
1552
1589
|
*/
|
|
1553
1590
|
dispose(): void;
|
|
1554
1591
|
/**
|
|
1555
|
-
*
|
|
1592
|
+
* 创建合并的网格(在园区层级时调用)
|
|
1556
1593
|
*/
|
|
1557
1594
|
buildMergedMesh(): Promise<void>;
|
|
1558
1595
|
}
|
|
@@ -2032,8 +2069,9 @@ export declare class CameraMgr extends Base {
|
|
|
2032
2069
|
* @param target 目标
|
|
2033
2070
|
* @param time 花费的时间,默认值2000毫秒
|
|
2034
2071
|
* @param callback 完成回调函数
|
|
2072
|
+
* @param easing 缓动函数类型
|
|
2035
2073
|
*/
|
|
2036
|
-
flyTo(position: Point3D, target: Point3D, time?: number, callback?: () => void): void;
|
|
2074
|
+
flyTo(position: Point3D, target: Point3D, time?: number, callback?: () => void, easing?: EasingFunction): void;
|
|
2037
2075
|
private _updateOrthographic;
|
|
2038
2076
|
/**
|
|
2039
2077
|
* 停止飞行
|
|
@@ -3829,6 +3867,10 @@ export declare class POI extends Entity {
|
|
|
3829
3867
|
* 是否默认隐藏
|
|
3830
3868
|
*/
|
|
3831
3869
|
defaultHidden: boolean;
|
|
3870
|
+
/**
|
|
3871
|
+
* 链接ID
|
|
3872
|
+
*/
|
|
3873
|
+
linkId: string | null;
|
|
3832
3874
|
/**
|
|
3833
3875
|
* 像素高度
|
|
3834
3876
|
*/
|
|
@@ -5135,6 +5177,42 @@ export declare enum DoorWindowDirection {
|
|
|
5135
5177
|
*/
|
|
5136
5178
|
PositiveNegative = 3
|
|
5137
5179
|
}
|
|
5180
|
+
/**
|
|
5181
|
+
* 缓动函数枚举
|
|
5182
|
+
*/
|
|
5183
|
+
export declare enum EasingFunction {
|
|
5184
|
+
"Linear.None" = "Linear.None",
|
|
5185
|
+
"Quadratic.In" = "Quadratic.In",
|
|
5186
|
+
"Quadratic.Out" = "Quadratic.Out",
|
|
5187
|
+
"Quadratic.InOut" = "Quadratic.InOut",
|
|
5188
|
+
"Cubic.In" = "Cubic.In",
|
|
5189
|
+
"Cubic.Out" = "Cubic.Out",
|
|
5190
|
+
"Cubic.InOut" = "Cubic.InOut",
|
|
5191
|
+
"Quartic.In" = "Quartic.In",
|
|
5192
|
+
"Quartic.Out" = "Quartic.Out",
|
|
5193
|
+
"Quartic.InOut" = "Quartic.InOut",
|
|
5194
|
+
"Quintic.In" = "Quintic.In",
|
|
5195
|
+
"Quintic.Out" = "Quintic.Out",
|
|
5196
|
+
"Quintic.InOut" = "Quintic.InOut",
|
|
5197
|
+
"Sinusoidal.In" = "Sinusoidal.In",
|
|
5198
|
+
"Sinusoidal.Out" = "Sinusoidal.Out",
|
|
5199
|
+
"Sinusoidal.InOut" = "Sinusoidal.InOut",
|
|
5200
|
+
"Exponential.In" = "Exponential.In",
|
|
5201
|
+
"Exponential.Out" = "Exponential.Out",
|
|
5202
|
+
"Exponential.InOut" = "Exponential.InOut",
|
|
5203
|
+
"Circular.In" = "Circular.In",
|
|
5204
|
+
"Circular.Out" = "Circular.Out",
|
|
5205
|
+
"Circular.InOut" = "Circular.InOut",
|
|
5206
|
+
"Elastic.In" = "Elastic.In",
|
|
5207
|
+
"Elastic.Out" = "Elastic.Out",
|
|
5208
|
+
"Elastic.InOut" = "Elastic.InOut",
|
|
5209
|
+
"Back.In" = "Back.In",
|
|
5210
|
+
"Back.Out" = "Back.Out",
|
|
5211
|
+
"Back.InOut" = "Back.InOut",
|
|
5212
|
+
"Bounce.In" = "Bounce.In",
|
|
5213
|
+
"Bounce.Out" = "Bounce.Out",
|
|
5214
|
+
"Bounce.InOut" = "Bounce.InOut"
|
|
5215
|
+
}
|
|
5138
5216
|
/**
|
|
5139
5217
|
* 实体类型枚举
|
|
5140
5218
|
*/
|