gemercheung 2 lat temu
rodzic
commit
a7c2df278c

+ 4 - 8
packages/qjkankan-editor/public/static/template/customTooltip.xml

@@ -422,10 +422,12 @@
         trace('edit2::',get(hsp_name));
         txtadd(iconUrl,'',%4);
         txtreplace(iconUrl,'|',',');
+        jsget(timestamp,'Date.now();');
+        set(iconUrl,get(calc(iconUrl +'?'+ timestamp)));
         trace('iconUrl::',iconUrl);
         set(hotspot[get(hsp_name)].height,%8);
         set(hotspot[get(hsp_name)].width,%8);
-        set(hotspot[get(hsp_name)].url,get(iconUrl));
+
         delayedcall(0.1,txtadd(tooltipname, 'tooltip_', get(hsp_name)); set_label_pos(get(tooltipname),get(layer[get(tooltipname)].pos)););
         
         indexoftxt(index, get(iconUrl), 'image_place_holder.png');
@@ -439,8 +441,6 @@
        
        if(get(hsp_type) == 0,
            txtreplace(iconUrl,'.svg','.png');
-           <!-- trace('system::',get(iconUrl));
-           set(hotspot[get(hsp_name)].url,get(iconUrl)); -->
            set(hotspot[get(hsp_name)].animatiedOn,1);
            set(hotspot[get(hsp_name)].framewidth,84);
            set(hotspot[get(hsp_name)].frameRate,calc( 1.0 / 60));
@@ -466,11 +466,7 @@
         
 
           if(!isNaN(frameRate) AND frameRate GT 0,
-          
-            jsget(timestamp,'Date.now();');
-            trace('setframeRate',get(calc(iconUrl +'?'+ timestamp)));
             set(hotspot[get(hsp_name)].frameRate,get(frameRate));
-            set(hotspot[get(hsp_name)].url,get(calc(iconUrl +'?'+ timestamp)));
           );
           if(!isNaN(framewidth) AND framewidth GT 0,set(hotspot[get(hsp_name)].framewidth,get(framewidth)));
           if(!isNaN(frameNumber) AND frameNumber GT 0,
@@ -479,7 +475,7 @@
           );
       );
      
-
+        set(hotspot[get(hsp_name)].url,get(iconUrl));
         set(hotspot[get(hsp_name)].rotate,0);
         set(layer[get(hsLabel)].rotate,0);