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

mermaid

Package Overview
Dependencies
Maintainers
2
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mermaid - npm Package Compare versions

Comparing version 8.0.0-rc.6 to 8.0.0-rc.7

4

package.json
{
"name": "mermaid",
"version": "8.0.0-rc.6",
"version": "8.0.0-rc.7",
"description": "Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.",

@@ -41,3 +41,3 @@ "main": "dist/mermaid.core.js",

"d3": "^4.13.0",
"dagre-d3-renderer": "^0.5.6",
"dagre-d3-renderer": "^0.5.8",
"dagre-layout": "^0.8.8",

@@ -44,0 +44,0 @@ "graphlibrary": "^2.2.0",

@@ -296,3 +296,3 @@ import graphlib from 'graphlibrary'

const h = bbox.height
const s = (w + h) * 0.8
const s = (w + h) * 0.9
const points = [

@@ -409,19 +409,6 @@ { x: s / 2, y: 0 },

if (conf.useMaxWidth) {
// Center the graph
svg.attr('height', '100%')
svg.attr('width', conf.width)
svg.attr('viewBox', '0 0 ' + (g.graph().width + 64) + ' ' + (g.graph().height + 64))
svg.attr('style', 'max-width:' + (g.graph().width + 64) + 'px;')
} else {
// Center the graph
svg.attr('height', g.graph().height + 64)
if (typeof conf.width === 'undefined') {
svg.attr('width', g.graph().width + 64)
} else {
svg.attr('width', conf.width)
}
svg.attr('viewBox', '0 0 ' + (g.graph().width + 64) + ' ' + (g.graph().height + 64))
}
svg.select('g').attr('transform', 'translate(32, 32)')
const padding = 8
svg.attr('width', g.maxX - g.minX + padding * 2)
svg.attr('height', g.maxY - g.minY + padding * 2)
svg.select('g').attr('transform', `translate(${padding - g.minX}, ${padding - g.minY})`)

@@ -428,0 +415,0 @@ // Index nodes

@@ -86,7 +86,2 @@ /**

htmlLabels: true,
/**
* **useMaxWidth** - Flag for setting whether or not a all available width should be used for
* the diagram.
*/
useMaxWidth: true,

@@ -93,0 +88,0 @@ curve: 'linear'

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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

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