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
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Start in annotationTools/js/plot.js and inspect DrawPolygon, DrawPolyLines, and the other drawing functions that call append. Reproduce the missing SVG output in Safari or Chrome, then determine whether the issue is specific to the referenced element or append operation. Done means the drawing functions render without the reported html workaround.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100