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

@idraw/core

Package Overview
Dependencies
Maintainers
2
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@idraw/core - npm Package Compare versions

Comparing version 0.4.0-beta.20 to 0.4.0-beta.21

16

dist/esm/middleware/layout-selector/index.js

@@ -28,24 +28,24 @@ import { calcLayoutSizeController, isViewPointInVertexes, getViewScaleInfoFromSnapshot } from '@idraw/util';

const operations = data.layout.operations;
if (controlType === 'left' && operations.disableLeft === true) {
if (controlType === 'left' && operations.disabledLeft === true) {
return true;
}
if (controlType === 'top' && operations.disableTop === true) {
if (controlType === 'top' && operations.disabledTop === true) {
return true;
}
if (controlType === 'right' && operations.disableRight === true) {
if (controlType === 'right' && operations.disabledRight === true) {
return true;
}
if (controlType === 'bottom' && operations.disableBottom === true) {
if (controlType === 'bottom' && operations.disabledBottom === true) {
return true;
}
if (controlType === 'top-left' && operations.disableTopLeft === true) {
if (controlType === 'top-left' && operations.disabledTopLeft === true) {
return true;
}
if (controlType === 'top-right' && operations.disableTopRight === true) {
if (controlType === 'top-right' && operations.disabledTopRight === true) {
return true;
}
if (controlType === 'bottom-left' && operations.disableBottomLeft === true) {
if (controlType === 'bottom-left' && operations.disabledBottomLeft === true) {
return true;
}
if (controlType === 'bottom-right' && operations.disableBottomRight === true) {
if (controlType === 'bottom-right' && operations.disabledBottomRight === true) {
return true;

@@ -52,0 +52,0 @@ }

@@ -61,6 +61,6 @@ import { selectColor, disableColor } from './config';

const { topLeft, topRight, bottomLeft, bottomRight, topMiddle, rightMiddle, bottomMiddle, leftMiddle } = controller;
drawControllerLine(ctx, { start: topLeft.center, end: topRight.center, centerVertexes: topMiddle.vertexes, disabled: !!(operations === null || operations === void 0 ? void 0 : operations.disableTop) });
drawControllerLine(ctx, { start: topRight.center, end: bottomRight.center, centerVertexes: rightMiddle.vertexes, disabled: !!(operations === null || operations === void 0 ? void 0 : operations.disableRight) });
drawControllerLine(ctx, { start: bottomRight.center, end: bottomLeft.center, centerVertexes: bottomMiddle.vertexes, disabled: !!(operations === null || operations === void 0 ? void 0 : operations.disableBottom) });
drawControllerLine(ctx, { start: bottomLeft.center, end: topLeft.center, centerVertexes: leftMiddle.vertexes, disabled: !!(operations === null || operations === void 0 ? void 0 : operations.disableLeft) });
drawControllerLine(ctx, { start: topLeft.center, end: topRight.center, centerVertexes: topMiddle.vertexes, disabled: !!(operations === null || operations === void 0 ? void 0 : operations.disabledTop) });
drawControllerLine(ctx, { start: topRight.center, end: bottomRight.center, centerVertexes: rightMiddle.vertexes, disabled: !!(operations === null || operations === void 0 ? void 0 : operations.disabledRight) });
drawControllerLine(ctx, { start: bottomRight.center, end: bottomLeft.center, centerVertexes: bottomMiddle.vertexes, disabled: !!(operations === null || operations === void 0 ? void 0 : operations.disabledBottom) });
drawControllerLine(ctx, { start: bottomLeft.center, end: topLeft.center, centerVertexes: leftMiddle.vertexes, disabled: !!(operations === null || operations === void 0 ? void 0 : operations.disabledLeft) });
const disabledOpts = {

@@ -70,3 +70,3 @@ lineWidth: 1,

};
if ((operations === null || operations === void 0 ? void 0 : operations.disableTopLeft) === true) {
if ((operations === null || operations === void 0 ? void 0 : operations.disabledTopLeft) === true) {
drawControllerCross(ctx, Object.assign({ vertexes: topLeft.vertexes }, disabledOpts));

@@ -77,3 +77,3 @@ }

}
if ((operations === null || operations === void 0 ? void 0 : operations.disableTopRight) === true) {
if ((operations === null || operations === void 0 ? void 0 : operations.disabledTopRight) === true) {
drawControllerCross(ctx, Object.assign({ vertexes: topRight.vertexes }, disabledOpts));

@@ -84,3 +84,3 @@ }

}
if ((operations === null || operations === void 0 ? void 0 : operations.disableBottomRight) === true) {
if ((operations === null || operations === void 0 ? void 0 : operations.disabledBottomRight) === true) {
drawControllerCross(ctx, Object.assign({ vertexes: bottomRight.vertexes }, disabledOpts));

@@ -91,3 +91,3 @@ }

}
if ((operations === null || operations === void 0 ? void 0 : operations.disableBottomLeft) === true) {
if ((operations === null || operations === void 0 ? void 0 : operations.disabledBottomLeft) === true) {
drawControllerCross(ctx, Object.assign({ vertexes: bottomLeft.vertexes }, disabledOpts));

@@ -94,0 +94,0 @@ }

{
"name": "@idraw/core",
"version": "0.4.0-beta.20",
"version": "0.4.0-beta.21",
"description": "",

@@ -24,9 +24,9 @@ "main": "dist/esm/index.js",

"devDependencies": {
"@idraw/types": "^0.4.0-beta.20"
"@idraw/types": "^0.4.0-beta.21"
},
"dependencies": {},
"peerDependencies": {
"@idraw/board": "^0.4.0-beta.20",
"@idraw/renderer": "^0.4.0-beta.20",
"@idraw/util": "^0.4.0-beta.20"
"@idraw/board": "^0.4.0-beta.21",
"@idraw/renderer": "^0.4.0-beta.21",
"@idraw/util": "^0.4.0-beta.21"
},

@@ -33,0 +33,0 @@ "publishConfig": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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