1function adobe_anim_init(is_mobile, is_pl, composition_id_string) { 2 let canvas = document.getElementById('canvas_' + (is_mobile ? 'mobile' : 'desktop')); 3 let anim_container = document.getElementById('animation_container_' + (is_mobile ? 'mobile' : 'desktop')); 4 let dom_overlay_container = document.getElementById('dom_overlay_container_' + (is_mobile ? 'mobile' : 'desktop')); 5 let comp = AdobeAn.getComposition(composition_id_string); 6 let lib = comp.getLibrary(); 7 let exportRoot = new lib.infographic_animation(); 8 let stage = new lib.Stage(canvas); 9 //Code to support hidpi screens and responsive scaling. 10 //AdobeAn.makeResponsive(true,'both',true,1,[canvas,anim_container,dom_overlay_container]); 11 AdobeAn.compositionLoaded(lib.properties.id); 12 stage.addChild(exportRoot); 13 createjs.Ticker.framerate = lib.properties.fps; 14 createjs.Ticker.addEventListener("tick", stage); 15 16 // Calculate the frame to start from (30 seconds into the animation) 17 let startFrame = 15 * lib.properties.fps; // 30 seconds * FPS 18 exportRoot.gotoAndPlay(startFrame); 19} 20 21 22function adobe_anim_chart(id) {
23 let canvas = document.getElementById('canvas_chart_' + id); 24 let anim_container = document.getElementById('animation_container_chart_' + id); 25 let dom_overlay_container = document.getElementById('dom_overlay_container_chart_' + id); 26 let composition_id_string = null; 27 28 if (id == 1) { 29 composition_id_string = '1B17E0D176E04DB094FC21F3BB4628E4'; 30 } 31 if (id == 2) { 32 composition_id_string = '512716D0FDFF4304B0211248FE9EFEA4'; 33 } 34 let comp=AdobeAn.getComposition(composition_id_string); 35 36 let lib=comp.getLibrary(); 37 let exportRoot = null; 38 39 if (id == 1) { 40 exportRoot = new lib.Chart_1(); 41 } 42 if (id == 2) { 43 exportRoot = new lib.Chart_2(); 44 } 45 46 let stage = new lib.Stage(canvas); 47 //Code to support hidpi screens and responsive scaling. 48 //AdobeAn.makeResponsive(true,'both',true,1,[canvas,anim_container,dom_overlay_container]); 49 AdobeAn.compositionLoaded(lib.properties.id); 50 stage.addChild(exportRoot); 51 createjs.Ticker.framerate = lib.properties.fps; 52 createjs.Ticker.addEventListener("tick", stage); 53}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.