basic buttons now work...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
fbc7af8c05
commit
b4c6dc6107
@ -45,10 +45,11 @@
|
||||
Gallery(dom, urls[, options])
|
||||
```
|
||||
- **Gallery: view crop**
|
||||
- open/change/close
|
||||
- crop stack (a-la ImageGrid.Viewer)
|
||||
- actions:
|
||||
- "from selection"
|
||||
- ~~crop stack (a-la ImageGrid.Viewer)~~
|
||||
- ~~GUI: basic buttons~~
|
||||
- ~~named crop~~
|
||||
- GUI: level indicators (a-la ImageGrid.Viewer)
|
||||
- GUI: named crop list
|
||||
- ~~Gallery: drag-n-drop~~
|
||||
- ~~drop files/images~~
|
||||
- ~~drag to sort~~
|
||||
|
||||
@ -104,8 +104,8 @@ For more info see: <a href="./README.md">README.md</a>
|
||||
<button onclick="gallery.remove('marked')" title="remove marked">select<sec>close</sec></button>
|
||||
</div>
|
||||
<div>
|
||||
<button onclick="gallery" title="crop marked">select<sec>crossword</sec></button>
|
||||
<button onclick="gallery" title="uncrop">select<sec>grid_on</sec></button>
|
||||
<button onclick="gallery.crop('marked')" title="crop marked">select<sec>crossword</sec></button>
|
||||
<button onclick="gallery.uncrop()" title="uncrop">select<sec>grid_on</sec></button>
|
||||
</div>
|
||||
<div>
|
||||
<button onclick="gallery.toggleQueueRemoval()" title="queue removal (del)">delete</button>
|
||||
|
||||
@ -1103,15 +1103,13 @@ var Gallery = {
|
||||
var state = this.json()
|
||||
stack.push(state)
|
||||
if(lst){
|
||||
lst = this.getImages(...lst)
|
||||
// XXX filter state...
|
||||
// XXX
|
||||
}
|
||||
state = this.json(this.getImages(lst)) }
|
||||
this.load(state)
|
||||
return this },
|
||||
uncrop: function(lst){
|
||||
var state = this.__crop_stack?.pop()
|
||||
state.length == 0
|
||||
state
|
||||
&& state.length == 0
|
||||
&& (delete this.__crop_stack)
|
||||
state
|
||||
&& this.load(state)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user