Home
last modified time | relevance | path

Searched refs:PathKit (Results 1 – 21 of 21) sorted by relevance

/third_party/skia/modules/pathkit/tests/
Dsvg.spec.js6 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 …]
Dpath.spec.js5 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 …]
Dpathops.spec.js79 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 …]
Dpath2d.spec.js5 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();
Dutil.spec.js14 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);
Deffects.spec.js5 let path = PathKit.NewPath();
95 join: PathKit.StrokeJoin.BEVEL,
96 cap: PathKit.StrokeCap.BUTT,
104 join: PathKit.StrokeJoin.ROUND,
105 cap:PathKit.StrokeCap.SQUARE,
Dpathkitinit.js3 let PathKit = null; variable
10 PathKit = _PathKit;
/third_party/skia/modules/pathkit/
Dchaining.js2 (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 …]
Dexterns.js23 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 …]
Dhelper.js3 (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 …]
DCHANGELOG.md1 # PathKit Changelog
38 Updated PathKit to use same FOSS license as Skia proper.
DREADME.md1 PathKit WASM API
/third_party/skia/site/docs/user/modules/
Dpathkit.md2 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/
Dpath.bench.js3 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 …]
Dpathops.bench.js4 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);
Deffects.bench.js5 let p = PathKit.NewPath();
109 join: PathKit.StrokeJoin.BEVEL,
110 cap: PathKit.StrokeCap.BUTT,
/third_party/skia/modules/pathkit/npm-wasm/
DREADME.md8 }).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/
DREADME.md8 }).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/
DREADME.md4 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/
DREADME.md119 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/
DDockerfile43 # PathKit should be in /tmp/skia/skia/out/pathkit/