From 39a22905f02f4453351fdcce9f10aa2b44b117f9 Mon Sep 17 00:00:00 2001 From: Alexei Anoshenko Date: Wed, 17 Aug 2022 16:23:45 +0300 Subject: [PATCH] Bug fixing --- animation.go | 2 ++ propertyNames.go | 12 ++++++------ viewStyle.go | 4 ---- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/animation.go b/animation.go index aa6931c..7dae212 100644 --- a/animation.go +++ b/animation.go @@ -484,6 +484,8 @@ func (animation *animationData) writeTransitionString(tag string, buffer *string buffer.WriteRune('"') buffer.WriteString(timingFunction) buffer.WriteRune('"') + } else { + buffer.WriteString(timingFunction) } } } diff --git a/propertyNames.go b/propertyNames.go index f16373f..5943223 100644 --- a/propertyNames.go +++ b/propertyNames.go @@ -320,20 +320,20 @@ const ( // This is an inherited property, i.e. if it is not defined, then the value of the parent view is used. Underline = "underline" - // TextLineThickness is the constant for the "text-decoration-thickness" property tag. - // The "text-decoration-thickness" SizeUnit property sets the stroke thickness of the decoration line that + // TextLineThickness is the constant for the "text-line-thickness" property tag. + // The "text-line-thickness" SizeUnit property sets the stroke thickness of the decoration line that // is used on text in an element, such as a line-through, underline, or overline. // This is an inherited property, i.e. if it is not defined, then the value of the parent view is used. TextLineThickness = "text-line-thickness" - // TextLineStyle is the constant for the "text-decoration-style" property tag. - // The "text-decoration-style" int property sets the style of the lines specified by "text-decoration" property. + // TextLineStyle is the constant for the "text-line-style" property tag. + // The "text-line-style" int property sets the style of the lines specified by "text-decoration" property. // The style applies to all lines that are set with "text-decoration" property. // This is an inherited property, i.e. if it is not defined, then the value of the parent view is used. TextLineStyle = "text-line-style" - // TextLineColor is the constant for the "text-decoration-color" property tag. - // The "text-decoration-color" Color property sets the color of the lines specified by "text-decoration" property. + // TextLineColor is the constant for the "text-line-color" property tag. + // The "text-line-color" Color property sets the color of the lines specified by "text-decoration" property. // The color applies to all lines that are set with "text-decoration" property. // This is an inherited property, i.e. if it is not defined, then the value of the parent view is used. TextLineColor = "text-line-color" diff --git a/viewStyle.go b/viewStyle.go index 1cd9f43..a772ab7 100644 --- a/viewStyle.go +++ b/viewStyle.go @@ -832,10 +832,6 @@ func writeViewStyle(name string, view ViewStyle, buffer *strings.Builder, indent } } - if transitions := view.Transitions(); len(transitions) > 0 { - writeProperty(Transition, transitions) - } - indent = indent[:len(indent)-1] buffer.WriteString(indent) buffer.WriteString("}")