Set edge length with circle layout in cytoscape.js - cytoscape.js

Using cytoscape.js how to set the length of all edges in graph having 'circle' layout as well as with 'grid' layout?
Thanks !

In general, that's not possible for a grid nor a circle. You may achieve something similar with the concentric layout with appropriately set levels.

Related

Alpha overlay not rendering correctly in Eevee Blender, but display correctly in viewport

I have two textures with transparency overlaying on top of each other (the hair, as a multiple alpha overlay) via Material nodes. At first the overlay would not display correctly (one texture would cancel the other out), which I solved following this thread:
https://blender.stackexchange.com/questions/86617/how-to-stack-layer-two-textures-with-alpha-over-each-other-with-material-nodes/239331?noredirect=1#comment405876_239331
I solved the problem in the viewport, however when I render the image the alpha textures again display incorrectly, see screenshot:
Alpha Render Problem Screenshot
Playing with the material settings did not change the rendered result. I'm not sure how to go about solving this - any help is appreciated and thank you!
I FOUND THE SOLUTION:
The Solidify Modifier (for correct backface culling) wasn't enabled in the render view, only in viewport 🤦🏻‍♀️

How to resize the legend label in Matplotlib Graph

I wish to resize the Population label seen in the legend, I want the circle to be smaller than it is right now. How do I do that ?
There are many ways to do this, but the easiest is to set the desired size in the legend. That size will be a manual setting.
plt.legend(markerscale=0.5)

Do not scale ScrollViewer children, that are inside Canvas

I have a ScrollViewer which has a Canvas inside it. To make this construction support panning, I'm setting MinZoomFactor and MaxZoomFactor to 4.
Is it possible to NOT apply scale on elements that are added later at runtime to the canvas? How can I achieve it? LayoutTransform is not available in WinRT, and I didn't manage to apply RenderTransform.Inverse to canvas child elements to compensate scale.
Thanks.
No, there's no way to allow the ScrollViewer to scroll / zoom some of its contents but not others. If you don't want the Canvas to scroll / zoom at all then you can place it on top of rather than in the ScrollViewer.
If you want to allow it to scroll but not to zoom then you can try applying an inverse ScaleTransform to it by setting the ScaleX and ScaleY values to 1 / ScrollViewer.ZoomFactor .

cytoscape.js How to remove the grey circle when panning

i use cytoscape.js. to draw Node Graphs
if i pan the Graph with Mouse, there is a grey circle on my mouse position.
I have no Idea how to remove this.
Can you help me please?
Thank you :)
Only Overwrite the Core style for remove grey circle:
.selector('core') // just core properties
.css({
'active-bg-size': 0
})
How about centering the arrow on the active background indicator. Right now there is a small padding (arrow slightly decentered) which causes improper click on edges. Thank you !
What you are describing is the active state on the background, indicated by the semitransparent circle around the cursor (or your finger on touch). For reasons of consistency across platforms and providing feedback to the user, this feature is not disableable. What we could do simply is allow the active area to be styled so you could effectively hide it. -M https://github.com/cytoscape/cytoscape.js/issues/337

quartz making opacity like in paths

When I set opacity to 0.5,create path and draw it even on self-intersections of this path opacity is the same with other parts of this path. Is there any way to make this effect in other cases? for example when I draw 2 images of same color and opacity in their intersection there is that opacity too.
You might be able to get the effect you want by changing the blending mode before drawing the images into your context. You can use CGContextSetBlendMode to set the blending mode. You can find the list of blending modes in the CGContext Reference. I suggest trying kCGBlendModeDarken or kCGBlendModeLighten first. Try some others if neither of those does what you want.