Lines Matching refs:params

142     setFillAndStroke = function (o, params) {  argument
149params.x != a.x || params.y != a.y || params.width != a.width || params.height != a.height || para…
150 …= ovalTypes[o.type] && (a.cx != params.cx || a.cy != params.cy || a.r != params.r || a.rx != param…
154 for (var par in params) if (params[has](par)) {
155 a[par] = params[par];
161 params.href && (node.href = params.href);
162 params.title && (node.title = params.title);
163 params.target && (node.target = params.target);
164 params.cursor && (s.cursor = params.cursor);
165 "blur" in params && o.blur(params.blur);
166 if (params.path && o.type == "path" || newpath) {
175 "transform" in params && o.transform(params.transform);
184 if ("clip-rect" in params) {
185 var rect = Str(params["clip-rect"]).split(separator);
203 if (!params["clip-rect"]) {
209 params.font && (textpathStyle.font = params.font);
210params["font-family"] && (textpathStyle.fontFamily = '"' + params["font-family"].split(",")[0].rep…
211 params["font-size"] && (textpathStyle.fontSize = params["font-size"]);
212 params["font-weight"] && (textpathStyle.fontWeight = params["font-weight"]);
213 params["font-style"] && (textpathStyle.fontStyle = params["font-style"]);
215 if ("arrow-start" in params) {
216 addArrow(res, params["arrow-start"]);
218 if ("arrow-end" in params) {
219 addArrow(res, params["arrow-end"], 1);
221 if (params.opacity != null ||
222 params.fill != null ||
223 params.src != null ||
224 params.stroke != null ||
225 params["stroke-width"] != null ||
226 params["stroke-opacity"] != null ||
227 params["fill-opacity"] != null ||
228 params["stroke-dasharray"] != null ||
229 params["stroke-miterlimit"] != null ||
230 params["stroke-linejoin"] != null ||
231 params["stroke-linecap"] != null) {
236 if (o.type == "image" && params.src) {
237 fill.src = params.src;
239 params.fill && (fill.on = true);
240 if (fill.on == null || params.fill == "none" || params.fill === null) {
243 if (fill.on && params.fill) {
244 var isURL = Str(params.fill).match(R._ISURL);
258 fill.color = R.getRGB(params.fill).hex;
261 …if (R.getRGB(params.fill).error && (res.type in {circle: 1, ellipse: 1} || Str(params.fill).charAt…
263 a.gradient = params.fill;
268 if ("fill-opacity" in params || "opacity" in params) {
269 …ill-opacity"] + 1 || 2) - 1) * ((+a.opacity + 1 || 2) - 1) * ((+R.getRGB(params.fill).o + 1 || 2) …
280 if ((params.stroke && params.stroke != "none") ||
281 params["stroke-width"] ||
282 params["stroke-opacity"] != null ||
283 params["stroke-dasharray"] ||
284 params["stroke-miterlimit"] ||
285 params["stroke-linejoin"] ||
286 params["stroke-linecap"]) {
289 …(params.stroke == "none" || params.stroke === null || stroke.on == null || params.stroke == 0 || p…
290 var strokeColor = R.getRGB(params.stroke);
291 stroke.on && params.stroke && (stroke.color = strokeColor.hex);
293 var width = (toFloat(params["stroke-width"]) || 1) * .75;
295 params["stroke-width"] == null && (width = a["stroke-width"]);
296 params["stroke-width"] && (stroke.weight = width);
300 params["stroke-linejoin"] && (stroke.joinstyle = params["stroke-linejoin"] || "miter");
301 stroke.miterlimit = params["stroke-miterlimit"] || 8;
302params["stroke-linecap"] && (stroke.endcap = params["stroke-linecap"] == "butt" ? "flat" : params[…
303 if ("stroke-dasharray" in params) {
316 …stroke.dashstyle = dasharray[has](params["stroke-dasharray"]) ? dasharray[params["stroke-dasharray…
340 …("x" in params || "y" in params) && (res.path.v = R.format("m{0},{1}l{2},{1}", round(a.x * zoom), …
342 for (var d = 0, dd = dirtyattrs.length; d < dd; d++) if (dirtyattrs[d] in params) {
655 var params;
657 params = {};
658 params[name] = value;
660 value == null && R.is(name, "object") && (params = name);
661 for (var key in params) {
662 eve("raphael.attr." + key + "." + this.id, this, params[key]);
664 if (params) {
665 …his.paper.customAttributes) if (this.paper.customAttributes[has](key) && params[has](key) && R.is(…
666 var par = this.paper.customAttributes[key].apply(this, [].concat(params[key]));
667 this.attrs[key] = params[key];
669 params[subkey] = par[subkey];
673 if (params.text && this.type == "text") {
674 this.textpath.string = params.text;
676 setFillAndStroke(this, params);