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