CSAILVision / CSAILVision/LabelMeAnnotationTool
svg draw using append does not work
- 主要语言
- JavaScript
- 星标
- 1.5k
- 派生
- 443
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hi all,
I also find that the current git version does not work on using svg drawing.
In annotationTools/js/plot.js, there are lots of draw functions, such as DrawPolygon, DrawPolyLines, ... all of these functions use $('#'+element_id).append("xxx");
However, it does not work at my side. By "not work", I mean these functions show no output on my screen. I use console.log to check what was contained in $('#'+element_id), and found that the append does not work.
So, I googled, and find a workaround by adding
var divName = String('#'+element_id+'_div');
if (divName != null) $(divName).html($(divName).html());
these two lines at the end of each these draw function.
It generally works, but I cannot believe this is the right way to go.
My question is that
is there any special setup I should follow?
My environment is macbook pro + safari/chrome, apache 2.4.
yours,
Luming
贡献指南
这个仓库没有索引到贡献指南
调研方向
从 annotationTools/js/plot.js 开始,检查 DrawPolygon、DrawPolyLines 以及调用 append 的其他绘图函数。在 Safari 或 Chrome 中重现缺失的 SVG 输出,然后确定问题是特定于被引用的元素,还是特定于 append 操作。绘图函数能够在不使用报告中的 html workaround 的情况下进行渲染,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- frontend
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100