Integrating JointJS into an OutSystems page #2727
Unanswered
MarloweMich
asked this question in
Q&A
Replies: 1 comment 6 replies
-
As for the sample graph in the Kitchen Sink application, it is loaded on // Waiting for all the fonts to load before we render the default canvas content.
window.addEventListener('load', () => {
app.graph.fromJSON(JSON.parse(App.config.sampleGraphs.emergencyProcedure));
}); You can try to load it synchronously for instance. What about Selection or FreeTransform? Do they show up? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Introduction
Issues with Integration: The nodes formed from the data given in sample-graphs.js does not show up. The "halo" as defined in halo.js does not show up visibly and cannot be interacted with, though all the widgets surrounding the node show up in the DOM elements (just not interactable). Explanation of process below:
Steps to reproduce
Using trial version for a proof of concept to make a process flow map within an OutSystems app.
Using the JavaScript version of Kitchen Sink demo app (external scripts in OutSystems are vanilla JS).
Imported all the various scripts listed on the index html within the demo app as required scripts on the OutSystems page in this order:
Loaded the various CSS files into the style sheet for the page:
style.css
style.dark.css
style.material.css
style.modern.css
theme-picker.css
joint-plus.css
With all the scripts imported started giving an error on loading of the page "Debugger already running". The scripts somehow triggered OutSystems JavaScript debugger several times. Combined all the scripts into one giant JS file and loaded that as a required script. Screen showed up. Only two issues is that halo.js and sample-graphs.js do not seem to trigger, as the nodes are not created from the sample JSON as it does when I run the demo locally with npm start nor does the halo show up.
Any ideas or similar experiences?
Restrictions & Constraints
no limitations I know of
Does your question relate to JointJS or JointJS+. Select both if applicable.
JointJS+
Beta Was this translation helpful? Give feedback.
All reactions