Add stub method for isPointInStroke
This commit is contained in:
parent
89b592c6ac
commit
ef5c949d85
4
.npmignore
Normal file
4
.npmignore
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
coverage
|
||||||
|
test
|
||||||
|
/*.js
|
||||||
|
!dist
|
1
.npmrc
Normal file
1
.npmrc
Normal file
@ -0,0 +1 @@
|
|||||||
|
@icynet:registry=https://git.icynet.eu/api/packages/evert/npm/
|
@ -1218,6 +1218,15 @@ export default (function () {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Context.prototype.isPointInStroke = function (path2d, x, y) {
|
||||||
|
if (this.__ctx) {
|
||||||
|
return this.__ctx.isPointInStroke(path2d, x, y);
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO: method stub
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SetTransform changes the current transformation matrix to
|
* SetTransform changes the current transformation matrix to
|
||||||
* the matrix given by the arguments as described below.
|
* the matrix given by the arguments as described below.
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
{
|
{
|
||||||
"name": "@icynet/svgcanvas",
|
"name": "@icynet/svgcanvas",
|
||||||
"version": "2.5.1",
|
"version": "2.5.1-1",
|
||||||
"description": "svgcanvas",
|
"description": "svgcanvas",
|
||||||
"main": "dist/svgcanvas.js",
|
"main": "dist/svgcanvas.js",
|
||||||
"types": "types/index.d.ts",
|
"types": "types/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"watch": "rollup -c -w",
|
"watch": "rollup -c -w",
|
||||||
"build": "rollup -c",
|
"build": "rollup -c",
|
||||||
"prepare": "npm run build",
|
"prepublishOnly": "npm run build",
|
||||||
"test": "karma start"
|
"test": "karma start"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
2
types/context.d.ts
vendored
2
types/context.d.ts
vendored
@ -90,4 +90,6 @@ export default class Context {
|
|||||||
createImageData(): any;
|
createImageData(): any;
|
||||||
putImageData(): any;
|
putImageData(): any;
|
||||||
globalCompositeOperation(): any;
|
globalCompositeOperation(): any;
|
||||||
|
isPointInStroke(x: number, y: number): boolean;
|
||||||
|
isPointInStroke(path: Path2D, x: number, y: number): boolean;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user