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

jointjs

Package Overview
Dependencies
Maintainers
4
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jointjs - npm Package Compare versions

Comparing version 3.7.7 to 4.0.0-alpha.1

src/mvc/Collection.mjs

192

package.json
{
"name": "jointjs",
"title": "JointJS",
"version": "4.0.0-alpha.1",
"description": "JavaScript diagramming library",
"keywords": [
"joint",
"jointjs",
"diagram",
"diagrams",
"chart",
"charts",
"svg",
"flowchart",
"graph",
"visualization",
"visual",
"data",
"dataviz",
"flow",
"workflow",
"process",
"network",
"sequence",
"circuit",
"hierarchy",
"hierarchical",
"editor",
"javascript",
"typescript",
"library",
"layout",
"tree",
"grid",
"stack",
"directed",
"tree-layout",
"stack-layout",
"grid-layout",
"force-directed",
"visio",
"bpmn",
"vsm",
"value-stream",
"mapping",
"family-tree",
"treeview",
"entity-relationship",
"er-diagram",
"er",
"planogram",
"database",
"orgchart",
"org",
"uml",
"chatbot",
"kanban",
"mindmap",
"vector",
"yamazumi",
"shortest",
"path",
"finder",
"shortest-path-finder"
],
"scripts": {
"test": "grunt test",
"lint": "eslint types/**/*.d.ts src --ext .mjs,.js",
"lint:fix": "npm run lint -- --fix"
},
"sideEffects": false,
"version": "3.7.7",
"main": "dist/joint.min.js",
"main": "./dist/joint.min.js",
"module": "joint.mjs",
"style": "./dist/joint.min.css",
"types": "./dist/joint.d.ts",
"homepage": "http://jointjs.com",
"homepage": "https://jointjs.com",
"author": {
"name": "client IO",
"url": "http://client.io"
"url": "https://client.io"
},

@@ -99,23 +33,36 @@ "contributors": [

"license": "MPL-2.0",
"installConfig": {
"hoistingLimits": "workspaces"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"prepack": "yarn run dist",
"build": "grunt install",
"test": "grunt test",
"test-server": "grunt test:server",
"test-client": "grunt test:client",
"test-ts": "grunt ts:test",
"test-coverage": "grunt test:coverage",
"test-coverage-lcov": "yarn run test-coverage --reporter=lcov",
"test-bundles": "grunt test:bundles",
"build-bundles": "grunt build:bundles",
"test-e2e": "grunt test:e2e",
"test-e2e-all": "grunt test:e2e:all",
"lint": "eslint types/**/*.d.ts src --ext .mjs,.js",
"lint-fix": "yarn run lint --fix",
"dist": "grunt dist",
"build-docs": "grunt build:docs"
},
"files": [
"css",
"dist",
"src",
"types",
"index.js",
"joint.mjs"
"dist/",
"src/",
"types/*.d.ts",
"./index.js",
"./joint.mjs",
"./LICENSE",
"./README.md"
],
"dependencies": {
"backbone": "~1.4.1",
"dagre": "~0.8.5",
"graphlib": "~2.1.8",
"jquery": "~3.7.1",
"lodash": "~4.17.21"
},
"devDependencies": {
"@types/backbone": "~1.4.16",
"@types/dagre": "~0.7.50",
"@types/graphlib": "~2.1.9",
"@types/jquery": "~3.5.22",
"@types/lodash": "~4.14.199",
"@typescript-eslint/eslint-plugin": "5.48.1",

@@ -136,3 +83,2 @@ "@typescript-eslint/parser": "5.48.1",

"grunt-contrib-copy": "1.0.0",
"grunt-contrib-cssmin": "3.0.0",
"grunt-contrib-qunit": "3.1.0",

@@ -151,2 +97,3 @@ "grunt-contrib-uglify": "4.0.0",

"jit-grunt": "0.10.0",
"jquery": "~3.7.1",
"karma": "3.1.4",

@@ -158,2 +105,3 @@ "karma-chrome-launcher": "2.2.0",

"load-grunt-config": "0.19.2",
"lodash": "~4.17.21",
"mocha": "5.2.0",

@@ -169,3 +117,2 @@ "open-sans-fontface": "https://github.com/clientIO/open-sans/archive/1.4.2.tar.gz",

"rollup-plugin-commonjs": "9.2.0",
"rollup-plugin-external-globals": "0.3.0",
"rollup-plugin-json": "4.0.0",

@@ -185,4 +132,65 @@ "rollup-plugin-node-resolve": "4.0.0",

"node": "18.18.2",
"npm": "9.8.1"
}
"npm": "9.8.1",
"yarn": "3.4.1"
},
"keywords": [
"joint",
"jointjs",
"diagram",
"diagrams",
"chart",
"charts",
"svg",
"flowchart",
"graph",
"visualization",
"visual",
"data",
"dataviz",
"flow",
"workflow",
"process",
"network",
"sequence",
"circuit",
"hierarchy",
"hierarchical",
"editor",
"javascript",
"typescript",
"library",
"layout",
"tree",
"grid",
"stack",
"directed",
"tree-layout",
"stack-layout",
"grid-layout",
"force-directed",
"visio",
"bpmn",
"vsm",
"value-stream",
"mapping",
"family-tree",
"treeview",
"entity-relationship",
"er-diagram",
"er",
"planogram",
"database",
"orgchart",
"org",
"uml",
"chatbot",
"kanban",
"mindmap",
"vector",
"yamazumi",
"shortest",
"path",
"finder",
"shortest-path-finder"
]
}

@@ -1,55 +0,5 @@

# JointJS - JavaScript diagramming library powering exceptional UIs
# JointJS Core
[![Build Status](https://travis-ci.com/clientIO/joint.svg?branch=master)](https://travis-ci.com/clientIO/joint)
[![Total Discussion](https://img.shields.io/github/discussions/badges/shields)](https://github.com/clientIO/joint/discussions)
[![NPM Version](https://img.shields.io/npm/v/jointjs)](https://www.npmjs.com/package/jointjs)
[![NPM License](https://img.shields.io/npm/l/jointjs?color=blue)](https://github.com/clientIO/joint/blob/master/LICENSE)
The base of the *[JointJS](https://www.jointjs.com/)* library.
[JointJS](https://jointjs.com) is a tested and proven *JavaScript*/*Typescript* diagramming library that helps developers and companies of any size build visual and No-Code/Low-Code applications faster and with confidence. It’s a flexible tool from which a wide range of UIs can be created (interactive diagramming applications, drawing tools, data visualizations, UIs for monitoring systems, and many more). It can become the foundational layer of your next application and help you bring your idea to market in days, not months or years.
![Use Cases](https://user-images.githubusercontent.com/3967880/200360293-808f148c-32af-4f46-bec1-b4ae4e1592a0.jpg)
Further **information**, **examples** and **documentation** can be found at [jointjs.com](https://jointjs.com).
:1234: Get started with [tutorials](https://resources.jointjs.com/tutorial).
:bulb: To ask a question, share feedback, or engage in a discussion with other community members, visit our [GitHub discussions](https://github.com/clientIO/joint/discussions).
:pen: More examples are available on [CodePen](https://codepen.io/jointjs).
:book: Check out our [mind-map documentation](https://resources.jointjs.com/mmap/joint.html).
## Features
* essential diagram elements (rect, circle, ellipse, text, image, path)
* ready-to-use diagram elements of well-known diagrams (ERD, Org chart, FSA, UML, PN, DEVS, ...)
* custom diagram elements based on SVG or programmatically rendered
* connecting diagram elements with links or links with links
* customizable links, their arrowheads and labels
* configurable link shapes (anchors, connection points, vertices, routers, connectors)
* custom element properties and data
* import/export from/to JSON format
* customizable element ports (look and position, distributed around shapes or manually positioned)
* rich graph API (traversal, dfs, bfs, find neighbors, predecessors, elements at point, ...)
* granular interactivity
* hierarchical diagrams (containers, embedded elements, child-parent relationships)
* element & link tools (buttons, status icons, tools to change the shape of links, ...)
* highlighters (provide visual emphasis to your elements)
* automatic layouts (arrange the elements and links automatically)
* highly event driven (react on any event that happens inside the diagram)
* zoom in/out
* touch support
* MVC architecture
* SVG based
* ... a lot more
## Supported browsers
* Latest Google Chrome (including mobile)
* Latest Firefox
* Latest Safari (including mobile)
* Latest Microsoft's Edge
* Latest Opera
## Development Environment

@@ -64,102 +14,33 @@

* [grunt-cli](http://gruntjs.com/using-the-cli)
* git
* [git](https://git-scm.com/)
* [yarn](https://yarnpkg.com/getting-started/install)
### Setup
Clone this git repository:
```
Clone the root git repository:
```bash
git clone https://github.com/clientIO/joint.git
```
Change into the joint directory:
```
Navigate to the root `joint` directory:
```bash
cd joint
```
Install all NPM dependencies:
Install all dependencies:
```bash
yarn install
```
npm install
```
Generate build files from the source code:
Generate distribution files from the source code:
```bash
yarn run dist
```
grunt install
```
You are ready now to browse our demos:
You are now ready to browse our demos:
```bash
cd packages/joint-core/demo
```
cd demo
```
Most demos can be run by simply opening the `index.html` file in your browser. Some demos have additional instructions, which you can find in their respective `README.md` files.
### Tests
To run all tests:
```
grunt test
```
To run only the server-side tests:
```
grunt test:server
```
To run only the client-side tests:
```
grunt test:client
```
### Lint
To check for linting errors in `src` and `types` directories:
```
npm run lint
```
To auto fix errors, run eslint for `src` and `types` directories:
```
npm run lint:fix
```
### Code Coverage Reports
To output a code coverage report in HTML:
```
grunt test:coverage
```
To output a code coverage report in [lcov format](http://ltp.sourceforge.net/coverage/lcov/geninfo.1.php):
```
grunt test:coverage --reporter="lcov"
```
The output for all unit tests will be saved in the `coverage` directory.
### Building Distribution Files
The `dist` directory contains pre-built distribution files. To re-build them, run the following:
```
grunt dist
```
## Documentation
The source for the *JointJS* documentation (plus *Geometry* and *Vectorizer* libraries) are included in this repository; see the `docs` directory. The documentation can be built into stand-alone HTML documents like this:
```
grunt build:docs
```
The output of the above command can be found at `build/docs`.
## Contributors
<a href="https://github.com/clientIO/joint/graphs/contributors">
<img src="https://contrib.rocks/image?repo=clientIO/joint" />
</a>
## License

@@ -166,0 +47,0 @@

@@ -12,6 +12,2 @@ // Definitions by:

/// <reference types="backbone" />
import * as Backbone from 'backbone';
export as namespace joint;

@@ -321,2 +321,6 @@ export const V: VCallable;

prototype: VElement;
attributeNames: { [key: string]: string };
supportCamelCaseAttributes: boolean;
}

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

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

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

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

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

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

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

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

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

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

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 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

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

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

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

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

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

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

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 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