retejs / minimap-plugin

Home Page:https://retejs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

params.enable

andrey-zakharov opened this issue · comments

is always true. According to this code:

function install(editor, params) {
    params.enable = params.enable || true;

Actually, i need a way to dynamically switch minimap off/on. Is it possible?
Thanks!

v0.3.1

This version also support dynamic params changing

  const mapParams = { enable: false };
  editor.use(MinimapPlugin.default, mapParams);

  setTimeout(() => mapParams.enable = true, 2000);