mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-25 15:47:55 +01:00
fixes merge branch develop
This commit is contained in:
parent
b95ae5ddc7
commit
529a45969e
@ -9,7 +9,18 @@ context('Playground', () => {
|
||||
cy.matchImageSnapshot('layout');
|
||||
});
|
||||
it('viewmode page should match its snapshot', () => {
|
||||
['welcome', 'sample1', 'sample2', 'sample3', 'sample4', 'sample5', 'sample6', 'complex', 'img-support', 'icon-sample'].forEach((mapId) => {
|
||||
[
|
||||
'welcome',
|
||||
'sample1',
|
||||
'sample2',
|
||||
'sample3',
|
||||
'sample4',
|
||||
'sample5',
|
||||
'sample6',
|
||||
'complex',
|
||||
'img-support',
|
||||
'icon-sample',
|
||||
].forEach((mapId) => {
|
||||
cy.visit(`/viewmode.html?id=${mapId}`);
|
||||
cy.get('#mindplot.ready').should('exist');
|
||||
cy.matchImageSnapshot(`viewmode-${mapId}`);
|
||||
@ -17,9 +28,7 @@ context('Playground', () => {
|
||||
});
|
||||
it('the playground container.html page should match its snapshot', () => {
|
||||
cy.visit('/container.html');
|
||||
cy.getIframeBody()
|
||||
.find('#mindplot.ready')
|
||||
.should('exist');
|
||||
cy.getIframeBody().find('#mindplot.ready').should('exist');
|
||||
cy.matchImageSnapshot('container');
|
||||
});
|
||||
it('the playground editor.html page should match its snapshot', () => {
|
||||
|
@ -34,49 +34,49 @@ abstract class ActionDispatcher extends Events {
|
||||
super();
|
||||
}
|
||||
|
||||
abstract addRelationship(model: RelationshipModel, mindmap: Mindmap);
|
||||
abstract addRelationship(model: RelationshipModel, mindmap: Mindmap);
|
||||
|
||||
abstract addTopics(models: NodeModel[], parentTopicId: any[]);
|
||||
abstract addTopics(models: NodeModel[], parentTopicId: any[]);
|
||||
|
||||
abstract deleteEntities(topicsIds: number[], relIds: number[]);
|
||||
abstract deleteEntities(topicsIds: number[], relIds: number[]);
|
||||
|
||||
abstract dragTopic(topicId: number, position: Point, order: number, parentTopic: Topic);
|
||||
abstract dragTopic(topicId: number, position: Point, order: number, parentTopic: Topic);
|
||||
|
||||
abstract moveTopic(topicId: number, position: any);
|
||||
abstract moveTopic(topicId: number, position: any);
|
||||
|
||||
abstract moveControlPoint(ctrlPoint: this, point: any);
|
||||
abstract moveControlPoint(ctrlPoint: this, point: any);
|
||||
|
||||
abstract changeFontFamilyToTopic(topicIds: number[], fontFamily: string);
|
||||
abstract changeFontFamilyToTopic(topicIds: number[], fontFamily: string);
|
||||
|
||||
abstract changeFontStyleToTopic(topicsIds: number[]);
|
||||
abstract changeFontStyleToTopic(topicsIds: number[]);
|
||||
|
||||
abstract changeFontColorToTopic(topicsIds: number[], color: string);
|
||||
abstract changeFontColorToTopic(topicsIds: number[], color: string);
|
||||
|
||||
abstract changeFontSizeToTopic(topicsIds: number[], size: number);
|
||||
abstract changeFontSizeToTopic(topicsIds: number[], size: number);
|
||||
|
||||
abstract changeBackgroundColorToTopic(topicsIds: number[], color: string);
|
||||
abstract changeBackgroundColorToTopic(topicsIds: number[], color: string);
|
||||
|
||||
abstract changeBorderColorToTopic(topicsIds: number[], color: string);
|
||||
abstract changeBorderColorToTopic(topicsIds: number[], color: string);
|
||||
|
||||
abstract changeShapeTypeToTopic(topicsIds: number[], shapeType: string);
|
||||
abstract changeShapeTypeToTopic(topicsIds: number[], shapeType: string);
|
||||
|
||||
abstract changeFontWeightToTopic(topicsIds: number[]);
|
||||
abstract changeFontWeightToTopic(topicsIds: number[]);
|
||||
|
||||
abstract changeTextToTopic(topicsIds: number[], text: string);
|
||||
abstract changeTextToTopic(topicsIds: number[], text: string);
|
||||
|
||||
abstract shrinkBranch(topicsIds: number[], collapse: boolean);
|
||||
abstract shrinkBranch(topicsIds: number[], collapse: boolean);
|
||||
|
||||
abstract addFeatureToTopic(topicId: number, type: string, attributes: object);
|
||||
abstract addFeatureToTopic(topicId: number, type: string, attributes: object);
|
||||
|
||||
abstract changeFeatureToTopic(topicId: number, featureId: any, attributes: object);
|
||||
abstract changeFeatureToTopic(topicId: number, featureId: any, attributes: object);
|
||||
|
||||
abstract removeFeatureFromTopic(topicId: number, featureId: number);
|
||||
abstract removeFeatureFromTopic(topicId: number, featureId: number);
|
||||
|
||||
static setInstance = (dispatcher: ActionDispatcher) => {
|
||||
this._instance = dispatcher;
|
||||
};
|
||||
static setInstance = (dispatcher: ActionDispatcher) => {
|
||||
this._instance = dispatcher;
|
||||
};
|
||||
|
||||
static getInstance = (): ActionDispatcher => ActionDispatcher._instance;
|
||||
static getInstance = (): ActionDispatcher => ActionDispatcher._instance;
|
||||
}
|
||||
|
||||
export default ActionDispatcher;
|
||||
|
@ -1,120 +0,0 @@
|
||||
<map name="70866" version="tango">
|
||||
<topic central="true" text="La computadora" shape="rounded rectagle" id="1" fontStyle="Verdana;15;#feffff;bold;;"
|
||||
bgColor="#cc0000" brColor="#660000">
|
||||
<topic position="220,0" order="0" shape="rounded rectagle" id="21" fontStyle=";10;#feffff;bold;;"
|
||||
bgColor="#a64d79" brColor="#4c1130">
|
||||
<text><![CDATA[Hardware
|
||||
(componentes físicos)]]></text>
|
||||
<topic position="386,-29" order="0" shape="rounded rectagle" id="25" fontStyle=";8;#feffff;;;"
|
||||
bgColor="#c27ba0" brColor="#4c1130">
|
||||
<text><![CDATA[Entrada de datos
|
||||
]]></text>
|
||||
<topic position="558,-34" order="0" shape="rounded rectagle" id="28" fontStyle=";8;#000000;;;"
|
||||
bgColor="#ead1dc" brColor="#4c1130">
|
||||
<text><![CDATA[ Ratón, Teclado, Joystick,
|
||||
Cámara digital, Micrófono, Escáner.]]></text>
|
||||
</topic>
|
||||
</topic>
|
||||
<topic position="383,0" order="1" text="Salida de datos" shape="rounded rectagle" id="29"
|
||||
fontStyle=";8;#feffff;;;" bgColor="#c27ba0" brColor="#4c1130">
|
||||
<topic position="554,0" order="0" shape="rounded rectagle" id="30" fontStyle=";8;#000000;;;"
|
||||
bgColor="#ead1dc" brColor="#4c1130">
|
||||
<text><![CDATA[Monitor, Impresora, Bocinas, Plóter.
|
||||
]]></text>
|
||||
</topic>
|
||||
</topic>
|
||||
<topic position="387,40" order="2" text="Almacenamiento" shape="rounded rectagle" id="31"
|
||||
fontStyle=";8;#feffff;;;" bgColor="#c27ba0" brColor="#4c1130">
|
||||
<topic position="553,35" order="0" shape="rounded rectagle" id="32" fontStyle=";8;#000000;;;"
|
||||
bgColor="#ead1dc" brColor="#4c1130">
|
||||
<text><![CDATA[Disquete, Disco compacto, DVD,
|
||||
BD, Disco duro, Memoria flash.]]></text>
|
||||
</topic>
|
||||
</topic>
|
||||
</topic>
|
||||
<topic position="-314,-72" order="1" shape="rectagle" id="59" fontStyle=";8;#000000;bold;;" bgColor="#bf9000"
|
||||
brColor="#7f6000">
|
||||
<text><![CDATA[Software
|
||||
(Programas y datos con los que funciona la computadora)
|
||||
]]></text>
|
||||
<topic position="-664,-145" order="0" shape="rectagle" id="92" fontStyle=";8;#000000;normal;;"
|
||||
bgColor="#f1c232" brColor="#7f6000">
|
||||
<text><![CDATA[Software de Sistema:Permite el entendimiento
|
||||
entre el usuario y la maquina.]]></text>
|
||||
<topic position="-883,-174" order="0" text="Microsoft Windows" shape="rectagle" id="101"
|
||||
fontStyle=";8;#000000;;;" bgColor="#ffd966" brColor="#7f6000"/>
|
||||
<topic position="-864,-145" order="1" text="GNU/LINUX" shape="rectagle" id="106"
|
||||
fontStyle=";8;#000000;;;" bgColor="#ffd966" brColor="#7f6000"/>
|
||||
<topic position="-846,-116" order="2" text="MAC " shape="rectagle" id="107" fontStyle=";8;#000000;;;"
|
||||
bgColor="#ffd966" brColor="#7f6000"/>
|
||||
</topic>
|
||||
<topic position="-667,-43" order="1" shape="rectagle" id="93" fontStyle=";8;#000000;;;" bgColor="#f1c232"
|
||||
brColor="#7f6000">
|
||||
<text><![CDATA[Software de Aplicación: Permite hacer hojas de
|
||||
calculo navegar en internet, base de datos, etc.]]></text>
|
||||
<topic position="-855,-87" order="0" text="Office" shape="rectagle" id="108" fontStyle=";8;#000000;;;"
|
||||
bgColor="#ffd966" brColor="#783f04"/>
|
||||
<topic position="-869,-58" order="1" text="Libre Office" shape="rectagle" id="109"
|
||||
fontStyle=";8;#000000;;;" bgColor="#ffd966" brColor="#7f6000"/>
|
||||
<topic position="-873,-29" order="2" text="Navegadores" shape="rectagle" id="110"
|
||||
fontStyle=";8;#000000;;;" bgColor="#ffd966" brColor="#7f6000"/>
|
||||
<topic position="-851,0" order="3" text="Msn" shape="rectagle" id="111" fontStyle=";8;#000000;;;"
|
||||
bgColor="#ffd966" brColor="#783f04"/>
|
||||
</topic>
|
||||
<topic position="-590,29" order="2" shape="rectagle" id="94" fontStyle=";8;#000000;;;" bgColor="#f1c232"
|
||||
brColor="#7f6000">
|
||||
<text><![CDATA[Software de Desarrollo
|
||||
]]></text>
|
||||
</topic>
|
||||
</topic>
|
||||
<topic position="-218,116" order="3" text="Tipos de computadora" shape="elipse" id="3" fontStyle=";10;;bold;;">
|
||||
<topic position="-476,58" order="0" text="Computadora personal de escritorio o Desktop" shape="elipse"
|
||||
id="8" fontStyle=";8;;bold;;"/>
|
||||
<topic position="-352,87" order="1" shape="elipse" id="10" fontStyle=";8;;bold;;">
|
||||
<text><![CDATA[PDA
|
||||
]]></text>
|
||||
</topic>
|
||||
<topic position="-360,116" order="2" text="Laptop" shape="elipse" id="11" fontStyle=";8;;bold;;"/>
|
||||
<topic position="-365,145" order="3" text="Servidor" shape="elipse" id="12" fontStyle=";8;;bold;;"/>
|
||||
<topic position="-368,174" order="4" text="Tablet PC" shape="elipse" id="13" fontStyle=";8;;bold;;"/>
|
||||
</topic>
|
||||
</topic>
|
||||
<topic position="283,192" text="CPU y sus partes internas" shape="rounded rectagle" id="35"
|
||||
fontStyle=";10;#feffff;;;" bgColor="#c27ba0" brColor="#4c1130">
|
||||
<topic position="493,120" order="0" text="Ranuras de expansión o PCI" shape="rounded rectagle" id="36"
|
||||
fontStyle=";8;#000000;;;" bgColor="#ead1dc" brColor="#4c1130"/>
|
||||
<topic position="458,149" order="1" shape="rounded rectagle" id="38" fontStyle=";8;#000000;;;" bgColor="#ead1dc"
|
||||
brColor="#4c1130">
|
||||
<text><![CDATA[Memoria RAM
|
||||
]]></text>
|
||||
</topic>
|
||||
<topic position="466,178" order="2" shape="rounded rectagle" id="40" fontStyle=";8;#000000;;;" bgColor="#ead1dc"
|
||||
brColor="#4c1130">
|
||||
<text><![CDATA[Unidades ópticas
|
||||
]]></text>
|
||||
</topic>
|
||||
<topic position="457,207" order="3" shape="rounded rectagle" id="41" fontStyle=";8;#000000;;;" bgColor="#ead1dc"
|
||||
brColor="#4c1130">
|
||||
<text><![CDATA[Tarjeta Madre
|
||||
]]></text>
|
||||
</topic>
|
||||
<topic position="465,236" order="4" shape="rounded rectagle" id="42" fontStyle=";8;#000000;;;" bgColor="#ead1dc"
|
||||
brColor="#4c1130">
|
||||
<text><![CDATA[Microprocesador
|
||||
]]></text>
|
||||
</topic>
|
||||
<topic position="450,265" order="5" shape="rounded rectagle" id="43" fontStyle=";8;#000000;;;" bgColor="#ead1dc"
|
||||
brColor="#4c1130">
|
||||
<text><![CDATA[Disco Duro
|
||||
]]></text>
|
||||
</topic>
|
||||
</topic>
|
||||
<topic position="80,-215" shape="rounded rectagle" 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>
|
||||
<relationship srcTopicId="35" destTopicId="21" lineType="3" endArrow="true" startArrow="false"/>
|
||||
<relationship srcTopicId="118" destTopicId="1" lineType="3" endArrow="true" startArrow="false"/>
|
||||
<relationship srcTopicId="118" destTopicId="1" lineType="3" endArrow="true" startArrow="false"/>
|
||||
</map>
|
@ -1,48 +0,0 @@
|
||||
<map name="welcome" version="tango">
|
||||
<topic central="true" text="Welcome To WiseMapping" id="1" fontStyle=";;#dfcfe6;;;" bgColor="#0a0a08">
|
||||
<topic position="178,-130" order="0" text="Try it Now!" id="11" fontStyle=";;#ffffff;;;" bgColor="#250be3"
|
||||
brColor="#080559">
|
||||
<topic position="272,-156" order="0" text="Double Click" id="12" fontStyle=";;#001be6;;italic;"/>
|
||||
<topic position="274,-130" order="1" text=" INS to insert" id="13" fontStyle=";;#001be6;;italic;"/>
|
||||
<topic position="285,-104" order="2" text="Drag map to move" id="14" fontStyle=";;#001be6;;italic;"/>
|
||||
</topic>
|
||||
<topic position="-189,-52" order="1" text="Productivity" id="2" fontStyle=";;#104f11;;;" bgColor="#d9b518">
|
||||
<icon id="chart_bar"/>
|
||||
<topic position="-310,-104" order="0" text="Share your ideas" id="3">
|
||||
<icon id="bulb_light_on"/>
|
||||
</topic>
|
||||
<topic position="-299,-25" order="2" text="Brainstorming" id="4"/>
|
||||
<topic position="-283,1" order="3" text="Visual " id="5"/>
|
||||
<topic position="-307,-65" order="1" shape="image" image="80,43:images/logo-small.png" id="27"
|
||||
metadata="{'media':'video,'url':'http://www.youtube.com/watch?v=P3FrXftyuzw&feature=g-vrec&context=G2b4ab69RVAAAAAAAAAA'}"/>
|
||||
</topic>
|
||||
<topic position="185,-39" order="2" text="Mind Mapping" id="6" fontStyle=";;#602378;;;" bgColor="#edabff">
|
||||
<topic position="303,-78" order="0" text="Share with Collegues" id="7"/>
|
||||
<topic position="275,-52" order="1" text="Online" id="8"/>
|
||||
<topic position="299,-26" order="2" text="Anyplace, Anytime" id="9"/>
|
||||
<topic position="277,0" order="3" text="Free!!!" id="10"/>
|
||||
</topic>
|
||||
<topic position="-183,66" order="3" text="Web 2.0 Tool" id="22" fontStyle=";;#0c1d6b;;;" bgColor="#add1f7">
|
||||
<topic position="-281,27" order="0" text="Collaborate" id="23"/>
|
||||
<topic position="-302,53" order="1" text="No plugin required" id="24">
|
||||
<icon id="conn_disconnect"/>
|
||||
</topic>
|
||||
<topic position="-271,79" order="2" text="Share" id="25"/>
|
||||
<topic position="-282,105" order="3" text="Easy to use" id="26"/>
|
||||
</topic>
|
||||
<topic position="171,91" order="4" text="Features" id="15">
|
||||
<topic position="266,26" order="0" text="Links to Sites" id="16" fontStyle=";6;;;;">
|
||||
<link url="http://www.digg.com" type="url"/>
|
||||
</topic>
|
||||
<topic position="245,52" order="1" text="Fonts" id="17"/>
|
||||
<topic position="255,78" order="2" text="Topic Color" id="18"/>
|
||||
<topic position="260,104" order="3" text="Topic Shapes" shape="line" id="19"/>
|
||||
<topic position="252,130" order="4" text="Icons" id="20">
|
||||
<icon id="object_rainbow"/>
|
||||
</topic>
|
||||
<topic position="272,156" order="5" text="History Changes" id="21">
|
||||
<icon id="arrowc_turn_left"/>
|
||||
</topic>
|
||||
</topic>
|
||||
</topic>
|
||||
</map>
|
Loading…
Reference in New Issue
Block a user