aboutsummaryrefslogtreecommitdiff
path: root/types
diff options
context:
space:
mode:
authorStephen Kraus <8003332+stephenmk@users.noreply.github.com>2024-01-27 03:12:29 -0600
committerGitHub <noreply@github.com>2024-01-27 09:12:29 +0000
commit1c258f7207faad0c1489fb24fb31694e32064914 (patch)
tree5e00732b76f7d13572fa7a103d72e3b4cf25db7b /types
parent3c76b878e9ddcc8fa52d00fc85f561bbb72c5dd1 (diff)
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 <stephenmk@users.noreply.github.com>
Diffstat (limited to 'types')
-rw-r--r--types/ext/dictionary-data.d.ts2
-rw-r--r--types/ext/structured-content.d.ts14
2 files changed, 14 insertions, 2 deletions
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;
@@ -204,6 +206,14 @@ export type ImageElement = ImageElementBase & {
*/
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.
*/
sizeUnits?: SizeUnits;