WaterMarkComponent

August 10, 2023 ยท View on GitHub

MethodParametersReturnsDescription
setWaterMarkVisiblevisible: boolean - A boolean indicating whether the watermark should be visible or not.voidSets the visibility of the watermark component.
setWaterMarkDatawatermarkData: WaterMarkData - The data to be used as watermark.voidSets the watermark data to be used in the canvas.
getWaterMarkDataWaterMarkDataReturns the water mark data object if it exists, otherwise returns an empty object.
setWaterMarkConfigwatermarkConfig: WaterMarkConfig - The configuration object for the watermark.voidSets the watermark configuration for the chart.
setLogoImageimg: CanvasImageSource - The image to be used as a watermark.voidSets the logo image to be used as a watermark.
recalculateTextSizechartWidth: number - The width of the chart.chartHeight: number - The height of the chart.{ firstRowFontSize: number; secondRowFontSize: number; thirdRowFontSize: number; visible: boolean; position: WaterMarkPositionType; offsetX: number; offsetY: number; ... 5 more ...; thirdRowBottomPadding: number; }Recalculates the watermark text size based on the chart's width and height.