@joint/core 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/geometry.js +1 -1
- package/dist/geometry.min.js +1 -1
- package/dist/joint.d.ts +1 -1
- package/dist/joint.js +2 -2
- package/dist/joint.min.js +2 -2
- package/dist/joint.nowrap.js +2 -2
- package/dist/joint.nowrap.min.js +2 -2
- package/dist/vectorizer.js +1 -1
- package/dist/vectorizer.min.js +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +2 -3
- package/src/core.mjs +48 -0
package/dist/vectorizer.js
CHANGED
package/dist/vectorizer.min.js
CHANGED
package/dist/version.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@joint/core",
|
|
3
3
|
"title": "JointJS",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.1",
|
|
5
5
|
"description": "JavaScript diagramming library",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/joint.min.js",
|
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
"files": [
|
|
58
58
|
"dist/",
|
|
59
59
|
"src/",
|
|
60
|
-
"!src/core.mjs",
|
|
61
60
|
"types/*.d.ts",
|
|
62
61
|
"./index.js",
|
|
63
62
|
"./joint.mjs",
|
|
@@ -189,4 +188,4 @@
|
|
|
189
188
|
"finder",
|
|
190
189
|
"shortest-path-finder"
|
|
191
190
|
]
|
|
192
|
-
}
|
|
191
|
+
}
|
package/src/core.mjs
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as connectors from './connectors/index.mjs';
|
|
2
|
+
import * as highlighters from './highlighters/index.mjs';
|
|
3
|
+
import * as connectionPoints from './connectionPoints/index.mjs';
|
|
4
|
+
import * as connectionStrategies from './connectionStrategies/index.mjs';
|
|
5
|
+
import * as routers from './routers/index.mjs';
|
|
6
|
+
import * as anchors from './anchors/index.mjs';
|
|
7
|
+
import * as linkAnchors from './linkAnchors/index.mjs';
|
|
8
|
+
import * as dia from './dia/index.mjs';
|
|
9
|
+
import * as linkTools from './linkTools/index.mjs';
|
|
10
|
+
import * as elementTools from './elementTools/index.mjs';
|
|
11
|
+
import * as util from './util/index.mjs';
|
|
12
|
+
import * as mvc from './mvc/index.mjs';
|
|
13
|
+
import * as g from './g/index.mjs';
|
|
14
|
+
import { config } from './config/index.mjs';
|
|
15
|
+
import V from './V/index.mjs';
|
|
16
|
+
import * as Port from './layout/ports/port.mjs';
|
|
17
|
+
import * as PortLabel from './layout/ports/portLabel.mjs';
|
|
18
|
+
|
|
19
|
+
export * from '../dist/version.mjs';
|
|
20
|
+
export const Vectorizer = V;
|
|
21
|
+
export const layout = { PortLabel, Port };
|
|
22
|
+
export { env } from './env/index.mjs';
|
|
23
|
+
export {
|
|
24
|
+
config,
|
|
25
|
+
anchors,
|
|
26
|
+
linkAnchors,
|
|
27
|
+
connectionPoints,
|
|
28
|
+
connectionStrategies,
|
|
29
|
+
connectors,
|
|
30
|
+
dia,
|
|
31
|
+
highlighters,
|
|
32
|
+
mvc,
|
|
33
|
+
routers,
|
|
34
|
+
util,
|
|
35
|
+
linkTools,
|
|
36
|
+
elementTools,
|
|
37
|
+
V,
|
|
38
|
+
g
|
|
39
|
+
};
|
|
40
|
+
export const setTheme = function(theme, opt) {
|
|
41
|
+
|
|
42
|
+
opt = opt || {};
|
|
43
|
+
|
|
44
|
+
util.invoke(mvc.views, 'setTheme', theme, opt);
|
|
45
|
+
|
|
46
|
+
// Update the default theme on the view prototype.
|
|
47
|
+
mvc.View.prototype.defaultTheme = theme;
|
|
48
|
+
};
|