pub fn render(&mut self, path: &mut Vec<LayerId>, svg: &mut String) {
		if !self.work_mount_path.as_slice().starts_with(path) {
			self.layer_mut(path).unwrap().render();
			path.pop();
			return;
		}
		if path.as_slice() == self.work_mount_path {
			self.document_folder_mut(path).unwrap().render(svg);
			self.work.render(svg);
			path.pop();
		}
		let ids = self.folder(path).unwrap().layer_ids.clone();
		for element in ids {
			path.push(element);
			self.render(path, svg);
		}
	}
/// Renders the layer graph with the root `path` as an SVG string.
/// This operation merges currently mounted folder and document_folder
/// contents together.
Renders the layer graph with the root `path` as an SVG string.
This operation merges currently mounted folder and document_folder
contents together.
Renders the layer graph with the root ` path ` as an SVG string . This operation merges currently mounted folder and document_folder contents together .
pub fn render(&mut self, path: &mut Vec<LayerId>, svg: &mut String) {
		if !self.work_mount_path.as_slice().starts_with(path) {
			self.layer_mut(path).unwrap().render();
			path.pop();
			return;
		}
		if path.as_slice() == self.work_mount_path {
			self.document_folder_mut(path).unwrap().render(svg);
			self.work.render(svg);
			path.pop();
		}
		let ids = self.folder(path).unwrap().layer_ids.clone();
		for element in ids {
			path.push(element);
			self.render(path, svg);
		}
	}
pub fn render ( & mut self , path : & mut Vec < LayerId > , svg : & mut String ) { if ! self . work_mount_path . as_slice ( ) . starts_with ( path ) { self . layer_mut ( path ) . unwrap ( ) . render ( ) ; path . pop ( ) ; return ; } if path . as_slice ( ) == self . work_mount_path { self . document_folder_mut ( path ) . unwrap ( ) . render ( svg ) ; self . work . render ( svg ) ; path . pop ( ) ; } let ids = self . folder ( path ) . unwrap ( ) . layer_ids . clone ( ) ; for element in ids { path . push ( element ) ; self . render ( path , svg ) ; } }
Renders the layer graph with the root `path` as an SVG string.
Renders the layer graph with the root ` path ` as an SVG string .
&mut self
path
&mut Vec<LayerId>
svg
&mut String