def __init__(self): try: ns = doc().namespaces.item("v") except: doc().namespaces.add("v", "urn:schemas-microsoft-com:vml") doc().createStyleSheet( ).cssText = "v\\:*{behavior:url(#default#VML);}" """* * This will be used for an array join. Currently a bit faster than * StringBuilder.append() & toString() because of the extra collections * overhead. """ self.pathStr = JSOStack() """* * Stack uses preallocated arrays which makes push() slightly faster than * [].push() since each push is simply an indexed setter. """ self.contextStack = [] self.currentX = 0 self.currentY = 0 self.parentElement = None self.parentHeight = 0 self.parentWidth = 0