You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constw3cAnno1={id: Date.now(),// Unique ID for the first annotationtype: "Annotation",target: {selector: {conformsTo: "http://www.w3.org/TR/media-frags/",type: "SvgSelector",value: `<svg><polygon points='100,360 423,360 432,932 100,932 100,360'></polygon></svg>`,},},};
here, I can save only one polygon on osd if i use addAnnotation , what if I want to save two distinct separate polygons on osd at once?
I tried defining w3cAnno2 like:
constw3cAnno2={id: Date.now(),// Unique ID for the second annotationtype: "Annotation",target: {selector: {conformsTo: "http://www.w3.org/TR/media-frags/",type: "SvgSelector",value: `<svg><polygon points='500,360 923,360 932,932 500,932 500,360'></polygon></svg>`,// Example points for the second polygon},},};
but this doesnt work.... anyone have possible solution?
The text was updated successfully, but these errors were encountered:
abhinav2712
changed the title
In svgSelector type of w3cAnno, can we add two separate distinct polygons on OSD?
Adding two separate distinct svg Annotations
Apr 10, 2024
Lets say I hace defined one w3cAnno1 like this:
here, I can save only one polygon on osd if i use
addAnnotation
, what if I want to save two distinct separate polygons on osd at once?I tried defining
w3cAnno2
like:then tried to save both of them:
but this doesnt work.... anyone have possible solution?
The text was updated successfully, but these errors were encountered: