@file-viewer/renderer-eda 3.2.2 → 3.3.1
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.en.md +2 -0
- package/README.md +16 -14
- package/README.zh-CN.md +46 -0
- package/package.json +6 -5
package/README.en.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @file-viewer/renderer-eda
|
|
2
2
|
|
|
3
|
+
[English](https://github.com/flyfish-dev/file-viewer/blob/main/packages/renderers/eda/README.md) · [简体中文](https://github.com/flyfish-dev/file-viewer/blob/main/packages/renderers/eda/README.zh-CN.md)
|
|
4
|
+
|
|
3
5
|
Standalone EDA renderer package for Flyfish File Viewer. It handles safe structure previews for OLB, DRA, GDSII, and OASIS files without forcing normal document preview installs to carry EDA parsing code.
|
|
4
6
|
|
|
5
7
|
## Usage
|
package/README.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# @file-viewer/renderer-eda
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[English](https://github.com/flyfish-dev/file-viewer/blob/main/packages/renderers/eda/README.md) · [简体中文](https://github.com/flyfish-dev/file-viewer/blob/main/packages/renderers/eda/README.zh-CN.md)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Standalone EDA renderer package for Flyfish File Viewer. It handles safe structure previews for OLB, DRA, GDSII, and OASIS files without forcing normal document preview installs to carry EDA parsing code.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
6
8
|
|
|
7
9
|
```ts
|
|
8
10
|
import FileViewer from '@file-viewer/vue3'
|
|
@@ -14,7 +16,7 @@ const options = {
|
|
|
14
16
|
}
|
|
15
17
|
```
|
|
16
18
|
|
|
17
|
-
|
|
19
|
+
Compose it with other renderers when needed:
|
|
18
20
|
|
|
19
21
|
```ts
|
|
20
22
|
import { edaRenderer } from '@file-viewer/renderer-eda'
|
|
@@ -26,19 +28,19 @@ const options = {
|
|
|
26
28
|
}
|
|
27
29
|
```
|
|
28
30
|
|
|
29
|
-
##
|
|
31
|
+
## Scope
|
|
30
32
|
|
|
31
|
-
- `gds`
|
|
32
|
-
- `oas` / `oasis`
|
|
33
|
-
- `olb` / `dra`
|
|
34
|
-
- GDSII/OASIS
|
|
35
|
-
-
|
|
36
|
-
-
|
|
33
|
+
- `gds` reads standard GDSII records and extracts libraries, structures, boundaries, paths, text, references, and coordinate bounds. Small layouts render as SVG; larger element sets automatically use WebGL typed-array batches from `@file-viewer/eda-layout` and a canvas renderer.
|
|
34
|
+
- `oas` / `oasis` readable text layout fixtures render as SVG; real SEMI binary OASIS files provide safe binary indexing, readable strings, structure candidates, and diagnostics rather than claiming full geometry rendering.
|
|
35
|
+
- `olb` / `dra` use `cfb` to inspect common compound document containers and expose stream trees, entity candidates, properties, strings, and diagnostics.
|
|
36
|
+
- GDSII/OASIS primitives now live in `@file-viewer/eda-layout`; OrCAD/Allegro binary inspection primitives now live in `@file-viewer/eda-orcad`. This package focuses on UI presentation, SVG/WebGL selection, and the File Viewer renderer protocol.
|
|
37
|
+
- After a web-wide ecosystem review, the boundary stays explicit: GDSII has mature record parser / WebGL viewer paths and is suitable for official quick preview today; OASIS text fixtures validate visible UI output, while real SEMI binary OASIS needs a lower-level parser, repetition expansion, and incremental rendering; OLB / DRA belong to the proprietary OrCAD / Allegro ecosystem, where the sustainable public path is C++ WASM or staged TypeScript ports based on OpenOrCadParser / OpenAllegroParser.
|
|
38
|
+
- High-fidelity OrCAD / Allegro / OASIS graphics should evolve as a dedicated WASM or incremental rendering kernel instead of entering core or the default document first-screen path.
|
|
37
39
|
|
|
38
|
-
##
|
|
40
|
+
## Migration Notes
|
|
39
41
|
|
|
40
|
-
`@file-viewer/core`
|
|
42
|
+
`@file-viewer/core` no longer bundles the EDA renderer and no longer installs `cfb` by default. Install this package explicitly, or use `@file-viewer/preset-all`, when you need OLB, DRA, GDSII, or OASIS previews. The low-level `parseEdaFile()` API is exported from this package for business-side structure indexing, diagnostics, or future custom WASM engine integration.
|
|
41
43
|
|
|
42
|
-
##
|
|
44
|
+
## Offline Deployment
|
|
43
45
|
|
|
44
|
-
|
|
46
|
+
The current EDA renderer does not require extra Worker or WASM assets. Larger GDSII layouts use the browser's native WebGL canvas without public CDN dependencies. It only loads `cfb`, `@file-viewer/eda-layout`, `@file-viewer/eda-orcad`, and this UI package when OLB, DRA, GDSII, or OASIS formats are selected.
|
package/README.zh-CN.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# @file-viewer/renderer-eda
|
|
2
|
+
|
|
3
|
+
[English](https://github.com/flyfish-dev/file-viewer/blob/main/packages/renderers/eda/README.md) · [简体中文](https://github.com/flyfish-dev/file-viewer/blob/main/packages/renderers/eda/README.zh-CN.md)
|
|
4
|
+
|
|
5
|
+
Flyfish File Viewer 的独立 EDA renderer 包。它承接 OLB、DRA、GDSII、OASIS 等电子设计与版图文件的安全结构预览,避免普通文档预览场景安装 EDA 解析链路。
|
|
6
|
+
|
|
7
|
+
## 用法
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import FileViewer from '@file-viewer/vue3'
|
|
11
|
+
import { edaRenderer } from '@file-viewer/renderer-eda'
|
|
12
|
+
|
|
13
|
+
const options = {
|
|
14
|
+
rendererMode: 'replace',
|
|
15
|
+
renderers: edaRenderer,
|
|
16
|
+
}
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
也可以和其他 renderer 一起组合:
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
import { edaRenderer } from '@file-viewer/renderer-eda'
|
|
23
|
+
import { cadRenderer } from '@file-viewer/renderer-cad'
|
|
24
|
+
|
|
25
|
+
const options = {
|
|
26
|
+
rendererMode: 'replace',
|
|
27
|
+
renderers: [edaRenderer, cadRenderer],
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## 能力边界
|
|
32
|
+
|
|
33
|
+
- `gds` 读取标准 GDSII record,提取 library、structure、boundary、path、text、sref/aref 和坐标边界;小文件生成 SVG 快速版图预览,元素较多时自动使用 `@file-viewer/eda-layout` 的 WebGL typed-array 批次和 canvas 渲染。
|
|
34
|
+
- `oas` / `oasis` 的可读文本版图夹具会生成 SVG 预览;真实 SEMI 二进制 OASIS 做安全二进制索引、可读字符串、结构候选和诊断,不虚标为完整几何渲染。
|
|
35
|
+
- `olb` / `dra` 使用 `cfb` 读取常见复合文档容器,展示结构树、对象候选、属性、可读字符串和诊断。
|
|
36
|
+
- GDSII/OASIS 底层能力已经下沉到 `@file-viewer/eda-layout`;OrCAD/Allegro 二进制检查能力已经下沉到 `@file-viewer/eda-orcad`。本包只负责 UI 展示、SVG/WebGL 选择和 File Viewer renderer 协议。
|
|
37
|
+
- 全网调研后继续保持边界清晰: GDSII 有成熟 record parser / WebGL viewer 路线,当前可作为正式快速预览;OASIS 文本夹具用于验证 UI 出图,真实 SEMI 二进制 OASIS 是复杂二进制版图格式,完整几何需要低层 parser、重复结构展开和增量渲染;OLB / DRA 属于 OrCAD / Allegro 专有生态,公开可持续路线是参考 OpenOrCadParser / OpenAllegroParser 做 C++ WASM 或逐步 TS 移植。
|
|
38
|
+
- 复杂 OrCAD / Allegro / OASIS 高保真图形能力后续会继续演进为独立 WASM/增量渲染内核,不进入 core 或普通文档首屏链路。
|
|
39
|
+
|
|
40
|
+
## 迁移说明
|
|
41
|
+
|
|
42
|
+
`@file-viewer/core` 已不再内置 EDA renderer,也不再默认安装 `cfb`。需要 OLB / DRA / GDSII / OASIS 预览时,请显式安装本包,或使用 `@file-viewer/preset-all`。底层 `parseEdaFile()` 也从本包导出,适合业务侧做结构索引、诊断和后续自研 WASM 内核对接。
|
|
43
|
+
|
|
44
|
+
## 离线部署
|
|
45
|
+
|
|
46
|
+
当前 EDA renderer 没有额外 Worker/WASM 静态资产。GDSII 大图使用浏览器原生 WebGL canvas,不依赖公共 CDN;命中 OLB、DRA、GDSII 或 OASIS 格式时才加载 `cfb`、`@file-viewer/eda-layout`、`@file-viewer/eda-orcad` 和本包 UI 代码。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@file-viewer/renderer-eda",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Standalone EDA renderer plugin for File Viewer with OLB, DRA, GDSII, and OASIS structure preview.",
|
|
@@ -58,12 +58,13 @@
|
|
|
58
58
|
"dist/index.js",
|
|
59
59
|
"LICENSE",
|
|
60
60
|
"README.en.md",
|
|
61
|
-
"README.md"
|
|
61
|
+
"README.md",
|
|
62
|
+
"README.zh-CN.md"
|
|
62
63
|
],
|
|
63
64
|
"dependencies": {
|
|
64
|
-
"@file-viewer/core": "3.
|
|
65
|
-
"@file-viewer/eda-layout": "3.
|
|
66
|
-
"@file-viewer/eda-orcad": "3.
|
|
65
|
+
"@file-viewer/core": "3.3.1",
|
|
66
|
+
"@file-viewer/eda-layout": "3.3.1",
|
|
67
|
+
"@file-viewer/eda-orcad": "3.3.1",
|
|
67
68
|
"cfb": "^1.2.2"
|
|
68
69
|
},
|
|
69
70
|
"license": "Apache-2.0",
|