MCPcopy Create free account
hub / github.com/coldtype/st2 / base_vectors

Method base_vectors

ST2/typesetter.py:121–136  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

119 return "ST2:File"
120
121 def base_vectors(self):
122 if self.obj:
123 animating = self.obj.st2.has_keyframes(self.obj) or self.obj.st2.has_variable_offsets(self.obj) or self.obj.st2.has_calculations(self.obj)
124 else:
125 animating = False
126
127 if not self.obj or not animating:
128 p = self.build_single_style()
129 else:
130 p = self.build_multi_style()
131
132 self.align(p)
133
134 # not good if we want to do stagger line-wise, need to preserve this info
135 #p.collapse()
136 return p
137
138 def two_dimensional(self, glyphwise=False, shapewise=False, wordwise=False, linewise=False):
139 p = self.base_vectors()

Callers 1

two_dimensionalMethod · 0.95

Calls 6

build_single_styleMethod · 0.95
build_multi_styleMethod · 0.95
alignMethod · 0.95
has_keyframesMethod · 0.80
has_variable_offsetsMethod · 0.80
has_calculationsMethod · 0.80

Tested by

no test coverage detected