@kudashi/kds-api 2.14.3 → 2.14.4-rc-1
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/api.d.ts +53 -1
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// version: 2.
|
|
1
|
+
// version: 2.14.4
|
|
2
2
|
|
|
3
3
|
declare global {
|
|
4
4
|
/**
|
|
@@ -321,6 +321,50 @@ declare global {
|
|
|
321
321
|
* Qunhe PROPRIETARY/CONFIDENTIAL, any form of usage is subject to approval.
|
|
322
322
|
*/
|
|
323
323
|
|
|
324
|
+
/**
|
|
325
|
+
*
|
|
326
|
+
* 目前支持的单位
|
|
327
|
+
*
|
|
328
|
+
* supported unit currently
|
|
329
|
+
*/
|
|
330
|
+
enum KLengthUnit {
|
|
331
|
+
mm = 0,
|
|
332
|
+
m = 1,
|
|
333
|
+
inch = 2,
|
|
334
|
+
ftAndInch = 3,
|
|
335
|
+
sqM = 4,
|
|
336
|
+
sqFt = 5,
|
|
337
|
+
sqMm = 6,
|
|
338
|
+
mats = 7,
|
|
339
|
+
tsubo = 8,
|
|
340
|
+
sqIn = 9
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
*
|
|
345
|
+
* 主题风格
|
|
346
|
+
*
|
|
347
|
+
* the theme style
|
|
348
|
+
*/
|
|
349
|
+
enum KTheme {
|
|
350
|
+
dark = "dark",
|
|
351
|
+
light = ""
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
*
|
|
356
|
+
* 全局环境设置
|
|
357
|
+
*
|
|
358
|
+
* global environment settings
|
|
359
|
+
*/
|
|
360
|
+
interface EnvironmentSetting {
|
|
361
|
+
designId?: string;
|
|
362
|
+
lng?: string;
|
|
363
|
+
globalUnit?: KLengthUnit;
|
|
364
|
+
theme?: KTheme;
|
|
365
|
+
hostAppName?: string | null;
|
|
366
|
+
}
|
|
367
|
+
|
|
324
368
|
/**
|
|
325
369
|
* KApplication 是使用酷大师前端 Plugin API 的起点。
|
|
326
370
|
*
|
|
@@ -546,6 +590,14 @@ declare global {
|
|
|
546
590
|
* @returns true if message handler has registered and has been removed, or false if the message handler hasn't registered.
|
|
547
591
|
*/
|
|
548
592
|
unRegisterMessageHandler(handerId: string): boolean;
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
*
|
|
596
|
+
* 获取当前环境设置
|
|
597
|
+
*
|
|
598
|
+
* get current environment settings
|
|
599
|
+
*/
|
|
600
|
+
getEnvironmentSettings(): EnvironmentSetting;
|
|
549
601
|
}
|
|
550
602
|
|
|
551
603
|
/*
|