clickgo 4.1.0 → 4.1.2

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.
@@ -664,3 +664,18 @@ export interface ITagDropEvent {
664
664
  'after': number;
665
665
  };
666
666
  }
667
+ export interface IObjviewerLine {
668
+ /** -- 可自定义线段的名称 --- */
669
+ 'name'?: string;
670
+ 'start': clickgo.control.IObjviewerLineObj;
671
+ 'end': clickgo.control.IObjviewerLineObj;
672
+ /** --- 默认 255 --- */
673
+ 'hue'?: string;
674
+ 'path'?: string;
675
+ /** --- 默认 solid --- */
676
+ 'stroke'?: 'solid' | 'dashed' | 'up' | 'down';
677
+ }
678
+ export interface IObjviewerLineObj {
679
+ 'obj': HTMLElement | AbstractControl;
680
+ 'pos': 'lt' | 't' | 'tr' | 'r' | 'rb' | 'b' | 'bl' | 'l';
681
+ }
package/dist/lib/dom.d.ts CHANGED
@@ -324,6 +324,18 @@ export declare function exitFullscreen(): Promise<boolean>;
324
324
  * @param tagName 标签名
325
325
  */
326
326
  export declare function createElement<T extends keyof HTMLElementTagNameMap>(tagName: T): HTMLElementTagNameMap[T];
327
+ /** --- 获取元素的相对位置信息 --- */
328
+ export declare function getElementRPosition(el: HTMLElement, wrap: HTMLElement): {
329
+ 'left': number;
330
+ 'top': number;
331
+ 'width': number;
332
+ 'height': number;
333
+ };
334
+ /** --- 根据角位置获取八角坐标 --- */
335
+ export declare function getRectPoint(el: HTMLElement, wrap: HTMLElement, pos: 'lt' | 't' | 'tr' | 'r' | 'rb' | 'b' | 'bl' | 'l'): {
336
+ 'x': number;
337
+ 'y': number;
338
+ };
327
339
  /** --- 麦克风通过 WebSocket 对讲 --- */
328
340
  export declare const mic: {
329
341
  /**
@@ -41,8 +41,9 @@ export declare function clearGlobal(): Promise<void>;
41
41
  /**
42
42
  * --- 设置全局主色 ---
43
43
  * @param color 如 oklch(.7 .2 43),留空为还原
44
+ * @param hue 主色的 hue 值,留空为还原
44
45
  */
45
- export declare function setMain(color?: string): void;
46
+ export declare function setMain(color?: string, hue?: number): void;
46
47
  /** --- 主题对象 --- */
47
48
  export interface ITheme {
48
49
  'type': 'theme';
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clickgo",
3
- "version": "4.1.0",
3
+ "version": "4.1.2",
4
4
  "description": "Background interface, software interface, mobile phone APP interface operation library.",
5
5
  "type": "module",
6
6
  "keywords": [