Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions content/guides/sheets/features/core/formula.ja-JP.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import FormulaList from '@/components/formula-list'

数式は Univer が提供する中核能力の一つで、セル内で数式を用いて値を計算できます。サポートされる関数は Excel と互換であり、数学・論理・テキスト・日付関数など多岐にわたります。

ブック内の数式が多い場合、数式計算がメインスレッドを占有してページの応答性が低下することがあります。ページのレンダリングや操作への影響を抑えるため、数式計算は Worker プロセスで実行することをおすすめします。設定方法については [Web Workers](/guides/sheets/features/core/worker) を参照してください。

## 設定

以下は数式関連プラグインの設定項目へのリンクです:
Expand Down
2 changes: 2 additions & 0 deletions content/guides/sheets/features/core/formula.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import FormulaList from '@/components/formula-list'

Formulas are one of the core capabilities provided by Univer, allowing you to use formulas in cells to calculate values. The functions supported by formulas are consistent with Excel, including mathematical, logical, text, date functions, and more.

If a workbook contains a large number of formulas, formula calculation may occupy the main thread and make the page less responsive. We recommend running formula calculation in a Worker process to reduce its impact on rendering and user interaction. For configuration details, see [Web Workers](/guides/sheets/features/core/worker).

## Configuration

Following are the links to the configuration items related to the formula plugin:
Expand Down
2 changes: 2 additions & 0 deletions content/guides/sheets/features/core/formula.zh-CN.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import FormulaList from '@/components/formula-list'

公式是 Univer 提供的核心能力之一,它可以让你在单元格中使用公式来计算数值,公式支持的函数和 Excel 一致,包括数学、逻辑、文本、日期等等。

如果工作簿中的公式数量较多,公式计算可能占用主线程并导致页面卡顿。建议将公式计算放到 Worker 进程中执行,以降低对页面渲染和交互的影响。具体配置方式请参考 [Web Workers](/guides/sheets/features/core/worker) 章节。

## 配置

以下是公式插件相关配置项的链接:
Expand Down
2 changes: 2 additions & 0 deletions content/guides/sheets/features/core/formula.zh-TW.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import FormulaList from '@/components/formula-list'

公式是 Univer 提供的核心能力之一,它可以讓你在儲存格中使用公式來計算數值,公式支援的函數和 Excel 一致,包括數學、邏輯、文字、日期等等。

如果工作簿中的公式數量較多,公式計算可能占用主執行緒並導致頁面卡頓。建議將公式計算放到 Worker 進程中執行,以降低對頁面渲染和互動的影響。具體配置方式請參考 [Web Workers](/guides/sheets/features/core/worker) 章節。

## 配置

以下是公式外掛相關配置項的連結:
Expand Down
8 changes: 8 additions & 0 deletions content/guides/sheets/features/core/worker.ja-JP.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ title: Web Workers

以下の例では、Univer における Worker(Web Worker)機能の基本的な利用方法を示します。

Sheets では、Worker は数式計算などの計算負荷が高い処理を担うためによく使用されます。数式計算を Worker プロセスで実行することで、メインスレッドの負荷を抑え、ブック内の数式が多い場合でもページのレンダリングや操作への影響を軽減できます。

## プリセットモード

`UniverSheetsCorePreset` の設定における `workerURL` オプションを指定することで、Worker の URL を設定し、Worker モードを有効化できます。
Expand Down Expand Up @@ -135,3 +137,9 @@ createUniver({
],
})
```

プリセットモードのその他の例は、[dream-num/univer-presets examples](https://github.com/dream-num/univer-presets/tree/dev/examples/src) を参照してください。これらの例では、異なる preset の組み合わせにおける Worker 設定方法を確認でき、preset を使って Univer を統合する際の参考になります。

## Plugin インストールモード

preset を使用せず、必要な `@univerjs/*` プラグインを手動でインストールして登録する場合は、メインプロセスと Worker プロセスの両方に対応するプラグインを登録し、数式計算に関するプラグインが Worker 側にも登録されていることを確認してください。Plugin インストールモードの完全な例は [dream-num/univer examples](https://github.com/dream-num/univer/tree/dev/examples/src) を参照してください。
8 changes: 8 additions & 0 deletions content/guides/sheets/features/core/worker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ title: Web Workers

The following examples demonstrate the basic usage of Worker in Univer.

In Sheets, Workers are commonly used for compute-intensive tasks such as formula calculation. Running formula calculation in a Worker process can reduce pressure on the main thread and keep page rendering and interactions responsive when a workbook contains many formulas.

## Preset Mode

`workerURL` option in `UniverSheetsCorePreset` configuration allows you to specify the URL of the Worker and enable Worker mode.
Expand Down Expand Up @@ -135,3 +137,9 @@ createUniver({
],
})
```

For more Preset Mode examples, see [dream-num/univer-presets examples](https://github.com/dream-num/univer-presets/tree/dev/examples/src). These examples show Worker configuration with different preset combinations and are useful references when integrating Univer through presets.

## Plugin Mode

If you do not use presets and instead install and register `@univerjs/*` plugins manually, register the corresponding plugins in both the main process and the Worker process, and make sure the formula calculation plugins are registered on the Worker side. For complete Plugin Mode examples, see [dream-num/univer examples](https://github.com/dream-num/univer/tree/dev/examples/src).
8 changes: 8 additions & 0 deletions content/guides/sheets/features/core/worker.zh-CN.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ title: Web Workers

以下示例展示了 Univer 中使用 Worker 的基本用法。

在 Sheets 中,Worker 常用于承载公式计算等计算密集型任务。将公式计算放到 Worker 进程中执行,可以减少主线程压力,避免工作簿公式较多时影响页面渲染和交互。

## 预设模式

`UniverSheetsCorePreset` 配置参数中的 `workerURL` 选项可以指定 Worker 的 URL 地址并启用 Worker 模式。
Expand Down Expand Up @@ -135,3 +137,9 @@ createUniver({
],
})
```

更多预设模式示例可以参考 [dream-num/univer-presets examples](https://github.com/dream-num/univer-presets/tree/dev/examples/src)。这些示例展示了不同 preset 组合下的 Worker 配置方式,适合作为基于预设集成 Univer 时的参考。

## Plugin 安装模式

如果你没有使用 preset,而是按需安装并手动注册 `@univerjs/*` 插件,则需要在主进程和 Worker 进程中分别注册对应插件,并确保公式计算相关插件在 Worker 侧完成注册。Plugin 安装模式的完整示例可以参考 [dream-num/univer examples](https://github.com/dream-num/univer/tree/dev/examples/src)。
8 changes: 8 additions & 0 deletions content/guides/sheets/features/core/worker.zh-TW.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ title: Web Workers

以下示例展示了 Univer 中使用 Worker 的基本用法。

在 Sheets 中,Worker 常用於承載公式計算等計算密集型任務。將公式計算放到 Worker 進程中執行,可以減少主執行緒壓力,避免工作簿公式較多時影響頁面渲染和互動。

## 預設模式

`UniverSheetsCorePreset` 配置參數中的 `workerURL` 選項可以指定 Worker 的 URL 地址並啟用 Worker 模式。
Expand Down Expand Up @@ -135,3 +137,9 @@ createUniver({
],
})
```

更多預設模式示例可以參考 [dream-num/univer-presets examples](https://github.com/dream-num/univer-presets/tree/dev/examples/src)。這些示例展示了不同 preset 組合下的 Worker 配置方式,適合作為基於預設集成 Univer 時的參考。

## Plugin 安裝模式

如果你沒有使用 preset,而是按需安裝並手動註冊 `@univerjs/*` 外掛,則需要在主進程和 Worker 進程中分別註冊對應外掛,並確保公式計算相關外掛在 Worker 側完成註冊。Plugin 安裝模式的完整示例可以參考 [dream-num/univer examples](https://github.com/dream-num/univer/tree/dev/examples/src)。
4 changes: 2 additions & 2 deletions examples/univer-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"@angular/compiler": "^21.2.12",
"@angular/core": "^21.2.12",
"@angular/platform-browser": "^21.2.12",
"@univerjs/preset-sheets-core": "^0.22.1",
"@univerjs/presets": "^0.22.1",
"@univerjs/preset-sheets-core": "^0.23.0",
"@univerjs/presets": "^0.23.0",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"zone.js": "^0.16.2"
Expand Down
4 changes: 2 additions & 2 deletions examples/univer-astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"astro": "astro"
},
"dependencies": {
"@univerjs/preset-sheets-core": "^0.22.1",
"@univerjs/presets": "^0.22.1",
"@univerjs/preset-sheets-core": "^0.23.0",
"@univerjs/presets": "^0.23.0",
"astro": "^6.3.1"
}
}
4 changes: 2 additions & 2 deletions examples/univer-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"start": "next start"
},
"dependencies": {
"@univerjs/preset-sheets-core": "^0.22.1",
"@univerjs/presets": "^0.22.1",
"@univerjs/preset-sheets-core": "^0.23.0",
"@univerjs/presets": "^0.23.0",
"next": "16.1.4",
"react": "19.2.6",
"react-dom": "19.2.6"
Expand Down
4 changes: 2 additions & 2 deletions examples/univer-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"preview": "vite preview"
},
"dependencies": {
"@univerjs/preset-sheets-core": "^0.22.1",
"@univerjs/presets": "^0.22.1",
"@univerjs/preset-sheets-core": "^0.23.0",
"@univerjs/presets": "^0.23.0",
"react": "^19.2.6",
"react-dom": "^19.2.6"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/univer-vue2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"build": "vue-cli-service build"
},
"dependencies": {
"@univerjs/preset-sheets-core": "^0.22.1",
"@univerjs/presets": "^0.22.1",
"@univerjs/preset-sheets-core": "^0.23.0",
"@univerjs/presets": "^0.23.0",
"core-js": "^3.49.0",
"vue": "2.7.16"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/univer-vue3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"preview": "vite preview"
},
"dependencies": {
"@univerjs/preset-sheets-core": "^0.22.1",
"@univerjs/presets": "^0.22.1",
"@univerjs/preset-sheets-core": "^0.23.0",
"@univerjs/presets": "^0.23.0",
"vue": "^3.5.34"
},
"devDependencies": {
Expand Down
130 changes: 65 additions & 65 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "univer-documentation",
"version": "0.22.1",
"version": "0.23.0",
"private": true,
"packageManager": "pnpm@10.33.2",
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
Expand Down Expand Up @@ -33,71 +33,71 @@
"@radix-ui/react-switch": "^1.2.6",
"@radix-ui/react-tabs": "^1.1.13",
"@radix-ui/react-tooltip": "^1.2.8",
"@univerjs-pro/collaboration-client": "^0.22.1",
"@univerjs-pro/collaboration-client-ui": "^0.22.1",
"@univerjs-pro/engine-shape": "^0.22.1",
"@univerjs-pro/exchange-client": "^0.22.1",
"@univerjs-pro/sheets-chart": "^0.22.1",
"@univerjs-pro/sheets-chart-ui": "^0.22.1",
"@univerjs-pro/sheets-exchange-client": "^0.22.1",
"@univerjs-pro/sheets-pivot": "^0.22.1",
"@univerjs-pro/sheets-pivot-ui": "^0.22.1",
"@univerjs-pro/sheets-print": "^0.22.1",
"@univerjs-pro/sheets-shape": "^0.22.1",
"@univerjs-pro/sheets-shape-ui": "^0.22.1",
"@univerjs-pro/sheets-sparkline": "^0.22.1",
"@univerjs-pro/sheets-sparkline-ui": "^0.22.1",
"@univerjs/core": "^0.22.1",
"@univerjs/design": "^0.22.1",
"@univerjs/docs": "^0.22.1",
"@univerjs/docs-ui": "^0.22.1",
"@univerjs/drawing": "^0.22.1",
"@univerjs/engine-formula": "^0.22.1",
"@univerjs/engine-render": "^0.22.1",
"@univerjs/find-replace": "^0.22.1",
"@univerjs-pro/collaboration-client": "^0.23.0",
"@univerjs-pro/collaboration-client-ui": "^0.23.0",
"@univerjs-pro/engine-shape": "^0.23.0",
"@univerjs-pro/exchange-client": "^0.23.0",
"@univerjs-pro/sheets-chart": "^0.23.0",
"@univerjs-pro/sheets-chart-ui": "^0.23.0",
"@univerjs-pro/sheets-exchange-client": "^0.23.0",
"@univerjs-pro/sheets-pivot": "^0.23.0",
"@univerjs-pro/sheets-pivot-ui": "^0.23.0",
"@univerjs-pro/sheets-print": "^0.23.0",
"@univerjs-pro/sheets-shape": "^0.23.0",
"@univerjs-pro/sheets-shape-ui": "^0.23.0",
"@univerjs-pro/sheets-sparkline": "^0.23.0",
"@univerjs-pro/sheets-sparkline-ui": "^0.23.0",
"@univerjs/core": "^0.23.0",
"@univerjs/design": "^0.23.0",
"@univerjs/docs": "^0.23.0",
"@univerjs/docs-ui": "^0.23.0",
"@univerjs/drawing": "^0.23.0",
"@univerjs/engine-formula": "^0.23.0",
"@univerjs/engine-render": "^0.23.0",
"@univerjs/find-replace": "^0.23.0",
"@univerjs/icons": "^1.2.0",
"@univerjs/preset-docs-advanced": "^0.22.1",
"@univerjs/preset-docs-core": "^0.22.1",
"@univerjs/preset-sheets-advanced": "^0.22.1",
"@univerjs/preset-sheets-conditional-formatting": "^0.22.1",
"@univerjs/preset-sheets-core": "^0.22.1",
"@univerjs/preset-sheets-data-validation": "^0.22.1",
"@univerjs/preset-sheets-drawing": "^0.22.1",
"@univerjs/preset-sheets-filter": "^0.22.1",
"@univerjs/preset-sheets-find-replace": "^0.22.1",
"@univerjs/preset-sheets-hyper-link": "^0.22.1",
"@univerjs/preset-sheets-node-core": "^0.22.1",
"@univerjs/preset-sheets-note": "^0.22.1",
"@univerjs/preset-sheets-sort": "^0.22.1",
"@univerjs/preset-sheets-thread-comment": "^0.22.1",
"@univerjs/presets": "^0.22.1",
"@univerjs/sheets": "^0.22.1",
"@univerjs/sheets-conditional-formatting-ui": "^0.22.1",
"@univerjs/sheets-crosshair-highlight": "^0.22.1",
"@univerjs/sheets-data-validation": "^0.22.1",
"@univerjs/sheets-data-validation-ui": "^0.22.1",
"@univerjs/sheets-filter-ui": "^0.22.1",
"@univerjs/sheets-find-replace": "^0.22.1",
"@univerjs/sheets-formula": "^0.22.1",
"@univerjs/sheets-formula-ui": "^0.22.1",
"@univerjs/sheets-hyper-link": "^0.22.1",
"@univerjs/sheets-hyper-link-ui": "^0.22.1",
"@univerjs/sheets-note-ui": "^0.22.1",
"@univerjs/sheets-numfmt": "^0.22.1",
"@univerjs/sheets-numfmt-ui": "^0.22.1",
"@univerjs/sheets-sort": "^0.22.1",
"@univerjs/sheets-sort-ui": "^0.22.1",
"@univerjs/sheets-table": "^0.22.1",
"@univerjs/sheets-table-ui": "^0.22.1",
"@univerjs/sheets-thread-comment-ui": "^0.22.1",
"@univerjs/sheets-ui": "^0.22.1",
"@univerjs/sheets-zen-editor": "^0.22.1",
"@univerjs/slides": "^0.22.1",
"@univerjs/slides-ui": "^0.22.1",
"@univerjs/themes": "^0.22.1",
"@univerjs/thread-comment-ui": "^0.22.1",
"@univerjs/ui": "^0.22.1",
"@univerjs/watermark": "^0.22.1",
"@univerjs/preset-docs-advanced": "^0.23.0",
"@univerjs/preset-docs-core": "^0.23.0",
"@univerjs/preset-sheets-advanced": "^0.23.0",
"@univerjs/preset-sheets-conditional-formatting": "^0.23.0",
"@univerjs/preset-sheets-core": "^0.23.0",
"@univerjs/preset-sheets-data-validation": "^0.23.0",
"@univerjs/preset-sheets-drawing": "^0.23.0",
"@univerjs/preset-sheets-filter": "^0.23.0",
"@univerjs/preset-sheets-find-replace": "^0.23.0",
"@univerjs/preset-sheets-hyper-link": "^0.23.0",
"@univerjs/preset-sheets-node-core": "^0.23.0",
"@univerjs/preset-sheets-note": "^0.23.0",
"@univerjs/preset-sheets-sort": "^0.23.0",
"@univerjs/preset-sheets-thread-comment": "^0.23.0",
"@univerjs/presets": "^0.23.0",
"@univerjs/sheets": "^0.23.0",
"@univerjs/sheets-conditional-formatting-ui": "^0.23.0",
"@univerjs/sheets-crosshair-highlight": "^0.23.0",
"@univerjs/sheets-data-validation": "^0.23.0",
"@univerjs/sheets-data-validation-ui": "^0.23.0",
"@univerjs/sheets-filter-ui": "^0.23.0",
"@univerjs/sheets-find-replace": "^0.23.0",
"@univerjs/sheets-formula": "^0.23.0",
"@univerjs/sheets-formula-ui": "^0.23.0",
"@univerjs/sheets-hyper-link": "^0.23.0",
"@univerjs/sheets-hyper-link-ui": "^0.23.0",
"@univerjs/sheets-note-ui": "^0.23.0",
"@univerjs/sheets-numfmt": "^0.23.0",
"@univerjs/sheets-numfmt-ui": "^0.23.0",
"@univerjs/sheets-sort": "^0.23.0",
"@univerjs/sheets-sort-ui": "^0.23.0",
"@univerjs/sheets-table": "^0.23.0",
"@univerjs/sheets-table-ui": "^0.23.0",
"@univerjs/sheets-thread-comment-ui": "^0.23.0",
"@univerjs/sheets-ui": "^0.23.0",
"@univerjs/sheets-zen-editor": "^0.23.0",
"@univerjs/slides": "^0.23.0",
"@univerjs/slides-ui": "^0.23.0",
"@univerjs/themes": "^0.23.0",
"@univerjs/thread-comment-ui": "^0.23.0",
"@univerjs/ui": "^0.23.0",
"@univerjs/watermark": "^0.23.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"color": "^5.0.3",
Expand Down
Loading
Loading