mirror of
				https://github.com/ZetaKebab/quartz.git
				synced 2025-11-03 22:49:47 +00:00 
			
		
		
		
	fix(graph): set container as renderGroup to avoid redrawing multiple times (#1736)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
		@@ -370,9 +370,9 @@ async function renderGraph(container: string, fullSlug: FullSlug) {
 | 
			
		||||
  const stage = app.stage
 | 
			
		||||
  stage.interactive = false
 | 
			
		||||
 | 
			
		||||
  const labelsContainer = new Container<Text>({ zIndex: 3 })
 | 
			
		||||
  const nodesContainer = new Container<Graphics>({ zIndex: 2 })
 | 
			
		||||
  const linkContainer = new Container<Graphics>({ zIndex: 1 })
 | 
			
		||||
  const labelsContainer = new Container<Text>({ zIndex: 3, isRenderGroup: true })
 | 
			
		||||
  const nodesContainer = new Container<Graphics>({ zIndex: 2, isRenderGroup: true })
 | 
			
		||||
  const linkContainer = new Container<Graphics>({ zIndex: 1, isRenderGroup: true })
 | 
			
		||||
  stage.addChild(nodesContainer, labelsContainer, linkContainer)
 | 
			
		||||
 | 
			
		||||
  for (const n of graphData.nodes) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user