Compare commits
	
		
			3 Commits
		
	
	
		
			feat/styli
			...
			d6c390f3c5
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| d6c390f3c5 | |||
| bbc8bb0339 | |||
| f39e14654a | 
| @@ -39,5 +39,5 @@ | ||||
|   } | ||||
|   _grp(name, desc: desc, type: "loop", elmts) | ||||
| } | ||||
| #let _opt(desc, elmts) = grp("opt", desc: desc, type: "opt", elmts) | ||||
| #let _break(desc, elmts) = grp("break", desc: desc, type: "break", elmts) | ||||
| #let _opt(desc, elmts) = _grp("opt", desc: desc, type: "opt", elmts) | ||||
| #let _break(desc, elmts) = _grp("break", desc: desc, type: "break", elmts) | ||||
|   | ||||
							
								
								
									
										4
									
								
								tests/special-group/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								tests/special-group/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| # generated by tytanic, do not edit | ||||
|  | ||||
| diff/** | ||||
| out/** | ||||
							
								
								
									
										
											BIN
										
									
								
								tests/special-group/ref/1.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								tests/special-group/ref/1.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 12 KiB | 
							
								
								
									
										
											BIN
										
									
								
								tests/special-group/ref/2.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								tests/special-group/ref/2.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 11 KiB | 
							
								
								
									
										
											BIN
										
									
								
								tests/special-group/ref/3.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								tests/special-group/ref/3.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 17 KiB | 
							
								
								
									
										
											BIN
										
									
								
								tests/special-group/ref/4.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								tests/special-group/ref/4.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 8.3 KiB | 
							
								
								
									
										
											BIN
										
									
								
								tests/special-group/ref/5.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								tests/special-group/ref/5.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 8.3 KiB | 
							
								
								
									
										71
									
								
								tests/special-group/test.typ
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										71
									
								
								tests/special-group/test.typ
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,71 @@ | ||||
| #set page(width: auto, height: auto) | ||||
| #import "/src/lib.typ": * | ||||
|  | ||||
| #let preamble = { | ||||
|   _par("a", display-name: [Alice]) | ||||
|   _par("b", display-name: [Bob]) | ||||
|   _col("a", "b", width: 2cm) | ||||
| } | ||||
|  | ||||
| #diagram({ | ||||
|   preamble | ||||
|   _grp("Group 1", { | ||||
|     _seq("a", "b") | ||||
|   }) | ||||
|   _grp("Group 2", desc: [Description], { | ||||
|     _seq("a", "b") | ||||
|   }) | ||||
| }) | ||||
|  | ||||
| #pagebreak() | ||||
|  | ||||
| #diagram({ | ||||
|   preamble | ||||
|   _alt( | ||||
|     "case 1", { | ||||
|       _seq("a", "b") | ||||
|     }, | ||||
|     "case 2", { | ||||
|       _seq("a", "b") | ||||
|     }, | ||||
|     "case 3", { | ||||
|       _seq("a", "b") | ||||
|     } | ||||
|   ) | ||||
| }) | ||||
|  | ||||
| #pagebreak() | ||||
|  | ||||
| #diagram({ | ||||
|   preamble | ||||
|   _loop("loop 1", { | ||||
|     _seq("a", "b") | ||||
|   }) | ||||
|   _loop("loop 2", min: 1, { | ||||
|     _seq("a", "b") | ||||
|   }) | ||||
|   _loop("loop 3", max: 10, { | ||||
|     _seq("a", "b") | ||||
|   }) | ||||
|   _loop("loop 3", min: 1, max: 10, { | ||||
|     _seq("a", "b") | ||||
|   }) | ||||
| }) | ||||
|  | ||||
| #pagebreak() | ||||
|  | ||||
| #diagram({ | ||||
|   preamble | ||||
|   _opt("Optional", { | ||||
|     _seq("a", "b") | ||||
|   }) | ||||
| }) | ||||
|  | ||||
| #pagebreak() | ||||
|  | ||||
| #diagram({ | ||||
|   preamble | ||||
|   _break("Break", { | ||||
|     _seq("a", "b") | ||||
|   }) | ||||
| }) | ||||
		Reference in New Issue
	
	Block a user