main
bokuweb 2020-10-20 16:26:34 +09:00 committed by GitHub
parent 388e6fa0e5
commit 2f1cd0d127
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 86 additions and 23 deletions

View File

@ -22,6 +22,27 @@ pub enum BorderType {
DotDash, DotDash,
DotDotDash, DotDotDash,
Triple, Triple,
ThinThickSmallGap,
ThickThinSmallGap,
ThinThickThinSmallGap,
ThinThickMediumGap,
ThickThinMediumGap,
ThinThickThinMediumGap,
ThinThickLargeGap,
ThickThinLargeGap,
ThinThickThinLargeGap,
Wave,
DoubleWave,
DashSmallGap,
DashDotStroked,
ThreeDEmboss,
ThreeDEngrave,
Outset,
Inset,
Apples,
ArchedScallops,
BabyPacifier,
BabyRattle,
} }
impl fmt::Display for BorderType { impl fmt::Display for BorderType {
@ -37,6 +58,27 @@ impl fmt::Display for BorderType {
BorderType::DotDash => write!(f, "dotDash"), BorderType::DotDash => write!(f, "dotDash"),
BorderType::DotDotDash => write!(f, "dotDotDash"), BorderType::DotDotDash => write!(f, "dotDotDash"),
BorderType::Triple => write!(f, "triple"), BorderType::Triple => write!(f, "triple"),
BorderType::ThinThickSmallGap => write!(f, "thinThickSmallGap"),
BorderType::ThickThinSmallGap => write!(f, "thickThinSmallGap"),
BorderType::ThinThickThinSmallGap => write!(f, "thinThickThinSmallGap"),
BorderType::ThinThickMediumGap => write!(f, "thinThickMediumGap"),
BorderType::ThickThinMediumGap => write!(f, "thickThinMediumGap"),
BorderType::ThinThickThinMediumGap => write!(f, "thinThickThinMediumGap"),
BorderType::ThinThickLargeGap => write!(f, "thinThickLargeGap"),
BorderType::ThickThinLargeGap => write!(f, "thickThinLargeGap"),
BorderType::ThinThickThinLargeGap => write!(f, "thinThickThinLargeGap"),
BorderType::Wave => write!(f, "wave"),
BorderType::DoubleWave => write!(f, "doubleWave"),
BorderType::DashSmallGap => write!(f, "dashSmallGap"),
BorderType::DashDotStroked => write!(f, "dashDotStroked"),
BorderType::ThreeDEmboss => write!(f, "threeDEmboss"),
BorderType::ThreeDEngrave => write!(f, "threeDEngrave"),
BorderType::Outset => write!(f, "outset"),
BorderType::Inset => write!(f, "inset"),
BorderType::Apples => write!(f, "apples"),
BorderType::ArchedScallops => write!(f, "archedScallops"),
BorderType::BabyPacifier => write!(f, "babyPacifier"),
BorderType::BabyRattle => write!(f, "babyRattle"),
} }
} }
} }
@ -55,6 +97,27 @@ impl FromStr for BorderType {
"dotDash" => Ok(BorderType::DotDash), "dotDash" => Ok(BorderType::DotDash),
"dotDotDash" => Ok(BorderType::DotDotDash), "dotDotDash" => Ok(BorderType::DotDotDash),
"triple" => Ok(BorderType::Triple), "triple" => Ok(BorderType::Triple),
"thinThickSmallGap" => Ok(BorderType::ThinThickSmallGap),
"thickThinSmallGap" => Ok(BorderType::ThickThinSmallGap),
"thinThickThinSmallGap" => Ok(BorderType::ThinThickThinSmallGap),
"thinThickMediumGap" => Ok(BorderType::ThinThickMediumGap),
"thickThinMediumGap" => Ok(BorderType::ThickThinMediumGap),
"thinThickThinMediumGap" => Ok(BorderType::ThinThickThinMediumGap),
"thinThickLargeGap" => Ok(BorderType::ThinThickLargeGap),
"thickThinLargeGap" => Ok(BorderType::ThickThinLargeGap),
"thinThickThinLargeGap" => Ok(BorderType::ThinThickThinLargeGap),
"wave" => Ok(BorderType::Wave),
"doubleWave" => Ok(BorderType::DoubleWave),
"dashSmallGap" => Ok(BorderType::DashSmallGap),
"dashDotStroked" => Ok(BorderType::DashDotStroked),
"threeDEmboss" => Ok(BorderType::ThreeDEmboss),
"threeDEngrave" => Ok(BorderType::ThreeDEngrave),
"outset" => Ok(BorderType::Outset),
"inset" => Ok(BorderType::Inset),
"apples" => Ok(BorderType::Apples),
"archedScallops" => Ok(BorderType::ArchedScallops),
"babyPacifier" => Ok(BorderType::BabyPacifier),
"babyRattle" => Ok(BorderType::BabyRattle),
_ => Ok(BorderType::Single), _ => Ok(BorderType::Single),
} }
} }
@ -62,27 +125,6 @@ impl FromStr for BorderType {
/* /*
Unsupported types Unsupported types
"thinThickSmallGap"
"thickThinSmallGap"
"thinThickThinSmallGap"
"thinThickMediumGap"
"thickThinMediumGap"
"thinThickThinMediumGap"
"thinThickLargeGap"
"thickThinLargeGap"
"thinThickThinLargeGap"
"wave"
"doubleWave"
"dashSmallGap"
"dashDotStroked"
"threeDEmboss"
"threeDEngrave"
"outset"
"inset"
"apples"
"archedScallops"
"babyPacifier"
"babyRattle"
"balloons3Colors" "balloons3Colors"
"balloonsHotAir" "balloonsHotAir"
"basicBlackDashes" "basicBlackDashes"

View File

@ -8,7 +8,28 @@ export type BorderType =
| "dashed" | "dashed"
| "dotDash" | "dotDash"
| "dotDotDash" | "dotDotDash"
| "triple"; | "triple"
| "thinThickSmallGap"
| "thickThinSmallGap"
| "thinThickThinSmallGap"
| "thinThickMediumGap"
| "thickThinMediumGap"
| "thinThickThinMediumGap"
| "thinThickLargeGap"
| "thickThinLargeGap"
| "thinThickThinLargeGap"
| "wave"
| "doubleWave"
| "dashSmallGap"
| "dashDotStroked"
| "threeDEmboss"
| "threeDEngrave"
| "outset"
| "inset"
| "apples"
| "archedScallops"
| "babyPacifier"
| "babyRattle";
export type BorderPosition = export type BorderPosition =
| "left" | "left"

View File

@ -1,6 +1,6 @@
{ {
"name": "docx-wasm", "name": "docx-wasm",
"version": "0.0.112", "version": "0.0.113",
"main": "dist/node/index.js", "main": "dist/node/index.js",
"browser": "dist/web/index.js", "browser": "dist/web/index.js",
"author": "bokuweb <bokuweb12@gmail.com>", "author": "bokuweb <bokuweb12@gmail.com>",