@terra.gl/core 0.0.1-alpha.74 → 0.0.1-alpha.75

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/index.d.ts CHANGED
@@ -7050,6 +7050,7 @@ export declare class TrajectoryLayer extends Layer {
7050
7050
  private _trailLine;
7051
7051
  private _activeLine;
7052
7052
  private _marker;
7053
+ private _markerLabel;
7053
7054
  private _controlPointGroup;
7054
7055
  private _timeLabels;
7055
7056
  private _points;
@@ -7202,6 +7203,11 @@ export declare class TrajectoryLayer extends Layer {
7202
7203
  * 构建移动标记
7203
7204
  */
7204
7205
  private _buildMarker;
7206
+ /**
7207
+ * Build the marker label (UIMarker DOM overlay).
7208
+ * 构建标记标签(UIMarker DOM 覆盖层)
7209
+ */
7210
+ private _buildMarkerLabel;
7205
7211
  /**
7206
7212
  * Build control points.
7207
7213
  * 构建控制点
@@ -7236,6 +7242,11 @@ export declare class TrajectoryLayer extends Layer {
7236
7242
  * 通过插值更新标记位置
7237
7243
  */
7238
7244
  private _updateMarkerPosition;
7245
+ /**
7246
+ * Update marker label position and content.
7247
+ * 更新标记标签位置和内容
7248
+ */
7249
+ private _updateMarkerLabel;
7239
7250
  /**
7240
7251
  * Update the active trail line.
7241
7252
  * 更新已走轨迹线
@@ -7325,6 +7336,20 @@ export declare interface TrajectoryLayerOptions extends LayerOptions {
7325
7336
  cameraFollow?: CameraFollowConfig;
7326
7337
  }
7327
7338
 
7339
+ /**
7340
+ * Moving marker label configuration.
7341
+ * 移动标记标签配置
7342
+ * @category Layer
7343
+ */
7344
+ declare interface TrajectoryMarkerLabel {
7345
+ /** Label content: static string or dynamic function. 标签内容:静态字符串或动态函数 */
7346
+ content: string | ((currentTime: number, point?: TrajectoryPoint) => string);
7347
+ /** Y-axis pixel offset from marker anchor. Default: -10 (above marker). 相对标记锚点的 Y 轴像素偏移 */
7348
+ offsetY?: number;
7349
+ /** Whether to show the label. Default: true. 是否显示标签 */
7350
+ show?: boolean;
7351
+ }
7352
+
7328
7353
  /**
7329
7354
  * Moving marker style configuration.
7330
7355
  * 移动标记样式配置
@@ -7341,6 +7366,8 @@ declare interface TrajectoryMarkerStyle {
7341
7366
  color?: string;
7342
7367
  /** Sprite anchor [x, y], 0-1 range. Default [0.5, 0.5] = center. [0.5, 0] = bottom-center. */
7343
7368
  anchor?: [number, number];
7369
+ /** Label displayed above the marker. 标记头顶显示的标签 */
7370
+ label?: TrajectoryMarkerLabel;
7344
7371
  }
7345
7372
 
7346
7373
  /**