HTML-Dojo
view release on metacpan or search on metacpan
lib/HTML/Dojo/editions.pm view on Meta::CPAN
if(_a45){
this._cache[key]=_a45;
}
}
return _a45;
},allow:function(uri){
return uri;
}};
dojo.provide("dojo.lfx.shadow");
dojo.lfx.shadow=function(node){
this.shadowPng=dojo.uri.moduleUri("dojo.html","images/shadow");
this.shadowThickness=8;
this.shadowOffset=15;
this.init(node);
};
dojo.extend(dojo.lfx.shadow,{init:function(node){
this.node=node;
this.pieces={};
var x1=-1*this.shadowThickness;
var y0=this.shadowOffset;
var y1=this.shadowOffset+this.shadowThickness;
this._makePiece("tl","top",y0,"left",x1);
this._makePiece("l","top",y1,"left",x1,"scale");
this._makePiece("tr","top",y0,"left",0);
this._makePiece("r","top",y1,"left",0,"scale");
this._makePiece("bl","top",0,"left",x1);
this._makePiece("b","top",0,"left",0,"crop");
this._makePiece("br","top",0,"left",0);
},_makePiece:function(name,_a4d,_a4e,_a4f,_a50,_a51){
var img;
var url=this.shadowPng+name.toUpperCase()+".png";
if(dojo.render.html.ie55||dojo.render.html.ie60){
img=dojo.doc().createElement("div");
img.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+url+"'"+(_a51?", sizingMethod='"+_a51+"'":"")+")";
}else{
img=dojo.doc().createElement("img");
img.src=url;
}
img.style.position="absolute";
img.style[_a4d]=_a4e+"px";
img.style[_a4f]=_a50+"px";
lib/HTML/Dojo/src.pm view on Meta::CPAN
ret = p;
}
}
return parseFloat(ret);
}});
dojo.requireIf(dojo.render.svg.capable, "dojo.widget.svg.Chart");
dojo.requireIf(!dojo.render.svg.capable && dojo.render.vml.capable, "dojo.widget.vml.Chart");
}});
__CPAN_FILE__ src/widget/AnimatedPng.js
/*
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.widget.AnimatedPng");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.HtmlWidget");
dojo.widget.defineWidget("dojo.widget.AnimatedPng", dojo.widget.HtmlWidget, {isContainer:false, width:0, height:0, aniSrc:"", interval:100, _blankSrc:dojo.uri.moduleUri("dojo.widget", "templates/images/blank.gif"), templateString:"<img class=\"dojoAn...
this.cellWidth = this.width;
this.cellHeight = this.height;
var img = new Image();
var self = this;
img.onload = function () {
self._initAni(img.width, img.height);
};
img.src = this.aniSrc;
}, _initAni:function (w, h) {
this.domNode.src = this._blankSrc;
lib/HTML/Dojo/src.pm view on Meta::CPAN
}
}, removeNode:function () {
return this.tree.removeNode.apply(this, arguments);
}, doRemoveNode:function () {
return this.tree.doRemoveNode.apply(this, arguments);
}, toString:function () {
return "[" + this.widgetType + " Tree:" + this.tree + " ID:" + this.widgetId + " Title:" + this.title + "]";
}});
__CPAN_FILE__ src/widget/AnimatedPng.xd.js
/*
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.hostenv.packageLoaded({depends:[["provide", "dojo.widget.AnimatedPng"], ["require", "dojo.widget.*"], ["require", "dojo.widget.HtmlWidget"]], definePackage:function (dojo) {
dojo.provide("dojo.widget.AnimatedPng");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.HtmlWidget");
dojo.widget.defineWidget("dojo.widget.AnimatedPng", dojo.widget.HtmlWidget, {isContainer:false, width:0, height:0, aniSrc:"", interval:100, _blankSrc:dojo.uri.moduleUri("dojo.widget", "templates/images/blank.gif"), templateString:"<img class=\"dojoA...
this.cellWidth = this.width;
this.cellHeight = this.height;
var img = new Image();
var self = this;
img.onload = function () {
self._initAni(img.width, img.height);
};
img.src = this.aniSrc;
}, _initAni:function (w, h) {
this.domNode.src = this._blankSrc;
lib/HTML/Dojo/src.pm view on Meta::CPAN
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.lfx.shadow"], ["require", "dojo.lang.common"], ["require", "dojo.uri.Uri"]], definePackage:function (dojo) {
dojo.provide("dojo.lfx.shadow");
dojo.require("dojo.lang.common");
dojo.require("dojo.uri.Uri");
dojo.lfx.shadow = function (node) {
this.shadowPng = dojo.uri.moduleUri("dojo.html", "images/shadow");
this.shadowThickness = 8;
this.shadowOffset = 15;
this.init(node);
};
dojo.extend(dojo.lfx.shadow, {init:function (node) {
this.node = node;
this.pieces = {};
var x1 = -1 * this.shadowThickness;
var y0 = this.shadowOffset;
var y1 = this.shadowOffset + this.shadowThickness;
this._makePiece("tl", "top", y0, "left", x1);
this._makePiece("l", "top", y1, "left", x1, "scale");
this._makePiece("tr", "top", y0, "left", 0);
this._makePiece("r", "top", y1, "left", 0, "scale");
this._makePiece("bl", "top", 0, "left", x1);
this._makePiece("b", "top", 0, "left", 0, "crop");
this._makePiece("br", "top", 0, "left", 0);
}, _makePiece:function (name, vertAttach, vertCoord, horzAttach, horzCoord, sizing) {
var img;
var url = this.shadowPng + name.toUpperCase() + ".png";
if (dojo.render.html.ie55 || dojo.render.html.ie60) {
img = dojo.doc().createElement("div");
img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + url + "'" + (sizing ? ", sizingMethod='" + sizing + "'" : "") + ")";
} else {
img = dojo.doc().createElement("img");
img.src = url;
}
img.style.position = "absolute";
img.style[vertAttach] = vertCoord + "px";
img.style[horzAttach] = horzCoord + "px";
lib/HTML/Dojo/src.pm view on Meta::CPAN
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.lfx.shadow");
dojo.require("dojo.lang.common");
dojo.require("dojo.uri.Uri");
dojo.lfx.shadow = function (node) {
this.shadowPng = dojo.uri.moduleUri("dojo.html", "images/shadow");
this.shadowThickness = 8;
this.shadowOffset = 15;
this.init(node);
};
dojo.extend(dojo.lfx.shadow, {init:function (node) {
this.node = node;
this.pieces = {};
var x1 = -1 * this.shadowThickness;
var y0 = this.shadowOffset;
var y1 = this.shadowOffset + this.shadowThickness;
this._makePiece("tl", "top", y0, "left", x1);
this._makePiece("l", "top", y1, "left", x1, "scale");
this._makePiece("tr", "top", y0, "left", 0);
this._makePiece("r", "top", y1, "left", 0, "scale");
this._makePiece("bl", "top", 0, "left", x1);
this._makePiece("b", "top", 0, "left", 0, "crop");
this._makePiece("br", "top", 0, "left", 0);
}, _makePiece:function (name, vertAttach, vertCoord, horzAttach, horzCoord, sizing) {
var img;
var url = this.shadowPng + name.toUpperCase() + ".png";
if (dojo.render.html.ie55 || dojo.render.html.ie60) {
img = dojo.doc().createElement("div");
img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + url + "'" + (sizing ? ", sizingMethod='" + sizing + "'" : "") + ")";
} else {
img = dojo.doc().createElement("img");
img.src = url;
}
img.style.position = "absolute";
img.style[vertAttach] = vertCoord + "px";
img.style[horzAttach] = horzCoord + "px";
lib/HTML/Dojo/src.pm view on Meta::CPAN
// Mapping of all widget short names to their full package names
// This is used for widget autoloading - no dojo.require() is necessary.
// If you use a widget in markup or create one dynamically, then this
// mapping is used to find and load any dependencies not already loaded.
// You should use your own namespace for any custom widgets.
// For extra widgets you use, dojo.declare() may be used to explicitly load them.
// Experimental and deprecated widgets are not included in this table
var map = {
html: {
"accordioncontainer": "dojo.widget.AccordionContainer",
"animatedpng": "dojo.widget.AnimatedPng",
"button": "dojo.widget.Button",
"chart": "dojo.widget.Chart",
"checkbox": "dojo.widget.Checkbox",
"clock": "dojo.widget.Clock",
"colorpalette": "dojo.widget.ColorPalette",
"combobox": "dojo.widget.ComboBox",
"combobutton": "dojo.widget.Button",
"contentpane": "dojo.widget.ContentPane",
"currencytextbox": "dojo.widget.CurrencyTextbox",
"datepicker": "dojo.widget.DatePicker",
lib/HTML/Dojo/src.pm view on Meta::CPAN
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["provide", "dojo.namespaces.dojo"], ["require", "dojo.ns"], ["require", ]], definePackage:function (dojo) {
dojo.provide("dojo.namespaces.dojo");
dojo.require("dojo.ns");
(function () {
var map = {html:{"accordioncontainer":"dojo.widget.AccordionContainer", "animatedpng":"dojo.widget.AnimatedPng", "button":"dojo.widget.Button", "chart":"dojo.widget.Chart", "checkbox":"dojo.widget.Checkbox", "clock":"dojo.widget.Clock", "colorpalet...
dojo.addDojoNamespaceMapping = function (shortName, packageName) {
map[shortName] = packageName;
};
function dojoNamespaceResolver(name, domain) {
if (!domain) {
domain = "html";
}
if (!map[domain]) {
return null;
}
( run in 0.338 second using v1.01-cache-2.11-cpan-0a6323c29d9 )