[tw5] Re: Who did try to insert latest d3.js into tw5?

2019-01-01 Thread kvg00mail
I just copied code from here https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/d3/cloudwidget.js which works. But I will try yours variant. среда, 2 января 2019 г., 8:56:36 UTC+3 пользователь BurningTreeC написал: > > > In the demo this code works >> >> >> .attr("viewBox",

[tw5] Re: Who did try to insert latest d3.js into tw5?

2019-01-01 Thread BurningTreeC
> In the demo this code works > > > .attr("viewBox", "0 0 960 500") > .attr("preserveAspectRatio", "xMinYMin meet") > .attr("width", width + margin.left + margin.right) > .attr("height", height + margin.top + margin.bottom); > var svgElement = d3.select(parent).insert("svg",function() {return

[tw5] Re: Who did try to insert latest d3.js into tw5?

2019-01-01 Thread kvg00mail
In the demo this code works .attr("viewBox", "0 0 960 500") .attr("preserveAspectRatio", "xMinYMin meet") .attr("width", width + margin.left + margin.right) .attr("height", height + margin.top + margin.bottom); var svgElement = d3.select(parent).insert("svg",function() {return nextSibling;})

[tw5] Re: Who did try to insert latest d3.js into tw5?

2019-01-01 Thread BurningTreeC
If you cannot access the parentDomNode, then it may be that on top of your render function "this.parentDomNode = parent;" is missing ... ? -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails f

[tw5] Re: Who did try to insert latest d3.js into tw5?

2019-01-01 Thread BurningTreeC
> I am trying by example demo d3. But latest version not working. It need > docomentOwner property to be availabel by parentnode, But tw5 does not > provide it to widget render function. > Hi , if I understand you right, you want to access the ownerDocument of the widget's parentNode? I trie