You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
556 B
16 lines
556 B
function filterSVGImage( contentFilename ){
|
|
let file = filesWithMetadata[contentFilename]
|
|
if (!file) return
|
|
|
|
let contentType = file.contentType
|
|
|
|
if ( contentType.includes("image") && contentFilename.endsWith(".svg")) {
|
|
console.log('it is an SVG image', contentFilename)
|
|
// could also try to parse the SVG itself, for now delegated potentially via event
|
|
AFRAME.scenes[0].emit('svgloaded', contentFilename)
|
|
|
|
}
|
|
applyNextFilter( contentFilename )
|
|
}
|
|
|
|
sequentialFilters.push( filterSVGImage )
|
|
|