forked from HEL/chronos
		
	reorganized imports
This commit is contained in:
		@@ -1,5 +1,6 @@
 | 
			
		||||
#import "../utils.typ": get-ctx, set-ctx
 | 
			
		||||
#import "../../cetz.typ": draw
 | 
			
		||||
#import "/src/cetz.typ": draw
 | 
			
		||||
 | 
			
		||||
#import "/src/core/utils.typ": get-ctx, set-ctx
 | 
			
		||||
 | 
			
		||||
#let render(delay) = get-ctx(ctx => {
 | 
			
		||||
  let y0 = ctx.y
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,5 @@
 | 
			
		||||
#import "../utils.typ": get-ctx, set-ctx
 | 
			
		||||
#import "../../consts.typ": *
 | 
			
		||||
#import "/src/consts.typ": *
 | 
			
		||||
#import "/src/core/utils.typ": get-ctx, set-ctx
 | 
			
		||||
 | 
			
		||||
#let render(evt) = get-ctx(ctx => {
 | 
			
		||||
  let par-name = evt.participant
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,7 @@
 | 
			
		||||
#import "../utils.typ": get-ctx, set-ctx
 | 
			
		||||
#import "../../consts.typ": *
 | 
			
		||||
#import "../../cetz.typ": draw
 | 
			
		||||
#import "/src/cetz.typ": draw
 | 
			
		||||
 | 
			
		||||
#import "/src/consts.typ": *
 | 
			
		||||
#import "/src/core/utils.typ": get-ctx, set-ctx
 | 
			
		||||
 | 
			
		||||
#let render-start(grp) = get-ctx(ctx => {
 | 
			
		||||
  let grp = grp
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,7 @@
 | 
			
		||||
#import "../../consts.typ": *
 | 
			
		||||
#import "../utils.typ": get-ctx, set-ctx
 | 
			
		||||
#import "../../cetz.typ": draw
 | 
			
		||||
#import "/src/cetz.typ": draw
 | 
			
		||||
 | 
			
		||||
#import "/src/consts.typ": *
 | 
			
		||||
#import "/src/core/utils.typ": get-ctx, set-ctx
 | 
			
		||||
 | 
			
		||||
#let get-size(note) = {
 | 
			
		||||
  let PAD = if note.shape == "hex" {NOTE-HEX-PAD} else {NOTE-PAD}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,7 @@
 | 
			
		||||
#import "../../consts.typ": *
 | 
			
		||||
#import "../../cetz.typ": draw
 | 
			
		||||
#import "../utils.typ": get-ctx, set-ctx, get-style
 | 
			
		||||
#import "/src/cetz.typ": draw
 | 
			
		||||
 | 
			
		||||
#import "/src/consts.typ": *
 | 
			
		||||
#import "/src/core/utils.typ": get-ctx, get-style, set-ctx
 | 
			
		||||
 | 
			
		||||
#let get-size(par) = {
 | 
			
		||||
  if par.invisible {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,7 @@
 | 
			
		||||
#import "../utils.typ": get-ctx, set-ctx
 | 
			
		||||
#import "../../consts.typ": *
 | 
			
		||||
#import "../../cetz.typ": draw
 | 
			
		||||
#import "/src/cetz.typ": draw
 | 
			
		||||
 | 
			
		||||
#import "/src/consts.typ": *
 | 
			
		||||
#import "/src/core/utils.typ": get-ctx, set-ctx
 | 
			
		||||
 | 
			
		||||
#let render(sep) = get-ctx(ctx => {
 | 
			
		||||
  ctx.y -= Y-SPACE
 | 
			
		||||
 
 | 
			
		||||
@@ -1,8 +1,8 @@
 | 
			
		||||
#import "../utils.typ": get-ctx, set-ctx
 | 
			
		||||
#import "../../consts.typ": *
 | 
			
		||||
#import "../../cetz.typ": draw, vector
 | 
			
		||||
#import "note.typ"
 | 
			
		||||
#import "/src/cetz.typ": draw, vector
 | 
			
		||||
 | 
			
		||||
#import "note.typ"
 | 
			
		||||
#import "/src/consts.typ": *
 | 
			
		||||
#import "/src/core/utils.typ": get-ctx, set-ctx
 | 
			
		||||
 | 
			
		||||
#let get-arrow-marks(sym, color) = {
 | 
			
		||||
  if sym == none {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
#import "../utils.typ": get-ctx, set-ctx, is-elmt
 | 
			
		||||
#import "/src/core/utils.typ": get-ctx, is-elmt, set-ctx
 | 
			
		||||
 | 
			
		||||
#let render(sync) = get-ctx(ctx => {
 | 
			
		||||
  set-ctx(c => {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,14 +1,13 @@
 | 
			
		||||
#import "/src/cetz.typ" as cetz: canvas, draw
 | 
			
		||||
#import "utils.typ": *
 | 
			
		||||
#import "../group.typ"
 | 
			
		||||
//#import "../participant.typ"
 | 
			
		||||
//#import participant: PAR-SPECIALS
 | 
			
		||||
#import "draw/participant.typ"
 | 
			
		||||
#import "../sequence.typ"
 | 
			
		||||
#import "../separator.typ"
 | 
			
		||||
#import "../sync.typ"
 | 
			
		||||
#import "../consts.typ": *
 | 
			
		||||
#import "/src/cetz.typ": canvas, draw
 | 
			
		||||
 | 
			
		||||
#import "draw/note.typ": get-box as get-note-box, get-size as get-note-size
 | 
			
		||||
#import "draw/participant.typ"
 | 
			
		||||
#import "utils.typ": *
 | 
			
		||||
#import "/src/consts.typ": *
 | 
			
		||||
#import "/src/group.typ"
 | 
			
		||||
#import "/src/separator.typ"
 | 
			
		||||
#import "/src/sequence.typ"
 | 
			
		||||
#import "/src/sync.typ"
 | 
			
		||||
 | 
			
		||||
#let DEBUG-INVISIBLE = false
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,7 @@
 | 
			
		||||
#import "utils.typ": is-elmt, get-group-span
 | 
			
		||||
#import "../participant.typ": _exists as par-exists, _par
 | 
			
		||||
#import "draw/group.typ": render-end as grp-render-end
 | 
			
		||||
#import "utils.typ": get-group-span, is-elmt
 | 
			
		||||
#import "/src/participant.typ": _exists as par-exists, _par
 | 
			
		||||
#import "/src/sequence.typ": _seq
 | 
			
		||||
 | 
			
		||||
#let flatten-group(elmts, i) = {
 | 
			
		||||
  let group = elmts.at(i)
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
#import "../cetz.typ": draw
 | 
			
		||||
#import "/src/cetz.typ": draw
 | 
			
		||||
 | 
			
		||||
#let is-elmt(elmt) = {
 | 
			
		||||
  if type(elmt) != dictionary {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user