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

@meta2d/activity-diagram

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@meta2d/activity-diagram - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

0

index.d.ts

@@ -0,0 +0,0 @@ export * from './src/final';

@@ -0,0 +0,0 @@ export * from './src/final';

2

package.json
{
"name": "@meta2d/activity-diagram",
"version": "1.0.0",
"version": "1.0.1",
"description": "The activity library based on le5le meta2d.",

@@ -5,0 +5,0 @@ "main": "index.js",

import { Pen } from '@meta2d/core';
export declare function activityFinal(ctx: CanvasRenderingContext2D, pen: Pen): void;

@@ -28,3 +28,3 @@ // 此方法只能绘制路径,在该图形不适用

export function activityFinal(ctx, pen) {
var _a = pen.calculative.worldRect, x = _a.x, y = _a.y, width = _a.width, height = _a.height;
const { x, y, width, height } = pen.calculative.worldRect;
ctx.beginPath();

@@ -31,0 +31,0 @@ ctx.ellipse(x + width / 2, y + height / 2, width / 2, height / 2, 0, 0, Math.PI * 2);

@@ -0,0 +0,0 @@ import { Pen } from '@meta2d/core';

@@ -9,4 +9,4 @@ import { rectangle } from '@meta2d/core/src/diagrams';

forkH: rectangle,
swimlaneH: swimlaneH,
swimlaneV: swimlaneV,
swimlaneH,
swimlaneV,
};

@@ -16,5 +16,5 @@ }

return {
activityFinal: activityFinal,
activityFinal,
};
}
//# sourceMappingURL=register.js.map

@@ -1,2 +0,2 @@

import { Pen } from '../../core/src/pen';
import { Pen } from '@meta2d/core/src/pen';
export declare function swimlaneH(pen: Pen, ctx?: CanvasRenderingContext2D): Path2D;
export function swimlaneH(pen, ctx) {
var path = !ctx ? new Path2D() : ctx;
var _a = pen.calculative.worldRect, x = _a.x, y = _a.y, width = _a.width, height = _a.height, ey = _a.ey;
var lineLeft = pen.calculative.lineLeft || 0.08;
var wr = pen.calculative.borderRadius || 0, hr = wr;
const path = !ctx ? new Path2D() : ctx;
const { x, y, width, height, ey } = pen.calculative.worldRect;
const lineLeft = pen.calculative.lineLeft || 0.08;
let wr = pen.calculative.borderRadius || 0, hr = wr;
if (wr < 1) {

@@ -10,3 +10,3 @@ wr = width * wr;

}
var r = wr < hr ? wr : hr;
let r = wr < hr ? wr : hr;
if (width < 2 * r) {

@@ -13,0 +13,0 @@ r = width / 2;

@@ -1,2 +0,2 @@

import { Pen } from '../../core/src/pen';
import { Pen } from '@meta2d/core/src/pen';
export declare function swimlaneV(pen: Pen, ctx?: CanvasRenderingContext2D): Path2D;
export function swimlaneV(pen, ctx) {
var path = !ctx ? new Path2D() : ctx;
var _a = pen.calculative.worldRect, x = _a.x, y = _a.y, width = _a.width, height = _a.height, ex = _a.ex;
var lineTop = pen.calculative.lineTop || 0.08;
var wr = pen.calculative.borderRadius || 0, hr = wr;
const path = !ctx ? new Path2D() : ctx;
const { x, y, width, height, ex } = pen.calculative.worldRect;
const lineTop = pen.calculative.lineTop || 0.08;
let wr = pen.calculative.borderRadius || 0, hr = wr;
if (wr < 1) {

@@ -10,3 +10,3 @@ wr = width * wr;

}
var r = wr < hr ? wr : hr;
let r = wr < hr ? wr : hr;
if (width < 2 * r) {

@@ -13,0 +13,0 @@ r = width / 2;

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

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