@file-viewer/geometry-engine 2.2.2 → 2.2.4
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/dist/index.d.ts +1 -1
- package/dist/index.js +6 -0
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export type GeometryKernelFormat = 'step' | 'iges' | 'ifc' | '3dm' | 'brep';
|
|
|
2
2
|
export type GeometryKernelFamily = 'cad-brep' | 'bim-ifc' | 'rhino-3dm';
|
|
3
3
|
export type GeometryKernelOutput = 'three-object' | 'mesh' | 'fragments';
|
|
4
4
|
export type GeometryKernelConfidence = 'none' | 'low' | 'medium' | 'high';
|
|
5
|
-
export type GeometryKernelLocale = 'zh-CN' | 'en-US';
|
|
5
|
+
export type GeometryKernelLocale = 'zh-CN' | 'en-US' | 'ja-JP';
|
|
6
6
|
export interface GeometryKernelCapability {
|
|
7
7
|
readonly renderer: string;
|
|
8
8
|
readonly packageName: string;
|
package/dist/index.js
CHANGED
|
@@ -342,10 +342,16 @@ export const formatGeometryKernelNotice = (type, locale = 'zh-CN') => {
|
|
|
342
342
|
if (locale === 'en-US') {
|
|
343
343
|
return `${formatLabel} is previewed locally with the dedicated OCCT Worker/WASM path. The file stays in the browser; configure options.model only when the self-hosted assets use a custom deployment path.`;
|
|
344
344
|
}
|
|
345
|
+
if (locale === 'ja-JP') {
|
|
346
|
+
return `${formatLabel} は専用の OCCT Worker/WASM によりブラウザー内でローカルプレビューされます。ファイルはブラウザー外へ送信されません。自己ホストしたアセットを独自のパスへ配置する場合だけ options.model を設定してください。`;
|
|
347
|
+
}
|
|
345
348
|
return `${formatLabel} 已通过独立 OCCT Worker/WASM 在浏览器本地完成预览,文件无需上传;仅当离线资源部署在自定义目录时,才需要覆盖 options.model 路径。`;
|
|
346
349
|
}
|
|
347
350
|
if (locale === 'en-US') {
|
|
348
351
|
return `${formatLabel} requires a dedicated WebAssembly geometry kernel (${engines}) for full browser preview. Flyfish Viewer keeps these heavy runtimes outside core and the default 3D renderer install path; use the dedicated geometry engine route or convert the model to ${targets} in a private pipeline.`;
|
|
349
352
|
}
|
|
353
|
+
if (locale === 'ja-JP') {
|
|
354
|
+
return `${formatLabel} をブラウザーで完全にプレビューするには、専用の WebAssembly 幾何カーネル(${engines})が必要です。Flyfish Viewer は重量級ランタイムを core と既定の 3D renderer から分離しています。専用の geometry engine 経路を使うか、非公開の変換パイプラインで ${targets} へ変換してください。`;
|
|
355
|
+
}
|
|
350
356
|
return `${formatLabel} 需要独立 WebAssembly 几何内核(${engines})才能完整浏览器预览。Flyfish Viewer 不会把这类重型运行时塞进 core 或默认 3D renderer 安装路径;请通过独立几何内核路线接入,或在私有转换链路输出 ${targets} 后预览。`;
|
|
351
357
|
};
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@file-viewer/geometry-engine",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
|
-
"description": "Framework-neutral geometry kernel boundary package for STEP, IGES, IFC, 3DM, and BREP preview routes in
|
|
6
|
+
"description": "Framework-neutral geometry kernel boundary package for STEP, IGES, IFC, 3DM, and BREP preview routes in File Viewer.",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"file-viewer",
|
|
9
9
|
"geometry",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"registry": "https://registry.npmjs.org/"
|
|
24
24
|
},
|
|
25
25
|
"author": {
|
|
26
|
-
"name": "
|
|
27
|
-
"email": "
|
|
26
|
+
"name": "Yu Wang",
|
|
27
|
+
"email": "admin@flyfish.dev"
|
|
28
28
|
},
|
|
29
29
|
"repository": {
|
|
30
30
|
"type": "git",
|