@glowjs/core 2026.3.20 → 2026.3.24
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 +74 -1
- package/dist/glow.core.js +1 -1
- package/package.json +1 -1
package/dist/glow.core.d.ts
CHANGED
|
@@ -3737,6 +3737,62 @@ export declare class HeightTool {
|
|
|
3737
3737
|
*/
|
|
3738
3738
|
stop(): void;
|
|
3739
3739
|
}
|
|
3740
|
+
/**
|
|
3741
|
+
* 图片广告牌
|
|
3742
|
+
*/
|
|
3743
|
+
export declare class IconBillboard extends Entity {
|
|
3744
|
+
private _options;
|
|
3745
|
+
private _visible;
|
|
3746
|
+
private _pivot;
|
|
3747
|
+
private _img2D;
|
|
3748
|
+
private _canvas;
|
|
3749
|
+
private _pointerClickObserver;
|
|
3750
|
+
private _pointerEnterObserver;
|
|
3751
|
+
private _pointerLeaveObserver;
|
|
3752
|
+
private _pointerDownObserver;
|
|
3753
|
+
private _pointerUpObserver;
|
|
3754
|
+
private _mesh;
|
|
3755
|
+
private _renderingGroupId;
|
|
3756
|
+
/**
|
|
3757
|
+
* 上一次点击的时间点,用于计算双击事件
|
|
3758
|
+
*/
|
|
3759
|
+
private _lastClickTime;
|
|
3760
|
+
constructor(app: App, options: IconBillboardOptions);
|
|
3761
|
+
private _onResize;
|
|
3762
|
+
/**
|
|
3763
|
+
* 获取显示模式
|
|
3764
|
+
*/
|
|
3765
|
+
get mode(): "2D" | "3D";
|
|
3766
|
+
/**
|
|
3767
|
+
* 获取或设置图片地址
|
|
3768
|
+
*/
|
|
3769
|
+
get url(): string;
|
|
3770
|
+
set url(value: string);
|
|
3771
|
+
/**
|
|
3772
|
+
* 获取或设置渲染顺序,默认为0(仅3D模式生效)
|
|
3773
|
+
*/
|
|
3774
|
+
get renderOrder(): number;
|
|
3775
|
+
set renderOrder(value: number);
|
|
3776
|
+
get visible(): boolean;
|
|
3777
|
+
set visible(value: boolean);
|
|
3778
|
+
/**
|
|
3779
|
+
* 获取或设置轴心点
|
|
3780
|
+
*/
|
|
3781
|
+
get pivot(): Point2D;
|
|
3782
|
+
set pivot(value: Point2D);
|
|
3783
|
+
get pickable(): boolean;
|
|
3784
|
+
set pickable(value: boolean);
|
|
3785
|
+
get cursor(): string;
|
|
3786
|
+
set cursor(value: string);
|
|
3787
|
+
build(force?: boolean): Promise<void>;
|
|
3788
|
+
unbuild(): void;
|
|
3789
|
+
toJson(): any;
|
|
3790
|
+
fromJson(json: any): void;
|
|
3791
|
+
private _build2D;
|
|
3792
|
+
private _build3D;
|
|
3793
|
+
private _updatePovit;
|
|
3794
|
+
dispose(): void;
|
|
3795
|
+
}
|
|
3740
3796
|
/**
|
|
3741
3797
|
* 信息列表面板
|
|
3742
3798
|
*/
|
|
@@ -6155,7 +6211,11 @@ export declare enum EntityType {
|
|
|
6155
6211
|
/**
|
|
6156
6212
|
* 电子围栏
|
|
6157
6213
|
*/
|
|
6158
|
-
Fence = 1048576
|
|
6214
|
+
Fence = 1048576,
|
|
6215
|
+
/**
|
|
6216
|
+
* 图片广告牌
|
|
6217
|
+
*/
|
|
6218
|
+
IconBillboard = 2097152
|
|
6159
6219
|
}
|
|
6160
6220
|
/**
|
|
6161
6221
|
* 环境贴图资源枚举
|
|
@@ -7510,6 +7570,19 @@ export type FlyData = {
|
|
|
7510
7570
|
*/
|
|
7511
7571
|
beta: number;
|
|
7512
7572
|
};
|
|
7573
|
+
/**
|
|
7574
|
+
* 图片广告牌选项
|
|
7575
|
+
*/
|
|
7576
|
+
export type IconBillboardOptions = {
|
|
7577
|
+
/** 显示模式 */
|
|
7578
|
+
mode: "2D" | "3D";
|
|
7579
|
+
/** 图片地址 */
|
|
7580
|
+
url: string;
|
|
7581
|
+
/** 宽度,2D模式单位为像素,3D模式单位为米 */
|
|
7582
|
+
width: number;
|
|
7583
|
+
/** 高度,2D模式单位为像素,3D模式单位为米 */
|
|
7584
|
+
height: number;
|
|
7585
|
+
};
|
|
7513
7586
|
/**
|
|
7514
7587
|
* 信息列表数据项
|
|
7515
7588
|
*/
|