Fix contrl point load.

This commit is contained in:
Paulo Gustavo Veiga 2022-11-30 19:45:16 -08:00
parent bcee2e21d4
commit 9c7376c360
9 changed files with 14 additions and 7 deletions

View File

@ -61,7 +61,7 @@ class MoveControlPointCommand extends Command {
default: default:
throw new Error('Illegal state exception'); throw new Error('Illegal state exception');
} }
this._controlPoint = { ...oldCtlPoint }; this._controlPoint = oldCtlPoint ? { ...oldCtlPoint } : null;
relationship.redraw(); relationship.redraw();
relationship.setOnFocus(true); relationship.setOnFocus(true);

View File

@ -497,12 +497,17 @@ class XMLSerializerTango implements XMLMindmapSerializer {
const spoint = Point.fromString(srcCtrlPoint); const spoint = Point.fromString(srcCtrlPoint);
if (spoint) { if (spoint) {
model.setSrcCtrlPoint(spoint); model.setSrcCtrlPoint(spoint);
} else {
console.error(`srcCtrlPoint could not be parsed: ${srcCtrlPoint}`);
} }
const dpoint = Point.fromString(destCtrlPoint); const dpoint = Point.fromString(destCtrlPoint);
if (dpoint) { if (dpoint) {
model.setDestCtrlPoint(dpoint); model.setDestCtrlPoint(dpoint);
} else {
console.error(`destCtrlPoint could not be parsed: ${destCtrlPoint}`);
} }
model.setEndArrow(false); model.setEndArrow(false);
model.setStartArrow(true); model.setStartArrow(true);
return model; return model;

View File

@ -1 +1 @@
<map name="cdata-support" version="tango"><topic central="true" text="Observation" shape="rectangle" id="1"><note><![CDATA[Always ask ]]></note></topic><topic position="-4,-107" text="Data Analysis" id="29"><note><![CDATA[You always check your data to see if it is correct and then you check it and organize the data that you have to make sure that it is right ]]></note></topic><topic position="-143,-31" text="Organizing Data" id="30"><note><![CDATA[Organize your data when you are doing an experiment ]]></note></topic><topic position="181,-42" text="Questions" id="31"><note><![CDATA[Always ask your self a question when analysis the data it is a good idea to do.]]></note></topic><topic position="-6,46" text="Hypothesis" id="32"><note><![CDATA[You make your hypothesis when you are making your observation.]]></note></topic><topic position="-305,-50" text="Experiment" id="33"><note><![CDATA[Always analysis your data and keep it in order when you are doing an experiment.]]></note></topic><topic position="211,-151" text="Variable" id="34"><note><![CDATA[A major factor that can change the outcome in an experiment.]]></note></topic><topic position="327,-64" text="Independent Variable" id="35"><note><![CDATA[When you change it you the see affect or the aftermath of what happened ]]></note></topic><topic position="-304,14" text="Control Group" id="37"><note><![CDATA[A test That can be compared ]]></note></topic><topic position="323,98" text="Dependent Variable" id="36"><note><![CDATA[Changes the outcome of the other variables]]></note></topic><topic position="-28,141" text="Constant " id="40"><note><![CDATA[Doesnt Change at all maybe once and a while but never that often]]></note></topic><relationship srcTopicId="30" destTopicId="33" lineType="3" srcCtrlPoint="-53,0" destCtrlPoint="-20,0" endArrow="false" startArrow="true"/><relationship srcTopicId="33" destTopicId="35" lineType="3" srcCtrlPoint="191,-113" destCtrlPoint="-354,-98" endArrow="false" startArrow="true"/><relationship srcTopicId="33" destTopicId="34" lineType="3" srcCtrlPoint="-14,-117" destCtrlPoint="-218,-20" endArrow="false" startArrow="true"/><relationship srcTopicId="34" destTopicId="36" lineType="3" srcCtrlPoint="66,43" destCtrlPoint="199,-215" endArrow="false" startArrow="true"/></map> <map name="cdata-support" version="tango"><topic central="true" text="Observation" shape="rectangle" id="1"><note><![CDATA[Always ask ]]></note></topic><topic position="-4,-107" text="Data Analysis" id="29"><note><![CDATA[You always check your data to see if it is correct and then you check it and organize the data that you have to make sure that it is right ]]></note></topic><topic position="-143,-31" text="Organizing Data" id="30"><note><![CDATA[Organize your data when you are doing an experiment ]]></note></topic><topic position="181,-42" text="Questions" id="31"><note><![CDATA[Always ask your self a question when analysis the data it is a good idea to do.]]></note></topic><topic position="-6,46" text="Hypothesis" id="32"><note><![CDATA[You make your hypothesis when you are making your observation.]]></note></topic><topic position="-305,-50" text="Experiment" id="33"><note><![CDATA[Always analysis your data and keep it in order when you are doing an experiment.]]></note></topic><topic position="211,-151" text="Variable" id="34"><note><![CDATA[A major factor that can change the outcome in an experiment.]]></note></topic><topic position="327,-64" text="Independent Variable" id="35"><note><![CDATA[When you change it you the see affect or the aftermath of what happened ]]></note></topic><topic position="-304,14" text="Control Group" id="37"><note><![CDATA[A test That can be compared ]]></note></topic><topic position="323,98" text="Dependent Variable" id="36"><note><![CDATA[Changes the outcome of the other variables]]></note></topic><topic position="-28,141" text="Constant " id="40"><note><![CDATA[Doesnt Change at all maybe once and a while but never that often]]></note></topic><relationship srcTopicId="1" destTopicId="29" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="29" destTopicId="30" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="1" destTopicId="31" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="1" destTopicId="32" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="30" destTopicId="33" lineType="3" srcCtrlPoint="-53,0" destCtrlPoint="-20,0" endArrow="false" startArrow="true"/><relationship srcTopicId="33" destTopicId="29" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="29" destTopicId="31" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="33" destTopicId="35" lineType="3" srcCtrlPoint="191,-113" destCtrlPoint="-354,-98" endArrow="false" startArrow="true"/><relationship srcTopicId="33" destTopicId="37" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="33" destTopicId="34" lineType="3" srcCtrlPoint="-14,-117" destCtrlPoint="-218,-20" endArrow="false" startArrow="true"/><relationship srcTopicId="35" destTopicId="36" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="34" destTopicId="36" lineType="3" srcCtrlPoint="66,43" destCtrlPoint="199,-215" endArrow="false" startArrow="true"/><relationship srcTopicId="33" destTopicId="40" lineType="3" endArrow="false" startArrow="true"/></map>

View File

@ -48,4 +48,4 @@ Attached below a sample of such screening questions]]></note></topic><topic posi
Understand values and priorities. Understand values and priorities.
Decrease the learning curve.]]></note></topic><topic position="1047,61" order="1" text="Related Strategic Priorities" id="87"><note><![CDATA[1]]></note></topic><topic position="1050,85" order="2" text="KPI: Employee Performance" id="61"><eicon id="📊"/></topic><topic position="1011,112" order="3" text="Methodology" id="80"><topic position="1131,111" order="0" text="Target" id="102"/></topic></topic><topic position="824,186" order="3" text="Goal: Reduce Turnover" id="52"><eicon id="🏈"/><note><![CDATA[To reduce turnover of Top Talent.]]></note><topic position="994,145" order="0" text="So That" id="62"><eicon id="🌈"/><note><![CDATA[ Provide support through feedback. Decrease the learning curve.]]></note></topic><topic position="1047,61" order="1" text="Related Strategic Priorities" id="87"><note><![CDATA[1]]></note></topic><topic position="1050,85" order="2" text="KPI: Employee Performance" id="61"><eicon id="📊"/></topic><topic position="1011,112" order="3" text="Methodology" id="80"><topic position="1131,111" order="0" text="Target" id="102"/></topic></topic><topic position="824,186" order="3" text="Goal: Reduce Turnover" id="52"><eicon id="🏈"/><note><![CDATA[To reduce turnover of Top Talent.]]></note><topic position="994,145" order="0" text="So That" id="62"><eicon id="🌈"/><note><![CDATA[ Provide support through feedback.
Help the employee feel valued. Help the employee feel valued.
Again, decrease the learning curve.]]></note></topic><topic position="1021,169" order="1" text="Related Strategic Priorities" id="88"/><topic position="1014,193" order="2" text="KPI: Retention Rate" id="63"><eicon id="📊"/></topic><topic position="992,221" order="3" text="Methodology" shrink="true" id="98"><topic position="1112,219" order="0" text="Target" id="101"/></topic></topic><topic position="814,253" order="4" text="Risk &amp; Compliance" id="246"><eicon id="🏈"/><note><![CDATA[To eliminate or minimize risk and to comply with all legislated requirements. ]]></note></topic></topic></topic></map> Again, decrease the learning curve.]]></note></topic><topic position="1021,169" order="1" text="Related Strategic Priorities" id="88"/><topic position="1014,193" order="2" text="KPI: Retention Rate" id="63"><eicon id="📊"/></topic><topic position="992,221" order="3" text="Methodology" shrink="true" id="98"><topic position="1112,219" order="0" text="Target" id="101"/></topic></topic><topic position="814,253" order="4" text="Risk &amp; Compliance" id="246"><eicon id="🏈"/><note><![CDATA[To eliminate or minimize risk and to comply with all legislated requirements. ]]></note></topic></topic></topic><relationship srcTopicId="154" destTopicId="6" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="4" destTopicId="156" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="16" destTopicId="162" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="31" destTopicId="91" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="91" destTopicId="105" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="10" destTopicId="163" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="204" destTopicId="9" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="204" destTopicId="33" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="206" destTopicId="208" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="18" destTopicId="215" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="91" destTopicId="105" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="91" destTopicId="105" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="247" destTopicId="248" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="156" destTopicId="166" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="166" destTopicId="167" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="167" destTopicId="2" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="270" destTopicId="130" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="275" destTopicId="298" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="123" destTopicId="220" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="6" destTopicId="29" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="29" destTopicId="31" lineType="3" endArrow="false" startArrow="true"/></map>

View File

@ -15,4 +15,4 @@ calculo navegar en internet, base de datos, etc.]]></text><topic position="-855,
]]></text></topic><topic position="465,236" order="4" shape="rounded rectangle" id="42" fontStyle=";8;#000000;;;" bgColor="#ead1dc" brColor="#4c1130"><text><![CDATA[Microprocesador ]]></text></topic><topic position="465,236" order="4" shape="rounded rectangle" id="42" fontStyle=";8;#000000;;;" bgColor="#ead1dc" brColor="#4c1130"><text><![CDATA[Microprocesador
]]></text></topic><topic position="450,265" order="5" shape="rounded rectangle" id="43" fontStyle=";8;#000000;;;" bgColor="#ead1dc" brColor="#4c1130"><text><![CDATA[Disco Duro ]]></text></topic><topic position="450,265" order="5" shape="rounded rectangle" id="43" fontStyle=";8;#000000;;;" bgColor="#ead1dc" brColor="#4c1130"><text><![CDATA[Disco Duro
]]></text></topic></topic><topic position="80,-215" shape="rounded rectangle" id="118" fontStyle=";10;#feffff;;;" bgColor="#cc0000" brColor="#660000"><text><![CDATA[Máquina electrónica que sirve para: escribir, dibujar, pintar, ]]></text></topic></topic><topic position="80,-215" shape="rounded rectangle" id="118" fontStyle=";10;#feffff;;;" bgColor="#cc0000" brColor="#660000"><text><![CDATA[Máquina electrónica que sirve para: escribir, dibujar, pintar,
escuchar música, ver videos, calcular, comunicarnos con otras personas, etc-]]></text></topic></map> escuchar música, ver videos, calcular, comunicarnos con otras personas, etc-]]></text></topic><relationship srcTopicId="35" destTopicId="21" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="118" destTopicId="1" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="118" destTopicId="1" lineType="3" endArrow="false" startArrow="true"/></map>

View File

@ -1 +1 @@
<map name="npe" version="tango"><topic central="true" text="NIF (NORMAS DE INFORMACIÓN FINANCIERA)" shape="rounded rectangle" id="1" fontStyle=";10;#741b47;bold;;" bgColor="#d5a6bd" brColor="#e69138"><eicon id="✏️"/></topic><topic position="6,-284" text="NIF D" shape="rectangle" id="3" fontStyle="Arial;10;;bold;;" bgColor="#509dc0"><note><![CDATA[Beneficios a los empleados,impuestos a la utilidad, arrendamientos y capitalización de resultado integral .]]></note><eicon id="😎"/><topic position="211,-280" order="0" text=" Normas aplicables a problemas de determinación de resultados " id="19"/></topic><topic position="46,221" text=" CIRCULANTES" shape="rounded rectangle" id="7" fontStyle="Arial;10;;bold;;" bgColor="#509dc0"><note><![CDATA[Tratamiento contable de los gastos de registro, colocación, unidades de inversión, aplicación supletoria etc.]]></note><eicon id="☎️"/><topic position="236,225" order="0" text="Adquisición temporal de acciones propias" id="22"/></topic><topic position="-143,148" text=" NIF A" shape="rectangle" id="6" fontStyle="Arial;10;;bold;;" bgColor="#509dc0"><link url="http://www.youtube.com/watch?v=7YN-sOlkQp0" urlType="url"/><eicon id="⌛"/><topic position="-254,152" order="0" text=" Marco conceptual" id="20"/></topic><topic position="-150,-129" text=" NIF C" shape="rectangle" id="4" fontStyle="Arial;10;;bold;;" bgColor="#509dc0"><link url="https://sites.google.com/site/contabilidadimcpnif/estructura-de-las-nif" urlType="url"/><eicon id="🐵"/><topic position="-366,-125" order="0" text="Normas aplicables a conceptos específicos de los estados financieros " shape="line" id="13"/></topic><topic position="183,-153" text="NIF E" shape="rectangle" id="2" fontStyle="Arial;10;;bold;;" bgColor="#509dc0"><note><![CDATA[Agricultura y donativos recibidos u otorgados con propósitos no lucrativos.]]></note><icon id="soft_penguin"/><topic position="402,-149" order="0" text=" Normas aplicables alas actividades especializadas de distintos sectores" id="18"/></topic><topic position="326,127" text=" NIF B" shape="rectangle" id="5" fontStyle="Arial;10;;bold;;" bgColor="#509dc0"><link url="http://www.contaduria.uady.mx/files/cuerpo-acad/caef/aief/resumen_NIF_marco_conceptual.pdf" urlType="url"/><eicon id="🏠"/><topic position="521,131" order="0" text=" Normas aplicables a los estados financieros en su conjunto" id="21"/></topic></map> <map name="npe" version="tango"><topic central="true" text="NIF (NORMAS DE INFORMACIÓN FINANCIERA)" shape="rounded rectangle" id="1" fontStyle=";10;#741b47;bold;;" bgColor="#d5a6bd" brColor="#e69138"><eicon id="✏️"/></topic><topic position="6,-284" text="NIF D" shape="rectangle" id="3" fontStyle="Arial;10;;bold;;" bgColor="#509dc0"><note><![CDATA[Beneficios a los empleados,impuestos a la utilidad, arrendamientos y capitalización de resultado integral .]]></note><eicon id="😎"/><topic position="211,-280" order="0" text=" Normas aplicables a problemas de determinación de resultados " id="19"/></topic><topic position="46,221" text=" CIRCULANTES" shape="rounded rectangle" id="7" fontStyle="Arial;10;;bold;;" bgColor="#509dc0"><note><![CDATA[Tratamiento contable de los gastos de registro, colocación, unidades de inversión, aplicación supletoria etc.]]></note><eicon id="☎️"/><topic position="236,225" order="0" text="Adquisición temporal de acciones propias" id="22"/></topic><topic position="-143,148" text=" NIF A" shape="rectangle" id="6" fontStyle="Arial;10;;bold;;" bgColor="#509dc0"><link url="http://www.youtube.com/watch?v=7YN-sOlkQp0" urlType="url"/><eicon id="⌛"/><topic position="-254,152" order="0" text=" Marco conceptual" id="20"/></topic><topic position="-150,-129" text=" NIF C" shape="rectangle" id="4" fontStyle="Arial;10;;bold;;" bgColor="#509dc0"><link url="https://sites.google.com/site/contabilidadimcpnif/estructura-de-las-nif" urlType="url"/><eicon id="🐵"/><topic position="-366,-125" order="0" text="Normas aplicables a conceptos específicos de los estados financieros " shape="line" id="13"/></topic><topic position="183,-153" text="NIF E" shape="rectangle" id="2" fontStyle="Arial;10;;bold;;" bgColor="#509dc0"><note><![CDATA[Agricultura y donativos recibidos u otorgados con propósitos no lucrativos.]]></note><icon id="soft_penguin"/><topic position="402,-149" order="0" text=" Normas aplicables alas actividades especializadas de distintos sectores" id="18"/></topic><topic position="326,127" text=" NIF B" shape="rectangle" id="5" fontStyle="Arial;10;;bold;;" bgColor="#509dc0"><link url="http://www.contaduria.uady.mx/files/cuerpo-acad/caef/aief/resumen_NIF_marco_conceptual.pdf" urlType="url"/><eicon id="🏠"/><topic position="521,131" order="0" text=" Normas aplicables a los estados financieros en su conjunto" id="21"/></topic><relationship srcTopicId="3" destTopicId="1" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="4" destTopicId="1" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="1" destTopicId="4" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="7" destTopicId="1" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="6" destTopicId="1" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="5" destTopicId="1" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="2" destTopicId="1" lineType="3" endArrow="false" startArrow="true"/><relationship srcTopicId="1" destTopicId="2" lineType="3" endArrow="false" startArrow="true"/></map>

View File

@ -37,6 +37,8 @@
<node ID="ID_30" POSITION="right" TEXT="In 2010, 2,500 referrals forwarded to OneLegacy"/> <node ID="ID_30" POSITION="right" TEXT="In 2010, 2,500 referrals forwarded to OneLegacy"/>
</node> </node>
<node ID="ID_31" POSITION="right" STYLE="bubble" BACKGROUND_COLOR="#00ffd5" TEXT="Doheny Eye and Tissue Transplant Bank" LINK="http://www.dohenyeyebank.org/"/> <node ID="ID_31" POSITION="right" STYLE="bubble" BACKGROUND_COLOR="#00ffd5" TEXT="Doheny Eye and Tissue Transplant Bank" LINK="http://www.dohenyeyebank.org/"/>
<arrowlink DESTINATION="ID_32" STARTARROW="Default"/>
<arrowlink DESTINATION="ID_36" STARTARROW="Default"/>
</node> </node>
<node ID="ID_32" POSITION="right" STYLE="bubble" BACKGROUND_COLOR="#00ffd5" TEXT="OneLegacy"> <node ID="ID_32" POSITION="right" STYLE="bubble" BACKGROUND_COLOR="#00ffd5" TEXT="OneLegacy">
<node ID="ID_33" POSITION="right" TEXT="In 2010, 11,828 referrals"/> <node ID="ID_33" POSITION="right" TEXT="In 2010, 11,828 referrals"/>

File diff suppressed because one or more lines are too long

View File

@ -44,7 +44,7 @@ Point.fromString = function pointFromString(point) {
let result = null; let result = null;
if (point) { if (point) {
const values = point.split(','); const values = point.split(',');
if (values.lenght > 1) { if (values.length === 2) {
const x = Number.parseInt(values[0], 10); const x = Number.parseInt(values[0], 10);
const y = Number.parseInt(values[1], 10); const y = Number.parseInt(values[1], 10);