CSAILVision / CSAILVision/LabelMeAnnotationTool

svg draw using append does not work

Đang mở
#20 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
1.5k
Fork
443
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu trong annotationTools/js/plot.js và kiểm tra DrawPolygon, DrawPolyLines cùng các hàm vẽ khác gọi append. Tái hiện đầu ra SVG bị thiếu trong Safari hoặc Chrome, sau đó xác định liệu vấn đề chỉ xảy ra với phần tử được tham chiếu hay với thao tác append. Hoàn tất khi các hàm vẽ hiển thị mà không cần workaround html đã được báo cáo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
javascript
Lĩnh vực
frontend
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.