• Home
  • Raw
  • Download

Lines Matching refs:CanvasKit

3   this._paint = new CanvasKit.Paint();
7 this._paint.setStrokeCap(CanvasKit.StrokeCap.Butt);
8 this._paint.setStrokeJoin(CanvasKit.StrokeJoin.Miter);
11 this._font = new CanvasKit.Font(null, 10);
14 this._strokeStyle = CanvasKit.BLACK;
15 this._fillStyle = CanvasKit.BLACK;
17 this._shadowColor = CanvasKit.TRANSPARENT;
25 this._globalCompositeOperation = CanvasKit.BlendMode.SrcOver;
30 this._currentPath = new CanvasKit.Path();
31 this._currentTransform = CanvasKit.Matrix.identity();
131 case CanvasKit.BlendMode.SrcOver:
133 case CanvasKit.BlendMode.DstOver:
135 case CanvasKit.BlendMode.Src:
137 case CanvasKit.BlendMode.Dst:
139 case CanvasKit.BlendMode.Clear:
141 case CanvasKit.BlendMode.SrcIn:
143 case CanvasKit.BlendMode.DstIn:
145 case CanvasKit.BlendMode.SrcOut:
147 case CanvasKit.BlendMode.DstOut:
149 case CanvasKit.BlendMode.SrcATop:
151 case CanvasKit.BlendMode.DstATop:
153 case CanvasKit.BlendMode.Xor:
155 case CanvasKit.BlendMode.Plus:
158 case CanvasKit.BlendMode.Multiply:
160 case CanvasKit.BlendMode.Screen:
162 case CanvasKit.BlendMode.Overlay:
164 case CanvasKit.BlendMode.Darken:
166 case CanvasKit.BlendMode.Lighten:
168 case CanvasKit.BlendMode.ColorDodge:
170 case CanvasKit.BlendMode.ColorBurn:
172 case CanvasKit.BlendMode.HardLight:
174 case CanvasKit.BlendMode.SoftLight:
176 case CanvasKit.BlendMode.Difference:
178 case CanvasKit.BlendMode.Exclusion:
180 case CanvasKit.BlendMode.Hue:
182 case CanvasKit.BlendMode.Saturation:
184 case CanvasKit.BlendMode.Color:
186 case CanvasKit.BlendMode.Luminosity:
194 this._globalCompositeOperation = CanvasKit.BlendMode.SrcOver;
197 this._globalCompositeOperation = CanvasKit.BlendMode.DstOver;
200 this._globalCompositeOperation = CanvasKit.BlendMode.Src;
203 this._globalCompositeOperation = CanvasKit.BlendMode.Dst;
206 this._globalCompositeOperation = CanvasKit.BlendMode.Clear;
209 this._globalCompositeOperation = CanvasKit.BlendMode.SrcIn;
212 this._globalCompositeOperation = CanvasKit.BlendMode.DstIn;
215 this._globalCompositeOperation = CanvasKit.BlendMode.SrcOut;
218 this._globalCompositeOperation = CanvasKit.BlendMode.DstOut;
221 this._globalCompositeOperation = CanvasKit.BlendMode.SrcATop;
224 this._globalCompositeOperation = CanvasKit.BlendMode.DstATop;
227 this._globalCompositeOperation = CanvasKit.BlendMode.Xor;
230 this._globalCompositeOperation = CanvasKit.BlendMode.Plus;
233 this._globalCompositeOperation = CanvasKit.BlendMode.Plus;
240 this._globalCompositeOperation = CanvasKit.BlendMode.Multiply;
243 this._globalCompositeOperation = CanvasKit.BlendMode.Screen;
246 this._globalCompositeOperation = CanvasKit.BlendMode.Overlay;
249 this._globalCompositeOperation = CanvasKit.BlendMode.Darken;
252 this._globalCompositeOperation = CanvasKit.BlendMode.Lighten;
255 this._globalCompositeOperation = CanvasKit.BlendMode.ColorDodge;
258 this._globalCompositeOperation = CanvasKit.BlendMode.ColorBurn;
261 this._globalCompositeOperation = CanvasKit.BlendMode.HardLight;
264 this._globalCompositeOperation = CanvasKit.BlendMode.SoftLight;
267 this._globalCompositeOperation = CanvasKit.BlendMode.Difference;
270 this._globalCompositeOperation = CanvasKit.BlendMode.Exclusion;
273 this._globalCompositeOperation = CanvasKit.BlendMode.Hue;
276 this._globalCompositeOperation = CanvasKit.BlendMode.Saturation;
279 this._globalCompositeOperation = CanvasKit.BlendMode.Color;
282 this._globalCompositeOperation = CanvasKit.BlendMode.Luminosity;
315 case CanvasKit.StrokeCap.Butt:
317 case CanvasKit.StrokeCap.Round:
319 case CanvasKit.StrokeCap.Square:
326 this._paint.setStrokeCap(CanvasKit.StrokeCap.Butt);
329 this._paint.setStrokeCap(CanvasKit.StrokeCap.Round);
332 this._paint.setStrokeCap(CanvasKit.StrokeCap.Square);
355 case CanvasKit.StrokeJoin.Miter:
357 case CanvasKit.StrokeJoin.Round:
359 case CanvasKit.StrokeJoin.Bevel:
366 this._paint.setStrokeJoin(CanvasKit.StrokeJoin.Miter);
369 this._paint.setStrokeJoin(CanvasKit.StrokeJoin.Round);
372 this._paint.setStrokeJoin(CanvasKit.StrokeJoin.Bevel);
484 this._currentPath = new CanvasKit.Path();
492 this._paint.setStyle(CanvasKit.PaintStyle.Fill);
493 this._paint.setBlendMode(CanvasKit.BlendMode.Clear);
494 this._canvas.drawRect(CanvasKit.XYWHRect(x, y, width, height), this._paint);
512 clip.setFillType(CanvasKit.FillType.EvenOdd);
514 clip.setFillType(CanvasKit.FillType.Winding);
516 this._canvas.clipPath(clip, CanvasKit.ClipOp.Intersect, true);
577 var destRect = CanvasKit.XYWHRect(arguments[1], arguments[2],
579 var srcRect = CanvasKit.XYWHRect(0, 0, img.width(), img.height());
581 var destRect = CanvasKit.XYWHRect(arguments[5], arguments[6],
583 var srcRect = CanvasKit.XYWHRect(arguments[1], arguments[2],
604 paint.setStyle(CanvasKit.PaintStyle.Fill);
606 var alphaColor = CanvasKit.multiplyByAlpha(this._fillStyle, this._globalAlpha);
610 paint.setColor(CanvasKit.Color(0,0,0, this._globalAlpha));
632 this._currentPath.setFillType(CanvasKit.FillType.EvenOdd);
634 this._currentPath.setFillType(CanvasKit.FillType.Winding);
663 this._canvas.drawRect(CanvasKit.XYWHRect(x, y, width, height), shadowPaint);
668 this._canvas.drawRect(CanvasKit.XYWHRect(x, y, width, height), fillPaint);
675 var blob = CanvasKit.TextBlob.MakeFromText(text, this._font);
694 'colorType': CanvasKit.ColorType.RGBA_8888,
695 'alphaType': CanvasKit.AlphaType.Unpremul,
696 'colorSpace': CanvasKit.ColorSpace.SRGB,
713 var inverted = CanvasKit.Matrix.invert(this._currentTransform);
714 CanvasKit.Matrix.mapPoints(inverted, pts);
742 CanvasKit.FillType.Winding :
743 CanvasKit.FillType.EvenOdd);
766 temp.setFillType(CanvasKit.FillType.Winding);
822 var img = CanvasKit.MakeImage({
825 'alphaType': CanvasKit.AlphaType.Unpremul,
826 'colorType': CanvasKit.ColorType.RGBA_8888,
827 'colorSpace': CanvasKit.ColorSpace.SRGB
829 var src = CanvasKit.XYWHRect(dirtyX, dirtyY, dirtyWidth, dirtyHeight);
830 var dst = CanvasKit.XYWHRect(x+dirtyX, y+dirtyY, dirtyWidth, dirtyHeight);
831 var inverted = CanvasKit.Matrix.invert(this._currentTransform);
852 var inverted = CanvasKit.Matrix.invert(this._currentTransform);
866 var combined = CanvasKit.Matrix.multiply(
868 CanvasKit.Matrix.invert(newState.ctm)
900 var inverted = CanvasKit.Matrix.rotated(-radians);
948 var inverted = CanvasKit.Matrix.scaled(1/sx, 1/sy);
980 var inverted = CanvasKit.Matrix.invert(this._currentTransform);
982 this._canvas.concat(CanvasKit.Matrix.translated(this._shadowOffsetX, this._shadowOffsetY));
991 var alphaColor = CanvasKit.multiplyByAlpha(this._shadowColor, this._globalAlpha);
993 if (!CanvasKit.getColorComponents(alphaColor)[3]) {
1003 var blurEffect = CanvasKit.MaskFilter.MakeBlur(CanvasKit.BlurStyle.Normal,
1022 paint.setStyle(CanvasKit.PaintStyle.Stroke);
1024 var alphaColor = CanvasKit.multiplyByAlpha(this._strokeStyle, this._globalAlpha);
1028 paint.setColor(CanvasKit.Color(0,0,0, this._globalAlpha));
1035 var dashedEffect = CanvasKit.PathEffect.MakeDash(this._lineDashList, this._lineDashOffset);
1070 this._canvas.drawRect(CanvasKit.XYWHRect(x, y, width, height), shadowPaint);
1074 this._canvas.drawRect(CanvasKit.XYWHRect(x, y, width, height), strokePaint);
1081 var blob = CanvasKit.TextBlob.MakeFromText(text, this._font);
1102 var inverted = CanvasKit.Matrix.translated(-dx, -dy);
1114 var inverted = CanvasKit.Matrix.invert(newTransform);