x-star-editor 0.6.4 → 0.6.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x-star-editor",
3
- "version": "0.6.4",
3
+ "version": "0.6.6",
4
4
  "description": "An editor developed by turingstar",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",
@@ -45,11 +45,9 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@babel/runtime": "^7.24.1",
48
- "ahooks": "^3.7.10",
49
48
  "classnames": "^2.3.2",
50
49
  "hast-util-to-jsx-runtime": "^1.2.0",
51
50
  "hast-util-to-text": "^3.1.2",
52
- "html2canvas": "^1.4.1",
53
51
  "mdast-util-to-string": "^3.2.0",
54
52
  "rehype-katex": "^6.0.3",
55
53
  "rehype-mermaidjs": "^1.0.1",
File without changes
@@ -1,32 +0,0 @@
1
- // import _ from 'lodash';
2
- // import { CanvasData } from '../../x-star-slide-viewer';
3
-
4
- // /**
5
- // *
6
- // * @param scaleString
7
- // * @returns 'scale(3)' -> 3
8
- // */
9
- // export const getScaleNumber = (scaleString: string) =>
10
- // Number(scaleString.replace('scale(', '').replace(')', ''));
11
-
12
- // /**
13
- // *
14
- // * @param pointData
15
- // * @param beforeScale
16
- // * @param parentWidth
17
- // */
18
- // export const computeScaledPoint = (
19
- // // 计算点scale后的坐标值
20
- // pointData: CanvasData,
21
- // parentWidth: number,
22
- // ) => {
23
- // const beforeScale = pointData.scale;
24
- // const newData = _.cloneDeep(pointData.points);
25
- // newData.forEach(({ points }) =>
26
- // points.forEach((point) => {
27
- // point.x = (point.x / beforeScale) * (parentWidth / 960);
28
- // point.y = (point.y / beforeScale) * (parentWidth / 960);
29
- // }),
30
- // );
31
- // return newData;
32
- // };