@maptec/maptec-js 1.0.2 → 1.0.4

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/Maptec.d.ts CHANGED
@@ -20030,7 +20030,7 @@ export type MapOptions = {
20030
20030
  * `locale` 对象会把带命名空间的 UI 字符串 ID 映射到目标语言的翻译文本;
20031
20031
  * 可以参考 `src/ui/default_locale.js`,里面包含所有支持的字符串 ID 示例。
20032
20032
  * 该对象既可以给出全部 UI 文本(从而新增一种完整翻译),也可以只给出部分条目(对默认翻译表进行局部修补)。
20033
- * 另外,你也可以在官方插件页面中查找与本地化相关的插件。
20033
+ * 若自定义文案包含阿拉伯语等 RTL 文字,会自动检测并排版 RTL 文字。
20034
20034
  * @defaultValue null
20035
20035
  * @private
20036
20036
  */
@@ -20039,6 +20039,9 @@ export type MapOptions = {
20039
20039
  * 地图标注使用的语言。设置后会优先读取要素上的 `name:<language>` 字段,
20040
20040
  * 并回退到英文与本地名称。传入 `local` 时优先显示本地名称。
20041
20041
  *
20042
+ * 当语言为阿拉伯语、希伯来语等 RTL 语言(如 `ar`、`he`)、设为 `local`,或自定义
20043
+ * `locale` 含 RTL 文字时,会自动检测并排版 RTL 文字。
20044
+ *
20042
20045
  * @defaultValue null
20043
20046
  * @example
20044
20047
  * ```ts
@@ -20312,6 +20315,7 @@ declare class Map$1 extends Camera {
20312
20315
  _validateStyle: boolean;
20313
20316
  _requestManager: RequestManager;
20314
20317
  _locale: Record<string, string>;
20318
+ _userLocale?: Record<string, string>;
20315
20319
  _language: string | null;
20316
20320
  _removed: boolean;
20317
20321
  _clickTolerance: number;