publish/marks/MarksRenderer.js
/**
     * Clones the current renderer but keeps all configuration
     */
Clones the current renderer but keeps all configuration
Clones the current renderer but keeps all configuration
clone() {
        const res = new MarksRenderer(this._rendererRepo.clone());
        res["_themeStyles"] = this._themeStyles;
        res["_globalRefs"] = this._globalRefs;
        res["context"] = this.context;
        res["_rendererRepo"]["refs"].forEach(_ => {
            _.cloneRenderer = this.clone.bind(this);
            _.getDocument = () => new Document_1.Document(this.targetRender);
        });
        return res;
    }
clone ( ) { const res = new MarksRenderer ( this . _rendererRepo . clone ( ) ) ; res [ "_themeStyles" ] = this . _themeStyles ; res [ "_globalRefs" ] = this . _globalRefs ; res [ "context" ] = this . context ; res [ "_rendererRepo" ] [ "refs" ] . forEach ( _ => { _ . cloneRenderer = this . clone . bind ( this ) ; _ . getDocument = ( ) => new Document_1 . Document ( this . targetRender ) ; } ) ; return res ; }
Clones the current renderer but keeps all configuration
Clones the current renderer but keeps all configuration