<?xml version='1.0' encoding='UTF-8'?><uidget><metadata><name>Illustration</name><api_version>1.0</api_version><size height='138' width='184' /><blog en='1197' /></metadata><view><content>&lt;div class=&quot;uidraw_content&quot;&gt;&lt;/div&gt;
</content><properties><illustration_selector default='{id:1, type:&apos;illustration&apos;, name: &apos;Design data&apos;, service: &apos;undraw&apos;, width: 1089, height: 822}' default_action='true' icon='folder' name='illustration' value='Choisir une illustration' /></properties><design_properties><bloc><colors colspan='1' default='&apos;theme_color&apos;' display='' elts='1' name='color' options='[{hide_alpha: true}]' title='Couleur' /></bloc></design_properties></view><script>UI_Draw={cache:{},get:function(t){
if(this.cache[t])return this.cache[t]
;this.cache[t]=$.get(&quot;/json/illustration/&quot;+t,{},$.noop,&quot;json&quot;)
;return this.cache[t]}};UI_List.UI_Draw={initialize:function(t){
this.cpt=t;t.setOptions([&quot;locked&quot;,&quot;fixed&quot;,&quot;footer&quot;,&quot;sticky&quot;])},
onDisplay:function(t){var e=this;this.node=t;this.n={
content:this.node.find(&quot;.uidraw_content&quot;)}
;if(0==this.node.find(&quot;.uidraw_content&quot;).children().length){
this.update_illustration().then(function(){
e.refreshAspectRatio()})
;&quot;editor&quot;==v.mode&amp;&amp;is_colored()&amp;&amp;sigCtl.connect(&quot;Theme.changed&quot;,function(){
e.update_illustration()})}},onPropertyChanged:function(t){
if(t.include(&quot;illustration&quot;)||t.include(&quot;color&quot;)){
this.update_illustration();this.refreshAspectRatio()}},
onResizeStop:function(){this.refreshAspectRatio()},
onMoved:function(){this.refreshAspectRatio()},
refreshAspectRatio:function(){
var t=this.cpt.data.illustration.width,e=this.cpt.data.illustration.height
;this.aspectRatio_v=e/t
;this.cpt.setAspectRatio(this.aspectRatio_v)
;&quot;editor&quot;==v.mode&amp;&amp;blockSelector.selected_cpts.include(this.cpt)&amp;&amp;blockSelector.drawSelector()
},get_content:function(){
return UI_Draw.get(this.cpt.getData(&quot;illustration&quot;).id)},
update_illustration:function(){var t=this
;return this.get_content().then(function(e){
t.n.content.empty().append(e.content.replace(/theme_color/gi,t.cpt.getData(&quot;color&quot;)))
})}};</script></uidget>