MCPcopy
hub / github.com/fabricjs/fabric.js / makePathObject

Function makePathObject

test/unit/path.js:51–61  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

49 }
50
51 function makePathObject(callback) {
52 const path = new fabric.Path('M 100 100 L 300 100 L 200 300 z', {
53 fill: 'red',
54 stroke: 'blue',
55 strokeLineCap: 'butt',
56 strokeLineJoin: 'miter',
57 strokeMiterLimit: 4,
58 strokeWidth: 0,
59 });
60 callback(path);
61 }
62
63 function updatePath(pathObject, value, preservePosition) {
64 const { left, top } = pathObject;

Callers 1

path.jsFile · 0.85

Calls 1

callbackFunction · 0.85

Tested by

no test coverage detected