Try DoPathStroke

This commit is contained in:
Svetlana Kulikova
2025-08-21 15:47:26 +03:00
parent d092b88d9b
commit 3cf3a3e098
8 changed files with 609 additions and 41 deletions

View File

@ -160,9 +160,9 @@ CFile.prototype["UndoMergePages"] = function()
{
return this._UndoMergePages();
};
CFile.prototype["RedactPage"] = function(pageIndex, arrRedactBox, arrayBufferChanges)
CFile.prototype["RedactPage"] = function(pageIndex, arrRedactBox, arrayBufferFiller)
{
return this._RedactPage(pageIndex, arrRedactBox, arrayBufferChanges);
return this._RedactPage(pageIndex, arrRedactBox, arrayBufferFiller);
};
CFile.prototype["UndoRedact"] = function()
{

View File

@ -192,13 +192,13 @@ CFile.prototype._UndoMergePages = function()
return Module["_UnmergePages"](this.nativeFile) == 1;
};
CFile.prototype._RedactPage = function(pageIndex, arrRedactBox, arrayBufferChanges)
CFile.prototype._RedactPage = function(pageIndex, arrRedactBox, arrayBufferFiller)
{
let changesPtr = 0;
let changesLen = 0;
if (arrayBufferChanges)
if (arrayBufferFiller)
{
let changes = new Uint8Array(arrayBufferChanges);
let changes = new Uint8Array(arrayBufferFiller);
changesLen = changes.length;
changesPtr = Module["_malloc"](changesLen);
Module["HEAP8"].set(changes, changesPtr);