Skip to content

Commit

Permalink
Adapt annotation example to new version
Browse files Browse the repository at this point in the history
  • Loading branch information
thera2002 committed Nov 16, 2024
1 parent 7954596 commit 56b5d4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 35 deletions.
14 changes: 7 additions & 7 deletions dist/examples/annotation-editor/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@ <h1 class="headline">OpenLIME - Annotation Editor</h1>
// Define annotation parameters
let annotationServer = 'http://localhost:3000/ol';
const classParam = {
'': { style: { stroke: '#000' }, label: '' },
'class1': { style: { stroke: '#770' }, label: 'A' },
'class2': { style: { stroke: '#707' }, label: 'B' },
'class3': { style: { stroke: '#777' }, label: 'C' },
'class4': { style: { stroke: '#070' }, label: 'D' },
'class5': { style: { stroke: '#007' }, label: 'E' },
'class6': { style: { stroke: '#077' }, label: 'F' },
'': { stroke: '#000', label: '' },
'class1': { stroke: '#770', label: 'A' },
'class2': { stroke: '#707', label: 'B' },
'class3': { stroke: '#777', label: 'C' },
'class4': { stroke: '#070', label: 'D' },
'class5': { stroke: '#007', label: 'E' },
'class6': { stroke: '#077', label: 'F' },
};

let aOptions = {
Expand Down
29 changes: 1 addition & 28 deletions dist/examples/express-jsondb/anno.json
Original file line number Diff line number Diff line change
@@ -1,28 +1 @@
[
{
"label": "test-rechanged",
"description": "This is a test, Fabio!",
"svg": "<svg></svg>",
"class": "TEST",
"publish": 1,
"id": "1"
},
{
"id": "2",
"label": "test",
"description": "This is a test!",
"svg": "<svg></svg>",
"class": "TEST",
"publish": 1
},
{
"id": "a007c328-ca8e-4776-b692-298a2ad918aa",
"idx": 3,
"label": "",
"description": "",
"class": "",
"svg": null,
"publish": 1,
"data": {}
}
]
[{"label":"test-rechanged","description":"This is a test, Fabio!","svg":"<svg></svg>","class":"TEST","publish":1,"id":"1"},{"id":"2","label":"test","description":"This is a test!","svg":"<svg></svg>","class":"TEST","publish":1},{"id":"a007c328-ca8e-4776-b692-298a2ad918aa","idx":3,"label":"","description":"","class":"","svg":null,"publish":1,"data":{}},{"id":"a90815a3-aa9f-478c-8d5f-dde7584be133","idx":"4","label":"PROVA","description":"12345","class":"class2","publish":1,"data":{},"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t\t<path xmlns=\"http://www.w3.org/2000/svg\" d=\"M1247.2 2470.0 q-130.3 -449.4 -141.5 -521.0 c-11.2 -71.6 -16.4 -265.8 -12.9 -289.4 c3.6 -23.6 27.4 -84.7 32.2 -90.1 c4.8 -5.4 18.7 -11.2 25.7 -12.9 c7.0 -1.7 107.0 -7.6 141.5 0.0 c34.5 7.6 315.6 138.7 347.3 160.8 c31.7 22.1 94.9 100.7 109.3 109.3 c14.4 8.6 47.6 17.4 64.3 19.3 c16.7 1.9 74.0 2.3 96.5 -6.4 c22.5 -8.8 201.4 -158.9 225.1 -180.1 c23.7 -21.2 68.7 -66.4 90.1 -90.1 c21.3 -23.6 65.5 -75.2 83.6 -102.9 c18.2 -27.7 90.1 -179.0 102.9 -199.4 c12.8 -20.4 41.7 -73.7 57.9 -77.2 c16.2 -3.5 46.4 20.2 57.9 32.2 c11.5 11.9 146.7 266.7 180.1 353.8 c33.4 87.0 87.1 294.9 96.5 360.2 c9.4 65.3 -0.7 211.2 6.4 263.7 c7.1 52.6 43.1 158.1 51.5 205.8 c8.3 47.8 16.9 144.5 19.3 193.0 c2.4 48.4 0.8 271.7 0.0 283.0 c-0.8 11.3 -2.4 34.4 -6.4 45.0 c-4.1 10.6 -17.1 30.8 -25.7 38.6 c-8.6 7.8 -71.1 41.4 -96.5 51.5 c-25.4 10.1 -105.2 33.7 -141.5 38.6 c-36.3 4.9 -364.6 2.4 -385.9 0.0 c-21.3 -2.4 -63.3 -12.4 -83.6 -19.3 c-20.3 -6.9 -132.3 -58.2 -154.4 -70.8 c-22.1 -12.6 -75.9 -48.4 -83.6 -57.9 c-7.7 -9.5 -16.8 -33.0 -19.3 -45.0 c-2.5 -12.0 2.5 -384.7 0.0 -392.4 c-2.5 -7.6 -12.3 -21.8 -19.3 -25.7 c-7.0 -3.9 -52.7 -7.5 -64.3 -6.4 c-11.7 1.0 -34.9 6.9 -45.0 12.9 c-10.1 5.9 -104.4 101.2 -128.6 128.6 c-24.3 27.5 -74.5 101.7 -90.1 115.8 c-15.5 14.1 -50.4 40.0 -70.8 45.0 c-20.4 5.0 -146.4 -6.6 -154.4 -12.9 c-8.0 -6.3 -11.2 -28.6 -12.9 -38.6 c-1.6 -10.0 5.8 -102.7 0.0 -128.6 q-5.8 -26.0 -45.0 -96.5\" class=\"line openlime-annotation\" data-annotation=\"a90815a3-aa9f-478c-8d5f-dde7584be133\" data-class=\"class2\"/> \n\t\t\t\t</svg>"}]

0 comments on commit 56b5d4b

Please sign in to comment.