New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@idraw/board

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@idraw/board - npm Package Compare versions

Comparing version 0.0.4-alpha.14 to 0.0.4-alpha.15

19

dist/index.cjs.js

@@ -518,2 +518,5 @@ 'use strict';

};
Context.prototype.isPointInPathWithoutScroll = function (x, y) {
return this._ctx.isPointInPath(this._doSize(x), this._doSize(y));
};
Context.prototype.setStrokeStyle = function (color) {

@@ -981,2 +984,18 @@ this._ctx.strokeStyle = color;

};
Board.prototype.pointScreenToContext = function (screenPoint) {
var _b = this.getTransform(), scrollX = _b.scrollX, scrollY = _b.scrollY, scale = _b.scale;
var ctxPoint = {
x: (screenPoint.x - scrollX) / scale,
y: (screenPoint.y - scrollY) / scale,
};
return ctxPoint;
};
Board.prototype.pointContextToScreen = function (ctxPoint) {
var _b = this.getTransform(), scrollX = _b.scrollX, scrollY = _b.scrollY, scale = _b.scale;
var screenPoint = {
x: ctxPoint.x * scale + scrollX,
y: ctxPoint.y * scale + scrollY,
};
return screenPoint;
};
Board.prototype[(_a = _hasRendered, _render)] = function () {

@@ -983,0 +1002,0 @@ if (this[_hasRendered] === true) {

3

dist/index.d.ts

@@ -55,2 +55,4 @@ import { TypeBoardOptions } from '@idraw/types';

getScrollLineWidth(): number;
pointScreenToContext(screenPoint: TypePoint): TypePoint;
pointContextToScreen(ctxPoint: TypePoint): TypePoint;
private [_render];

@@ -103,2 +105,3 @@ private [_resetContext];

isPointInPath(x: number, y: number): boolean;
isPointInPathWithoutScroll(x: number, y: number): boolean;
setStrokeStyle(color: string): void;

@@ -105,0 +108,0 @@ stroke(): void;

@@ -516,2 +516,5 @@ /*! *****************************************************************************

};
Context.prototype.isPointInPathWithoutScroll = function (x, y) {
return this._ctx.isPointInPath(this._doSize(x), this._doSize(y));
};
Context.prototype.setStrokeStyle = function (color) {

@@ -979,2 +982,18 @@ this._ctx.strokeStyle = color;

};
Board.prototype.pointScreenToContext = function (screenPoint) {
var _b = this.getTransform(), scrollX = _b.scrollX, scrollY = _b.scrollY, scale = _b.scale;
var ctxPoint = {
x: (screenPoint.x - scrollX) / scale,
y: (screenPoint.y - scrollY) / scale,
};
return ctxPoint;
};
Board.prototype.pointContextToScreen = function (ctxPoint) {
var _b = this.getTransform(), scrollX = _b.scrollX, scrollY = _b.scrollY, scale = _b.scale;
var screenPoint = {
x: ctxPoint.x * scale + scrollX,
y: ctxPoint.y * scale + scrollY,
};
return screenPoint;
};
Board.prototype[(_a = _hasRendered, _render)] = function () {

@@ -981,0 +1000,0 @@ if (this[_hasRendered] === true) {

@@ -520,2 +520,5 @@ this.iDraw = this.iDraw || {};

};
Context.prototype.isPointInPathWithoutScroll = function (x, y) {
return this._ctx.isPointInPath(this._doSize(x), this._doSize(y));
};
Context.prototype.setStrokeStyle = function (color) {

@@ -983,2 +986,18 @@ this._ctx.strokeStyle = color;

};
Board.prototype.pointScreenToContext = function (screenPoint) {
var _b = this.getTransform(), scrollX = _b.scrollX, scrollY = _b.scrollY, scale = _b.scale;
var ctxPoint = {
x: (screenPoint.x - scrollX) / scale,
y: (screenPoint.y - scrollY) / scale,
};
return ctxPoint;
};
Board.prototype.pointContextToScreen = function (ctxPoint) {
var _b = this.getTransform(), scrollX = _b.scrollX, scrollY = _b.scrollY, scale = _b.scale;
var screenPoint = {
x: ctxPoint.x * scale + scrollX,
y: ctxPoint.y * scale + scrollY,
};
return screenPoint;
};
Board.prototype[(_a = _hasRendered, _render)] = function () {

@@ -985,0 +1004,0 @@ if (this[_hasRendered] === true) {

8

package.json
{
"name": "@idraw/board",
"version": "0.0.4-alpha.14",
"version": "0.0.4-alpha.15",
"description": "",

@@ -26,6 +26,6 @@ "main": "dist/index.cjs.js",

"devDependencies": {
"@idraw/types": "^0.0.4-alpha.14"
"@idraw/types": "^0.0.4-alpha.15"
},
"dependencies": {
"@idraw/util": "^0.0.4-alpha.14"
"@idraw/util": "^0.0.4-alpha.15"
},

@@ -35,3 +35,3 @@ "publishConfig": {

},
"gitHead": "4c3fa2733668f19faf870c4e185c7f0ee0c80547"
"gitHead": "4125d5dd3aefb61e970606058b6cd26cb7967b53"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc