├── .gitignore ├── .npmignore ├── LICENSE ├── README.md ├── example ├── app.js ├── img │ └── material-icons │ │ ├── add.svg │ │ ├── bold.svg │ │ ├── center.svg │ │ ├── copy.svg │ │ ├── cut.svg │ │ ├── edit.svg │ │ ├── fixed.svg │ │ ├── img.svg │ │ ├── italic.svg │ │ ├── new.svg │ │ ├── node-img.svg │ │ ├── paste.svg │ │ ├── remove.svg │ │ ├── repeat.svg │ │ ├── save.svg │ │ ├── underline.svg │ │ ├── undo.svg │ │ ├── upload.svg │ │ ├── zoomin.svg │ │ └── zoomout.svg ├── layout.css └── tests.js ├── index.html ├── package.json ├── rollup.config.js ├── src ├── index.ts ├── map │ ├── handlers │ │ ├── copy-paste.ts │ │ ├── drag.ts │ │ ├── draw.ts │ │ ├── events.ts │ │ ├── export.ts │ │ ├── history.ts │ │ ├── nodes.ts │ │ └── zoom.ts │ ├── map.ts │ ├── models │ │ └── node.ts │ └── options.ts ├── typings.d.ts └── utils │ ├── log.ts │ └── utils.ts └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | example 2 | docs 3 | index.html 4 | .idea -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/README.md -------------------------------------------------------------------------------- /example/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/example/app.js -------------------------------------------------------------------------------- /example/img/material-icons/add.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/example/img/material-icons/add.svg -------------------------------------------------------------------------------- /example/img/material-icons/bold.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/example/img/material-icons/bold.svg -------------------------------------------------------------------------------- /example/img/material-icons/center.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/example/img/material-icons/center.svg -------------------------------------------------------------------------------- /example/img/material-icons/copy.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/example/img/material-icons/copy.svg -------------------------------------------------------------------------------- /example/img/material-icons/cut.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/example/img/material-icons/cut.svg -------------------------------------------------------------------------------- /example/img/material-icons/edit.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/example/img/material-icons/edit.svg -------------------------------------------------------------------------------- /example/img/material-icons/fixed.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/example/img/material-icons/fixed.svg -------------------------------------------------------------------------------- /example/img/material-icons/img.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/example/img/material-icons/img.svg -------------------------------------------------------------------------------- /example/img/material-icons/italic.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/example/img/material-icons/italic.svg -------------------------------------------------------------------------------- /example/img/material-icons/new.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/example/img/material-icons/new.svg -------------------------------------------------------------------------------- /example/img/material-icons/node-img.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/example/img/material-icons/node-img.svg -------------------------------------------------------------------------------- /example/img/material-icons/paste.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/example/img/material-icons/paste.svg -------------------------------------------------------------------------------- /example/img/material-icons/remove.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/example/img/material-icons/remove.svg -------------------------------------------------------------------------------- /example/img/material-icons/repeat.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/example/img/material-icons/repeat.svg -------------------------------------------------------------------------------- /example/img/material-icons/save.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/example/img/material-icons/save.svg -------------------------------------------------------------------------------- /example/img/material-icons/underline.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/example/img/material-icons/underline.svg -------------------------------------------------------------------------------- /example/img/material-icons/undo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/example/img/material-icons/undo.svg -------------------------------------------------------------------------------- /example/img/material-icons/upload.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/example/img/material-icons/upload.svg -------------------------------------------------------------------------------- /example/img/material-icons/zoomin.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/example/img/material-icons/zoomin.svg -------------------------------------------------------------------------------- /example/img/material-icons/zoomout.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/example/img/material-icons/zoomout.svg -------------------------------------------------------------------------------- /example/layout.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/example/layout.css -------------------------------------------------------------------------------- /example/tests.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/example/tests.js -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/index.html -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/package.json -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/rollup.config.js -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/map/handlers/copy-paste.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/src/map/handlers/copy-paste.ts -------------------------------------------------------------------------------- /src/map/handlers/drag.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/src/map/handlers/drag.ts -------------------------------------------------------------------------------- /src/map/handlers/draw.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/src/map/handlers/draw.ts -------------------------------------------------------------------------------- /src/map/handlers/events.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/src/map/handlers/events.ts -------------------------------------------------------------------------------- /src/map/handlers/export.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/src/map/handlers/export.ts -------------------------------------------------------------------------------- /src/map/handlers/history.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/src/map/handlers/history.ts -------------------------------------------------------------------------------- /src/map/handlers/nodes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/src/map/handlers/nodes.ts -------------------------------------------------------------------------------- /src/map/handlers/zoom.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/src/map/handlers/zoom.ts -------------------------------------------------------------------------------- /src/map/map.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/src/map/map.ts -------------------------------------------------------------------------------- /src/map/models/node.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/src/map/models/node.ts -------------------------------------------------------------------------------- /src/map/options.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/src/map/options.ts -------------------------------------------------------------------------------- /src/typings.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/src/typings.d.ts -------------------------------------------------------------------------------- /src/utils/log.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/src/utils/log.ts -------------------------------------------------------------------------------- /src/utils/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/src/utils/utils.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedoor/mmp/HEAD/tsconfig.json --------------------------------------------------------------------------------