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

dot-language-support

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dot-language-support - npm Package Compare versions

Comparing version 1.2.7 to 1.3.1

11

lib/service/completion.js

@@ -28,2 +28,6 @@ "use strict";

}
if (node.kind === types_1.SyntaxKind.AttributeContainer
|| (node.kind == types_1.SyntaxKind.CommaToken && parent && parent.kind === types_1.SyntaxKind.Assignment)) {
return getAttributeCompletions();
}
const prevNode = checker_1.findNodeAtOffset(g, node.pos - 1, true);

@@ -86,2 +90,9 @@ if (!prevNode)

}
function getAttributeCompletions() {
const kind = lst.CompletionItemKind.Property;
return languageFacts.attributes.map(a => ({
kind,
label: util_1.escapeIdentifierText(a),
}));
}
function getNodeCompletions(symbols) {

@@ -88,0 +99,0 @@ const res = new Array();

1

lib/service/languageFacts.d.ts
export declare const shapes: ReadonlyArray<string>;
export declare const attributes: string[];
export declare const colors: Readonly<{

@@ -3,0 +4,0 @@ aliceblue: string;

@@ -64,2 +64,256 @@ "use strict";

]);
const edgeAttributes = Object.freeze([
"URL",
"arrowhead",
"arrowsize",
"arrowtail",
"color",
"colorscheme",
"comment",
"constraint",
"decorate",
"dir",
"edgeURL",
"edgehref",
"edgetarget",
"edgetooltip",
"fillcolor",
"fontcolor",
"fontname",
"fontsize",
"headURL",
"head_lp",
"headclip",
"headhref",
"headlabel",
"headport",
"headtarget",
"headtooltip",
"href",
"id",
"label",
"labelURL",
"labelangle",
"labeldistance",
"labelfloat",
"labelfontcolor",
"labelfontname",
"labelfontsize",
"labelhref",
"labeltarget",
"labeltooltip",
"layer",
"len",
"lhead",
"lp",
"ltail",
"minlen",
"nojustify",
"penwidth",
"pos",
"samehead",
"sametail",
"showboxes",
"style",
"tailURL",
"tail_lp",
"tailclip",
"tailhref",
"taillabel",
"tailport",
"tailtarget",
"tailtooltip",
"target",
"tooltip",
"weight",
"xlabel",
"xlp",
]);
const nodeAttributes = Object.freeze([
"URL",
"area",
"color",
"colorscheme",
"comment",
"distortion",
"fillcolor",
"fixedsize",
"fontcolor",
"fontname",
"fontsize",
"gradientangle",
"group",
"height",
"href",
"id",
"image",
"imagepos",
"imagescale",
"label",
"labelloc",
"layer",
"margin",
"nojustify",
"ordering",
"orientation",
"penwidth",
"peripheries",
"pin",
"pos",
"rects",
"regular",
"root",
"samplepoints",
"shape",
"shapefile",
"showboxes",
"sides",
"skew",
"sortv",
"style",
"target",
"tooltip",
"vertices",
"width",
"xlabel",
"xlp",
"z",
]);
const graphAttributes = Object.freeze([
"Damping",
"K",
"URL",
"_background",
"bb",
"bgcolor",
"center",
"charset",
"clusterrank",
"colorscheme",
"comment",
"compound",
"concentrate",
"defaultdist",
"dim",
"dimen",
"diredgeconstraints",
"dpi",
"epsilon",
"esep",
"fontcolor",
"fontname",
"fontnames",
"fontpath",
"fontsize",
"forcelabels",
"gradientangle",
"href",
"id",
"imagepath",
"inputscale",
"label",
"label_scheme",
"labeljust",
"labelloc",
"landscape",
"layerlistsep",
"layers",
"layerselect",
"layersep",
"layout",
"levels",
"levelsgap",
"lheight",
"lp",
"lwidth",
"margin",
"maxiter",
"mclimit",
"mindist",
"mode",
"model",
"mosek",
"newrank",
"nodesep",
"nojustify",
"normalize",
"notranslate",
"nslimit",
"nslimit1",
"ordering",
"orientation",
"outputorder",
"overlap",
"overlap_scaling",
"overlap_shrink",
"pack",
"packmode",
"pad",
"page",
"pagedir",
"quadtree",
"quantum",
"rankdir",
"ranksep",
"ratio",
"remincross",
"repulsiveforce",
"resolution",
"root",
"rotate",
"rotation",
"scale",
"searchsize",
"sep",
"showboxes",
"size",
"smoothing",
"sortv",
"splines",
"start",
"style",
"stylesheet",
"target",
"truecolor",
"viewport",
"voro_margin",
"xdotversion",
]);
const clusterAttributes = Object.freeze([
"K",
"URL",
"area",
"bgcolor",
"color",
"colorscheme",
"fillcolor",
"fontcolor",
"fontname",
"fontsize",
"gradientangle",
"href",
"id",
"label",
"labeljust",
"labelloc",
"layer",
"lheight",
"lp",
"lwidth",
"margin",
"nojustify",
"pencolor",
"penwidth",
"peripheries",
"sortv",
"style",
"target",
"tooltip",
]);
exports.attributes = Array.from(new Set([
...nodeAttributes,
...edgeAttributes,
...graphAttributes,
...clusterAttributes,
])).sort();
exports.colors = Object.freeze({

@@ -66,0 +320,0 @@ aliceblue: "#f0f8ff",

2

package.json
{
"name": "dot-language-support",
"version": "1.2.7",
"version": "1.3.1",
"description": "Parser and language service for graphviz (dot) files",

@@ -5,0 +5,0 @@ "author": "Niklas Mollenhauer",

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