paper-pptxAPI referenceoxml.simpletypes
ST_PositiveFixedAngle
paper-pptx 0.2.0 API reference
Valid values for a:lin@ang.
60000ths of a degree rotation, constained to positive angles less than 360 degrees.
Attributes
DEGREE_INCREMENTS
attributeDEGREE_INCREMENTS= 60000THREE_SIXTY
attributeTHREE_SIXTY= 360 * DEGREE_INCREMENTSFunctions
convert_from_percent_literal
funcconvert_from_percent_literal(str_value)paramstr_valueconvert_from_xml
funcconvert_from_xml(str_value: str) -> floatparamstr_valuestrReturns
floatconvert_to_xml
funcconvert_to_xml(degrees)Convert signed angle float like -427.42 to int 60000 per degree.
Value is normalized to a positive value less than 360 degrees.
paramdegreesfrom_xml
funcfrom_xml(xml_value: str) -> Anyparamxml_valuestrReturns
typing.Anyto_xml
functo_xml(value: Any) -> strparamvalueAnyReturns
strvalidate
funcvalidate(value)paramvaluevalidate_float
funcvalidate_float(value: Any)Note that int values are accepted.
paramvalueAnyvalidate_float_in_range
funcvalidate_float_in_range(value, min_inclusive, max_inclusive)paramvalueparammin_inclusiveparammax_inclusivevalidate_int
funcvalidate_int(value)paramvaluevalidate_int_in_range
funcvalidate_int_in_range(value, min_inclusive, max_inclusive)paramvalueparammin_inclusiveparammax_inclusivevalidate_string
funcvalidate_string(value)paramvalue