@plaso-infi/whiteboard-sdk 0.3.2 → 0.3.3

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.
@@ -11539,6 +11539,7 @@
11539
11539
  }
11540
11540
  .iconWrapDisabled_1IWwT {
11541
11541
  cursor: not-allowed;
11542
+ color: var(--upime-disable);
11542
11543
  }
11543
11544
  .do-hovers .iconWrap_3PXPZ:hover {
11544
11545
  color: inherit;
@@ -14735,6 +14736,9 @@
14735
14736
  .detachedBoxPortrait_3RTFQ .mixBox_TmvtM .videoContainer_sXLil {
14736
14737
  height: 100%;
14737
14738
  width: 100%;
14739
+ top: 50%;
14740
+ transform: translateY(-50%);
14741
+ position: absolute;
14738
14742
  }
14739
14743
  .detachedBoxPortrait_3RTFQ .mixBox_TmvtM .avatarContainer_3r5DY {
14740
14744
  position: absolute;
@@ -16848,7 +16852,7 @@
16848
16852
  .scaleStatusBar_24ULR .btns_rRn3C {
16849
16853
  position: relative;
16850
16854
  height: 40px;
16851
- padding: 0 10px;
16855
+ padding: 0 4px;
16852
16856
  display: flex;
16853
16857
  justify-content: space-between;
16854
16858
  align-items: center;
@@ -16879,10 +16883,6 @@
16879
16883
  font-size: 12px;
16880
16884
  margin: 0 12px;
16881
16885
  }
16882
- .do-hovers .scaleStatusBar_24ULR .btn_1CBmI:hover {
16883
- background: transparent none repeat 0 0 / auto auto padding-box border-box scroll !important;
16884
- background: initial !important;
16885
- }
16886
16886
  .centerWrapper_2kh5H {
16887
16887
  width: 100%;
16888
16888
  height: 100%;
@@ -16902,9 +16902,6 @@
16902
16902
  height: 100%;
16903
16903
  display: flex;
16904
16904
  }
16905
- .fullscreen_setting_2AQD- .arrow_icon_2R7VN {
16906
- color: #0c1024;
16907
- }
16908
16905
  .setting_panel_onZEz {
16909
16906
  position: absolute;
16910
16907
  bottom: calc(100% + 4px);
@@ -22689,6 +22686,7 @@
22689
22686
  .createContainer_24LUP {
22690
22687
  position: relative;
22691
22688
  height: 100%;
22689
+ overflow: auto;
22692
22690
  }
22693
22691
  .createContainer_24LUP .head_1vkan {
22694
22692
  height: 64px;
@@ -22707,6 +22705,21 @@
22707
22705
  }
22708
22706
  .createContainer_24LUP .body_2o5F4 {
22709
22707
  padding: 12px 24px;
22708
+ display: flex;
22709
+ height: 100%;
22710
+ flex-direction: column;
22711
+ overflow: auto;
22712
+ }
22713
+ .createContainer_24LUP .body_2o5F4::-webkit-scrollbar {
22714
+ width: 4px;
22715
+ }
22716
+ .createContainer_24LUP .body_2o5F4::-webkit-scrollbar-track {
22717
+ border-radius: 5px;
22718
+ background-color: transparent;
22719
+ }
22720
+ .createContainer_24LUP .body_2o5F4::-webkit-scrollbar-thumb {
22721
+ border-radius: 2px;
22722
+ background-color: #c2c3c8;
22710
22723
  }
22711
22724
  .createContainer_24LUP .body_2o5F4 .geshuContainer_2nY_L {
22712
22725
  margin-bottom: 48px;
@@ -22790,6 +22803,9 @@
22790
22803
  -webkit-text-decoration: underline;
22791
22804
  text-decoration: underline;
22792
22805
  }
22806
+ .createContainer_24LUP .body_2o5F4 .memberContainer_2LlbH {
22807
+ margin-bottom: 48px;
22808
+ }
22793
22809
  .createContainer_24LUP .body_2o5F4 .memberContainer_2LlbH > div:first-child {
22794
22810
  font-size: 16px;
22795
22811
  }
@@ -22817,9 +22833,15 @@
22817
22833
  padding-left: 25px;
22818
22834
  word-break: break-word;
22819
22835
  }
22820
- .createContainer_24LUP .body_2o5F4 .createBtn_3_ZU6 {
22821
- position: absolute;
22822
- bottom: 24px;
22836
+ .createContainer_24LUP .body_2o5F4 .createBtnBox_1PMxo {
22837
+ justify-content: flex-end;
22838
+ height: 44px;
22839
+ flex: 1;
22840
+ display: flex;
22841
+ flex-direction: column;
22842
+ }
22843
+ .createContainer_24LUP .body_2o5F4 .createBtnBox_1PMxo .createBtn_3_ZU6 {
22844
+ position: static;
22823
22845
  width: 292px;
22824
22846
  height: 44px;
22825
22847
  border-radius: 4px;
@@ -22829,10 +22851,10 @@
22829
22851
  line-height: 44px;
22830
22852
  cursor: pointer;
22831
22853
  }
22832
- .createContainer_24LUP .body_2o5F4 .createBtn_3_ZU6:hover {
22854
+ .createContainer_24LUP .body_2o5F4 .createBtnBox_1PMxo .createBtn_3_ZU6:hover {
22833
22855
  background-color: #5798f2;
22834
22856
  }
22835
- .createContainer_24LUP .body_2o5F4 .createBtn_3_ZU6.diabled_4MDGe {
22857
+ .createContainer_24LUP .body_2o5F4 .createBtnBox_1PMxo .createBtn_3_ZU6.diabled_4MDGe {
22836
22858
  opacity: 0.5;
22837
22859
  cursor: no-drop;
22838
22860
  background-color: #2e73e5;
@@ -23500,7 +23522,7 @@
23500
23522
  box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.1);
23501
23523
  display: flex;
23502
23524
  align-items: center;
23503
- padding: 4px 12px;
23525
+ padding: 2px 12px;
23504
23526
  pointer-events: auto;
23505
23527
  padding-left: 4px;
23506
23528
  }
@@ -23695,6 +23717,12 @@
23695
23717
  display: flex;
23696
23718
  flex-direction: column;
23697
23719
  }
23720
+ .toolbarBox_30Xq3 .memberCtrlBox_17_gn .subWin_3zjkU .listRoot_2021L .entityRow_16P56 > .infoBox_17i9X .textBlock_1jjeI .nameBox_1cQzn {
23721
+ max-width: 240px;
23722
+ overflow: hidden;
23723
+ text-overflow: ellipsis;
23724
+ white-space: nowrap;
23725
+ }
23698
23726
  .toolbarBox_30Xq3 .memberCtrlBox_17_gn .subWin_3zjkU .listRoot_2021L .entityRow_16P56 > .infoBox_17i9X .textBlock_1jjeI .name_2qTTu {
23699
23727
  font-size: 15px;
23700
23728
  line-height: 22px;
@@ -23773,7 +23801,7 @@
23773
23801
  margin-top: 0;
23774
23802
  }
23775
23803
  .toolbarBox_30Xq3.miniMode_eAHps .leaveBtn_9Y5lk {
23776
- padding: 2px 8px;
23804
+ padding: 0px 8px;
23777
23805
  }
23778
23806
  .rtclistRoot_1hpzf {
23779
23807
  pointer-events: auto;
@@ -428,18 +428,18 @@ interface InfiWebsdkInstanceType {
428
428
  /** 停止当前的强制跟随行为,如果当前并非强制跟随状态,则尝试停止当前的普通跟随行为 */
429
429
  stopCurForceFollowing(): void;
430
430
  /**
431
- * 基于 recordId 获取其他画布内的元素信息、及包围盒大小
432
- * **注: 获取到的信息由于服务端限制,可能没有办法做到实时数据,很可能是几分钟前的画布内容**
433
- * @returns 非法访问情况下,return null
434
- * @returns recordId 不存在情况下,elementsInfo 为空数组
431
+ * 基于 recordId 获取同机构下其他画布内的元素信息,及总体包围盒大小。
432
+ * @returns 如果返回 null,则表示非法访问, 如果 data string 为空字符串,则表示该 recordId 下暂时没有获取到任何数据
435
433
  */
436
- requestElementsInfoByRecordId(recordId: string): Promise<{
437
- approximateSize: {
438
- width: number;
439
- height: number;
440
- };
441
- elementsInfo: any[];
434
+ requestElesDataByRecordId: (recordId: string) => Promise<{
435
+ data: string;
436
+ borderBox: BorderBox;
442
437
  } | null>;
438
+ /**
439
+ * 基于 requestElesDataByRecord 获取到的元素信息及包围盒大小,将元素插入当前画布内的指定位置
440
+ * @returns true 表成功,false 则表示插入失败,失败原因可能是跨机构使用,或者 eleData 为空或者数据遭到了篡改
441
+ */
442
+ useRawElesData(eleData: string, originBox: BorderBox, targetPos: PositionLike): boolean;
443
443
  /** 于指定位置粘贴元素信息, 执行后会自动选中并显示新创建的元素 */
444
444
  useElementsInfo(info: any[], position: PositionLike): Promise<void>;
445
445
  /** 销毁白板 sdk 实例 */
package/dist/esm/index.js CHANGED
@@ -1 +1 @@
1
- export{F as FULL_TOOLBAR_CONFIG,a as GridType,G as GroupTalkPlugin,H as HoverTip,S as Setting,d as SvgIcon,e as SvgManager,I as default,c as getDocumentType,g as getFileType}from"./index-db22391e.js";import"react";import"react-dom";
1
+ export{F as FULL_TOOLBAR_CONFIG,a as GridType,G as GroupTalkPlugin,H as HoverTip,S as Setting,d as SvgIcon,e as SvgManager,I as default,c as getDocumentType,g as getFileType}from"./index-de5b7558.js";import"react";import"react-dom";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaso-infi/whiteboard-sdk",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",