@glowjs/core 2026.3.19 → 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.
@@ -3235,14 +3235,8 @@ export declare class FPSBar extends TextBlock {
3235
3235
  * 电子围栏
3236
3236
  */
3237
3237
  export declare class Fence extends Entity {
3238
- /** 高度 */
3239
- static height: number;
3240
- /** 动画速度 */
3241
- static animationSpeed: number;
3242
3238
  /** 点集 */
3243
3239
  points: Point3D[];
3244
- private _mesh;
3245
- private _material;
3246
3240
  /**
3247
3241
  * 实例化一个电子围栏对象
3248
3242
  * @param app 应用
@@ -3258,10 +3252,6 @@ export declare class Fence extends Entity {
3258
3252
  * @param {boolean} force 是否强制
3259
3253
  */
3260
3254
  build(force?: boolean): Promise<void>;
3261
- /**
3262
- * 拆毁
3263
- */
3264
- unbuild(): void;
3265
3255
  }
3266
3256
  /**
3267
3257
  * 电子围栏管理器组件
@@ -3270,13 +3260,46 @@ export declare class FenceMgr extends Component {
3270
3260
  private _edit;
3271
3261
  private _curPoints;
3272
3262
  private _curMeshes;
3273
- /**
3274
- * 线颜色
3275
- */
3276
- private _lineColor;
3277
3263
  private _curRoot;
3264
+ private _lastPointMesh;
3278
3265
  private _lastLineMesh;
3279
3266
  private _appEvents;
3267
+ /**
3268
+ * 离地高度
3269
+ */
3270
+ static offsetY: number;
3271
+ /**
3272
+ * 区域颜色
3273
+ */
3274
+ static areaColor: string;
3275
+ /**
3276
+ * 区域透明度
3277
+ */
3278
+ static areaAlpha: number;
3279
+ /**
3280
+ * 点颜色
3281
+ */
3282
+ static pointColor: string;
3283
+ /**
3284
+ * 线宽度
3285
+ */
3286
+ static lineWidth: number;
3287
+ /**
3288
+ * 线颜色
3289
+ */
3290
+ static lineColor: string;
3291
+ /**
3292
+ * 文本
3293
+ */
3294
+ static text: string;
3295
+ /**
3296
+ * 文本颜色
3297
+ */
3298
+ static textColor: string;
3299
+ /**
3300
+ * 文本缩放
3301
+ */
3302
+ static textScale: number;
3280
3303
  /** 结束编辑时触发的回调函数 */
3281
3304
  onEndEdit: (face: Fence) => void;
3282
3305
  /** 电子围栏列表 */
@@ -3301,6 +3324,7 @@ export declare class FenceMgr extends Component {
3301
3324
  startEdit(): void;
3302
3325
  private _setAppEvents;
3303
3326
  private _onLeftClick;
3327
+ private _addPointMesh;
3304
3328
  private _addLineMesh;
3305
3329
  private _onAfterFrame;
3306
3330
  /**
@@ -3713,6 +3737,62 @@ export declare class HeightTool {
3713
3737
  */
3714
3738
  stop(): void;
3715
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
+ }
3716
3796
  /**
3717
3797
  * 信息列表面板
3718
3798
  */
@@ -6131,7 +6211,11 @@ export declare enum EntityType {
6131
6211
  /**
6132
6212
  * 电子围栏
6133
6213
  */
6134
- Fence = 1048576
6214
+ Fence = 1048576,
6215
+ /**
6216
+ * 图片广告牌
6217
+ */
6218
+ IconBillboard = 2097152
6135
6219
  }
6136
6220
  /**
6137
6221
  * 环境贴图资源枚举
@@ -6569,11 +6653,7 @@ export declare enum SystemResId {
6569
6653
  /**
6570
6654
  * 视频融合透明度贴图
6571
6655
  */
6572
- VideoFusionOpacityTexture = "f29a93b7c7a413ddbd8e5afe18c5afcf",
6573
- /**
6574
- * 电子围栏贴图
6575
- */
6576
- FenceTexuture = "0ce6fc68f64afa03bcf7b913071a48cb"
6656
+ VideoFusionOpacityTexture = "f29a93b7c7a413ddbd8e5afe18c5afcf"
6577
6657
  }
6578
6658
  /** 文本对齐方式 */
6579
6659
  export declare enum TxtAlign {
@@ -7490,6 +7570,19 @@ export type FlyData = {
7490
7570
  */
7491
7571
  beta: number;
7492
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
+ };
7493
7586
  /**
7494
7587
  * 信息列表数据项
7495
7588
  */