flymis/WebRoot/dojojs/src/svg.js
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.svg");
dojo.require("dojo.lang.common");
dojo.require("dojo.dom");
dojo.mixin(dojo.svg, dojo.dom);
dojo.svg.graphics=dojo.svg.g=new function(/* DOMDocument */ d){
// summary
// Singleton to encapsulate SVG rendering functions.
this.suspend=function(){
// summary
// Suspend the rendering engine
try { d.documentElement.suspendRedraw(0); } catch(e){ }
};
this.resume=function(){
// summary
// Resume the rendering engine
try { d.documentElement.unsuspendRedraw(0); } catch(e){ }
};
this.force=function(){
// summary
// Force the render engine to redraw
try { d.documentElement.forceRedraw(); } catch(e){ }
};
}(document);
dojo.svg.animations=dojo.svg.anim=new function(/* DOMDocument */ d){
// summary
// Singleton to encapsulate SVG animation functionality.
this.arePaused=function(){
// summary
// check to see if all animations are paused
try {
return d.documentElement.animationsPaused(); // bool
} catch(e){
return false; // bool
}
} ;
this.pause=function(){
// summary
// pause all animations
try { d.documentElement.pauseAnimations(); } catch(e){ }
};
this.resume=function(){
// summary
// resume all animations
try { d.documentElement.unpauseAnimations(); } catch(e){ }
};
}(document);
后面还有 260 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。