@aibee/crc-bmap 0.14.34 → 0.14.35

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/lib/meta.json CHANGED
@@ -3193,7 +3193,7 @@
3193
3193
  "format": "esm"
3194
3194
  },
3195
3195
  "../lib/src/elements/poi2.js": {
3196
- "bytes": 27236,
3196
+ "bytes": 28327,
3197
3197
  "imports": [
3198
3198
  {
3199
3199
  "path": "../../../node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_extends.js",
@@ -4887,7 +4887,7 @@
4887
4887
  "format": "esm"
4888
4888
  },
4889
4889
  "../lib/src/config.js": {
4890
- "bytes": 2292,
4890
+ "bytes": 2329,
4891
4891
  "imports": [
4892
4892
  {
4893
4893
  "path": "lodash",
@@ -10085,7 +10085,7 @@
10085
10085
  "bytesInOutput": 1595
10086
10086
  },
10087
10087
  "../lib/src/elements/poi2.js": {
10088
- "bytesInOutput": 12704
10088
+ "bytesInOutput": 13133
10089
10089
  },
10090
10090
  "../lib/src/elements/heatmap.js": {
10091
10091
  "bytesInOutput": 2123
@@ -10181,7 +10181,7 @@
10181
10181
  "bytesInOutput": 2629
10182
10182
  },
10183
10183
  "../lib/src/config.js": {
10184
- "bytesInOutput": 1276
10184
+ "bytesInOutput": 1307
10185
10185
  },
10186
10186
  "../lib/src/loader/AibeeLoader/index.js": {
10187
10187
  "bytesInOutput": 9189
@@ -10340,7 +10340,7 @@
10340
10340
  "bytesInOutput": 0
10341
10341
  }
10342
10342
  },
10343
- "bytes": 452967
10343
+ "bytes": 453427
10344
10344
  }
10345
10345
  }
10346
10346
  }
@@ -75,6 +75,8 @@ export interface Config {
75
75
  color: string;
76
76
  opacity: number;
77
77
  };
78
+ /** POI 文字默认字体族(CSS font-family),POI 未单独指定 text_font_family 时生效 */
79
+ poiTextFontFamily: string;
78
80
  renderAnimation: 'setTimeout' | 'requestAnimationFrame';
79
81
  }
80
82
  export declare const defaultConfig: Config;
@@ -17,6 +17,8 @@ export interface PoiOptions2 {
17
17
  text_font_size: number;
18
18
  /** 文字字重:400(常规)/'bold'、700(加粗)。不同字重使用独立的 SDF 图集 */
19
19
  text_font_weight: string | number;
20
+ /** 文字字体族(CSS font-family)。不同字体使用独立的 SDF 图集 */
21
+ text_font_family: string;
20
22
  /** 文字描边宽度,单位 CSS 像素(0 表示不描边) */
21
23
  text_outline_width: number;
22
24
  icon_rotate: number;
@@ -69,7 +71,7 @@ export declare class Poi2 extends Object3D<PoiEventMap2> {
69
71
  aspect: number;
70
72
  }>;
71
73
  constructor(context: Context, options: PoiOptionsParam2);
72
- /** 当前文字使用的 SDF 字体规格:字重不同即对应不同图集 */
74
+ /** 当前文字使用的 SDF 字体规格:字重/字体族不同即对应不同图集 */
73
75
  get sdfFontSpec(): import("../factory").SdfFontSpec;
74
76
  get textTexture(): DataTexture | null;
75
77
  /** 当前文字渲染对象 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aibee/crc-bmap",
3
- "version": "0.14.34",
3
+ "version": "0.14.35",
4
4
  "description": "",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "lib/index.esm.min.js",