CharisKomos (Talk | contribs) |
CharisKomos (Talk | contribs) |
||
Line 46: | Line 46: | ||
var rightElements = [ | var rightElements = [ | ||
{ | { | ||
− | 'id' : 'constantine_mirna_xA0_Image' | + | 'id' : 'constantine_mirna_xA0_Image', |
+ | 'translate' : 'matrix(0.48, 0, 0, 0.48, 877, 11.04)' | ||
}, | }, | ||
{ | { | ||
− | 'id' : 'komos_mirna_xA0_Image' | + | 'id' : 'komos_mirna_xA0_Image', |
+ | 'translate' : 'matrix(0.48, 0, 0, 0.48, 877, 72.96)' | ||
}, | }, | ||
{ | { | ||
− | 'id' : 'agg_mirna_xA0_Image' | + | 'id' : 'agg_mirna_xA0_Image', |
+ | 'translate' : 'matrix(0.48, 0, 0, 0.48, 877, 137.7598)' | ||
}, | }, | ||
{ | { | ||
− | 'id' : 'nafsika_mirna_xA0_Image' | + | 'id' : 'nafsika_mirna_xA0_Image', |
+ | 'translate' : 'matrix(0.48, 0, 0, 0.48, 877, 198.7197)' | ||
}, | }, | ||
{ | { | ||
− | 'id' : 'kst_mirna_xA0_Image' | + | 'id' : 'kst_mirna_xA0_Image', |
+ | 'translate' : 'matrix(0.48, 0, 0, 0.48, 877, 263.04)' | ||
+ | }, | ||
+ | { | ||
+ | 'id' : 'thanasis_mirna_xA0_Image', | ||
+ | 'translate' : 'matrix(0.48, 0, 0, 0.48, 877, 323.5195)' | ||
} | } | ||
]; | ]; | ||
Line 71: | Line 80: | ||
console.log('index: ' + index); | console.log('index: ' + index); | ||
svgDoc.getElementById(item.id).setAttribute('transform', item.translate); | svgDoc.getElementById(item.id).setAttribute('transform', item.translate); | ||
− | }) | + | }); |
+ | |||
+ | rightElements.forEach(function(item, index, array){ | ||
+ | console.log('item: ' + item.id); | ||
+ | console.log('index: ' + index); | ||
+ | svgDoc.getElementById(item.id).setAttribute('transform', item.translate); | ||
+ | }); | ||
+ | |||
+ | |||
}, false); | }, false); | ||
Revision as of 13:35, 21 October 2017