114 return { alpha:1.0, strokeStyle:
"#000", fillStyle:
"#ccc", lineWidth:1.0, lineJoin:
kCGLineJoinMiter, lineCap:
kCGLineCapButt, miterLimit:10.0, globalAlpha:1.0,
126 return { alpha:aGState.alpha, strokeStyle:aGState.strokeStyle, fillStyle:aGState.fillStyle, lineWidth:aGState.lineWidth,
127 lineJoin:aGState.lineJoin, lineCap:aGState.lineCap, miterLimit:aGState.miterLimit, globalAlpha:aGState.globalAlpha,
128 blendMode:aGState.blendMode,
129 shadowOffset:CGSizeMakeCopy(aGState.shadowOffset), shadowBlur:aGState.shadowBlur, shadowColor:aGState.shadowColor, CTM:
CGAffineTransformMakeCopy(aGState.CTM) };
138 return { DOMElement:document.createElement(
"div"), path:NULL, gState:
CGGStateCreate(), gStateStack:[] };
158 aContext.gState = aContext.gStateStack.pop();
163 aContext.gState.lineCap = aLineCap;
168 aContext.gState.lineDashes = someDashes;
169 aContext.gState.lineDashesPhase = aPhase;
174 aContext.gState.lineJoin = aLineJoin;
179 aContext.gState.lineWidth = aLineWidth;
184 aContext.gState.miterLimit = aMiterLimit;
189 aContext.gState.blendMode = aBlendMode;
194 CGPathAddArc(aContext.path, aContext.gState.CTM, x, y, radius, startAngle, endAngle, clockwise);
237 CGPathAddLines(aContext.path, aContext.gState.CTM, points, count);
372 if (arguments[2] === undefined)
373 var count = rects.length;
422 var CTM = aContext.gState.CTM;
434 return aContext.gState.CTM;
446 var gState = aContext.gState;
460 var gState = aContext.gState;
474 var gState = aContext.gState;
489 var gState = aContext.gState;
491 gState.shadowOffset = CGSizeMakeCopy(aSize);
492 gState.shadowBlur = aBlur;
493 gState.shadowColor = [
CPColor shadowColor];
506 var gState = aContext.gState;
508 gState.shadowOffset = CGSizeMakeCopy(aSize);
509 gState.shadowBlur = aBlur;
510 gState.shadowColor = aColor;
521 aContext.gState.alpha = MAX(MIN(anAlpha, 1.0), 0.0);
571 var
KAPPA = 4.0 * ((SQRT2 - 1.0) / 3.0);
640 var count = points.length;
644 for (; i < count; i += 2)
666 aContext.gState.fillStyle = [aColor cssString];
678 aContext.gState.strokeStyle = [aColor cssString];