mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-30 19:00:09 +00:00
cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
3321eccb87
commit
1fdcef47cb
@ -16,13 +16,10 @@ if(typeof(process) != 'undefined'){
|
|||||||
var exiftool = requirejs('exiftool')
|
var exiftool = requirejs('exiftool')
|
||||||
|
|
||||||
// XXX EXPERIMENTAL: graph...
|
// XXX EXPERIMENTAL: graph...
|
||||||
// XXX move this to ./components/
|
|
||||||
try {
|
|
||||||
// do this only if browser is loaded...
|
// do this only if browser is loaded...
|
||||||
var graph = window != null ?
|
var graph = window != null ?
|
||||||
requirejs('lib/components/ig-image-graph')
|
requirejs('lib/components/ig-image-graph')
|
||||||
: null
|
: null
|
||||||
} catch(e){}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -557,20 +557,6 @@ window.customElements.define('ig-image-graph', igImageGraph)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------
|
|
||||||
// helper...
|
|
||||||
|
|
||||||
var makeImageGraph =
|
|
||||||
module.makeImageGraph =
|
|
||||||
function(img, options){
|
|
||||||
var g = document.createElement('ig-image-graph')
|
|
||||||
Object.assign(g,
|
|
||||||
options || {})
|
|
||||||
g.src = img
|
|
||||||
return g }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
* vim:set ts=4 sw=4 : */ return module })
|
* vim:set ts=4 sw=4 : */ return module })
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user