/third_party/skia/modules/pathkit/tests/ |
D | svg.spec.js | 6 let path = PathKit.FromSVGString('M 205,5 L 795,5 L 595,295 L 5,295 L 205,5 z'); 13 expect(cmds).toEqual([[PathKit.MOVE_VERB, 205, 5], 14 [PathKit.LINE_VERB, 795, 5], 15 [PathKit.LINE_VERB, 595, 295], 16 [PathKit.LINE_VERB, 5, 295], 17 [PathKit.LINE_VERB, 205, 5], 18 [PathKit.CLOSE_VERB]]); 26 let cmds = [[PathKit.MOVE_VERB, 205, 5], 27 [PathKit.LINE_VERB, 795, 5], 28 [PathKit.LINE_VERB, 595, 295], [all …]
|
D | path.spec.js | 5 let path = PathKit.NewPath(); 17 let blank = PathKit.NewPath(); 38 let copy = new PathKit.SkPath(orig); 66 let copy = PathKit.NewPath(orig); 79 if (PathKit.usingWasm) { 92 return PathKit.SkBits2FloatUnsigned(parseInt(str)) 99 let path = PathKit.NewPath(); 100 expect(path.getBounds()).toEqual(PathKit.LTRBRect(0, 0, 0, 0)); 102 expect(path.getBounds()).toEqual(PathKit.LTRBRect(-5, -8, -5, -8)); 104 expect(path.getBounds()).toEqual(PathKit.LTRBRect(-5, -8, 3, 4)); [all …]
|
D | pathops.spec.js | 79 if (PathKit && !PATHOP_MAP['kIntersect_SkPathOp']) { 81 'kIntersect_SkPathOp': PathKit.PathOp.INTERSECT, 82 'kDifference_SkPathOp': PathKit.PathOp.DIFFERENCE, 83 'kUnion_SkPathOp': PathKit.PathOp.UNION, 84 'kXOR_SkPathOp': PathKit.PathOp.XOR, 85 'kXOR_PathOp': PathKit.PathOp.XOR, 86 'kReverseDifference_SkPathOp': PathKit.PathOp.REVERSE_DIFFERENCE, 89 'kWinding_FillType': PathKit.FillType.WINDING, 90 'kEvenOdd_FillType': PathKit.FillType.EVENODD, 91 'kInverseWinding_FillType': PathKit.FillType.INVERSE_WINDING, [all …]
|
D | path2d.spec.js | 5 let path = PathKit.NewPath(); 31 let secondPath = PathKit.NewPath(); 76 let path = PathKit.NewPath(); 107 let path = PathKit.NewPath() 119 let path = PathKit.NewPath(); 129 let basePath = PathKit.NewPath(); 150 let path = PathKit.NewPath();
|
D | util.spec.js | 14 expect(PathKit.cubicYFromX(0, 0.5, 1.0, 0, tc[0])).toBeCloseTo(tc[1], 5); 30 let ans = PathKit.cubicPtFromT(0.1, 0.5, 0.5, 0.1, tc[0]); 44 PathKit.cubicYFromX(0.1, 0.5, 0.5, 0.1, 0.1); 45 PathKit.cubicPtFromT(0.1, 0.5, 0.5, 0.1, 0.1);
|
D | effects.spec.js | 5 let path = PathKit.NewPath(); 95 join: PathKit.StrokeJoin.BEVEL, 96 cap: PathKit.StrokeCap.BUTT, 104 join: PathKit.StrokeJoin.ROUND, 105 cap:PathKit.StrokeCap.SQUARE,
|
D | pathkitinit.js | 3 let PathKit = null; variable 10 PathKit = _PathKit;
|
/third_party/skia/modules/pathkit/ |
D | chaining.js | 2 (function(PathKit){ argument 6 PathKit.onRuntimeInitialized = function() { 9 PathKit.SkPath.prototype.addPath = function() { 52 PathKit.SkPath.prototype.arc = function(x, y, radius, startAngle, endAngle, ccw) { 57 PathKit.SkPath.prototype.arcTo = function(x1, y1, x2, y2, radius) { 62 PathKit.SkPath.prototype.bezierCurveTo = function(cp1x, cp1y, cp2x, cp2y, x, y) { 67 PathKit.SkPath.prototype.close = function() { 74 PathKit.SkPath.prototype.closePath = function() { 79 PathKit.SkPath.prototype.conicTo = function(x1, y1, x2, y2, w) { 84 PathKit.SkPath.prototype.cubicTo = function(cp1x, cp1y, cp2x, cp2y, x, y) { [all …]
|
D | externs.js | 23 var PathKit = { variable 89 PathKit.SkPath.prototype.addPath = function() {}; 90 PathKit.SkPath.prototype.arc = function(x, y, radius, startAngle, endAngle, ccw) {}; 91 PathKit.SkPath.prototype.arcTo = function(x1, y1, x2, y2, radius) {}; 92 PathKit.SkPath.prototype.bezierCurveTo = function(cp1x, cp1y, cp2x, cp2y, x, y) {}; 93 PathKit.SkPath.prototype.close = function() {}; 94 PathKit.SkPath.prototype.closePath = function() {}; 95 PathKit.SkPath.prototype.conicTo = function(x1, y1, x2, y2, w) {}; 96 PathKit.SkPath.prototype.cubicTo = function(cp1x, cp1y, cp2x, cp2y, x, y) {}; 97 PathKit.SkPath.prototype.dash = function(on, off, phase) {}; [all …]
|
D | helper.js | 3 (function(PathKit){ argument 29 PathKit.loadCmdsTypedArray = function(arr) { 49 item = PathKit.SkBits2FloatUnsigned(parseInt(item)); 56 var ptr = PathKit._malloc(ta.length * ta.BYTES_PER_ELEMENT); 57 PathKit.HEAPF32.set(ta, ptr / ta.BYTES_PER_ELEMENT); 64 PathKit.FromCmds = function(cmds) { 65 var ptrLen = PathKit.loadCmdsTypedArray(cmds); 66 var path = PathKit._FromCmds(ptrLen[0], ptrLen[1]); 68 PathKit._free(ptrLen[0]); 82 PathKit.cubicYFromX = function(cpx1, cpy1, cpx2, cpy2, X) { [all …]
|
D | CHANGELOG.md | 1 # PathKit Changelog 38 Updated PathKit to use same FOSS license as Skia proper.
|
D | README.md | 1 PathKit WASM API
|
/third_party/skia/site/docs/user/modules/ |
D | pathkit.md | 2 title: 'PathKit - Geometry in the Browser' 3 linkTitle: 'PathKit - Geometry in the Browser' 14 PathKit is still under rapid development, so the exact API is subject to change. 47 console.log('WebAssembly is supported! Using the wasm version of PathKit'); 50 …sole.log('WebAssembly is not supported (yet) on this browser. Using the asmjs version of PathKit'); 59 }).ready().then((PathKit) => { 60 // Code goes here using PathKit 61 PathEffectsExample(PathKit); 62 MatrixTransformExample(PathKit); 89 function PathEffectsExample(PathKit) { [all …]
|
/third_party/skia/modules/pathkit/perf/ |
D | path.bench.js | 3 let path = PathKit.NewPath(); 28 let secondPath = PathKit.NewPath(); 63 ctx.path = PathKit.FromSVGString('M 205,5 L 795,5 L 595,295 L 5,295 L 205,5 z'); 86 let p = PathKit.NewPath() 109 let p = PathKit.FromCmds( 110 [[PathKit.MOVE_VERB, 205, 5], 111 [PathKit.LINE_VERB, 795, 5], 112 [PathKit.LINE_VERB, 595, 295], 113 [PathKit.LINE_VERB, 5, 295], 114 [PathKit.LINE_VERB, 205, 5], [all …]
|
D | pathops.bench.js | 4 let p = PathKit.NewPath(); 43 let path = PathKit.MakeFromOp(ctx.path1, ctx.path2, PathKit.PathOp.DIFFERENCE); 67 let path = PathKit.MakeFromOp(ctx.path1, ctx.path2, PathKit.PathOp.INTERSECT); 91 let path = PathKit.MakeFromOp(ctx.path1, ctx.path2, PathKit.PathOp.UNION); 115 let path = PathKit.MakeFromOp(ctx.path1, ctx.path2, PathKit.PathOp.XOR); 139 let path = PathKit.MakeFromOp(ctx.path1, ctx.path2, PathKit.PathOp.REVERSE_DIFFERENCE);
|
D | effects.bench.js | 5 let p = PathKit.NewPath(); 109 join: PathKit.StrokeJoin.BEVEL, 110 cap: PathKit.StrokeCap.BUTT,
|
/third_party/skia/modules/pathkit/npm-wasm/ |
D | README.md | 8 }).then((PathKit) => { 9 // Code goes here using PathKit 12 PathKit comes in two parts, a JS loader and the actual WASM code. The JS loader creates 17 The `PathKit` object returned upon resolution of the PathKitInit Promise is fully loaded and ready … 23 Using PathKit and WebPack 26 WebPack's support for WASM is still somewhat experimental, but PathKit can be 32 PathKitInit().then((PathKit) => { 33 // Code goes here using PathKit
|
/third_party/skia/modules/pathkit/npm-asmjs/ |
D | README.md | 8 }).then((PathKit) => { 9 // Code goes here using PathKit 12 PathKit comes in two parts, a JS loader and the actual WASM code. The JS loader creates 17 The `PathKit` object returned upon resolution of the PathKitInit Promise is fully loaded and ready … 23 Using PathKit and WebPack 26 …s support for asm.js should be straight-forward, since it's just another JS library. PathKit can be 32 PathKitInit().then((PathKit) => { 33 // Code goes here using PathKit
|
/third_party/skia/infra/wasm-common/docker/ |
D | README.md | 4 Docker files to ease working with PathKit and CanvasKit. 10 compiling projects (e.g. Skia's PathKit) to WASM/asm.js. 22 # Compile PathKit with the local image
|
/third_party/skia/modules/canvaskit/ |
D | README.md | 119 When dealing with CanvasKit (or PathKit) on our bots, we use Docker. Check out 152 Test.+PathKit, Perf.+PathKit jobs to make sure the new builds pass all
|
/third_party/skia/docker/skia-wasm-release/ |
D | Dockerfile | 43 # PathKit should be in /tmp/skia/skia/out/pathkit/
|