(linecap)
| 475 | |
| 476 | @staticmethod |
| 477 | def _linecap_cmd(linecap): |
| 478 | # Support for directly passing integer values is for backcompat. |
| 479 | linecap = {'butt': 0, 'round': 1, 'projecting': 2, 0: 0, 1: 1, 2: 2}[ |
| 480 | linecap] |
| 481 | return f"{linecap:d} setlinecap\n" |
| 482 | |
| 483 | def set_linecap(self, linecap, store=True): |
| 484 | if linecap != self.linecap: |
no outgoing calls
no test coverage detected