capdag 0.189.485 → 0.191.491
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/cap-fab-renderer.js +3 -1
- package/capdag.js +6 -6
- package/package.json +1 -1
package/cap-fab-renderer.js
CHANGED
|
@@ -382,9 +382,11 @@ function layoutForMode(mode) {
|
|
|
382
382
|
'elk.layered.spacing.nodeNodeBetweenLayers': 220,
|
|
383
383
|
'elk.layered.spacing.edgeEdgeBetweenLayers': 44,
|
|
384
384
|
'elk.layered.spacing.edgeNodeBetweenLayers': 52,
|
|
385
|
+
'elk.layered.spacing.baseValue': 40,
|
|
386
|
+
'elk.layered.nodePlacement.favorStraightEdges': true,
|
|
385
387
|
'elk.spacing.edgeEdge': 34,
|
|
386
388
|
'elk.spacing.edgeNode': 42,
|
|
387
|
-
'elk.spacing.nodeNode':
|
|
389
|
+
'elk.spacing.nodeNode': 168,
|
|
388
390
|
});
|
|
389
391
|
}
|
|
390
392
|
if (mode === 'strand') {
|
package/capdag.js
CHANGED
|
@@ -1759,19 +1759,19 @@ const DEFAULT_SCHEMA_BASE = 'https://capdag.com/schema';
|
|
|
1759
1759
|
* Get the schema base URL from environment variables or default
|
|
1760
1760
|
*
|
|
1761
1761
|
* Checks in order:
|
|
1762
|
-
* 1.
|
|
1763
|
-
* 2.
|
|
1762
|
+
* 1. CDG_SCHEMA_BASE_URL environment variable
|
|
1763
|
+
* 2. CDG_FABRIC_REGISTRY_URL environment variable + "/schema"
|
|
1764
1764
|
* 3. Default: "https://capdag.com/schema"
|
|
1765
1765
|
*
|
|
1766
1766
|
* @returns {string} The schema base URL
|
|
1767
1767
|
*/
|
|
1768
1768
|
function getSchemaBaseURL() {
|
|
1769
1769
|
if (typeof process !== 'undefined' && process.env) {
|
|
1770
|
-
if (process.env.
|
|
1771
|
-
return process.env.
|
|
1770
|
+
if (process.env.CDG_SCHEMA_BASE_URL) {
|
|
1771
|
+
return process.env.CDG_SCHEMA_BASE_URL;
|
|
1772
1772
|
}
|
|
1773
|
-
if (process.env.
|
|
1774
|
-
return process.env.
|
|
1773
|
+
if (process.env.CDG_FABRIC_REGISTRY_URL) {
|
|
1774
|
+
return process.env.CDG_FABRIC_REGISTRY_URL + '/schema';
|
|
1775
1775
|
}
|
|
1776
1776
|
}
|
|
1777
1777
|
return DEFAULT_SCHEMA_BASE;
|
package/package.json
CHANGED