MCPcopy Index your code
hub / github.com/markmap/markmap / updateStyle

Method updateStyle

packages/markmap-view/src/view.ts:118–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116 }
117
118 updateStyle(): void {
119 this.svg.attr(
120 'class',
121 addClass(this.svg.attr('class'), 'markmap', this.state.id),
122 );
123 const style = this.getStyleContent();
124 this.styleNode.text(style);
125 }
126
127 handleZoom = (e: any) => {
128 const { transform } = e;

Callers 1

setDataMethod · 0.95

Calls 2

getStyleContentMethod · 0.95
addClassFunction · 0.90

Tested by

no test coverage detected