Move draw toc to separate function

This commit is contained in:
Oleg Korshul
2024-10-25 14:57:04 +03:00
parent cfbea04cff
commit c8c0ff450c
2 changed files with 146 additions and 144 deletions

View File

@ -31,12 +31,12 @@
*/
"use strict";
function CNativeGraphics()
function CNativeGraphics(nativeEmbed)
{
AscCommon.CGraphicsBase.call(this, AscCommon.RendererType.NativeDrawer);
/** @suppress {checkVars} */
this.Native = CreateEmbedObject("CGraphicsEmbed");
this.Native = nativeEmbed ? nativeEmbed : CreateEmbedObject("CGraphicsEmbed");
this.isNativeGraphics = true;