* Save graphics state (q operator).
()
| 197 | * Save graphics state (q operator). |
| 198 | */ |
| 199 | saveGraphicsState(): void { |
| 200 | this.graphicsStateStack.push({ |
| 201 | ctm: this.ctm.clone(), |
| 202 | textState: { |
| 203 | charSpacing: this.charSpacing, |
| 204 | wordSpacing: this.wordSpacing, |
| 205 | horizontalScale: this.horizontalScale, |
| 206 | leading: this.leading, |
| 207 | rise: this.rise, |
| 208 | renderMode: this.renderMode, |
| 209 | }, |
| 210 | }); |
| 211 | } |
| 212 | |
| 213 | /** |
| 214 | * Restore graphics state (Q operator). |
no test coverage detected