@zhangly1403/dxfviewer 1.2.0 → 1.4.0
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/README.md +4 -2
- package/dist/dxfviewer.es.js +1298 -136
- package/dist/dxfviewer.umd.js +1298 -136
- package/dist/index.d.ts +11 -0
- package/package.json +3 -3
- package/dist/dxfviewer.css +0 -511
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
A high-performance DXF viewer component for React, based on Canvas 2D.
|
|
4
4
|
|
|
5
|
+
**[Live Demo](https://zly258.github.io/dxfviewer/)**
|
|
6
|
+
|
|
5
7
|
## Usage as a Library
|
|
6
8
|
|
|
7
9
|
### Installation
|
|
@@ -17,7 +19,6 @@ yarn add @zhangly1403/dxfviewer
|
|
|
17
19
|
```tsx
|
|
18
20
|
import React from 'react';
|
|
19
21
|
import { DxfViewerMain } from '@zhangly1403/dxfviewer';
|
|
20
|
-
import '@zhangly1403/dxfviewer/style.css';
|
|
21
22
|
|
|
22
23
|
function App() {
|
|
23
24
|
return (
|
|
@@ -51,6 +52,8 @@ function App() {
|
|
|
51
52
|
|
|
52
53
|
一个基于 Canvas 2D 的高性能 React DXF 查看器组件。
|
|
53
54
|
|
|
55
|
+
**[在线预览](https://zly258.github.io/dxfviewer/)**
|
|
56
|
+
|
|
54
57
|
## 作为库使用
|
|
55
58
|
|
|
56
59
|
### 安装
|
|
@@ -66,7 +69,6 @@ yarn add @zhangly1403/dxfviewer
|
|
|
66
69
|
```tsx
|
|
67
70
|
import React, { useState } from 'react';
|
|
68
71
|
import { DxfViewerMain } from '@zhangly1403/dxfviewer';
|
|
69
|
-
import '@zhangly1403/dxfviewer/style.css';
|
|
70
72
|
|
|
71
73
|
function App() {
|
|
72
74
|
const [lang, setLang] = useState('zh');
|