mirror of
https://github.com/projectstorm/react-diagrams.git
synced 2026-03-13 09:50:09 +08:00
Compare commits
4 Commits
v6.0.0-alp
...
v6.0.0-alp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
45649146c9 | ||
|
|
74e24331ed | ||
|
|
0cc469fa44 | ||
|
|
0b78ba69c6 |
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"npmClient": "yarn",
|
||||
"useWorkspaces": true,
|
||||
"version": "6.0.0-alpha.4.0"
|
||||
"version": "6.0.0-alpha.4.1"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@projectstorm/react-diagrams",
|
||||
"version": "6.0.0-alpha.4.0",
|
||||
"version": "6.0.0-alpha.4.1",
|
||||
"author": "dylanvorster",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -8,7 +8,8 @@
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rm -rf ./dist",
|
||||
"build": "../node_modules/.bin/webpack"
|
||||
"build": "../node_modules/.bin/webpack",
|
||||
"build:prod": "NODE_ENV=production ../node_modules/.bin/webpack"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
@@ -27,16 +28,9 @@
|
||||
"main": "./dist/index.js",
|
||||
"typings": "./dist/@types/index",
|
||||
"dependencies": {
|
||||
"@projectstorm/react-diagrams-core": "^6.0.0-alpha.4.0",
|
||||
"@projectstorm/react-diagrams-defaults": "^6.0.0-alpha.4.0",
|
||||
"@projectstorm/react-diagrams-routing": "^6.0.0-alpha.4.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"closest": "^0.0.1",
|
||||
"lodash": "4.*",
|
||||
"pathfinding": "^0.4.18",
|
||||
"paths-js": "^0.4.9",
|
||||
"react": "16.*"
|
||||
"@projectstorm/react-diagrams-core": "^6.0.0-alpha.4.1",
|
||||
"@projectstorm/react-diagrams-defaults": "^6.0.0-alpha.4.1",
|
||||
"@projectstorm/react-diagrams-routing": "^6.0.0-alpha.4.1"
|
||||
},
|
||||
"gitHead": "bb878657ba0c2f81764f32901fd96158a0f8352e"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@projectstorm/react-diagrams-core",
|
||||
"version": "6.0.0-alpha.4.0",
|
||||
"version": "6.0.0-alpha.4.1",
|
||||
"author": "dylanvorster",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -8,7 +8,8 @@
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rm -rf ./dist",
|
||||
"build": "../node_modules/.bin/webpack"
|
||||
"build": "../node_modules/.bin/webpack",
|
||||
"build:prod": "NODE_ENV=production ../node_modules/.bin/webpack"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
@@ -27,7 +28,7 @@
|
||||
"main": "./dist/index.js",
|
||||
"typings": "./dist/@types/index",
|
||||
"dependencies": {
|
||||
"@projectstorm/react-diagrams-geometry": "^6.0.0-alpha.4.0"
|
||||
"@projectstorm/react-diagrams-geometry": "^6.0.0-alpha.4.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"closest": "^0.0.1",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@projectstorm/react-diagrams-defaults",
|
||||
"version": "6.0.0-alpha.4.0",
|
||||
"version": "6.0.0-alpha.4.1",
|
||||
"author": "dylanvorster",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -8,7 +8,8 @@
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rm -rf ./dist",
|
||||
"build": "../node_modules/.bin/webpack"
|
||||
"build": "../node_modules/.bin/webpack",
|
||||
"build:prod": "NODE_ENV=production ../node_modules/.bin/webpack"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
@@ -27,13 +28,12 @@
|
||||
"main": "./dist/index.js",
|
||||
"typings": "./dist/@types/index",
|
||||
"dependencies": {
|
||||
"@projectstorm/react-diagrams-core": "^6.0.0-alpha.4.0"
|
||||
"@projectstorm/react-diagrams-core": "^6.0.0-alpha.4.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"closest": "^0.0.1",
|
||||
"@emotion/core": "^10.*",
|
||||
"@emotion/styled": "^10.*",
|
||||
"lodash": "4.*",
|
||||
"pathfinding": "^0.4.18",
|
||||
"paths-js": "^0.4.9",
|
||||
"react": "16.*"
|
||||
},
|
||||
"gitHead": "bb878657ba0c2f81764f32901fd96158a0f8352e"
|
||||
|
||||
@@ -1,10 +1,19 @@
|
||||
import createEngine, { DiagramModel, DefaultNodeModel, DiagramWidget } from '@projectstorm/react-diagrams';
|
||||
import createEngine, {
|
||||
DiagramModel,
|
||||
DefaultNodeModel,
|
||||
DiagramWidget,
|
||||
MoveItemsActionFactory
|
||||
} from "@projectstorm/react-diagrams";
|
||||
import * as React from 'react';
|
||||
|
||||
export default () => {
|
||||
//1) setup the diagram engine
|
||||
var engine = createEngine();
|
||||
|
||||
// ############################################ MAGIC HAPPENS HERE
|
||||
engine.getActionFactories().registerFactory(new MoveItemsActionFactory({allowLooseLinks: false}));
|
||||
// ############################################ MAGIC HAPPENS HERE
|
||||
|
||||
//2) setup the diagram model
|
||||
var model = new DiagramModel();
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@projectstorm/react-diagrams-gallery",
|
||||
"version": "6.0.0-alpha.4.0",
|
||||
"version": "6.0.0-alpha.4.1",
|
||||
"author": "dylanvorster",
|
||||
"private": true,
|
||||
"repository": {
|
||||
@@ -9,7 +9,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"start": "../node_modules/.bin/start-storybook",
|
||||
"build": "../node_modules/.bin/build-storybook -c .storybook -o .out",
|
||||
"storybook:build": "../node_modules/.bin/build-storybook -c .storybook -o .out",
|
||||
"github": "../node_modules/.bin/storybook-to-ghpages",
|
||||
"test:run": "../node_modules/.bin/jest --no-cache",
|
||||
"test": "yarn build && yarn test:run"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@projectstorm/react-diagrams-demo",
|
||||
"version": "6.0.0-alpha.4.0",
|
||||
"version": "6.0.0-alpha.4.1",
|
||||
"author": "dylanvorster",
|
||||
"private": true,
|
||||
"repository": {
|
||||
@@ -24,7 +24,7 @@
|
||||
"main": "./dist/index.js",
|
||||
"typings": "./dist/@types/index",
|
||||
"dependencies": {
|
||||
"@projectstorm/react-diagrams": "^6.0.0-alpha.4.0"
|
||||
"@projectstorm/react-diagrams": "^6.0.0-alpha.4.1"
|
||||
},
|
||||
"gitHead": "bb878657ba0c2f81764f32901fd96158a0f8352e"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@projectstorm/react-diagrams-geometry",
|
||||
"version": "6.0.0-alpha.4.0",
|
||||
"version": "6.0.0-alpha.4.1",
|
||||
"author": "dylanvorster",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -8,7 +8,8 @@
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rm -rf ./dist",
|
||||
"build": "../node_modules/.bin/webpack"
|
||||
"build": "../node_modules/.bin/webpack",
|
||||
"build:prod": "NODE_ENV=production ../node_modules/.bin/webpack"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@projectstorm/react-diagrams-routing",
|
||||
"version": "6.0.0-alpha.4.0",
|
||||
"version": "6.0.0-alpha.4.1",
|
||||
"author": "dylanvorster",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -9,6 +9,7 @@
|
||||
"scripts": {
|
||||
"clean": "rm -rf ./dist",
|
||||
"build": "../node_modules/.bin/webpack",
|
||||
"build:prod": "NODE_ENV=production ../node_modules/.bin/webpack",
|
||||
"test": "../node_modules/.bin/jest --no-cache"
|
||||
},
|
||||
"publishConfig": {
|
||||
@@ -28,12 +29,11 @@
|
||||
"main": "./dist/index.js",
|
||||
"typings": "./dist/@types/index",
|
||||
"dependencies": {
|
||||
"@projectstorm/react-diagrams-core": "^6.0.0-alpha.4.0",
|
||||
"@projectstorm/react-diagrams-defaults": "^6.0.0-alpha.4.0",
|
||||
"@projectstorm/react-diagrams-geometry": "^6.0.0-alpha.4.0"
|
||||
"@projectstorm/react-diagrams-core": "^6.0.0-alpha.4.1",
|
||||
"@projectstorm/react-diagrams-defaults": "^6.0.0-alpha.4.1",
|
||||
"@projectstorm/react-diagrams-geometry": "^6.0.0-alpha.4.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"closest": "^0.0.1",
|
||||
"dagre": "^0.8.4",
|
||||
"lodash": "4.*",
|
||||
"pathfinding": "^0.4.18",
|
||||
|
||||
@@ -29,8 +29,11 @@
|
||||
],
|
||||
"scripts": {
|
||||
"build": "yarn build:clean && lerna run build --stream",
|
||||
"build:prod": "yarn build:clean && lerna run build:prod --stream",
|
||||
"watch": "yarn build:clean && lerna run watch --stream",
|
||||
"publish:npm": "lerna publish",
|
||||
"publish:dev": "yarn build:prod && lerna publish --force-publish --dist-tag=next",
|
||||
"publish:prod": "yarn build:prod && lerna publish --force-publish",
|
||||
"publish:storybook": "cd lib-demo-gallery && yarn storybook:build && ../node_modules/.bin/storybook-to-ghpages --existing-output-dir .out",
|
||||
"build:clean": "lerna run clean --stream",
|
||||
"test": "lerna run test --stream",
|
||||
"test:ci": "lerna run test --stream -- --runInBand --ci ",
|
||||
@@ -55,10 +58,10 @@
|
||||
"@storybook/storybook-deployer": "^2.8.1",
|
||||
"@storybook/theming": "^5.1.9",
|
||||
"@types/dagre": "^0.7.42",
|
||||
"@types/jest": "^24.0.15",
|
||||
"@types/jest": "^24.0.16",
|
||||
"@types/jest-environment-puppeteer": "^4.0.0",
|
||||
"@types/lodash": "^4.14.136",
|
||||
"@types/mathjs": "^6.0.0",
|
||||
"@types/mathjs": "^6.0.1",
|
||||
"@types/node": "^12.6.8",
|
||||
"@types/promise": "^7.1.30",
|
||||
"@types/puppeteer": "^1.19.0",
|
||||
|
||||
@@ -41,4 +41,4 @@ module.exports = (directory) => {
|
||||
minimizer: [new TerserPlugin()],
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
16
yarn.lock
16
yarn.lock
@@ -2587,10 +2587,10 @@
|
||||
dependencies:
|
||||
"@types/puppeteer" "*"
|
||||
|
||||
"@types/jest@^24.0.15":
|
||||
version "24.0.15"
|
||||
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-24.0.15.tgz#6c42d5af7fe3b44ffff7cc65de7bf741e8fa427f"
|
||||
integrity sha512-MU1HIvWUme74stAoc3mgAi+aMlgKOudgEvQDIm1v4RkrDudBh1T+NFp5sftpBAdXdx1J0PbdpJ+M2EsSOi1djA==
|
||||
"@types/jest@^24.0.16":
|
||||
version "24.0.16"
|
||||
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-24.0.16.tgz#8d3e406ec0f0dc1688d6711af3062ff9bd428066"
|
||||
integrity sha512-JrAiyV+PPGKZzw6uxbI761cHZ0G7QMOHXPhtSpcl08rZH6CswXaaejckn3goFKmF7M3nzEoJ0lwYCbqLMmjziQ==
|
||||
dependencies:
|
||||
"@types/jest-diff" "*"
|
||||
|
||||
@@ -2599,10 +2599,10 @@
|
||||
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.136.tgz#413e85089046b865d960c9ff1d400e04c31ab60f"
|
||||
integrity sha512-0GJhzBdvsW2RUccNHOBkabI8HZVdOXmXbXhuKlDEd5Vv12P7oAVGfomGp3Ne21o5D/qu1WmthlNKFaoZJJeErA==
|
||||
|
||||
"@types/mathjs@^6.0.0":
|
||||
version "6.0.0"
|
||||
resolved "https://registry.yarnpkg.com/@types/mathjs/-/mathjs-6.0.0.tgz#5f00e276fbcd4d59d3bb54230b775383db4729a3"
|
||||
integrity sha512-5lQUtV1ukuKGTbeFMb3R8Uan3cBcQ8/H6aZfybkcxCx8NmqSOprwU4bAI/RCU1Q+5fHTGU4Ru8FAZOfsqYL03A==
|
||||
"@types/mathjs@^6.0.1":
|
||||
version "6.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@types/mathjs/-/mathjs-6.0.1.tgz#104345736853e1312b2bce74313235fdab835aaa"
|
||||
integrity sha512-AsRCEz0cChGnmfo05bCYP25OSWKT8SVjBMRYodQAjQO8od+MQkHZBXGzhBz2l6JbVuwScdQap+2RT9tUaQv6tA==
|
||||
dependencies:
|
||||
decimal.js "^10.0.0"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user