improved imports + fixed default color
This commit is contained in:
@@ -3,38 +3,28 @@
|
|||||||
#import "/src/consts.typ": *
|
#import "/src/consts.typ": *
|
||||||
#import "/src/core/utils.typ": get-ctx, get-style, is-elmt, set-ctx
|
#import "/src/core/utils.typ": get-ctx, get-style, is-elmt, set-ctx
|
||||||
|
|
||||||
#import "participant/default.typ" as shape-default
|
|
||||||
#import "participant/actor.typ" as shape-actor
|
|
||||||
#import "participant/boundary.typ" as shape-boundary
|
|
||||||
#import "participant/control.typ" as shape-control
|
|
||||||
#import "participant/entity.typ" as shape-entity
|
|
||||||
#import "participant/database.typ" as shape-database
|
|
||||||
#import "participant/collections.typ" as shape-collections
|
|
||||||
#import "participant/queue.typ" as shape-queue
|
|
||||||
#import "participant/custom.typ" as shape-custom
|
|
||||||
|
|
||||||
#let shapes = {
|
#let shapes = {
|
||||||
let from-module(mod) = {
|
let from-module(path) = {
|
||||||
let p = "participant/default.typ"
|
import path as mod
|
||||||
return (mod.name: (
|
return (mod.name: (
|
||||||
get-size: mod.get-size,
|
get-size: mod.get-size,
|
||||||
render: mod.render,
|
render: mod.render,
|
||||||
default-style: mod.default-style
|
default-style: mod.default-style
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
from-module(shape-default)
|
from-module("participant/default.typ")
|
||||||
from-module(shape-actor)
|
from-module("participant/actor.typ")
|
||||||
from-module(shape-boundary)
|
from-module("participant/boundary.typ")
|
||||||
from-module(shape-control)
|
from-module("participant/control.typ")
|
||||||
from-module(shape-entity)
|
from-module("participant/entity.typ")
|
||||||
from-module(shape-database)
|
from-module("participant/database.typ")
|
||||||
from-module(shape-collections)
|
from-module("participant/collections.typ")
|
||||||
from-module(shape-queue)
|
from-module("participant/queue.typ")
|
||||||
from-module(shape-custom)
|
from-module("participant/custom.typ")
|
||||||
}
|
}
|
||||||
|
|
||||||
#let participant-default-style = (
|
#let participant-default-style = (
|
||||||
fill: auto,
|
fill: rgb("#E2E2F0"),
|
||||||
stroke: black + .5pt,
|
stroke: black + .5pt,
|
||||||
from-start: true,
|
from-start: true,
|
||||||
show-bottom: true,
|
show-bottom: true,
|
||||||
|
Reference in New Issue
Block a user