Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@blocksuite/phasor

Package Overview
Dependencies
Maintainers
5
Versions
411
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blocksuite/phasor - npm Package Compare versions

Comparing version 0.0.0-20230822230555-98129627-nightly to 0.0.0-20230823134503-134d8f1a-nightly

2

dist/elements/connector/connector-element.js

@@ -100,3 +100,3 @@ import { DEFAULT_ROUGHNESS, StrokeStyle } from '../../consts.js';

ctx.save();
ctx.strokeStyle = this.stroke;
ctx.strokeStyle = realStrokeColor;
ctx.lineWidth = this.strokeWidth;

@@ -103,0 +103,0 @@ dash && ctx.setLineDash([12, 12]);

@@ -90,7 +90,7 @@ import { assertExists, Slot } from '@blocksuite/global/utils';

this._transact(() => {
const yConnnecotrs = [];
const yConnectors = [];
this._yContainer.forEach(yElement => {
const type = yElement.get('type');
if (type === 'connector') {
yConnnecotrs.push(yElement);
yConnectors.push(yElement);
return;

@@ -100,3 +100,3 @@ }

});
yConnnecotrs.forEach(yElement => {
yConnectors.forEach(yElement => {
this._createElementFromYMap(yElement);

@@ -103,0 +103,0 @@ });

{
"name": "@blocksuite/phasor",
"version": "0.0.0-20230822230555-98129627-nightly",
"version": "0.0.0-20230823134503-134d8f1a-nightly",
"description": "Hybrid canvas renderer.",

@@ -28,3 +28,3 @@ "main": "dist/index.js",

"fractional-indexing": "^3.2.0",
"@blocksuite/global": "0.0.0-20230822230555-98129627-nightly"
"@blocksuite/global": "0.0.0-20230823134503-134d8f1a-nightly"
},

@@ -31,0 +31,0 @@ "scripts": {

@@ -148,3 +148,3 @@ import { DEFAULT_ROUGHNESS, StrokeStyle } from '../../consts.js';

ctx.save();
ctx.strokeStyle = this.stroke;
ctx.strokeStyle = realStrokeColor;
ctx.lineWidth = this.strokeWidth;

@@ -151,0 +151,0 @@ dash && ctx.setLineDash([12, 12]);

@@ -98,7 +98,7 @@ import { assertExists, Slot } from '@blocksuite/global/utils';

this._transact(() => {
const yConnnecotrs: Y.Map<unknown>[] = [];
const yConnectors: Y.Map<unknown>[] = [];
this._yContainer.forEach(yElement => {
const type = yElement.get('type') as keyof PhasorElementType;
if (type === 'connector') {
yConnnecotrs.push(yElement);
yConnectors.push(yElement);
return;

@@ -108,3 +108,3 @@ }

});
yConnnecotrs.forEach(yElement => {
yConnectors.forEach(yElement => {
this._createElementFromYMap(yElement);

@@ -111,0 +111,0 @@ });

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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