mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-02-08 00:21:11 +01:00
Show the op dispatched by constructPath in the debugger
The `constructPath` op receives as arguments not only the information to construct the path, but also the op to apply the path to (such as "fill", or "stroke"). This commit updates the Stepper tool in the debugger to decode that op, showing its name rather than just its numeric ID.
This commit is contained in:
parent
fc68a9f3ee
commit
0596f03d4e
@ -374,6 +374,14 @@ class Stepper {
|
||||
table.classList.add("showText");
|
||||
decArgs.append(table);
|
||||
table.append(charCodeRow, fontCharRow, unicodeRow);
|
||||
} else if (fn === "constructPath") {
|
||||
const [op, [path], minMax] = args;
|
||||
decArgs = this.#c("td");
|
||||
decArgs.append(JSON.stringify(this.#simplifyArgs(path)));
|
||||
decArgs.append(this.#c("br"));
|
||||
decArgs.append(`minMax: ${JSON.stringify(this.#simplifyArgs(minMax))}`);
|
||||
decArgs.append(this.#c("br"));
|
||||
decArgs.append(`→ ${opMap[op]}`);
|
||||
} else if (fn === "restore" && this.indentLevel > 0) {
|
||||
this.indentLevel--;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user