Icon being plotted using this node export server is not expected one
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- javascript
调研方向
首先,使用提供的环境变量和回调,在 7f5d512fe565632d2da32afbdc38662d7bf8fdef 的 node-export-server checkout 上复现 POST 请求。检查 lib/server.js 以及变更后的 socket-close 处理附近的 export path,然后将生成的图标与预期图像进行比较;当 duotone Font Awesome 图标能够正确渲染且不改变请求的 chart input 时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
I setup this node export server on our server. We followed the below steps while setting the server
Setup Steps
- git clone https://github.com/highcharts/node-export-server.git
- git checkout 7f5d512fe565632d2da32afbdc38662d7bf8fdef (for version 2.1.0)
- edited lib/server.js
from
req.on("close", function () {
connectionAborted = true;
});
to
req.socket.on("close", function () {
connectionAborted = true;
});
as the connection was getting closed.
4. used node version 20.4.0 and provided env variables as:
export HIGHCHARTS_USE_MAPS=YES
export HIGHCHARTS_USE_GANTT=YES
export HIGHCHARTS_VERSION=8.0.0
export ACCEPT_HIGHCHARTS_LICENSE=YES
export HIGHCHARTS_USE_STYLED=YES
export OPENSSL_CONF=/etc/ssl
Also, we tried using 9.2.2 version of highcharts.
5. npm install
6. npm link
7. highcharts-export-server --enableServer 1 --logLevel 4 --allowCodeExecution 1
Actual behaviour
When using POST with input
{
"type": "image/png",
"scale": 2,
"globalOptions": "{colors: [\"rgba(39,26,136,0.7)\",\"rgba(241,203,93,0.7)\",\"rgba(234,70,62,0.7)\",\"rgba(114,189,85,0.7)\",\"rgba(77,147,23,0.7)\",\"rgba(163,151,243,0.7)\"],lang: {thousandsSep: ','}}",
"infile": "{chart: {renderTo: 'test me',height: 400,width: 600},exporting: { sourceWidth:950,sourceHeight:300,enabled:false,allowHTML: true,sourceWidth: 400,sourceHeight: 400,scale: 1},credits: {enabled: true},title: {text: ''}}",
"callback": "function (chart) {chart.renderer.rect(0, 0,400,400, 8).attr({stroke: '#ccc',fill: '#fcfcfc',zIndex: 3,class:'dataSearchWidget'}).add();if (true == true) {chart.renderer.text('<span><span style=\"float: left;opacity: 1.0;class:fad fa-heart;\">'+String.fromCodePoint(parseInt('f004', 16))+'</span><span style=\"float: left;left: 0;position: absolute;opacity: 0.4;\">'+String.fromCodePoint(parseInt('10f004', 16))+'</span></span>', 40, 260,true).css({fontSize: '175px',color: '#4d545c'}).attr({zIndex: 4}).add(); }};(function(stringFromCharCode){var fromCodePoint=function(_){var codeUnits=[],codeLen=0,result=\"\";for(var index=0,len=arguments.length;index!==len;++index){var codePoint=+arguments[index];if(codePoint<=0xFFFF){codeLen=codeUnits.push(codePoint);}else{codePoint-=0x10000;codeLen=codeUnits.push((codePoint>>10)+0xD800,(codePoint%0x400)+0xDC00);}}return result+stringFromCharCode.apply(null,codeUnits);};try{Object.defineProperty(String,\"fromCodePoint\",{\"value\":fromCodePoint,\"configurable\":true,\"writable\":true});}catch(e){String.fromCodePoint=fromCodePoint;}}(String.fromCharCode));"
}
i was expected below image
but got
I am using paid version of font awesome of version 5.15.1. And duotone fonts are available in it. I am using thie very fonts and able to plot the expected icon when using specific class, but getting error using this server.
Question
Can you please help here in this problem and provide suggestion. Also, updating highcharts version from this 2.1.0 requires major change in input chartscript so that is also not the viable idea here.
- 主要语言
- JavaScript
- 星标
- 368
- 派生
- 265
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
highcharts/node-export-server 的其他 Issue
-
Update Puppeteer to version 25.11.0+ to allow ARM64 linux images to run node-export-server可能已有人在做 @daniatic 于 4 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
highcharts/node-export-server#686 ·
-
难度 3/5 1-2 天 新手友好度 35/100
highcharts/node-export-server#680 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
highcharts/node-export-server#679 ·
-
难度 3/5 1-2 天 新手友好度 45/100
highcharts/node-export-server#678 ·
-
难度 4/5 3-5 天 新手友好度 30/100
highcharts/node-export-server#676 ·
查看 highcharts/node-export-server 的全部 Issue
相似的 Issue
-
check:passed feeds:remove
难度 1/5 1 小时以内 新手友好度 65/100
iptv-org/database#37176 · 1 条评论 · 1 个 reaction ·
维护者通常 9 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
hawk-digital-environments/HAWKI#443 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
feedback simulation workshop
难度 2/5 1-3 小时 新手友好度 66/100
githubnext/gh-aw-workshop#4370 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
AltimateAI/vscode-dbt-power-user#2089 ·