113 return { alpha:1.0, strokeStyle:
"#000", fillStyle:
"#ccc", lineWidth:1.0, lineJoin:
kCGLineJoinMiter, lineCap:
kCGLineCapButt, miterLimit:10.0, globalAlpha:1.0,
125 return { alpha:aGState.alpha, strokeStyle:aGState.strokeStyle, fillStyle:aGState.fillStyle, lineWidth:aGState.lineWidth,
126 lineJoin:aGState.lineJoin, lineCap:aGState.lineCap, miterLimit:aGState.miterLimit, globalAlpha:aGState.globalAlpha,
127 blendMode:aGState.blendMode,
128 shadowOffset:CGSizeMakeCopy(aGState.shadowOffset), shadowBlur:aGState.shadowBlur, shadowColor:aGState.shadowColor, CTM:
CGAffineTransformMakeCopy(aGState.CTM) };
137 return { DOMElement:document.createElement(
"div"), path:NULL, gState:
CGGStateCreate(), gStateStack:[] };
157 aContext.gState = aContext.gStateStack.pop();
162 aContext.gState.lineCap = aLineCap;
167 aContext.gState.lineDashes = someDashes;
168 aContext.gState.lineDashesPhase = aPhase;
173 aContext.gState.lineJoin = aLineJoin;
178 aContext.gState.lineWidth = aLineWidth;
183 aContext.gState.miterLimit = aMiterLimit;
188 aContext.gState.blendMode = aBlendMode;
193 CGPathAddArc(aContext.path, aContext.gState.CTM, x, y, radius, startAngle, endAngle, clockwise);
236 CGPathAddLines(aContext.path, aContext.gState.CTM, points, count);
371 if (arguments[2] === undefined)
372 var count = rects.length;
421 var CTM = aContext.gState.CTM;
433 return aContext.gState.CTM;
445 var gState = aContext.gState;
459 var gState = aContext.gState;
473 var gState = aContext.gState;
488 var gState = aContext.gState;
490 gState.shadowOffset = CGSizeMakeCopy(aSize);
491 gState.shadowBlur = aBlur;
492 gState.shadowColor = [
CPColor shadowColor];
505 var gState = aContext.gState;
507 gState.shadowOffset = CGSizeMakeCopy(aSize);
508 gState.shadowBlur = aBlur;
509 gState.shadowColor = aColor;
520 aContext.gState.alpha = MAX(MIN(anAlpha, 1.0), 0.0);
570 var
KAPPA = 4.0 * ((SQRT2 - 1.0) / 3.0);
639 var count = points.length;
643 for (; i < count; i += 2)
665 aContext.gState.fillStyle = [aColor cssString];
677 aContext.gState.strokeStyle = [aColor cssString];