Comments (2)
Look for Jquery/D3 injection inside app/template-controller/graph-editor.js
d3.select("svg g").selectAll("g.node").each(function(v, idx){ console.log(v, idx, d3.select("foreignObject")); var gId = $(this).context.id; // Update rectangle box var textWidth = d3.select("foreignObject")[0][0].width.animVal.value; d3.select("rect").attr("width", textWidth); // Update recangle transformation if needed if(gId.indexOf(':')>=0){ translateX = d3.select("foreignObject")[0][0].parentNode.transform.animVal[0].matrix.e, translateX = translateX + $('#'+gId)[0].transform.animVal[0].matrix.e, transform = "translate("+translateX+",0)"; d3.select("rect").attr("transform", transform); }
The modification of the DOM seems to be a solution.
from diligentsearch.eu.
The graph rendering issue was a scale issue.
Never ever ever manipulate a graph if its scale is not equal to 1
Without this, you face some side effects applied on inner DOM elements, misunderstanding the 'transform' tag
==> Reset the zoom scale to 1 before rendering
from diligentsearch.eu.
Related Issues (20)
- Links sometimes are not loaded to connect edges to existing nodes HOT 3
- API does not work HOT 1
- Cannot remove questions HOT 1
- Adding a new question to a Block that is already been used does not work HOT 2
- adding an answer triggers immediate warning popup, even on first attempt HOT 1
- referenced app/js/server/ does not exist HOT 1
- Error: Cannot find module './db-config.js' HOT 1
- Can I export the entire database and import it onto my production server HOT 1
- Flowchart corrupted – need advice to repair HOT 2
- Inputs are duplicated each time I save HOT 1
- Saving without adding a first node removes the root HOT 1
- Change 'Default' to 'English' HOT 3
- Dropdown response time drops down HOT 2
- Return dev.outofcopyright to previous state HOT 1
- PDF print only does a screenshot HOT 5
- Print reports show different name than saved name of search. HOT 1
- I may have corrupted Italy -> phonograms HOT 1
- Dropdowns to select question don't work properly anymore HOT 3
- Italy -> Audiovisual corrupted HOT 3
- Loading saved searches prompts change notification HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diligentsearch.eu.