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",
> 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
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;})
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
> 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
5 matches
Mail list logo