Merge pull request #25 from junsikshim/examples
Converted all the examples for '@mxgraph/html'.development
|
@ -4245,6 +4245,38 @@
|
||||||
"escape-string-regexp": "^1.0.5"
|
"escape-string-regexp": "^1.0.5"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"file-loader": {
|
||||||
|
"version": "6.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/file-loader/-/file-loader-6.2.0.tgz",
|
||||||
|
"integrity": "sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"loader-utils": "^2.0.0",
|
||||||
|
"schema-utils": "^3.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"json5": {
|
||||||
|
"version": "2.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz",
|
||||||
|
"integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"minimist": "^1.2.5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"loader-utils": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"big.js": "^5.2.2",
|
||||||
|
"emojis-list": "^3.0.0",
|
||||||
|
"json5": "^2.1.2"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"fill-range": {
|
"fill-range": {
|
||||||
"version": "7.0.1",
|
"version": "7.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
|
||||||
|
@ -5368,12 +5400,6 @@
|
||||||
"integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==",
|
"integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"klona": {
|
|
||||||
"version": "2.0.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/klona/-/klona-2.0.4.tgz",
|
|
||||||
"integrity": "sha512-ZRbnvdg/NxqzC7L9Uyqzf4psi1OM4Cuc+sJAkQPjO6XkQIJTNbfK2Rsmbw8fx1p2mkZdp2FZYo2+LwXYY/uwIA==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"lerna": {
|
"lerna": {
|
||||||
"version": "4.0.0",
|
"version": "4.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/lerna/-/lerna-4.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/lerna/-/lerna-4.0.0.tgz",
|
||||||
|
@ -7270,16 +7296,6 @@
|
||||||
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
|
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"sass-loader": {
|
|
||||||
"version": "11.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-11.0.1.tgz",
|
|
||||||
"integrity": "sha512-Vp1LcP4slTsTNLEiDkTcm8zGN/XYYrZz2BZybQbliWA8eXveqA/AxsEjllQTpJbg2MzCsx/qNO48sHdZtOaxTw==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"klona": "^2.0.4",
|
|
||||||
"neo-async": "^2.6.2"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"schema-utils": {
|
"schema-utils": {
|
||||||
"version": "3.0.0",
|
"version": "3.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.0.0.tgz",
|
||||||
|
@ -8044,6 +8060,39 @@
|
||||||
"punycode": "^2.1.0"
|
"punycode": "^2.1.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"url-loader": {
|
||||||
|
"version": "4.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/url-loader/-/url-loader-4.1.1.tgz",
|
||||||
|
"integrity": "sha512-3BTV812+AVHHOJQO8O5MkWgZ5aosP7GnROJwvzLS9hWDj00lZ6Z0wNak423Lp9PBZN05N+Jk/N5Si8jRAlGyWA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"loader-utils": "^2.0.0",
|
||||||
|
"mime-types": "^2.1.27",
|
||||||
|
"schema-utils": "^3.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"json5": {
|
||||||
|
"version": "2.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz",
|
||||||
|
"integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"minimist": "^1.2.5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"loader-utils": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"big.js": "^5.2.2",
|
||||||
|
"emojis-list": "^3.0.0",
|
||||||
|
"json5": "^2.1.2"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"util-deprecate": {
|
"util-deprecate": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
|
||||||
|
|
|
@ -32,8 +32,9 @@
|
||||||
"lerna": "^4.0.0",
|
"lerna": "^4.0.0",
|
||||||
"@lerna/filter-options": "4.0.0",
|
"@lerna/filter-options": "4.0.0",
|
||||||
"prettier": "^2.2.1",
|
"prettier": "^2.2.1",
|
||||||
"sass-loader": "^11.0.1",
|
|
||||||
"style-loader": "^2.0.0",
|
"style-loader": "^2.0.0",
|
||||||
|
"url-loader": "^4.1.1",
|
||||||
|
"file-loader": "^6.2.0",
|
||||||
"webpack": "^5.32.0",
|
"webpack": "^5.32.0",
|
||||||
"webpack-cli": "^4.6.0",
|
"webpack-cli": "^4.6.0",
|
||||||
"webpack-merge": "^5.7.3",
|
"webpack-merge": "^5.7.3",
|
||||||
|
|
Before Width: | Height: | Size: 137 B After Width: | Height: | Size: 137 B |
Before Width: | Height: | Size: 70 B After Width: | Height: | Size: 70 B |
Before Width: | Height: | Size: 877 B After Width: | Height: | Size: 877 B |
Before Width: | Height: | Size: 907 B After Width: | Height: | Size: 907 B |
Before Width: | Height: | Size: 878 B After Width: | Height: | Size: 878 B |
Before Width: | Height: | Size: 843 B After Width: | Height: | Size: 843 B |
Before Width: | Height: | Size: 64 B After Width: | Height: | Size: 64 B |
Before Width: | Height: | Size: 845 B After Width: | Height: | Size: 845 B |
Before Width: | Height: | Size: 55 B After Width: | Height: | Size: 55 B |
Before Width: | Height: | Size: 74 B After Width: | Height: | Size: 74 B |
Before Width: | Height: | Size: 146 B After Width: | Height: | Size: 146 B |
Before Width: | Height: | Size: 56 B After Width: | Height: | Size: 56 B |
Before Width: | Height: | Size: 90 B After Width: | Height: | Size: 90 B |
Before Width: | Height: | Size: 276 B After Width: | Height: | Size: 276 B |
Before Width: | Height: | Size: 425 B After Width: | Height: | Size: 425 B |
Before Width: | Height: | Size: 275 B After Width: | Height: | Size: 275 B |
Before Width: | Height: | Size: 75 B After Width: | Height: | Size: 75 B |
|
@ -15,7 +15,7 @@ import mxConstants from '../util/mxConstants';
|
||||||
import mxDictionary from '../util/datatypes/mxDictionary';
|
import mxDictionary from '../util/datatypes/mxDictionary';
|
||||||
import mxCellHighlight from './mxCellHighlight';
|
import mxCellHighlight from './mxCellHighlight';
|
||||||
import mxRectangle from '../util/datatypes/mxRectangle';
|
import mxRectangle from '../util/datatypes/mxRectangle';
|
||||||
import { isAltDown, isMultiTouchEvent } from '../util/mxEventUtils';
|
import { getClientX, getClientY, isAltDown, isMultiTouchEvent } from '../util/mxEventUtils';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class: mxGraphHandler
|
* Class: mxGraphHandler
|
||||||
|
@ -1709,8 +1709,8 @@ class mxGraphHandler {
|
||||||
if (pState != null) {
|
if (pState != null) {
|
||||||
let pt = mxUtils.convertPoint(
|
let pt = mxUtils.convertPoint(
|
||||||
this.graph.container,
|
this.graph.container,
|
||||||
mxEvent.getClientX(evt),
|
getClientX(evt),
|
||||||
mxEvent.getClientY(evt)
|
getClientY(evt)
|
||||||
);
|
);
|
||||||
const alpha = mxUtils.toRadians(
|
const alpha = mxUtils.toRadians(
|
||||||
mxUtils.getValue(pState.style, mxConstants.STYLE_ROTATION) || 0
|
mxUtils.getValue(pState.style, mxConstants.STYLE_ROTATION) || 0
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
import mxEvent from '../util/event/mxEvent';
|
import mxEvent from '../util/event/mxEvent';
|
||||||
import { isAncestorNode } from '../util/mxDomUtils';
|
import { isAncestorNode } from '../util/mxDomUtils';
|
||||||
import { getSource, isAltDown, isConsumed, isShiftDown } from '../util/mxEventUtils';
|
import { getSource, isAltDown, isConsumed, isControlDown as _isControlDown, isShiftDown } from '../util/mxEventUtils';
|
||||||
import mxUtils from '../util/mxUtils';
|
import mxUtils from '../util/mxUtils';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -235,7 +235,7 @@ class mxKeyHandler {
|
||||||
* evt - Key event whose control key pressed state should be returned.
|
* evt - Key event whose control key pressed state should be returned.
|
||||||
*/
|
*/
|
||||||
isControlDown(evt) {
|
isControlDown(evt) {
|
||||||
return mxEvent.isControlDown(evt);
|
return _isControlDown(evt);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,5 +1,17 @@
|
||||||
import mxClient from './mxClient';
|
import mxClient from './mxClient';
|
||||||
|
|
||||||
|
import mxCellAttributeChange from './atomic_changes/mxCellAttributeChange';
|
||||||
|
import mxChildChange from './atomic_changes/mxChildChange';
|
||||||
|
import mxCollapseChange from './atomic_changes/mxCollapseChange';
|
||||||
|
import mxCurrentRootChange from './atomic_changes/mxCurrentRootChange';
|
||||||
|
import mxGeometryChange from './atomic_changes/mxGeometryChange';
|
||||||
|
import mxRootChange from './atomic_changes/mxRootChange';
|
||||||
|
import mxSelectionChange from './atomic_changes/mxSelectionChange';
|
||||||
|
import mxStyleChange from './atomic_changes/mxStyleChange';
|
||||||
|
import mxTerminalChange from './atomic_changes/mxTerminalChange';
|
||||||
|
import mxValueChange from './atomic_changes/mxValueChange';
|
||||||
|
import mxVisibleChange from './atomic_changes/mxVisibleChange';
|
||||||
|
|
||||||
import mxDefaultKeyHandler from './editor/mxDefaultKeyHandler';
|
import mxDefaultKeyHandler from './editor/mxDefaultKeyHandler';
|
||||||
import mxDefaultPopupMenu from './editor/mxDefaultPopupMenu';
|
import mxDefaultPopupMenu from './editor/mxDefaultPopupMenu';
|
||||||
import mxDefaultToolbar from './editor/mxDefaultToolbar';
|
import mxDefaultToolbar from './editor/mxDefaultToolbar';
|
||||||
|
@ -173,6 +185,8 @@ import mxOutline from './view/graph/mxOutline';
|
||||||
import mxPrintPreview from './view/graph/mxPrintPreview';
|
import mxPrintPreview from './view/graph/mxPrintPreview';
|
||||||
import mxSwimlaneManager from './view/graph/mxSwimlaneManager';
|
import mxSwimlaneManager from './view/graph/mxSwimlaneManager';
|
||||||
|
|
||||||
|
import '../css/common.css';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
mxClient,
|
mxClient,
|
||||||
mxLog,
|
mxLog,
|
||||||
|
@ -320,5 +334,16 @@ export default {
|
||||||
mxGestureUtils,
|
mxGestureUtils,
|
||||||
mxStringUtils,
|
mxStringUtils,
|
||||||
mxXmlUtils,
|
mxXmlUtils,
|
||||||
mxDomHelpers
|
mxDomHelpers,
|
||||||
|
mxCellAttributeChange,
|
||||||
|
mxChildChange,
|
||||||
|
mxCollapseChange,
|
||||||
|
mxCurrentRootChange,
|
||||||
|
mxGeometryChange,
|
||||||
|
mxRootChange,
|
||||||
|
mxSelectionChange,
|
||||||
|
mxStyleChange,
|
||||||
|
mxTerminalChange,
|
||||||
|
mxValueChange,
|
||||||
|
mxVisibleChange
|
||||||
};
|
};
|
||||||
|
|
|
@ -990,10 +990,11 @@ class mxCoordinateAssignment extends mxHierarchicalLayoutStage {
|
||||||
let downSegCount = 0;
|
let downSegCount = 0;
|
||||||
const upXPositions = [];
|
const upXPositions = [];
|
||||||
const downXPositions = [];
|
const downXPositions = [];
|
||||||
|
let i = 0;
|
||||||
|
|
||||||
let currentX = cell.getGeneralPurposeVariable(cell.minRank + 1);
|
let currentX = cell.getGeneralPurposeVariable(cell.minRank + 1);
|
||||||
|
|
||||||
for (let i = cell.minRank + 1; i < cell.maxRank - 1; i += 1) {
|
for (i = cell.minRank + 1; i < cell.maxRank - 1; i += 1) {
|
||||||
// Attempt to straight out the control point on the
|
// Attempt to straight out the control point on the
|
||||||
// next segment up with the current control point.
|
// next segment up with the current control point.
|
||||||
const nextX = cell.getX(i + 1);
|
const nextX = cell.getX(i + 1);
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
*/
|
*/
|
||||||
import mxHierarchicalLayoutStage from './mxHierarchicalLayoutStage';
|
import mxHierarchicalLayoutStage from './mxHierarchicalLayoutStage';
|
||||||
import mxUtils from '../../../util/mxUtils';
|
import mxUtils from '../../../util/mxUtils';
|
||||||
|
import { clone } from '../../../util/mxCloneUtils';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class: mxMinimumCycleRemover
|
* Class: mxMinimumCycleRemover
|
||||||
|
@ -85,7 +86,7 @@ class mxMinimumCycleRemover extends mxHierarchicalLayoutStage {
|
||||||
// If there are any nodes that should be nodes that the dfs can miss
|
// If there are any nodes that should be nodes that the dfs can miss
|
||||||
// these need to be processed with the dfs and the roots assigned
|
// these need to be processed with the dfs and the roots assigned
|
||||||
// correctly to form a correct internal model
|
// correctly to form a correct internal model
|
||||||
const seenNodesCopy = mxUtils.clone(seenNodes, null, true);
|
const seenNodesCopy = clone(seenNodes, null, true);
|
||||||
|
|
||||||
// Pick a random cell and dfs from it
|
// Pick a random cell and dfs from it
|
||||||
model.visit(
|
model.visit(
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
* Type definitions from the typed-mxgraph project
|
* Type definitions from the typed-mxgraph project
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import mxUtils from '../util/mxUtils';
|
|
||||||
import mxCellPath from '../view/cell/mxCellPath';
|
import mxCellPath from '../view/cell/mxCellPath';
|
||||||
import mxCodecRegistry from './mxCodecRegistry';
|
import mxCodecRegistry from './mxCodecRegistry';
|
||||||
import mxConstants from '../util/mxConstants';
|
import mxConstants from '../util/mxConstants';
|
||||||
|
@ -13,6 +12,7 @@ import mxCell from '../view/cell/mxCell';
|
||||||
import mxLog from '../util/gui/mxLog';
|
import mxLog from '../util/gui/mxLog';
|
||||||
import { getFunctionName } from '../util/mxStringUtils';
|
import { getFunctionName } from '../util/mxStringUtils';
|
||||||
import { importNode, isNode } from '../util/mxDomUtils';
|
import { importNode, isNode } from '../util/mxDomUtils';
|
||||||
|
import { createXmlDocument } from '../util/mxXmlUtils';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* XML codec for JavaScript object graphs. See {@link mxObjectCodec} for a
|
* XML codec for JavaScript object graphs. See {@link mxObjectCodec} for a
|
||||||
|
@ -120,7 +120,7 @@ import { importNode, isNode } from '../util/mxDomUtils';
|
||||||
*/
|
*/
|
||||||
class mxCodec {
|
class mxCodec {
|
||||||
constructor(document) {
|
constructor(document) {
|
||||||
this.document = document || mxUtils.createXmlDocument();
|
this.document = document || createXmlDocument();
|
||||||
this.objects = [];
|
this.objects = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ class mxArrow extends mxShape {
|
||||||
*/
|
*/
|
||||||
// augmentBoundingBox(bbox: mxRectangle): void;
|
// augmentBoundingBox(bbox: mxRectangle): void;
|
||||||
augmentBoundingBox(bbox) {
|
augmentBoundingBox(bbox) {
|
||||||
super.augmentBoundingBox.apply(bbox);
|
super.augmentBoundingBox(bbox);
|
||||||
|
|
||||||
const w = Math.max(this.arrowWidth, this.endSize);
|
const w = Math.max(this.arrowWidth, this.endSize);
|
||||||
bbox.grow((w / 2 + this.strokewidth) * this.scale);
|
bbox.grow((w / 2 + this.strokewidth) * this.scale);
|
||||||
|
|
|
@ -601,6 +601,7 @@ class mxEdgeStyle {
|
||||||
}
|
}
|
||||||
|
|
||||||
const lastInx = pts.length - 1;
|
const lastInx = pts.length - 1;
|
||||||
|
let pe = null;
|
||||||
|
|
||||||
// Adds the waypoints
|
// Adds the waypoints
|
||||||
if (controlHints != null && controlHints.length > 0) {
|
if (controlHints != null && controlHints.length > 0) {
|
||||||
|
@ -634,7 +635,7 @@ class mxEdgeStyle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const pe = pts[lastInx];
|
pe = pts[lastInx];
|
||||||
|
|
||||||
if (pe != null && hints[hints.length - 1] != null) {
|
if (pe != null && hints[hints.length - 1] != null) {
|
||||||
if (Math.abs(hints[hints.length - 1].x - pe.x) < tol) {
|
if (Math.abs(hints[hints.length - 1].x - pe.x) < tol) {
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
import mxConstants from '../../mxConstants';
|
import mxConstants from '../../mxConstants';
|
||||||
import mxPerimeter from './mxPerimeter';
|
import mxPerimeter from './mxPerimeter';
|
||||||
import mxUtils from '../../mxUtils';
|
import mxUtils from '../../mxUtils';
|
||||||
|
import { clone } from '../../mxCloneUtils';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @class mxStylesheet
|
* @class mxStylesheet
|
||||||
|
@ -190,7 +191,7 @@ class mxStylesheet {
|
||||||
const pairs = name.split(';');
|
const pairs = name.split(';');
|
||||||
|
|
||||||
if (style != null && name.charAt(0) !== ';') {
|
if (style != null && name.charAt(0) !== ';') {
|
||||||
style = mxUtils.clone(style);
|
style = clone(style);
|
||||||
} else {
|
} else {
|
||||||
style = {};
|
style = {};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import mxDragSource from './drag_pan/mxDragSource';
|
import mxDragSource from './drag_pan/mxDragSource';
|
||||||
import mxPoint from './datatypes/mxPoint';
|
import mxPoint from './datatypes/mxPoint';
|
||||||
|
import mxConstants from './mxConstants';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function: makeDraggable
|
* Function: makeDraggable
|
||||||
|
|
|
@ -17,6 +17,22 @@ module.exports = merge(base, {
|
||||||
library: 'mxgraph',
|
library: 'mxgraph',
|
||||||
libraryTarget: 'umd'
|
libraryTarget: 'umd'
|
||||||
},
|
},
|
||||||
|
module: {
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
test: /\.(sa|sc|c)ss$/,
|
||||||
|
use: ['style-loader', 'css-loader']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
test: /\.(ico|png|jpg|jpeg|gif|svg|woff|woff2|ttf|eot)$/,
|
||||||
|
loader: 'url-loader',
|
||||||
|
options: {
|
||||||
|
name: 'images/[hash].[ext]',
|
||||||
|
limit: 10000,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.optimize.LimitChunkCountPlugin({
|
new webpack.optimize.LimitChunkCountPlugin({
|
||||||
maxChunks: 1,
|
maxChunks: 1,
|
||||||
|
|
|
@ -8,3 +8,14 @@ export const parameters = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const globalTypes = {
|
||||||
|
width: {
|
||||||
|
type: 'number',
|
||||||
|
defaultValue: 800
|
||||||
|
},
|
||||||
|
height: {
|
||||||
|
type: 'number',
|
||||||
|
defaultValue: 600
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "start-storybook -p 8901"
|
"dev": "start-storybook -p 8901 -s ./public"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
|
|
Before Width: | Height: | Size: 75 B After Width: | Height: | Size: 75 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 358 B After Width: | Height: | Size: 358 B |
Before Width: | Height: | Size: 357 B After Width: | Height: | Size: 357 B |
Before Width: | Height: | Size: 373 B After Width: | Height: | Size: 373 B |
Before Width: | Height: | Size: 351 B After Width: | Height: | Size: 351 B |
Before Width: | Height: | Size: 377 B After Width: | Height: | Size: 377 B |
Before Width: | Height: | Size: 358 B After Width: | Height: | Size: 358 B |
Before Width: | Height: | Size: 469 B After Width: | Height: | Size: 469 B |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 65 B After Width: | Height: | Size: 65 B |
Before Width: | Height: | Size: 64 B After Width: | Height: | Size: 64 B |
Before Width: | Height: | Size: 859 B After Width: | Height: | Size: 859 B |
Before Width: | Height: | Size: 848 B After Width: | Height: | Size: 848 B |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 137 B |
Before Width: | Height: | Size: 278 B After Width: | Height: | Size: 278 B |
Before Width: | Height: | Size: 887 B After Width: | Height: | Size: 887 B |
Before Width: | Height: | Size: 163 B After Width: | Height: | Size: 163 B |
Before Width: | Height: | Size: 253 B After Width: | Height: | Size: 253 B |
Before Width: | Height: | Size: 80 B After Width: | Height: | Size: 80 B |
Before Width: | Height: | Size: 82 B After Width: | Height: | Size: 82 B |
After Width: | Height: | Size: 70 B |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 220 B After Width: | Height: | Size: 220 B |
Before Width: | Height: | Size: 830 B After Width: | Height: | Size: 830 B |
Before Width: | Height: | Size: 195 B After Width: | Height: | Size: 195 B |
After Width: | Height: | Size: 877 B |
Before Width: | Height: | Size: 860 B After Width: | Height: | Size: 860 B |
Before Width: | Height: | Size: 954 B After Width: | Height: | Size: 954 B |
Before Width: | Height: | Size: 582 B After Width: | Height: | Size: 582 B |
Before Width: | Height: | Size: 615 B After Width: | Height: | Size: 615 B |
Before Width: | Height: | Size: 728 B After Width: | Height: | Size: 728 B |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 540 B After Width: | Height: | Size: 540 B |
Before Width: | Height: | Size: 781 B After Width: | Height: | Size: 781 B |
Before Width: | Height: | Size: 870 B After Width: | Height: | Size: 870 B |
Before Width: | Height: | Size: 538 B After Width: | Height: | Size: 538 B |
Before Width: | Height: | Size: 914 B After Width: | Height: | Size: 914 B |
Before Width: | Height: | Size: 294 B After Width: | Height: | Size: 294 B |
Before Width: | Height: | Size: 81 B After Width: | Height: | Size: 81 B |
Before Width: | Height: | Size: 82 B After Width: | Height: | Size: 82 B |
Before Width: | Height: | Size: 517 B After Width: | Height: | Size: 517 B |
Before Width: | Height: | Size: 88 B After Width: | Height: | Size: 88 B |
Before Width: | Height: | Size: 325 B After Width: | Height: | Size: 325 B |
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 556 B After Width: | Height: | Size: 556 B |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 121 B After Width: | Height: | Size: 121 B |
Before Width: | Height: | Size: 74 B After Width: | Height: | Size: 74 B |
After Width: | Height: | Size: 907 B |
Before Width: | Height: | Size: 190 B After Width: | Height: | Size: 190 B |
After Width: | Height: | Size: 878 B |
Before Width: | Height: | Size: 857 B After Width: | Height: | Size: 857 B |
Before Width: | Height: | Size: 127 B After Width: | Height: | Size: 127 B |
Before Width: | Height: | Size: 148 B After Width: | Height: | Size: 148 B |
Before Width: | Height: | Size: 529 B After Width: | Height: | Size: 529 B |
Before Width: | Height: | Size: 580 B After Width: | Height: | Size: 580 B |
Before Width: | Height: | Size: 105 B After Width: | Height: | Size: 105 B |
Before Width: | Height: | Size: 280 B After Width: | Height: | Size: 280 B |