Skip to main content

@chamevo/core

Public API surface documented for ChamevoJS integrators. This file is the TypeDoc entry point — it exports only what developers interact with directly.

Classes​

ClassDescription
ElementFactoryFactory for creating CVElement instances from configuration data
ChamevoCanvasChamevoCanvas - Extended FabricJS Canvas with element management.
ChamevoJS-

Interfaces​

InterfaceDescription
ElementDataRaw element data from JSON configuration
SerializedElementRepresents a serialized element that can be saved and loaded.
SerializedPrintAreaRepresents a serialized print area that can be saved and loaded.
ExportOptionsOptions for exporting canvas state to JSON.
ChamevoCanvasEventsCustom events emitted by ChamevoCanvas. Extends FabricJS CanvasEvents with Chamevo-specific events.
ChamevoCanvasOptionsConfiguration options for ChamevoCanvas. Extends FabricJS CanvasOptions with Chamevo-specific settings.
PrintAreaSVGResultResult of exporting a single print area to SVG.
ChamevoJSOptionsConfiguration options for the ChamevoJS orchestrator.
ElementParametersBase parameters shared by all element types (text, image, SVG). All properties are optional — they merge with defaults.
TextParametersAdditional parameters for text elements. Merges on top of ElementParameters.
ImageParametersAdditional parameters for image elements. Merges on top of ElementParameters.
ChamevoEventsEvent map for the ChamevoJS API. Keys are event names, values are the event payload types.
ChamevoOptionsChamevoJS configuration options. All properties are optional — sensible defaults are applied.
PriceFormatPrice display format configuration.
PricingLineItemA single line item from a matched pricing rule.
CVPrintAreaConfigPrint area configuration (API-level). Defines a print area's properties without FabricJS runtime concerns.
CVViewView data model. A view represents one side/face of a product (e.g. front, back).
CVProductProduct data model. A product contains one or more views, each with elements and print areas.

Type Aliases​

Type AliasDescription
ElementType-
PricingRuleBackward-compatible alias.