Add ImageExport renderer based on running node.js
未關閉
還沒有人認領這個 Issue。
Area: ImageExport
Difficulty: Advanced
FsLab Hackathon 2023
- 主要語言
- F#
- 星號
- 860
- 分支
- 99
- 平均合併
- 22 分鐘
- 30 天內合併 PR
- 1
描述
Description
As plotly.js, the underlying library that Plotly.NET is using needs an environment that can execute javascript to render images programmatically.
https://github.com/tjanczuk/edge seems to be able to run javascript code in node.js from .NET, meaning it should be possible to use plotly.js to render our json objects and save them to a file via node. This would be a big addition, because it would not need a headless browser to achieve this, just a node installation.
Pointers
- here is an answer that shows how to do this with
jsdom: https://stackoverflow.com/a/76070903/5675597 - A reference implementation for this using PuppeteerSharp can be seen here
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先閱讀 src/Plotly.NET.ImageExport/PuppeteerSharpRenderer.fs,並將其渲染流程與連結的 jsdom 方法以及 edge 的 Node.js 執行模型進行比較。定義以 Node.js 為基礎的渲染器整合方式,並驗證 Plotly.NET JSON 物件可以在不使用無頭瀏覽器的情況下進行渲染並儲存為影像。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- fsharp, javascript, node.js
- 領域
- data-visualization
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100