@yilianjituan/yilian_dgerm 0.0.1-alpha.33 → 0.0.1-alpha.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.
@@ -13,7 +13,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
13
  * @Author: chengjiang
14
14
  * @Date: 2024-11-05 09:35:37
15
15
  * @Last Modified by: chengjiang
16
- * @Last Modified time: 2024-11-15 10:05:09
16
+ * @Last Modified time: 2024-11-15 11:40:29
17
17
  */
18
18
  import "./index.scss";
19
19
  import { Button, ColorPicker, Image, message, Modal, Radio, Switch } from 'antd';
@@ -274,6 +274,13 @@ var Index = function Index(props) {
274
274
  } else {
275
275
  fontSize = fontSize * (num || numValue);
276
276
  }
277
+ if (direction === 3 || direction === 1) {
278
+ setModalHeight(imgWidth + 50);
279
+ setModalWidth(imgHeight + 50);
280
+ } else {
281
+ setModalHeight(imgHeight + 50);
282
+ setModalWidth(imgWidth + 50);
283
+ }
277
284
  for (i = 0; i < numBoxes; i++) {
278
285
  box = document.createElement('div');
279
286
  box.className = 'box';
@@ -285,13 +292,6 @@ var Index = function Index(props) {
285
292
  if (direction === 3) {
286
293
  left = left + (imgHeight - imgWidth);
287
294
  }
288
- if (direction === 3 || direction === 1) {
289
- setModalHeight(imgWidth + 50);
290
- setModalWidth(imgHeight + 100);
291
- } else {
292
- setModalHeight(imgHeight + 50);
293
- setModalWidth(imgWidth + 100);
294
- }
295
295
 
296
296
  // 将样式设置为静态值
297
297
  staticStyles = {
@@ -313,15 +313,12 @@ var Index = function Index(props) {
313
313
  Object.assign(div.style, divStyle);
314
314
  div.innerText = texts[i].words || '';
315
315
  box.appendChild(div);
316
-
317
- // box.innerText = texts[i].words || '';
318
-
319
316
  fragment.appendChild(box);
320
- setOcrImg(src);
321
317
  }
322
- _context3.next = 26;
318
+ setOcrImg(src);
319
+ _context3.next = 28;
323
320
  return ocrTextBox.appendChild(fragment);
324
- case 26:
321
+ case 28:
325
322
  case "end":
326
323
  return _context3.stop();
327
324
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yilianjituan/yilian_dgerm",
3
- "version": "0.0.1-alpha.33",
3
+ "version": "0.0.1-alpha.35",
4
4
  "description": "A react library developed with dumi",
5
5
  "keywords": [
6
6
  "React",
@@ -58,19 +58,18 @@
58
58
  "dependencies": {
59
59
  "@ant-design/icons": "^5.5.1",
60
60
  "@hanyk/rc-viewer": "^0.0.3",
61
+ "ahooks": "^3.7.2",
61
62
  "antd": "^5.18.0",
62
63
  "axios": "^1.7.7",
63
64
  "copy-to-clipboard": "^3.3.3",
64
65
  "dayjs": "^1.11.11",
65
66
  "echarts": "^5.0.0",
67
+ "heic2any": "^0.0.4",
66
68
  "jsdom": "20.0.0",
67
69
  "lodash": "^4.17.20",
68
70
  "qs": "^6.9.7",
69
71
  "react": ">=16.9.0",
70
- "react-dom": ">=16.9.0",
71
- "ahooks": "^3.7.2",
72
- "heic2any": "^0.0.4"
73
-
72
+ "react-dom": ">=16.9.0"
74
73
  },
75
74
  "devDependencies": {
76
75
  "@commitlint/cli": "^17.1.2",