From 1c258f7207faad0c1489fb24fb31694e32064914 Mon Sep 17 00:00:00 2001 From: Stephen Kraus <8003332+stephenmk@users.noreply.github.com> Date: Sat, 27 Jan 2024 03:12:29 -0600 Subject: Add border styling options for structured content images (#577) * Add border styling options for structured content images * Replace border style, width, and color properties with shorthand --------- Co-authored-by: stephenmk --- types/ext/dictionary-data.d.ts | 2 ++ types/ext/structured-content.d.ts | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'types') diff --git a/types/ext/dictionary-data.d.ts b/types/ext/dictionary-data.d.ts index 45db55bb..434f5a27 100644 --- a/types/ext/dictionary-data.d.ts +++ b/types/ext/dictionary-data.d.ts @@ -113,6 +113,8 @@ export type TermGlossaryDeinflection = [ export type TermImage = StructuredContent.ImageElementBase & { // Compatibility properties verticalAlign?: undefined; + border?: undefined; + borderRadius?: undefined; sizeUnits?: undefined; }; diff --git a/types/ext/structured-content.d.ts b/types/ext/structured-content.d.ts index 4f613969..e40a6730 100644 --- a/types/ext/structured-content.d.ts +++ b/types/ext/structured-content.d.ts @@ -41,6 +41,8 @@ export type ImageAppearance = 'auto' | 'monochrome'; export type Image = DictionaryData.TermImage & { verticalAlign: VerticalAlign; + border: string; + borderRadius: string; sizeUnits: SizeUnits; }; @@ -142,7 +144,7 @@ export type ImageElementBase = { */ width?: number; /** - * Preferred width of the image. + * Preferred height of the image. */ height?: number; /** @@ -151,7 +153,7 @@ export type ImageElementBase = { */ preferredWidth?: number; /** - * Preferred width of the image. + * Preferred height of the image. * This is only used in the internal database. */ preferredHeight?: number; @@ -203,6 +205,14 @@ export type ImageElement = ImageElementBase & { * The vertical alignment of the image. */ verticalAlign?: VerticalAlign; + /** + * Shorthand for border width, style, and color. + */ + border?: string; + /** + * Roundness of the corners of the image's outer border edge. + */ + borderRadius?: string; /** * The units for the width and height. */ -- cgit v1.2.3