Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LineDocxForExportContext ¶
type LineDocxForExportContext struct {
Line *models.LineModel
LineContent *string
Apool *apool.APool
AttribLine *string
Text *string
PadId *string
Alignment *string // "left", "center", "right", "justify"
Heading *string // e.g., "Heading1", "Normal", etc. -> word styles
}
LineDocxForExportContext is the context for the getLineDocxForExport hook
type LineMarkdownForExportContext ¶ added in v0.0.5
type LineOdtForExportContext ¶
type LineOdtForExportContext struct {
Line *models.LineModel
LineContent *string
Apool *apool.APool
AttribLine *string
Text *string
PadId *string
Alignment *string // "left", "center", "right", "justify"
IsHeading *bool
OutlineLevel *int
Heading *string // e.g., "Heading 1", "Text Body", etc. -> odt styles
}
LineOdtForExportContext is the context for the getLineOdtForExport hook
type LinePDFForExportContext ¶
type LinePDFForExportContext struct {
Line *models.LineModel
LineContent *string
Apool *apool.APool
AttribLine *string
Text *string
PadId *string
Alignment *string // "left", "center", "right", "justify"
FontSize *float64
Bold *bool
Heading *string // e.g., "h1", "h2", etc.
}
LinePDFForExportContext is the context for the getLinePDFForExport hook
type LineTxtForExportContext ¶
type LineTxtForExportContext struct {
Line *models.LineModel
LineContent *string
Apool *apool.APool
AttribLine *string
Text *string
PadId *string
}
LineTxtForExportContext is the context for the getLineTxtForExport hook
type LocaleLoadContext ¶
type UserJoinLeaveContext ¶ added in v0.5.0
type UserJoinLeaveContext struct {
PadId string
AuthorId string
// BroadcastChat sends a chat message to all clients in the pad room without persisting it.
// The message map is serialized as the "message" field inside a CHAT_MESSAGE COLLABROOM event.
BroadcastChat func(message map[string]any)
}
UserJoinLeaveContext is passed to userJoin and userLeave hooks.
Click to show internal directories.
Click to hide internal directories.