mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-12-28 22:23:49 +01:00
cb2ca74a20
Core-js, web2d and mindplot working baseline * fix .eslintignore remove Raphael dependency * Fix to avoid crashes in _plotPrediction whitout Raphael * Fix minplot basic code inspections * Fix last inspections errors * Inital refactor copying files * Clean up. * Fix web2d cyclic dependencies remove only-warn eslint plugin set import/no-extraneous-dependencies to warn (incorrectly complaining about root package) * Fix web2d Point references (no need to assign it to core) Fix web2d imports in mindplot and update Point refs * Merge 'feature/mindplot_tests' into web2d-coreJS-solutions * mindplot fixes and add viewmode.html playground setup playground config to run the map-render examples fix mindplot components export mootools Static was not working so refactored it fix some references to _peer fix messages __bundle undefined add web2d missing export: Image downgrade cypress to avoid SIGSEGV error Approved-by: Paulo Veiga
69 lines
2.1 KiB
HTML
69 lines
2.1 KiB
HTML
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
<head>
|
|
<title>WiseMapping - Embedded Sample </title>
|
|
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
|
|
<style>
|
|
body {
|
|
font-family: Arial, Tahoma;
|
|
background: #a9a9a9;
|
|
padding: 10px 30px;
|
|
}
|
|
|
|
iframe {
|
|
border: 0;
|
|
}
|
|
|
|
#editor {
|
|
width: 100%;
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
#code {
|
|
border: 1px dashed #f5f5dc;
|
|
padding: 10px;
|
|
background: #838383;
|
|
}
|
|
</style>
|
|
|
|
<link rel="icon" href="../images/favicon.ico" type="image/x-icon">
|
|
<link rel="shortcut icon" href="../images/favicon.ico" type="image/x-icon">
|
|
|
|
</head>
|
|
<body>
|
|
<div>
|
|
<div id="doc">
|
|
<h1>Embedded editor sample</h1>
|
|
|
|
<p>
|
|
This is a simple example of how WiseMapping can be embedded in a page.
|
|
Embedding WiseMapping editor is such simple as copying this line in your page:
|
|
</p>
|
|
<div id="code"><iframe src="embedded.html?confUrl=html/container.json" width="800" height="600"></iframe></div>
|
|
<p>
|
|
The container.json file contains a set of properties that must be configured. Properties:
|
|
</p>
|
|
<ul>
|
|
<li>size: Must match with the size of the iframe</li>
|
|
<li>zoom: Scale to be applied to the map</li>
|
|
<li>readOnly: If the map could be modified.</li>
|
|
<li>persistenceManager: Persistence managers to be used. By default, local browser storage is used.</li>
|
|
<li>mapId: UUID of the map to be loaded.</li>
|
|
<li>container: div element where the mindmap will be embedded..</li>
|
|
|
|
</ul>
|
|
<p>
|
|
It's important to point out that embedded.html is a static html page that it's mean to be a template page
|
|
for advanced customization. In few words, go ahead and modify it.
|
|
</p>
|
|
|
|
</div>
|
|
<div id="editor">
|
|
<iframe src="embedded.html?confUrl=html/container.json" width="800" height="400"></iframe>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|