experimenting...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-07-28 17:55:09 +03:00
parent 35256b47e7
commit 6f8ef29f2e
2 changed files with 12 additions and 5 deletions

View File

@ -134,18 +134,25 @@ class IGRibbon extends preact.Component {
class IGImage extends preact.Component {
render(props, state){
var data = props.data
var gid = props.gid
return h('div',
{
classList: ['image']
.concat(data.current == props.gid ? ['current'] : [])
.concat(data.current == gid ? ['current'] : [])
.join(' '),
gid: props.gid || '',
gid: gid || '',
style: {
// XXX background-image...
},
// XXX experiemnt...
onClick: function(evt){
data.current = gid
render()
}
}, [
props.gid
gid
])
}
}

View File

@ -25,11 +25,11 @@
"ig-actions": "^3.2.5",
"ig-features": "^3.2.6",
"ig-object": "^1.0.1",
"openseadragon": "^2.1.0",
"openseadragon": "^2.3.0",
"preact": "^8.2.1",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"requirejs": "^2.1.23",
"requirejs": "^2.3.4",
"requirejs-plugins": "^1.0.2",
"sharp": "^0.17.3",
"wildglob": "^0.1.1"