@receptron/graphai_vue_cytoscape 0.0.5 → 0.0.6
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/lib/cytoscape.js +6 -0
- package/package.json +1 -1
package/lib/cytoscape.js
CHANGED
|
@@ -129,6 +129,12 @@ var inputs2dataSources = function (inputs) {
|
|
|
129
129
|
.map(function (input) { return (0, exports.inputs2dataSources)(input); })
|
|
130
130
|
.flat();
|
|
131
131
|
}
|
|
132
|
+
if (typeof inputs === "string") {
|
|
133
|
+
var templateMatch = Array.from(inputs.matchAll(/\${(:[^}]+)}/g)).map(function (m) { return m[1]; });
|
|
134
|
+
if (templateMatch.length > 0) {
|
|
135
|
+
return (0, exports.inputs2dataSources)(templateMatch);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
132
138
|
return inputs;
|
|
133
139
|
};
|
|
134
140
|
exports.inputs2dataSources = inputs2dataSources;
|