mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
experimenting...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
35256b47e7
commit
6f8ef29f2e
@ -134,18 +134,25 @@ class IGRibbon extends preact.Component {
|
|||||||
class IGImage extends preact.Component {
|
class IGImage extends preact.Component {
|
||||||
render(props, state){
|
render(props, state){
|
||||||
var data = props.data
|
var data = props.data
|
||||||
|
var gid = props.gid
|
||||||
|
|
||||||
return h('div',
|
return h('div',
|
||||||
{
|
{
|
||||||
classList: ['image']
|
classList: ['image']
|
||||||
.concat(data.current == props.gid ? ['current'] : [])
|
.concat(data.current == gid ? ['current'] : [])
|
||||||
.join(' '),
|
.join(' '),
|
||||||
gid: props.gid || '',
|
gid: gid || '',
|
||||||
style: {
|
style: {
|
||||||
// XXX background-image...
|
// XXX background-image...
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// XXX experiemnt...
|
||||||
|
onClick: function(evt){
|
||||||
|
data.current = gid
|
||||||
|
render()
|
||||||
|
}
|
||||||
}, [
|
}, [
|
||||||
props.gid
|
gid
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -25,11 +25,11 @@
|
|||||||
"ig-actions": "^3.2.5",
|
"ig-actions": "^3.2.5",
|
||||||
"ig-features": "^3.2.6",
|
"ig-features": "^3.2.6",
|
||||||
"ig-object": "^1.0.1",
|
"ig-object": "^1.0.1",
|
||||||
"openseadragon": "^2.1.0",
|
"openseadragon": "^2.3.0",
|
||||||
"preact": "^8.2.1",
|
"preact": "^8.2.1",
|
||||||
"react": "^15.6.1",
|
"react": "^15.6.1",
|
||||||
"react-dom": "^15.6.1",
|
"react-dom": "^15.6.1",
|
||||||
"requirejs": "^2.1.23",
|
"requirejs": "^2.3.4",
|
||||||
"requirejs-plugins": "^1.0.2",
|
"requirejs-plugins": "^1.0.2",
|
||||||
"sharp": "^0.17.3",
|
"sharp": "^0.17.3",
|
||||||
"wildglob": "^0.1.1"
|
"wildglob": "^0.1.1"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user