Skip to content

Commit

Permalink
read implies from addon definition
Browse files Browse the repository at this point in the history
  • Loading branch information
farin committed Jan 31, 2022
1 parent 5355242 commit c3841ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/plugins/tiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,11 @@ class Tiles extends EventsBase {
const title = el.querySelector('title').textContent || name
const tileSets = Array.from(el.querySelectorAll('ref[tile-set]')).map(ref => ref.getAttribute('tile-set'))
const enforces = Array.from(el.querySelectorAll('enforces[element]')).map(ref => ref.getAttribute('element'))
const implies = Array.from(el.querySelectorAll('implies[element]')).map(ref => ref.getAttribute('element'))

const svgIcon = el.querySelector('icon svg')

const exp = new Expansion(name, title, { enforces }, [new Release(name, tileSets)])
const exp = new Expansion(name, title, { enforces, implies }, [new Release(name, tileSets)])
if (svgIcon) {
this.symbols.push(`<symbol id="expansion-${name}" viewBox="${svgIcon.getAttribute('viewBox')}">${svgIcon.innerHTML}</symbol>`)
exp.svgIcon = true
Expand Down

0 comments on commit c3841ec

Please sign in to comment.