(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e9726"],{"8e25":function(s,a,t){"use strict";t.r(a);var n=function(){var s=this;s._self._c;return s._m(0)},l=[function(){var s=this,a=s._self._c;return a("div",[a("h1",[s._v("显示水印")]),a("blockquote",[a("p",[s._v("要使用水印需要注册水印插件")])]),a("p",[a("code",[s._v("simple-mind-map")]),s._v("提供了水印的插件，使用非常简单，首先可以在实例化"),a("code",[s._v("simple-mind-map")]),s._v("时提供水印的选项配置来直接显示水印：")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("new")]),s._v(" MindMap({\n    "),a("span",{staticClass:"hljs-comment"},[s._v("// ...")]),s._v("\n    "),a("span",{staticClass:"hljs-attr"},[s._v("watermarkConfig")]),s._v(": {\n        "),a("span",{staticClass:"hljs-attr"},[s._v("text")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'水印文字'")]),s._v(",\n        "),a("span",{staticClass:"hljs-attr"},[s._v("lineSpacing")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("100")]),s._v(",\n        "),a("span",{staticClass:"hljs-attr"},[s._v("textSpacing")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("100")]),s._v(",\n        "),a("span",{staticClass:"hljs-attr"},[s._v("angle")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("30")]),s._v(",\n        "),a("span",{staticClass:"hljs-attr"},[s._v("textStyle")]),s._v(": {\n            "),a("span",{staticClass:"hljs-attr"},[s._v("color")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'#999'")]),s._v(",\n            "),a("span",{staticClass:"hljs-attr"},[s._v("opacity")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("0.5")]),s._v(",\n            "),a("span",{staticClass:"hljs-attr"},[s._v("fontSize")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("14")]),s._v("\n        }\n    }\n})\n")])]),a("p",[s._v("详细字段含义可以阅读【API】-【构造函数】-【实例化选项】小节。")]),a("p",[s._v("此外也可以动态更新水印，"),a("code",[s._v("watermarkConfig")]),s._v("的所有配置都可以修改，如果不想再显示水印将"),a("code",[s._v("text")]),s._v("传入空字符串即可。")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.watermark.updateWatermark({\n    "),a("span",{staticClass:"hljs-attr"},[s._v("text")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'街角小林'")]),s._v(",\n    "),a("span",{staticClass:"hljs-attr"},[s._v("lineSpacing")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("50")]),s._v(",\n    "),a("span",{staticClass:"hljs-attr"},[s._v("textSpacing")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("50")]),s._v(",\n    "),a("span",{staticClass:"hljs-attr"},[s._v("angle")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("45")]),s._v(",\n    "),a("span",{staticClass:"hljs-attr"},[s._v("textStyle")]),s._v(": {\n        "),a("span",{staticClass:"hljs-attr"},[s._v("color")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'#73D8FF'")]),s._v(",\n        "),a("span",{staticClass:"hljs-attr"},[s._v("opacity")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("1")]),s._v(",\n        "),a("span",{staticClass:"hljs-attr"},[s._v("fontSize")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("12")]),s._v("\n    }\n})\n")])]),a("h2",[s._v("完整示例")]),a("iframe",{staticStyle:{width:"100%",height:"455px",border:"none"},attrs:{src:"https://wanglin2.github.io/playground/#eNrFVdtqG0cYfpVhQ1m5SLty49BalUPapoFCXUpy0YuMKavdkTTJ7Mx2Z9ayagQlFHoMPUEMDZTmKrlIwBcmEIeQl7FkP0b+2ZlZrQ4XuYtg7Zn/9P3nOfQ+ybJgvyBex+vKOKeZQpKoIruKOU0zkSt0iHLSbyLBd0XBFUmaSA4jxsToJumjCernIkU+WPArjV3Kk90oMyzsSSAz0k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