annotorious / annotorious-v1

Project has moved to http://github.com/annotorious/annotorious
https://annotorious.com
MIT License
592 stars 142 forks source link

Unable to define shape styles as per documentation #155

Closed steviemo closed 8 years ago

steviemo commented 8 years ago

Hello,

As per https://groups.google.com/forum/#!msg/annotorious/WqrcF6Y36gA/NiNI_R5Gh0IJ if you want to customize the style you need to define the following properties in annotation.shapes[0].style:

Ce: 2, //outline_width xe: 2, //hi_outline_width Ee: 1, //stroke_width ye: 1 //hi_stroke_width

Do we know how we can rectify this issue - i.e so we can use outline_width etc? This only happens when building annotorious minimised. I don't mind making the change myself - just need a hint as to where I should be looking.

Thanks, Stephen

steviemo commented 8 years ago

Fix is to extend the api.externs.js shapes.style and add the following

/ @type {string} outline width / outline_width: {},

/ @type {string} outline width when highlighted / hi_outline_width: {},

/ @type {string} stroke width / stroke_width : {},

/ @type {string} stroke width when highlighted / hi_stroke_width : {}

steviemo commented 8 years ago

Closing as this has been fixed in TRUNK. I was using 0.6.3