@xtctwins/tctwins-dxf-next-viewer 0.0.8 → 1.0.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 +28 -27
- package/dist/tctwins-dxf-next-viewer.css +1 -1
- package/dist/tctwins-dxf-next-viewer.css.gz +0 -0
- package/dist/tctwins-dxf-next-viewer.d.ts +170 -0
- package/dist/tctwins-dxf-next-viewer.es.js +6028 -5950
- package/dist/tctwins-dxf-next-viewer.es.js.gz +0 -0
- package/dist/tctwins-dxf-next-viewer.umd.js +276 -276
- package/dist/tctwins-dxf-next-viewer.umd.js.gz +0 -0
- package/dist/tctwins-dxf-viewer/action-bar/fullscreen-active.svg +8 -7
- package/dist/tctwins-dxf-viewer/action-bar/fullscreen.svg +9 -8
- package/dist/tctwins-dxf-viewer/utils/upload.svg +35 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -120,33 +120,34 @@ const eventHandle = (event) => {
|
|
|
120
120
|
|
|
121
121
|
### Attributes
|
|
122
122
|
|
|
123
|
-
| 参数
|
|
124
|
-
|
|
|
125
|
-
| isPc
|
|
126
|
-
| fonts
|
|
127
|
-
| dxfFileUrl
|
|
128
|
-
| dxfBuffer
|
|
129
|
-
| reset
|
|
130
|
-
| measure
|
|
131
|
-
| comment
|
|
132
|
-
| anno
|
|
133
|
-
| layer
|
|
134
|
-
| hidden
|
|
135
|
-
| screenshot
|
|
136
|
-
| fullscreen
|
|
137
|
-
| close
|
|
138
|
-
| leftExtraTools
|
|
139
|
-
| rightExtraTools
|
|
140
|
-
| bottomExtraTools
|
|
141
|
-
| panelLeftWidth
|
|
142
|
-
| panelRightWidth
|
|
143
|
-
| toolTopHeight
|
|
144
|
-
| toolLeftWidth
|
|
145
|
-
| toolRightWidth
|
|
146
|
-
| toolBottomHeight
|
|
147
|
-
| panelLeftKeys
|
|
148
|
-
| panelRightKeys
|
|
149
|
-
| panelExtraKeys
|
|
123
|
+
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|
|
124
|
+
| ------------------ | -------------------------------- | --------------------------------------------------------------------- | ------ | ------------------------------------------------------------------------- |
|
|
125
|
+
| isPc | 是否为 PC 端, 移动端传 false | boolean | - | true |
|
|
126
|
+
| fonts | 字体链接列表 | string[] | - | - |
|
|
127
|
+
| dxfFileUrl | xtd 文件 url | string | - | - |
|
|
128
|
+
| dxfBuffer | xtd 文件 buffer | ArrayBuffer | - | - |
|
|
129
|
+
| reset | 开启重置功能 | boolean | - | false |
|
|
130
|
+
| measure | 开启测量功能 | boolean | - | false |
|
|
131
|
+
| comment | 开启批注功能 | boolean | - | false |
|
|
132
|
+
| anno | 开启标注功能 | boolean | - | false |
|
|
133
|
+
| layer | 开启图层功能 | boolean | - | false |
|
|
134
|
+
| hidden | 隐藏批注、测量、标注等信息 | boolean | - | false |
|
|
135
|
+
| screenshot | 开启截图功能 | boolean | - | false |
|
|
136
|
+
| fullscreen | 是否全屏 | boolean | - | false |
|
|
137
|
+
| close | 是否开启关闭功能 | boolean | - | false |
|
|
138
|
+
| leftExtraTools | 左侧额外工具栏 | IToolbar[] | - | [] |
|
|
139
|
+
| rightExtraTools | 右侧额外工具栏 | IToolbar[] | - | [] |
|
|
140
|
+
| bottomExtraTools | 底部额外工具栏 | IToolbar[] | - | [] |
|
|
141
|
+
| panelLeftWidth | 右侧面板宽度 | number | - | 240 |
|
|
142
|
+
| panelRightWidth | 右侧面板宽度 | number | - | 240 |
|
|
143
|
+
| toolTopHeight | 工具栏顶部距离 | number | - | 0 |
|
|
144
|
+
| toolLeftWidth | 工具栏左侧距离 | number | - | 0 |
|
|
145
|
+
| toolRightWidth | 工具栏右侧距离 | number | - | 0 |
|
|
146
|
+
| toolBottomHeight | 工具栏底部距离 | number | - | 0 |
|
|
147
|
+
| panelLeftKeys | 左侧面板显示内容 | string[] | - | [] |
|
|
148
|
+
| panelRightKeys | 右侧面板显示内容 | string[] | - | [] |
|
|
149
|
+
| panelExtraKeys | 操作其他功能时,不需要关闭的面板 | number | - | [] |
|
|
150
|
+
| annoFileAcceptType | 标注允许上传文件类型 | `{ image?: string; record?: string; video?: string; file?: string; }` | - | ` { image: 'image/*', record: 'audio/*', video: 'video/*', file: '*/*' }` |
|
|
150
151
|
|
|
151
152
|
### Events
|
|
152
153
|
|