mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
Move draw toc to separate function
This commit is contained in:
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user