From a85d3de71dcfe21499b04eb35428b2fa846c5c2b Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Thu, 30 Dec 2021 15:59:09 -0800 Subject: [PATCH] Clean up images and start first integration --- packages/mindplot/src/components/Designer.js | 19 ++++++++++-- packages/mindplot/src/components/Workspace.js | 8 ++--- .../mindplot/src/components/widget/Menu.js | 28 +++++++++--------- .../playground/map-render/html/editor.html | 5 +++- .../playground/map-render/images/discard.png | Bin 562 -> 0 bytes .../playground/map-render/images/discard.svg | 2 +- .../playground/map-render/images/export.png | Bin 728 -> 0 bytes .../map-render/images/font-bold.png | Bin 666 -> 0 bytes .../map-render/images/font-color.png | Bin 986 -> 0 bytes .../map-render/images/font-italic.png | Bin 627 -> 0 bytes .../map-render/images/font-size.png | Bin 864 -> 0 bytes .../map-render/images/font-type.png | Bin 916 -> 0 bytes .../playground/map-render/images/history.png | Bin 1739 -> 0 bytes .../playground/map-render/images/print.png | Bin 532 -> 0 bytes .../playground/map-render/images/public.png | Bin 1773 -> 0 bytes .../playground/map-render/images/redo.png | Bin 608 -> 0 bytes .../playground/map-render/images/save.png | Bin 730 -> 0 bytes .../playground/map-render/images/share.png | Bin 527 -> 0 bytes .../test/playground/map-render/images/tag.png | Bin 946 -> 0 bytes .../map-render/images/topic-add.png | Bin 1037 -> 0 bytes .../map-render/images/topic-border.png | Bin 882 -> 0 bytes .../map-render/images/topic-color.png | Bin 1492 -> 0 bytes .../map-render/images/topic-delete.png | Bin 1002 -> 0 bytes .../map-render/images/topic-icon.png | Bin 916 -> 0 bytes .../map-render/images/topic-link.png | Bin 1124 -> 0 bytes .../map-render/images/topic-note.png | Bin 405 -> 0 bytes .../map-render/images/topic-relation.png | Bin 360 -> 0 bytes .../map-render/images/topic-shape.png | Bin 877 -> 0 bytes .../playground/map-render/images/undo.png | Bin 585 -> 0 bytes .../playground/map-render/images/zoom-in.png | Bin 790 -> 0 bytes .../playground/map-render/images/zoom-out.png | Bin 817 -> 0 bytes packages/web2d/src/components/Workspace.js | 5 ++-- 32 files changed, 41 insertions(+), 26 deletions(-) delete mode 100644 packages/mindplot/test/playground/map-render/images/discard.png delete mode 100644 packages/mindplot/test/playground/map-render/images/export.png delete mode 100644 packages/mindplot/test/playground/map-render/images/font-bold.png delete mode 100644 packages/mindplot/test/playground/map-render/images/font-color.png delete mode 100644 packages/mindplot/test/playground/map-render/images/font-italic.png delete mode 100644 packages/mindplot/test/playground/map-render/images/font-size.png delete mode 100644 packages/mindplot/test/playground/map-render/images/font-type.png delete mode 100644 packages/mindplot/test/playground/map-render/images/history.png delete mode 100644 packages/mindplot/test/playground/map-render/images/print.png delete mode 100644 packages/mindplot/test/playground/map-render/images/public.png delete mode 100644 packages/mindplot/test/playground/map-render/images/redo.png delete mode 100644 packages/mindplot/test/playground/map-render/images/save.png delete mode 100644 packages/mindplot/test/playground/map-render/images/share.png delete mode 100644 packages/mindplot/test/playground/map-render/images/tag.png delete mode 100644 packages/mindplot/test/playground/map-render/images/topic-add.png delete mode 100644 packages/mindplot/test/playground/map-render/images/topic-border.png delete mode 100644 packages/mindplot/test/playground/map-render/images/topic-color.png delete mode 100644 packages/mindplot/test/playground/map-render/images/topic-delete.png delete mode 100644 packages/mindplot/test/playground/map-render/images/topic-icon.png delete mode 100644 packages/mindplot/test/playground/map-render/images/topic-link.png delete mode 100644 packages/mindplot/test/playground/map-render/images/topic-note.png delete mode 100644 packages/mindplot/test/playground/map-render/images/topic-relation.png delete mode 100644 packages/mindplot/test/playground/map-render/images/topic-shape.png delete mode 100644 packages/mindplot/test/playground/map-render/images/undo.png delete mode 100644 packages/mindplot/test/playground/map-render/images/zoom-in.png delete mode 100644 packages/mindplot/test/playground/map-render/images/zoom-out.png diff --git a/packages/mindplot/src/components/Designer.js b/packages/mindplot/src/components/Designer.js index a6b55aa8..6f3c8507 100644 --- a/packages/mindplot/src/components/Designer.js +++ b/packages/mindplot/src/components/Designer.js @@ -35,6 +35,7 @@ import DragConnector from './DragConnector'; import DragManager from './DragManager'; import RelationshipPivot from './RelationshipPivot'; import Relationship from './Relationship'; +import SVGExporter from './export/SVGExporter'; import TopicEventDispatcher, { TopicEvent } from './TopicEventDispatcher'; import TopicFeatureFactory from './TopicFeature'; @@ -339,9 +340,9 @@ class Designer extends Events { } /** - * @param {Number=} factor - * zoom out by the given factor, or 1.2, if undefined - */ + * @param {Number=} factor + * zoom out by the given factor, or 1.2, if undefined + */ zoomOut(factor = 1.2) { const model = this.getModel(); const scale = model.getZoom() * factor; @@ -353,6 +354,18 @@ class Designer extends Events { } } + export(formatType) { + const svgElement = this._workspace.getSVGElement(); + const mindmap = this._mindmap; + + let result = ''; + if (formatType === 'svg') { + const exporter = new SVGExporter(mindmap, svgElement); + result = exporter.export(); + } + return result; + } + /** * @param {Number=} factor * zoom in by the given factor, or 1.2, if undefined diff --git a/packages/mindplot/src/components/Workspace.js b/packages/mindplot/src/components/Workspace.js index d4490dcf..88a940fc 100644 --- a/packages/mindplot/src/components/Workspace.js +++ b/packages/mindplot/src/components/Workspace.js @@ -29,8 +29,8 @@ class Workspace { this._isReadOnly = isReadOnly; const divContainer = screenManager.getContainer(); - this._screenWidth = parseInt(divContainer.css('width'), 10); - this._screenHeight = parseInt(divContainer.css('height'), 10); + this._screenWidth = Number.parseInt(divContainer.css('width'), 10); + this._screenHeight = Number.parseInt(divContainer.css('height'), 10); // Initialize web2d workspace. const workspace = this._createWorkspace(); @@ -154,8 +154,8 @@ class Workspace { return this._eventsEnabled; } - dumpNativeChart() { - return this._workspace.dumpNativeChart(); + getSVGElement() { + return this._workspace.getSVGElement(); } _registerDragEvents() { diff --git a/packages/mindplot/src/components/widget/Menu.js b/packages/mindplot/src/components/widget/Menu.js index db8d2e84..fb73d864 100644 --- a/packages/mindplot/src/components/widget/Menu.js +++ b/packages/mindplot/src/components/widget/Menu.js @@ -212,17 +212,17 @@ class Menu extends IMenu { } this._addButton('export', false, false, () => { - BootstrapDialogRequest.active = new BootstrapDialogRequest(`c/maps/${mapId}/exportf`, $msg('EXPORT'), { - cancelButton: true, - closeButton: true, - }); + // BootstrapDialogRequest.active = new BootstrapDialogRequest(`c/maps/${mapId}/exportf`, $msg('EXPORT'), { + // cancelButton: true, + // closeButton: true, + // }); + const svgContent = designer.export('svg'); + console.log(svgContent); }); Menu._registerTooltip('export', $msg('EXPORT')); - const me = this; - this._addButton('print', false, false, () => { - me.save(saveElem, designer, false); + this.save(saveElem, designer, false); const urlPrefix = window.location.href.substring(0, window.location.href.lastIndexOf('c/maps/')); window.open(`${urlPrefix}c/maps/${mapId}/print`); }); @@ -308,7 +308,7 @@ class Menu extends IMenu { if (saveElem) { this._addButton('save', false, false, () => { - me.save(saveElem, designer, true); + this.save(saveElem, designer, true); }); Menu._registerTooltip('save', $msg('SAVE'), 'meta+S'); @@ -316,17 +316,17 @@ class Menu extends IMenu { // To prevent the user from leaving the page with changes ... // Element.NativeEvents.unload = 1; $(window).bind('unload', () => { - if (me.isSaveRequired()) { - me.save(saveElem, designer, false, true); + if (this.isSaveRequired()) { + this.save(saveElem, designer, false, true); } - me.unlockMap(designer); + this.unlockMap(designer); }); // Autosave on a fixed period of time ... setInterval( () => { - if (me.isSaveRequired()) { - me.save(saveElem, designer, false); + if (this.isSaveRequired()) { + this.save(saveElem, designer, false); } }, 30000, ); @@ -336,7 +336,7 @@ class Menu extends IMenu { const discardElem = $('#discard'); if (discardElem) { this._addButton('discard', false, false, () => { - me.discardChanges(designer); + this.discardChanges(designer); }); Menu._registerTooltip('discard', $msg('DISCARD_CHANGES')); } diff --git a/packages/mindplot/test/playground/map-render/html/editor.html b/packages/mindplot/test/playground/map-render/html/editor.html index 2260f2d9..1418b1b8 100644 --- a/packages/mindplot/test/playground/map-render/html/editor.html +++ b/packages/mindplot/test/playground/map-render/html/editor.html @@ -33,7 +33,10 @@
- + +
+
+
diff --git a/packages/mindplot/test/playground/map-render/images/discard.png b/packages/mindplot/test/playground/map-render/images/discard.png deleted file mode 100644 index 63cec6ed4d8adaee54e176541c804fb70e2f6735..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 562 zcmV-20?qx2P)Hr8J;*7$OxPAL}KG1w&78aHR za2b$MAS^2@yFMu?NeadX6F`;gfHe2jt5>UF5;!df2q2sicpZi0aU+o9(8Sgw^I4EN zK-JOGThRX`6_0;Tr>F(0x#x(0EO@6p84 zkohEg8X$lu3nkiX00!q4G`=tpYvI(OsHpe@m`?V=6a%SMz<6=Q7Z1EZO>2O00n)Vh z&Ye4@=<$RRammTa@<7F#6%-WKqRU}u00Lo{$#QaXAe;6O(tzv?J{cLAwXCeHi|{!q z8I2E0N5T{(4U!`cAizkrVblUR;N;}o^5e%39$?z|_xJDLP@uZE=;+=Cn!J`Rq5;Nuh_F^PZrrhH0bjI0NYMmSFu64p8x;=07*qoM6N<$f)owy AN&o-= diff --git a/packages/mindplot/test/playground/map-render/images/discard.svg b/packages/mindplot/test/playground/map-render/images/discard.svg index 506b07e8..989837ca 100644 --- a/packages/mindplot/test/playground/map-render/images/discard.svg +++ b/packages/mindplot/test/playground/map-render/images/discard.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/mindplot/test/playground/map-render/images/export.png b/packages/mindplot/test/playground/map-render/images/export.png deleted file mode 100644 index e8463255fb8302444358f7fce6034819e233b64c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 728 zcmV;}0w?{6P)BU_1Ev`F2E9S~Ilumx8!yAOb8QBq-1<&MnIz z$|VKjX2OlS|KQQli8YUau2}&xQWq`(b0QMW01!YpU4;w4OoI9GEf5ROoi$1B<=4j# zs|veeCL06sS)eZv8bH9(!gT%u*7W~2i|0TDY#II^iT$=9IW6xmke7nuB;-&8+Q1B? z>VOLCkqtz*ArOeyffzuAFtIx1SRl*O00Bg@1||j)0Sl6cIf3{a7B#uS6WE+g3 z9%BS05@1MGLit~CImx(xa^rtss`|g<-ZBQiHHz&(O%*`#BUob^2n?QodBD(kBoQvq zb}YRe=$c}jHpua-GE8&d!%$&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yj*%d1D*MllaupOdgc_SU`lewKX`ifQZ`Kx;B`C=H{jB z*t>V{uC}qUVE{UbK|w*$6DVZ(>CMa=|dCP)dm>+rK@Pk(~g5fKsAoS>8m1lO)z-+S`p z2^VYzzzSk`p@$sqz?A-u$OHh)4SSk^R6Vj7FpdzVDh!~Pu8<-?W@BPvQUJQ47cN|I z+PrzwUJ(29=g$ml)~qoBGS9+Xj#6wR1E|+)kc4`_fB*gto6CVpK^B`rxrc!2c4EW< zC@*tJOA9f+e~%&o%7H(gJ_Q@>wMts((@#`+P>$Rd29cLe;ShTN1+|g_<dpnx+1c5XK{QSs00BhUD4Y^X zN{YsC=OIfJ6clV>Wo26o*8;M`*Vp$6)cx*Izupzu}{UxTosqJm&kQ{#Ua zABNGzNcJ>908uZLXs-bjw5h473yIR;@9+0NGBRo=2M2oyK@GrUSZ-lq@x#u}E<;RA zj0;^JBjTc>qB<%otIUYfwJf! z7#0x`xsRUsXdlx60YmmtMA>rKZ|M>fKp{hNJs}TMSl4H z{ky>9$B%`9!n3FnM8M>6C^0dyLswVtd`U^E2`4A#2cSiUKuZNFvH)ZNC{4P%yV)8T z7;cP>jkN{}-~IFF&qYu!09u?ywgsT@wz9H*2P`OgL5Ut%BLo12zk}r7zI}TGM00U* znUj@Ffrh8KySvX+R#yI?rlxitUH-?9pBy)D-mrZ4?%nJD{t03vMKUZhWn^St-@WvAYNkFWOPaVy3G5~0C6?_elq4NL$ N002ovPDHLkV1hui1-k$M diff --git a/packages/mindplot/test/playground/map-render/images/font-size.png b/packages/mindplot/test/playground/map-render/images/font-size.png deleted file mode 100644 index 8fa9500f071ca7b9fe417e95c31299e23c30f402..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 864 zcmV-m1E2hfP)M2xn*KC2)?6 zjEsMCbJKr-0AfT}R-Boc@gK(Ng~dB7 z+uYnd0>oLrenZZ=bLXa_ggKhCjG^w;*|lp|1c(g{8c1-Uhg)J|;u&>yjpIOOq^qkd z!;2R$&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1zyVYUq<%V|KYuU8HHgt-AoPAO;a{!YSU#hDsNjL*k$Su=Ztxyiy%bOj|E0ZhQ%cPAw=OYNG!ZS zp|Pc{a!oR$iJ1DsFEOXc^fPZ;>Mptw**1ED;KsKTmL(cSpnebue8Z5L8GcnPY>4A3Sw+b;sxDKd*~K;>%fC z*#&B~`WYbf(P%VXg@r|#91f>(W#tRe*VlJSuh%CeB_&VejNBbNpsJ3IJ$O$dIepgQ zaF~roqc<#UKMywJ#NGik=GWI z52pMLBK!#wjL;9l+&eThgt*Wb7zUV6mA?0y{2Hg zd_=_-oMOq}%QO3L`rTQyT>~7o}3EZM$pxOifL3ySh5{)z!*LlgT7U z?z~D>|I%u;7UElqLrQCFYg_~|s-X6m<%+hp)^>as8w`e$nwr~WZ||E{YUutxb0?Q) zpyGU;uKPk$)5AmY@p0oYK0ZMZ^+iR+!-0VT1B;7Ga!^wYJo3#D1Tc!llMy*N(ni?U zyZ;Jpn?86j`c#j{Ei##AxFk8tgj2Dg1v{AJ0?SAylR1cSNlm=ve<}F~maSy*zPV3B P00000NkvXXu0mjfYB5!S diff --git a/packages/mindplot/test/playground/map-render/images/redo.png b/packages/mindplot/test/playground/map-render/images/redo.png deleted file mode 100644 index d904c0c434ead6ee5b47e4f996d9614596a8342f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 608 zcmV-m0-ybfP)F?@}TzkU0bZ)9Y&0;I6E zwss~^j1O6!WKRPG5cNWd_8Nf6{Vp&b*zo!Rs6Y}(?FQlppb!@n6l8q&?wt?LcmRUE zzcs$LFW5t-TVbla!Q{R)NwuD6fLjI}q;yrG0!! zgAbG(Ku!ZDz7?Qkg6<^R$235Ik!-`Dvw(q6ykaB_28Ja-EKjU@fK0*n*i}y zXk5qu@i!o@1e$SxoI;F^g@t85khw!tRMczw^y!c9+_?jCJ*dF_7at#g_RX6&pp^ZV ztRNB=7G4iZe?2`tT|ho3l3W@PixVBBxFmqC2h|gsV`F2*@Wcl<5WfN9ha_8&k&)2{ zvVfD5b1#q<#A3K0RBkg!Ey)%DG4quxSIR*78)(Q*AifF2&!HH^-U*TesR5}aI~9TA u6o}1%SPO_1p<)k#_zDo81meE~n$ZAnNpkaV+Weyc0000RCwBA{Qv(y0}L>Mi0|LO+eF2t zGO&O+$!U3qK{P-BF(NBth>S^LFq+BmA0!CUvqk-I3L{7YAb`NiK$?L7u726#*^D5y zU~S*NeOn6B3Z%hes0JeefB?cN0d^PA4rEytpdEjipqx!NZRaq|oi!;M$WDWM3kd2# z#LKUbmjbCwWaom6VuU#vN#JOcF(QQEXgB~zv0-Z76jg^UQSC!SwN+7=jXFMQfmybX!fELqR zfuZDsZUYSPqa_Itm`=Z#1_&^cZ6FmeG0+%b1S&M6ssQnAm>4@dJA;IT7+lSpH*Xof ze#J=El0f_dmZou90852Hd;yqL4S}@HrB}xeXYF)>OV&rtXK+;v2NjabKxqjG&O`IY zR$_z57@DM+350+gQhqTbB@RFq>;vMuxffedTn_?`M-mx=*QqZB=BE9UC?EnA( M07*qoM6N<$f;^ir5C8xG diff --git a/packages/mindplot/test/playground/map-render/images/share.png b/packages/mindplot/test/playground/map-render/images/share.png deleted file mode 100644 index c2aa449428856be18e71eba9389df0968c9b381c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 527 zcmV+q0`UEbP)5U|SQ7y* zfF7(-NS>D?#!1ME6rpr7atedTG#0=K#2!FA2R+u2ZRkK^?*L*ULQdjAV)KLi2xVJg z)36kXKO>2M0OGe$#mBIvr6?@6gPe2?%07nfX-0f;MN!fK2r!a0kP4U>XbjMc0OTl~ z55$2$%nZaIp_#Uulyr^H2RT3-0yP|#PP$-aA1#B3A1UcSM9OThpkhQ@0Llt4(8LY` z@op$P5G`|p3UgypEVux~=mkj}5dVU*FC(!TpmB7cSPMY8{vNb?K?V<@SrAmvJ_2GT zApQcCO9bMlge-Uq4bSaJ-Ei Rw|W2o002ovPDHLkV1nv`$l3q^ diff --git a/packages/mindplot/test/playground/map-render/images/tag.png b/packages/mindplot/test/playground/map-render/images/tag.png deleted file mode 100644 index d595a8ba39f54e8bdac47cf5612cec25e5ecb44b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 946 zcmV;j15NyiP)Mi00;||4K@V z6$~I5AU1AlYWxonK#VBLKuSOu%&D!dV}wd50R#|OPibk%|A>f)|B8wVT2M0>!1|v& zc@j2%{=AhibJnd}e+6a>4D-Ev_bvj&1_&S&8&QCXiAiQ^YU+PSM~DB&x|upVI~P8E z`jo-Z(UGC9t`@ExY!uABFaUBk6O6&m&i)nb878JbU|D2yckbM=4aNotAl$CP0a!r9 znl)?Ou3x{l6KItP&>e3;VxK;JVpzL&t>3+S_ctSJfZNd8+VcC~zke*)OkK2S@#@>R zZ-=31fC3+&#tlG?%;=hcp8Q-^R?dgZ53-XcO+4}O<3}lIsMrFjBiL*p2mk_zWDQIV zBm!`#BqYTD=jG*P`26`Z!-o$a7;fFVz5m*^Yfd;dsH&>|k(HHe0!A~-{rmUojE#*Q zt*orx96NSQ1gjq=PMo;==FJ-}%*@OTVq#)&$)iV){ob)-2OEYT`1p7yOG-+jCgw*tra?kN z0+`mDwXwzn(4&j??%flMEM{hAw#wbzBOGVMUB7<4W6he?P}b-vRM^DE$(MZvpXc zU{ri0%Yx|Wm^3yv)))|5Sy|rr5akUezh@QJ&3?<@yelwfCPYlyDt$B!StPJj10+mnH$ZWkAb*;*I2^M~}+fy?b{J&}HVNM&|wd4;W6L zK6Uu(*RKgci|*k|MeN_de-B>2etiKjm`q8v2p9qkSFT)5-MxGF9Ac8G{mz{`i_V=p z>;C7@A9g~9v$C>&wX?Hd1}vK@f!w#GajQLOTn@zi}x90Q3{> Us3Yc3LI3~&07*qoM6N<$f(j?ePyhe` diff --git a/packages/mindplot/test/playground/map-render/images/topic-add.png b/packages/mindplot/test/playground/map-render/images/topic-add.png deleted file mode 100644 index 3d572e72a2e97be2c7ee9c1a4d0d3d865730dc90..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1037 zcmV+o1oHcdP)w0A|GE#Y=pE6eG;-48g%cn?W?l zsUVDOxd;%y0l5eS00Ic7t8f9Z$AK=+0eapYn}WxWAB+A;K5c#^_8Zs&CJ?EoryCAa zaQN^Mqu;-OGw<8C-yFn0aNwXhlKyGPPEtE^RWngvKxfj0T5NXJ_Z4)2B}fV)NvJ1q*qAk>>zX3-SXzSpWR_Q!r!3biD%y z4v2#I1qFroZES3o0+}aaF%9=LI2E$6OvuT}Wq9%8#WJA8Z=m8lf)RJ?)=dy)sivm> z3`jpj&YdtDh>B^FH6R0k03%rg$w>)h0jNyD0!)F}7Kr6Q=>aNs6B-sLL3t6T5SZMs z8V>g|k_DwgLV~F(Dk_h7d3nF%a~Uv|vERLWSLW5L*L#5$Faw1$p;FUwx%7PDBvHwJ(J zLh&FP;MO-X-Er~U=^`NeG~63lG;kQ3TJ97TllTPUXlkf^s;w@K12X@D_$){Y*?=bQ zm6VkE0AznMHZpi$T$r5zWdDOH0EHk+NLU1zGi$~a`?`jEhpa6h_2uNeCi75r3dJ~k9K^9C0axxjH52k|%05iF1sxE1LtN;K207*qo IM6N<$g1e`IG5`Po diff --git a/packages/mindplot/test/playground/map-render/images/topic-color.png b/packages/mindplot/test/playground/map-render/images/topic-color.png deleted file mode 100644 index b923d89a125d29f6f665ed5acad5d7fd44ccdea2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1492 zcmV;_1uOcAP)gdqDP;r*AZA5H1%{ZI z=>I2Ap1P&3u0GAcK!47I2luBiZrHFsd-v|$Q^du^!Df8^{F#A|kMBRjw{PD-M*j!V zMl&HagWv!E00D$zBMMMeRf%7=Z0V7fmgYY|MUh@!UjIS%GR~hr@8t96&vpO&`NR3( z!2^ce+`P`p%F5S_O-+p`W?jB~nISJPPak9lH_(_*K$;08k)EEB$IHt*nGxh7kbv<_ zh>mkxAqD^h5F^MUC=g+0W?3a8Bkd?6BEs{9fB&xT@87@eK>0u5-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3XTF31CO}4_}kB)KXbi&`BLQL$4?DF@g>imJ!60c zD-3DqXf@xsT)zygrGQNOP6fnVmH8nLo0ZU<^lm)|}lm_xI zOH)(R^Mr)NpNfhK4_>@@AucB;`x=P1T)%!p{z&W@T_nq08T|PA0Sy!DkLPBs-mLuh?kf5J3f~I1DXBq-McccUcKH6m{Y6B;N@M34MmC`uX!0%b!2LSq%*IFT8#GR^aN@tD3;_>Xy8`+$)gbHjBBintmkq zTPBdoLXKp<*|TT$EnT`y<@oVq7L1Hc|Nj5~$0Q{s{TOKYEnqqJ52pFouU{;C_UyI! z`}Yqkh|kT<^C=}IWq(&!R~ay=J;WMBNFW$kP}(nBwp8lXt5@v!;s9vCAAkRVmmwh` zr-58h7W)B9&-g4rF4cKK)E}hQXX4|LAC%_ z5ed?G3y8M?4V&cP;BWyX7#J9|2gsiXmHS6jMnKQwI569V3m3|WQ41;~VC4i^)d;Bo Y02ygPx^W;a{{R3007*qoM6N<$f(YoqQ2+n{ diff --git a/packages/mindplot/test/playground/map-render/images/topic-icon.png b/packages/mindplot/test/playground/map-render/images/topic-icon.png deleted file mode 100644 index 1bb8c98d208e4001bc4cc7138956f3674d9e7767..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 916 zcmV;F18e+=P)%>tgb35DzXMr zN#~* z3e zKw|emX+D@3EH+hv*b<0&kYgDt#}34`Fh1Bx4QPKbiP+ZxwL<|IB z_&mQ5ENumY*o%cWqBepAk;6i;Od*J=#70XS6|GZ81WU0{gCBq3x;_o;6JoB|c*xzq3*w)AH2}U>)}D zL=lqh72LoUJb_fX2hAr)({w^b8b#5Dxh`DS?Y1WKj(-I!O87f51NtxgpXS@eOtswP zIF9cztB&K8lO*{tpFT2eO{JcTRacmYV-taV<0guqk*|tUmSvZ43rFAWiNWM2rVtm6F`as z%wc0=7X?y300M{+Ss4q6Xl`!$|NQxj1q>Ax6fmk0!0_cN1yLRms z1KM!`ZWPG9+}zx^uV240Gc+{B(ap`>hoP>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FG`hI>x?(LT<=TpK;~-}E!croA--fx3?`Hn@WughV#SqkDUM`N zu0W=#l1#C=6lMWP4w+5Ra%|!D<;$1Mh@Crkc7k~z z8GC#C=|Vz+n*jod5kr}jl;kEb4&dVz|PKbj-8$D>DRAceL;%g z5+LyV_a8VLEHPn1{|puu)+@ro!c4NVG77I=y?zQ1Kqxk%0GMSUi-C4T0x{UFOfa)S z;Kz@jM}Zhs2S^nPn~#rgGf07hgM%;70d0(ojDkRJCQEH??Ng9MX=y3L{{8zofXwe8 zK0pAW_yY+{2I7lAJO^12B|?pP8BE*5AK>)KH?2i;MFf3@a-uvqKdNfxL>_`c@HK4jA@3WM~{Hn+}zwxp< z_3IZml%#`tURhdNJVk^WE64`s9XqxkMbdxU(b16& zNdF=^X#fNm$r?xnxUw`dCq$gGRCwBA{Qv(y0}L>M2re$J&2Y~5 z@85;)+_~cp5I~F=$`~0LcY%3O8B-7q5I`u(kO33A02>?IZm==9bN~bp@kU`t0G+m( ziHYelTn1zm5*CE9!Nl#`x7|VR2jZhJ37nP#1Q1RMf{sFRoG=jIBw7Q|#(!;XZTo>t zc_$~QB^(?a#pnv)SVcu;HAo@chd?$+3|S3&a4-g6jxW*4j`Qf)Ub;f4R8#K z3v@9iH23d9=D&XZng_3^fie6AsA&yU^BNEzucv`nGB!4LKFHG`8pNkKX^6fp{wr_XEY>Qxs`H1D;>JcyX1c)!-(<~w)vXPygeG5J{ID;r5Az=fMdd$hmxe%K?Nc_#4H%yU{kq^iXBDP(- zb~OnL3$F(%I|Rh{f%pxSJ_Hg6$%EA4^8qo*6cmXLK&%DC0zmu;h_3+g0U-W5;28}7 XBg+jtgAE7s00000NkvXXu0mjf?26-k diff --git a/packages/mindplot/test/playground/map-render/images/zoom-in.png b/packages/mindplot/test/playground/map-render/images/zoom-in.png deleted file mode 100644 index 008cfc49965bb54cb1cf9f50eb4e034ba45cbee8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 790 zcmV+x1L^#UP)caR-QZBRK$W6v!9GOb0b0Bt7R#sjG3PYGfQM?DWWizrkFvO;T zLd|F{qDD*XHRZz~jM!*t@nn&#%_%aO%M_B22M zksnG#10);zfcOYBv`z!DH#UF5Z14bLRiMCPAg;W1>(&k+KLZw|7&dTna_%iIF78A& z38WZ?k>deugMfg*$6dR2eF4Tc0}LOD{RTD=N>4|zVdKV)@u18C#9C0{IFMgJCWB%e z*=9In?%cUkpdLN|r9oH{-P7nXs|Cu=KrFLp(V~e!wYxx?kkzoDh4M8hW{8cA%?DBw z@87>41*CiF7t;U%MzRfLB_*UxhYXy7csUT?2I4o+~{LbXl@rp7FSJ`fTT z0=amzzP|p7A3uJ$V{sARvuDpvLK7HDQpT3(Fnj?!6xATAmfF<+w{Hw^2^JQXOYlSAJ_*#a5n8fBUl#bivu75D=VvID6Rrx zHXwF|xel+Z00IcNt8f5#kOD*FNP2quJRs8?h@F&`l~=K`v7G>hBLfJdcn@mJW|$br z!9Y9>i2uVdwh%NF5fQ0-`}Qp_ko^aUf3vc(3jhB7+X^Y%5H{ezn&#%_%NrXT83@J^ zE&vcf_6z!`Jr&Yc4F@Bt_d!jc$C2rXu{K-n2&@}fnHCIZ#%f@wnW0}{9f#SF2r zvH3u1;{E&gqkwcT{bCv*z(}@%RDj}VSiC`jGZ3c$u?Y|h0`Ywy-V4OtK>QXtb0Py^ zqQUJ0kOjb^XvyEdf7O88m%6&T-@?Me-iwKe{keMeD*L>7^F+UV`2tFgN;^CxCbh5Z?sit3bRJB)?$6f-+=Vaan*XnQ8$`<3M00m)yR6 zI}b8P=#Kc7TKY#vk0271&FhTeOrJrLd;D{={00000NkvXXu0mjf9FAN- diff --git a/packages/web2d/src/components/Workspace.js b/packages/web2d/src/components/Workspace.js index e5c281c4..cc6110c4 100644 --- a/packages/web2d/src/components/Workspace.js +++ b/packages/web2d/src/components/Workspace.js @@ -197,9 +197,8 @@ class Workspace extends ElementClass { this.peer.removeChild(element.peer); } - dumpNativeChart() { - const elem = this._htmlContainer; - return elem.innerHTML; + getSVGElement() { + return this._htmlContainer.firstChild; } }