Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BarcodeLog ¶
type BarcodeLog struct { Unit string CommandEmblemPath string UnitPatchPath string LogDate time.Time LastCapwatchSync time.Time LogGroups []LogGroup // contains filtered or unexported fields }
func NewBarcodeLog ¶
func NewBarcodeLog(unit, commandEmblemPath, unitPatchPath string, logDate, lastCapwatchSync time.Time) (bl *BarcodeLog)
func (*BarcodeLog) LaTeX ¶
func (bl *BarcodeLog) LaTeX() (latex string)
func (*BarcodeLog) PopulateFromTableOfOrganization ¶
func (bl *BarcodeLog) PopulateFromTableOfOrganization(to pkg.TableOfOrganization)
type LogGroup ¶
type LogGroup struct { Name string SubGroups []LogSubGroup // contains filtered or unexported fields }
func NewLogGroupFromFlight ¶
func NewLogGroupFromMemberGroup ¶
func NewLogGroupFromMemberGroup(memberGroup pkg.MemberGroup) (lg LogGroup)
func (LogGroup) BreakBeforeLog ¶
func (LogGroup) Height ¶
Height represents roughly how high this group will be when it is rendered by LaTeX in the final pdf. A group will be the sum of heights of its subgroups, plus 15pts for the title row and about 20pts for the space between tables. Hence, the math: 35 + sum(heights_of_subgroups).
type LogSubGroup ¶
func NewLogSubGroupFromStaffSubGroup ¶
func NewLogSubGroupFromStaffSubGroup(subgroup pkg.StaffSubGroup, ignore *mapset.Set[uint]) (lsg LogSubGroup)
func (LogSubGroup) Height ¶
func (lsg LogSubGroup) Height() (height uint)
Height represents roughly how high this subgroup will be when it is rendered by LaTeX in the final pdf. Each member row of the barcode log is roughly 30pts high and each title block is roughly 15 points high, hence the math: (number_of_members * 30) + 15
func (LogSubGroup) LaTeX ¶
func (lsg LogSubGroup) LaTeX() (latex string)
Click to show internal directories.
Click to hide internal directories.