Documentation and Refactoring (#3028)
* Documentation and Refactoring * Documentation and Refactoring * Fix lint issues * Convert components to Builder style --------- Co-authored-by: Dolan Miu <dmiu@bloomberg.net>
This commit is contained in:
@ -55,32 +55,101 @@ class BordersAttributes extends XmlAttributeComponent<IBorderOptions> {
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Table borders are defined with the <w:tblBorders> element. Child elements of this element specify the kinds of `border`:
|
||||
*
|
||||
* `bottom`, `end` (`right` in the previous version of the standard), `insideH`, `insideV`, `start` (`left` in the previous version of the standard), and `top`.
|
||||
*
|
||||
* Reference: http://officeopenxml.com/WPtableBorders.php
|
||||
*
|
||||
* ## XSD Schema
|
||||
* ```xml
|
||||
* <xsd:simpleType name="ST_Border">
|
||||
* <xsd:restriction base="xsd:string">
|
||||
* <xsd:enumeration value="single"/>
|
||||
* <xsd:enumeration value="dashDotStroked"/>
|
||||
* <xsd:enumeration value="dashed"/>
|
||||
* <xsd:enumeration value="dashSmallGap"/>
|
||||
* <xsd:enumeration value="dotDash"/>
|
||||
* <xsd:enumeration value="dotDotDash"/>
|
||||
* <xsd:enumeration value="dotted"/>
|
||||
* <xsd:enumeration value="double"/>
|
||||
* <xsd:enumeration value="doubleWave"/>
|
||||
* <xsd:enumeration value="inset"/>
|
||||
* <xsd:enumeration value="nil"/>
|
||||
* <xsd:enumeration value="none"/>
|
||||
* <xsd:enumeration value="outset"/>
|
||||
* <xsd:enumeration value="thick"/>
|
||||
* <xsd:enumeration value="thickThinLargeGap"/>
|
||||
* <xsd:enumeration value="thickThinMediumGap"/>
|
||||
* <xsd:enumeration value="thickThinSmallGap"/>
|
||||
* <xsd:enumeration value="thinThickLargeGap"/>
|
||||
* <xsd:enumeration value="thinThickMediumGap"/>
|
||||
* <xsd:enumeration value="thinThickSmallGap"/>
|
||||
* <xsd:enumeration value="thinThickThinLargeGap"/>
|
||||
* <xsd:enumeration value="thinThickThinMediumGap"/>
|
||||
* <xsd:enumeration value="thinThickThinSmallGap"/>
|
||||
* <xsd:enumeration value="threeDEmboss"/>
|
||||
* <xsd:enumeration value="threeDEngrave"/>
|
||||
* <xsd:enumeration value="triple"/>
|
||||
* <xsd:enumeration value="wave"/>
|
||||
* </xsd:restriction>
|
||||
* </xsd:simpleType>
|
||||
* ```
|
||||
*/
|
||||
export const BorderStyle = {
|
||||
/** a single line */
|
||||
SINGLE: "single",
|
||||
/** a line with a series of alternating thin and thick strokes */
|
||||
DASH_DOT_STROKED: "dashDotStroked",
|
||||
/** a dashed line */
|
||||
DASHED: "dashed",
|
||||
/** a dashed line with small gaps */
|
||||
DASH_SMALL_GAP: "dashSmallGap",
|
||||
/** a line with alternating dots and dashes */
|
||||
DOT_DASH: "dotDash",
|
||||
/** a line with a repeating dot - dot - dash sequence */
|
||||
DOT_DOT_DASH: "dotDotDash",
|
||||
/** a dotted line */
|
||||
DOTTED: "dotted",
|
||||
/** a double line */
|
||||
DOUBLE: "double",
|
||||
/** a double wavy line */
|
||||
DOUBLE_WAVE: "doubleWave",
|
||||
/** an inset set of lines */
|
||||
INSET: "inset",
|
||||
/** no border */
|
||||
NIL: "nil",
|
||||
/** no border */
|
||||
NONE: "none",
|
||||
/** an outset set of lines */
|
||||
OUTSET: "outset",
|
||||
/** a single line */
|
||||
THICK: "thick",
|
||||
/** a thick line contained within a thin line with a large-sized intermediate gap */
|
||||
THICK_THIN_LARGE_GAP: "thickThinLargeGap",
|
||||
/** a thick line contained within a thin line with a medium-sized intermediate gap */
|
||||
THICK_THIN_MEDIUM_GAP: "thickThinMediumGap",
|
||||
/** a thick line contained within a thin line with a small intermediate gap */
|
||||
THICK_THIN_SMALL_GAP: "thickThinSmallGap",
|
||||
/** a thin line contained within a thick line with a large-sized intermediate gap */
|
||||
THIN_THICK_LARGE_GAP: "thinThickLargeGap",
|
||||
/** a thick line contained within a thin line with a medium-sized intermediate gap */
|
||||
THIN_THICK_MEDIUM_GAP: "thinThickMediumGap",
|
||||
/** a thick line contained within a thin line with a small intermediate gap */
|
||||
THIN_THICK_SMALL_GAP: "thinThickSmallGap",
|
||||
/** a thin-thick-thin line with a large gap */
|
||||
THIN_THICK_THIN_LARGE_GAP: "thinThickThinLargeGap",
|
||||
/** a thin-thick-thin line with a medium gap */
|
||||
THIN_THICK_THIN_MEDIUM_GAP: "thinThickThinMediumGap",
|
||||
/** a thin-thick-thin line with a small gap */
|
||||
THIN_THICK_THIN_SMALL_GAP: "thinThickThinSmallGap",
|
||||
/** a three-staged gradient line, getting darker towards the paragraph */
|
||||
THREE_D_EMBOSS: "threeDEmboss",
|
||||
/** a three-staged gradient like, getting darker away from the paragraph */
|
||||
THREE_D_ENGRAVE: "threeDEngrave",
|
||||
/** a triple line */
|
||||
TRIPLE: "triple",
|
||||
/** a wavy line */
|
||||
WAVE: "wave",
|
||||
} as const;
|
||||
|
Reference in New Issue
Block a user