From 893e0245bb5d06b80a7526595d8e598e8e58989e Mon Sep 17 00:00:00 2001 From: Mathieu JOLLY Date: Sat, 11 Apr 2026 11:40:23 +0200 Subject: [PATCH 1/2] basic uncertainty range for the component --- frontend/src/__tests__/GivenConverter.js | 30 ++++++++++++ .../__tests__/GoldenMasterConverterOutput.txt | 2 +- .../GoldenMasterConverterOutput_new.txt | 2 +- ...MasterGetNoneEvolvedOrEvolvingElements.txt | 2 +- ...erGetNoneEvolvedOrEvolvingElements_new.txt | 2 +- .../GoldenMasterGetNoneEvolvingElements.txt | 2 +- ...oldenMasterGetNoneEvolvingElements_new.txt | 2 +- .../GoldenMasterMapElementsEvolve.txt | 2 +- .../GoldenMasterMapElementsEvolve_new.txt | 2 +- .../GoldenMasterMapElementsEvolved.txt | 2 +- .../GoldenMasterMapElementsEvolved_new.txt | 2 +- .../GoldenMasterMapElementsMergedElements.txt | 2 +- ...denMasterMapElementsMergedElements_new.txt | 2 +- .../GoldenMasterMapElementsNonEvolved.txt | 2 +- .../GoldenMasterMapElementsNonEvolved_new.txt | 2 +- .../map/VisualSelectionFeedback.test.tsx | 46 +++++++++++++++++++ frontend/src/components/map/MapComponent.tsx | 21 +++++++++ frontend/src/constants/editorPrefixes.ts | 1 + frontend/src/constants/extractionFunctions.ts | 31 +++++++++++++ frontend/src/constants/usages.ts | 5 ++ .../ExtendableComponentExtractionStrategy.ts | 1 + frontend/src/conversion/UnifiedConverter.ts | 10 +++- frontend/src/types/base.ts | 4 ++ frontend/src/types/unified/components.ts | 7 ++- 24 files changed, 168 insertions(+), 16 deletions(-) diff --git a/frontend/src/__tests__/GivenConverter.js b/frontend/src/__tests__/GivenConverter.js index f634300a..3637cd0c 100755 --- a/frontend/src/__tests__/GivenConverter.js +++ b/frontend/src/__tests__/GivenConverter.js @@ -29,11 +29,15 @@ describe('Convert test suite', function () { expect(result[e.container][0].name).toEqual('Customer'); expect(result[e.container][0].visibility).toEqual(1); expect(result[e.container][0].maturity).toEqual(0.4); + expect(result[e.container][0].uncertaintyLowerMaturity).toEqual(0.4); + expect(result[e.container][0].uncertaintyUpperMaturity).toEqual(0.4); expect(result[e.container][1].id).toEqual(2); expect(result[e.container][1].name).toEqual('Customer2'); expect(result[e.container][1].visibility).toEqual(0); expect(result[e.container][1].maturity).toEqual(0.1); + expect(result[e.container][1].uncertaintyLowerMaturity).toEqual(0.1); + expect(result[e.container][1].uncertaintyUpperMaturity).toEqual(0.1); }); test.each(genericMapComponents)('should create map component with inertia tag set to true', e => { @@ -47,6 +51,32 @@ describe('Convert test suite', function () { expect(result[e.container][0].visibility).toEqual(1); expect(result[e.container][0].maturity).toEqual(0.4); expect(result[e.container][0].inertia).toEqual(true); + expect(result[e.container][0].uncertaintyLowerMaturity).toEqual(0.4); + expect(result[e.container][0].uncertaintyUpperMaturity).toEqual(0.4); + }); + + test.each(genericMapComponents)('should parse uncertainty bounds as absolute maturity boundaries', e => { + let actual = `${e.keyword} Customer [1, 0.4] uncertainty [0.25, 0.75]\n`; + + let obj = new Converter(mockContextValue); + let result = obj.parse(actual); + + expect(result[e.container][0].maturity).toEqual(0.4); + expect(result[e.container][0].uncertaintyLowerMaturity).toEqual(0.25); + expect(result[e.container][0].uncertaintyUpperMaturity).toEqual(0.75); + }); + + test.each(genericMapComponents)('should preserve uncertainty with inertia and decorators on one component line', e => { + let actual = `${e.keyword} Customer [1, 0.4] uncertainty [0.2, 0.8] inertia (buy) label [7, -3]\n`; + + let obj = new Converter(mockContextValue); + let result = obj.parse(actual); + + expect(result[e.container][0].uncertaintyLowerMaturity).toEqual(0.2); + expect(result[e.container][0].uncertaintyUpperMaturity).toEqual(0.8); + expect(result[e.container][0].inertia).toEqual(true); + expect(result[e.container][0].decorators.buy).toEqual(true); + expect(result[e.container][0].label).toEqual({x: 7, y: -3}); }); test('should create links from string', function () { diff --git a/frontend/src/__tests__/GoldenMasterConverterOutput.txt b/frontend/src/__tests__/GoldenMasterConverterOutput.txt index 795863b2..180857e3 100644 --- a/frontend/src/__tests__/GoldenMasterConverterOutput.txt +++ b/frontend/src/__tests__/GoldenMasterConverterOutput.txt @@ -1 +1 @@ -{"title":"Golden Master","presentation":{"style":"plain","annotations":{"visibility":0.97,"maturity":0.64},"size":{"width":0,"height":0}},"errors":[],"components":[{"maturity":0.1,"visibility":0.9,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.27,"visibility":0.07,"label":{"x":-56,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.2,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}}],"anchors":[],"submaps":[{"maturity":0.5,"visibility":0.83,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"}],"markets":[],"ecosystems":[],"evolved":[{"name":"EvolveComponennt","maturity":0.7,"label":{"x":5,"y":-23},"override":"","line":50,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"increaseLabelSpacing":0},{"name":"Batteries","maturity":0.65,"label":{"x":-46,"y":-20},"override":"","line":69,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"increaseLabelSpacing":0}],"pipelines":[{"id":60,"name":"foo","visibility":0.73,"line":60,"components":[],"inertia":false,"hidden":false,"maturity1":0.24,"maturity2":0.39},{"id":65,"name":"Power","visibility":0.21,"line":65,"components":[{"id":"65-66","name":"Wind","maturity":0.72,"visibility":0,"line":67,"label":{"x":-13,"y":35}},{"id":"65-67","name":"Batteries","maturity":0.58,"visibility":0,"line":68,"label":{"x":-28,"y":35}},{"id":"65-69","name":"Nuclear","maturity":0.77,"visibility":0,"line":70,"label":{"x":-15,"y":36}}],"inertia":false,"hidden":false,"maturity1":0.58,"maturity2":0.77}],"evolution":[{"line1":"one","line2":""},{"line1":"two","line2":""},{"line1":"three","line2":""},{"line1":"four","line2":""}],"links":[{"start":"FooWithCoords","end":"InertiaComponent","flow":false,"future":false,"past":false,"context":"Constraint"}],"annotations":[{"id":26,"line":26,"increaseLabelSpacing":0,"number":1,"occurances":[{"visibility":0.85,"maturity":0.64},{"visibility":0.85,"maturity":0.68}],"text":"Standardising power allows Kettles to evolve faster"},{"id":27,"line":27,"increaseLabelSpacing":0,"number":2,"occurances":[{"visibility":0.78,"maturity":0.64}],"text":"Hot water is obvious and well known"}],"notes":[{"id":2,"line":2,"increaseLabelSpacing":0,"text":"A Map that contains all possible elements on a map.","maturity":0.01,"visibility":0.97}],"methods":[],"urls":[{"id":76,"line":76,"increaseLabelSpacing":0,"name":"submapUrl","url":"https://onlinewardleymaps.com/#clone:qu4VDDQryoZEnuw0ZZ"}],"attitudes":[{"id":33,"line":33,"increaseLabelSpacing":0,"attitude":"pioneers","maturity":0.83,"visibility":0.74,"maturity2":0.98,"visibility2":0.68,"width":""},{"id":34,"line":34,"increaseLabelSpacing":0,"attitude":"settlers","maturity":0.83,"visibility":0.88,"maturity2":0.98,"visibility2":0.82,"width":""},{"id":35,"line":35,"increaseLabelSpacing":0,"attitude":"townplanners","maturity":0.83,"visibility":0.81,"maturity2":0.98,"visibility2":0.75,"width":""}],"accelerators":[{"id":81,"line":81,"increaseLabelSpacing":0,"name":"foobar1","maturity":0.6,"visibility":0.2,"deaccelerator":false},{"id":82,"line":82,"increaseLabelSpacing":0,"name":"foobar33","maturity":0.6,"visibility":0.2,"deaccelerator":true}]} \ No newline at end of file +{"title":"Golden Master","presentation":{"style":"plain","annotations":{"visibility":0.97,"maturity":0.64},"size":{"width":0,"height":0}},"errors":[],"components":[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.27,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":-56,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}}],"anchors":[],"submaps":[{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"}],"markets":[],"ecosystems":[],"evolved":[{"name":"EvolveComponennt","maturity":0.7,"label":{"x":5,"y":-23},"override":"","line":50,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"increaseLabelSpacing":0},{"name":"Batteries","maturity":0.65,"label":{"x":-46,"y":-20},"override":"","line":69,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"increaseLabelSpacing":0}],"pipelines":[{"id":60,"name":"foo","visibility":0.73,"line":60,"components":[],"inertia":false,"hidden":false,"maturity1":0.24,"maturity2":0.39},{"id":65,"name":"Power","visibility":0.21,"line":65,"components":[{"id":"65-66","name":"Wind","maturity":0.72,"visibility":0,"line":67,"label":{"x":-13,"y":35}},{"id":"65-67","name":"Batteries","maturity":0.58,"visibility":0,"line":68,"label":{"x":-28,"y":35}},{"id":"65-69","name":"Nuclear","maturity":0.77,"visibility":0,"line":70,"label":{"x":-15,"y":36}}],"inertia":false,"hidden":false,"maturity1":0.58,"maturity2":0.77}],"evolution":[{"line1":"one","line2":""},{"line1":"two","line2":""},{"line1":"three","line2":""},{"line1":"four","line2":""}],"showEvolutionAxis":true,"showValueChainAxis":true,"links":[{"start":"FooWithCoords","end":"InertiaComponent","flow":false,"future":false,"past":false,"context":"Constraint"}],"annotations":[{"id":26,"line":26,"increaseLabelSpacing":0,"number":1,"occurances":[{"visibility":0.85,"maturity":0.64},{"visibility":0.85,"maturity":0.68}],"text":"Standardising power allows Kettles to evolve faster"},{"id":27,"line":27,"increaseLabelSpacing":0,"number":2,"occurances":[{"visibility":0.78,"maturity":0.64}],"text":"Hot water is obvious and well known"}],"notes":[{"id":2,"line":2,"increaseLabelSpacing":0,"text":"A Map that contains all possible elements on a map.","maturity":0.01,"visibility":0.97}],"methods":[],"urls":[{"id":76,"line":76,"increaseLabelSpacing":0,"name":"submapUrl","url":"https://onlinewardleymaps.com/#clone:qu4VDDQryoZEnuw0ZZ"}],"attitudes":[{"id":33,"line":33,"increaseLabelSpacing":0,"attitude":"pioneers","maturity":0.83,"visibility":0.74,"maturity2":0.98,"visibility2":0.68,"width":""},{"id":34,"line":34,"increaseLabelSpacing":0,"attitude":"settlers","maturity":0.83,"visibility":0.88,"maturity2":0.98,"visibility2":0.82,"width":""},{"id":35,"line":35,"increaseLabelSpacing":0,"attitude":"townplanners","maturity":0.83,"visibility":0.81,"maturity2":0.98,"visibility2":0.75,"width":""}],"accelerators":[{"id":81,"line":81,"increaseLabelSpacing":0,"name":"foobar1","maturity":0.6,"visibility":0.2,"deaccelerator":false},{"id":82,"line":82,"increaseLabelSpacing":0,"name":"foobar33","maturity":0.6,"visibility":0.2,"deaccelerator":true}]} \ No newline at end of file diff --git a/frontend/src/__tests__/GoldenMasterConverterOutput_new.txt b/frontend/src/__tests__/GoldenMasterConverterOutput_new.txt index 795863b2..180857e3 100644 --- a/frontend/src/__tests__/GoldenMasterConverterOutput_new.txt +++ b/frontend/src/__tests__/GoldenMasterConverterOutput_new.txt @@ -1 +1 @@ -{"title":"Golden Master","presentation":{"style":"plain","annotations":{"visibility":0.97,"maturity":0.64},"size":{"width":0,"height":0}},"errors":[],"components":[{"maturity":0.1,"visibility":0.9,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.27,"visibility":0.07,"label":{"x":-56,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.2,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}}],"anchors":[],"submaps":[{"maturity":0.5,"visibility":0.83,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"}],"markets":[],"ecosystems":[],"evolved":[{"name":"EvolveComponennt","maturity":0.7,"label":{"x":5,"y":-23},"override":"","line":50,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"increaseLabelSpacing":0},{"name":"Batteries","maturity":0.65,"label":{"x":-46,"y":-20},"override":"","line":69,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"increaseLabelSpacing":0}],"pipelines":[{"id":60,"name":"foo","visibility":0.73,"line":60,"components":[],"inertia":false,"hidden":false,"maturity1":0.24,"maturity2":0.39},{"id":65,"name":"Power","visibility":0.21,"line":65,"components":[{"id":"65-66","name":"Wind","maturity":0.72,"visibility":0,"line":67,"label":{"x":-13,"y":35}},{"id":"65-67","name":"Batteries","maturity":0.58,"visibility":0,"line":68,"label":{"x":-28,"y":35}},{"id":"65-69","name":"Nuclear","maturity":0.77,"visibility":0,"line":70,"label":{"x":-15,"y":36}}],"inertia":false,"hidden":false,"maturity1":0.58,"maturity2":0.77}],"evolution":[{"line1":"one","line2":""},{"line1":"two","line2":""},{"line1":"three","line2":""},{"line1":"four","line2":""}],"links":[{"start":"FooWithCoords","end":"InertiaComponent","flow":false,"future":false,"past":false,"context":"Constraint"}],"annotations":[{"id":26,"line":26,"increaseLabelSpacing":0,"number":1,"occurances":[{"visibility":0.85,"maturity":0.64},{"visibility":0.85,"maturity":0.68}],"text":"Standardising power allows Kettles to evolve faster"},{"id":27,"line":27,"increaseLabelSpacing":0,"number":2,"occurances":[{"visibility":0.78,"maturity":0.64}],"text":"Hot water is obvious and well known"}],"notes":[{"id":2,"line":2,"increaseLabelSpacing":0,"text":"A Map that contains all possible elements on a map.","maturity":0.01,"visibility":0.97}],"methods":[],"urls":[{"id":76,"line":76,"increaseLabelSpacing":0,"name":"submapUrl","url":"https://onlinewardleymaps.com/#clone:qu4VDDQryoZEnuw0ZZ"}],"attitudes":[{"id":33,"line":33,"increaseLabelSpacing":0,"attitude":"pioneers","maturity":0.83,"visibility":0.74,"maturity2":0.98,"visibility2":0.68,"width":""},{"id":34,"line":34,"increaseLabelSpacing":0,"attitude":"settlers","maturity":0.83,"visibility":0.88,"maturity2":0.98,"visibility2":0.82,"width":""},{"id":35,"line":35,"increaseLabelSpacing":0,"attitude":"townplanners","maturity":0.83,"visibility":0.81,"maturity2":0.98,"visibility2":0.75,"width":""}],"accelerators":[{"id":81,"line":81,"increaseLabelSpacing":0,"name":"foobar1","maturity":0.6,"visibility":0.2,"deaccelerator":false},{"id":82,"line":82,"increaseLabelSpacing":0,"name":"foobar33","maturity":0.6,"visibility":0.2,"deaccelerator":true}]} \ No newline at end of file +{"title":"Golden Master","presentation":{"style":"plain","annotations":{"visibility":0.97,"maturity":0.64},"size":{"width":0,"height":0}},"errors":[],"components":[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.27,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":-56,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}}],"anchors":[],"submaps":[{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"}],"markets":[],"ecosystems":[],"evolved":[{"name":"EvolveComponennt","maturity":0.7,"label":{"x":5,"y":-23},"override":"","line":50,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"increaseLabelSpacing":0},{"name":"Batteries","maturity":0.65,"label":{"x":-46,"y":-20},"override":"","line":69,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"increaseLabelSpacing":0}],"pipelines":[{"id":60,"name":"foo","visibility":0.73,"line":60,"components":[],"inertia":false,"hidden":false,"maturity1":0.24,"maturity2":0.39},{"id":65,"name":"Power","visibility":0.21,"line":65,"components":[{"id":"65-66","name":"Wind","maturity":0.72,"visibility":0,"line":67,"label":{"x":-13,"y":35}},{"id":"65-67","name":"Batteries","maturity":0.58,"visibility":0,"line":68,"label":{"x":-28,"y":35}},{"id":"65-69","name":"Nuclear","maturity":0.77,"visibility":0,"line":70,"label":{"x":-15,"y":36}}],"inertia":false,"hidden":false,"maturity1":0.58,"maturity2":0.77}],"evolution":[{"line1":"one","line2":""},{"line1":"two","line2":""},{"line1":"three","line2":""},{"line1":"four","line2":""}],"showEvolutionAxis":true,"showValueChainAxis":true,"links":[{"start":"FooWithCoords","end":"InertiaComponent","flow":false,"future":false,"past":false,"context":"Constraint"}],"annotations":[{"id":26,"line":26,"increaseLabelSpacing":0,"number":1,"occurances":[{"visibility":0.85,"maturity":0.64},{"visibility":0.85,"maturity":0.68}],"text":"Standardising power allows Kettles to evolve faster"},{"id":27,"line":27,"increaseLabelSpacing":0,"number":2,"occurances":[{"visibility":0.78,"maturity":0.64}],"text":"Hot water is obvious and well known"}],"notes":[{"id":2,"line":2,"increaseLabelSpacing":0,"text":"A Map that contains all possible elements on a map.","maturity":0.01,"visibility":0.97}],"methods":[],"urls":[{"id":76,"line":76,"increaseLabelSpacing":0,"name":"submapUrl","url":"https://onlinewardleymaps.com/#clone:qu4VDDQryoZEnuw0ZZ"}],"attitudes":[{"id":33,"line":33,"increaseLabelSpacing":0,"attitude":"pioneers","maturity":0.83,"visibility":0.74,"maturity2":0.98,"visibility2":0.68,"width":""},{"id":34,"line":34,"increaseLabelSpacing":0,"attitude":"settlers","maturity":0.83,"visibility":0.88,"maturity2":0.98,"visibility2":0.82,"width":""},{"id":35,"line":35,"increaseLabelSpacing":0,"attitude":"townplanners","maturity":0.83,"visibility":0.81,"maturity2":0.98,"visibility2":0.75,"width":""}],"accelerators":[{"id":81,"line":81,"increaseLabelSpacing":0,"name":"foobar1","maturity":0.6,"visibility":0.2,"deaccelerator":false},{"id":82,"line":82,"increaseLabelSpacing":0,"name":"foobar33","maturity":0.6,"visibility":0.2,"deaccelerator":true}]} \ No newline at end of file diff --git a/frontend/src/__tests__/GoldenMasterGetNoneEvolvedOrEvolvingElements.txt b/frontend/src/__tests__/GoldenMasterGetNoneEvolvedOrEvolvingElements.txt index 0ae79019..1fa4cded 100644 --- a/frontend/src/__tests__/GoldenMasterGetNoneEvolvedOrEvolvingElements.txt +++ b/frontend/src/__tests__/GoldenMasterGetNoneEvolvedOrEvolvingElements.txt @@ -1 +1 @@ -[{"maturity":0.1,"visibility":0.9,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.2,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"}] \ No newline at end of file +[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"}] \ No newline at end of file diff --git a/frontend/src/__tests__/GoldenMasterGetNoneEvolvedOrEvolvingElements_new.txt b/frontend/src/__tests__/GoldenMasterGetNoneEvolvedOrEvolvingElements_new.txt index 0ae79019..1fa4cded 100644 --- a/frontend/src/__tests__/GoldenMasterGetNoneEvolvedOrEvolvingElements_new.txt +++ b/frontend/src/__tests__/GoldenMasterGetNoneEvolvedOrEvolvingElements_new.txt @@ -1 +1 @@ -[{"maturity":0.1,"visibility":0.9,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.2,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"}] \ No newline at end of file +[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"}] \ No newline at end of file diff --git a/frontend/src/__tests__/GoldenMasterGetNoneEvolvingElements.txt b/frontend/src/__tests__/GoldenMasterGetNoneEvolvingElements.txt index a29f8444..631ce530 100644 --- a/frontend/src/__tests__/GoldenMasterGetNoneEvolvingElements.txt +++ b/frontend/src/__tests__/GoldenMasterGetNoneEvolvingElements.txt @@ -1 +1 @@ -[{"maturity":0.1,"visibility":0.9,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.2,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"},{"maturity":0.7,"visibility":0.07,"label":{"x":5,"y":-23},"evolving":false,"evolved":true,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":"49_evolved","name":"EvolveComponennt","type":"component","line":50,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file +[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"},{"maturity":0.7,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":5,"y":-23},"evolving":false,"evolved":true,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":"49_evolved","name":"EvolveComponennt","type":"component","line":50,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file diff --git a/frontend/src/__tests__/GoldenMasterGetNoneEvolvingElements_new.txt b/frontend/src/__tests__/GoldenMasterGetNoneEvolvingElements_new.txt index a29f8444..631ce530 100644 --- a/frontend/src/__tests__/GoldenMasterGetNoneEvolvingElements_new.txt +++ b/frontend/src/__tests__/GoldenMasterGetNoneEvolvingElements_new.txt @@ -1 +1 @@ -[{"maturity":0.1,"visibility":0.9,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.2,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"},{"maturity":0.7,"visibility":0.07,"label":{"x":5,"y":-23},"evolving":false,"evolved":true,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":"49_evolved","name":"EvolveComponennt","type":"component","line":50,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file +[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"},{"maturity":0.7,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":5,"y":-23},"evolving":false,"evolved":true,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":"49_evolved","name":"EvolveComponennt","type":"component","line":50,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file diff --git a/frontend/src/__tests__/GoldenMasterMapElementsEvolve.txt b/frontend/src/__tests__/GoldenMasterMapElementsEvolve.txt index 977dca9d..a5ad725b 100644 --- a/frontend/src/__tests__/GoldenMasterMapElementsEvolve.txt +++ b/frontend/src/__tests__/GoldenMasterMapElementsEvolve.txt @@ -1 +1 @@ -[{"maturity":0.27,"visibility":0.07,"label":{"x":-56,"y":-23},"evolving":true,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file +[{"maturity":0.27,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":-56,"y":-23},"evolving":true,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file diff --git a/frontend/src/__tests__/GoldenMasterMapElementsEvolve_new.txt b/frontend/src/__tests__/GoldenMasterMapElementsEvolve_new.txt index 977dca9d..a5ad725b 100644 --- a/frontend/src/__tests__/GoldenMasterMapElementsEvolve_new.txt +++ b/frontend/src/__tests__/GoldenMasterMapElementsEvolve_new.txt @@ -1 +1 @@ -[{"maturity":0.27,"visibility":0.07,"label":{"x":-56,"y":-23},"evolving":true,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file +[{"maturity":0.27,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":-56,"y":-23},"evolving":true,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file diff --git a/frontend/src/__tests__/GoldenMasterMapElementsEvolved.txt b/frontend/src/__tests__/GoldenMasterMapElementsEvolved.txt index f3cd38bc..74eeb7a1 100644 --- a/frontend/src/__tests__/GoldenMasterMapElementsEvolved.txt +++ b/frontend/src/__tests__/GoldenMasterMapElementsEvolved.txt @@ -1 +1 @@ -[{"maturity":0.7,"visibility":0.07,"label":{"x":5,"y":-23},"evolving":false,"evolved":true,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":"49_evolved","name":"EvolveComponennt","type":"component","line":50,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file +[{"maturity":0.7,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":5,"y":-23},"evolving":false,"evolved":true,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":"49_evolved","name":"EvolveComponennt","type":"component","line":50,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file diff --git a/frontend/src/__tests__/GoldenMasterMapElementsEvolved_new.txt b/frontend/src/__tests__/GoldenMasterMapElementsEvolved_new.txt index f3cd38bc..74eeb7a1 100644 --- a/frontend/src/__tests__/GoldenMasterMapElementsEvolved_new.txt +++ b/frontend/src/__tests__/GoldenMasterMapElementsEvolved_new.txt @@ -1 +1 @@ -[{"maturity":0.7,"visibility":0.07,"label":{"x":5,"y":-23},"evolving":false,"evolved":true,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":"49_evolved","name":"EvolveComponennt","type":"component","line":50,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file +[{"maturity":0.7,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":5,"y":-23},"evolving":false,"evolved":true,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":"49_evolved","name":"EvolveComponennt","type":"component","line":50,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file diff --git a/frontend/src/__tests__/GoldenMasterMapElementsMergedElements.txt b/frontend/src/__tests__/GoldenMasterMapElementsMergedElements.txt index f8ee8d35..928236b8 100644 --- a/frontend/src/__tests__/GoldenMasterMapElementsMergedElements.txt +++ b/frontend/src/__tests__/GoldenMasterMapElementsMergedElements.txt @@ -1 +1 @@ -[{"maturity":0.1,"visibility":0.9,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.27,"visibility":0.07,"label":{"x":-56,"y":-23},"evolving":true,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""},{"maturity":0.22,"visibility":0.2,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"},{"maturity":0.7,"visibility":0.07,"label":{"x":5,"y":-23},"evolving":false,"evolved":true,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":"49_evolved","name":"EvolveComponennt","type":"component","line":50,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file +[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.27,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":-56,"y":-23},"evolving":true,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"},{"maturity":0.7,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":5,"y":-23},"evolving":false,"evolved":true,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":"49_evolved","name":"EvolveComponennt","type":"component","line":50,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file diff --git a/frontend/src/__tests__/GoldenMasterMapElementsMergedElements_new.txt b/frontend/src/__tests__/GoldenMasterMapElementsMergedElements_new.txt index f8ee8d35..928236b8 100644 --- a/frontend/src/__tests__/GoldenMasterMapElementsMergedElements_new.txt +++ b/frontend/src/__tests__/GoldenMasterMapElementsMergedElements_new.txt @@ -1 +1 @@ -[{"maturity":0.1,"visibility":0.9,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.27,"visibility":0.07,"label":{"x":-56,"y":-23},"evolving":true,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""},{"maturity":0.22,"visibility":0.2,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"},{"maturity":0.7,"visibility":0.07,"label":{"x":5,"y":-23},"evolving":false,"evolved":true,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":"49_evolved","name":"EvolveComponennt","type":"component","line":50,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file +[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.27,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":-56,"y":-23},"evolving":true,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"},{"maturity":0.7,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":5,"y":-23},"evolving":false,"evolved":true,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":"49_evolved","name":"EvolveComponennt","type":"component","line":50,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file diff --git a/frontend/src/__tests__/GoldenMasterMapElementsNonEvolved.txt b/frontend/src/__tests__/GoldenMasterMapElementsNonEvolved.txt index 7edf3309..746392a2 100644 --- a/frontend/src/__tests__/GoldenMasterMapElementsNonEvolved.txt +++ b/frontend/src/__tests__/GoldenMasterMapElementsNonEvolved.txt @@ -1 +1 @@ -[{"maturity":0.1,"visibility":0.9,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.27,"visibility":0.07,"label":{"x":-56,"y":-23},"evolving":true,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""},{"maturity":0.22,"visibility":0.2,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"}] \ No newline at end of file +[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.27,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":-56,"y":-23},"evolving":true,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"}] \ No newline at end of file diff --git a/frontend/src/__tests__/GoldenMasterMapElementsNonEvolved_new.txt b/frontend/src/__tests__/GoldenMasterMapElementsNonEvolved_new.txt index 7edf3309..746392a2 100644 --- a/frontend/src/__tests__/GoldenMasterMapElementsNonEvolved_new.txt +++ b/frontend/src/__tests__/GoldenMasterMapElementsNonEvolved_new.txt @@ -1 +1 @@ -[{"maturity":0.1,"visibility":0.9,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.27,"visibility":0.07,"label":{"x":-56,"y":-23},"evolving":true,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""},{"maturity":0.22,"visibility":0.2,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"}] \ No newline at end of file +[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.27,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":-56,"y":-23},"evolving":true,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"}] \ No newline at end of file diff --git a/frontend/src/__tests__/components/map/VisualSelectionFeedback.test.tsx b/frontend/src/__tests__/components/map/VisualSelectionFeedback.test.tsx index f917095a..be3301b5 100644 --- a/frontend/src/__tests__/components/map/VisualSelectionFeedback.test.tsx +++ b/frontend/src/__tests__/components/map/VisualSelectionFeedback.test.tsx @@ -74,6 +74,8 @@ const mockComponent: UnifiedComponent = { type: 'component', maturity: 0.5, visibility: 0.7, + uncertaintyLowerMaturity: 0.5, + uncertaintyUpperMaturity: 0.5, evolved: false, evolving: false, line: 1, @@ -190,6 +192,50 @@ describe('Visual Selection Feedback', () => { // Should have selection styling applied expect(component).toHaveStyle('filter: brightness(1.2) drop-shadow(0 0 6px rgba(33, 150, 243, 0.4))'); }); + + it('should render a horizontal uncertainty segment when bounds differ', () => { + const uncertainComponent: UnifiedComponent = { + ...mockComponent, + id: 'test-component-uncertain', + uncertaintyLowerMaturity: 0.35, + uncertaintyUpperMaturity: 0.75, + }; + + const mockProps = { + mapDimensions: mockMapDimensions, + component: uncertainComponent, + mapText: 'test map text', + mutateMapText: jest.fn(), + mapStyleDefs: mockMapTheme, + setHighlightLine: jest.fn(), + scaleFactor: 1, + }; + + renderWithProvider(); + expect(screen.getByTestId(`component-uncertainty-${uncertainComponent.id}`)).toBeInTheDocument(); + }); + + it('should not render uncertainty segment when lower and upper bounds are equal', () => { + const certainComponent: UnifiedComponent = { + ...mockComponent, + id: 'test-component-certain', + uncertaintyLowerMaturity: 0.5, + uncertaintyUpperMaturity: 0.5, + }; + + const mockProps = { + mapDimensions: mockMapDimensions, + component: certainComponent, + mapText: 'test map text', + mutateMapText: jest.fn(), + mapStyleDefs: mockMapTheme, + setHighlightLine: jest.fn(), + scaleFactor: 1, + }; + + renderWithProvider(); + expect(screen.queryByTestId(`component-uncertainty-${certainComponent.id}`)).not.toBeInTheDocument(); + }); }); describe('Smooth Transitions', () => { diff --git a/frontend/src/components/map/MapComponent.tsx b/frontend/src/components/map/MapComponent.tsx index 18fcef01..4d5e1b4a 100644 --- a/frontend/src/components/map/MapComponent.tsx +++ b/frontend/src/components/map/MapComponent.tsx @@ -45,6 +45,14 @@ const MapComponent: React.FC = ({ const calculatedPosition = new ModernPositionCalculator(); const posX = calculatedPosition.maturityToX(component.maturity, mapDimensions.width); const posY = calculatedPosition.visibilityToY(component.visibility, mapDimensions.height) + (component.offsetY ? component.offsetY : 0); + const clampMaturity = (value: number) => Math.min(1, Math.max(0, value)); + const lowerBoundary = clampMaturity(component.uncertaintyLowerMaturity ?? component.maturity); + const upperBoundary = clampMaturity(component.uncertaintyUpperMaturity ?? component.maturity); + const uncertaintyStart = Math.min(lowerBoundary, upperBoundary); + const uncertaintyEnd = Math.max(lowerBoundary, upperBoundary); + const shouldRenderUncertainty = uncertaintyEnd - uncertaintyStart > 0; + const uncertaintyX1 = calculatedPosition.maturityToX(uncertaintyStart, mapDimensions.width); + const uncertaintyX2 = calculatedPosition.maturityToX(uncertaintyEnd, mapDimensions.width); // Check if this component is currently selected const isElementSelected = isSelected(component.id); @@ -267,6 +275,19 @@ const MapComponent: React.FC = ({ return ( <> + {shouldRenderUncertainty && ( + + )} [, ] (outsource)', 'component [, ] (build)', 'component [, ] (buy)', + 'component [, ] uncertainty [, ]', ...iterations, 'anchor', 'annotation', diff --git a/frontend/src/constants/extractionFunctions.ts b/frontend/src/constants/extractionFunctions.ts index b60be3f1..d6e145a3 100644 --- a/frontend/src/constants/extractionFunctions.ts +++ b/frontend/src/constants/extractionFunctions.ts @@ -427,6 +427,37 @@ export const setCoords = ( }); }; +export const setUncertaintyBounds = ( + baseElement: IProvideBaseElement & { + maturity?: number; + uncertaintyLowerMaturity?: number; + uncertaintyUpperMaturity?: number; + }, + element: string, +): void => { + const componentMaturity = typeof baseElement.maturity === 'number' ? baseElement.maturity : 0.1; + let lowerBoundary = componentMaturity; + let upperBoundary = componentMaturity; + + const uncertaintyMatch = element.match(/\buncertainty\s*\[\s*([^,\]]+)\s*,\s*([^\]]+)\s*\]/i); + if (uncertaintyMatch) { + const parsedLower = parseFloat(uncertaintyMatch[1].trim()); + const parsedUpper = parseFloat(uncertaintyMatch[2].trim()); + + lowerBoundary = Number.isNaN(parsedLower) ? componentMaturity : parsedLower; + upperBoundary = Number.isNaN(parsedUpper) ? componentMaturity : parsedUpper; + } + + if (lowerBoundary > upperBoundary) { + [lowerBoundary, upperBoundary] = [upperBoundary, lowerBoundary]; + } + + Object.assign(baseElement, { + uncertaintyLowerMaturity: lowerBoundary, + uncertaintyUpperMaturity: upperBoundary, + }); +}; + export const isDeAccelerator = (baseElement: IProvideBaseElement & {deaccelerator?: boolean}, element: string): void => { Object.assign(baseElement, { deaccelerator: element.indexOf('deaccelerator') === 0, diff --git a/frontend/src/constants/usages.ts b/frontend/src/constants/usages.ts index e80169ff..838b22e6 100644 --- a/frontend/src/constants/usages.ts +++ b/frontend/src/constants/usages.ts @@ -29,6 +29,11 @@ const usages: Usage[] = [ summary: 'component Name [Visibility (Y Axis), Maturity (X Axis)] inertia', examples: ['component Customer [0.95, 0.5] inertia', 'component Cup of Tea [0.9, 0.5] inertia'], }, + { + title: 'Horizontal uncertainty bounds', + summary: 'component Name [Visibility (Y Axis), Maturity (X Axis)] uncertainty [Lower Maturity Bound, Upper Maturity Bound]', + examples: ['component Customer [0.95, 0.5] uncertainty [0.35, 0.72]', 'component Cup of Tea [0.9, 0.5] uncertainty [0.45, 0.61]'], + }, { Icon: ComponentEvolvedIcon, title: 'To evolve a component', diff --git a/frontend/src/conversion/ExtendableComponentExtractionStrategy.ts b/frontend/src/conversion/ExtendableComponentExtractionStrategy.ts index 357ebd90..dee0278e 100644 --- a/frontend/src/conversion/ExtendableComponentExtractionStrategy.ts +++ b/frontend/src/conversion/ExtendableComponentExtractionStrategy.ts @@ -19,6 +19,7 @@ export default class ExtendableComponentExtractionStrategy implements IParseStra let extractionFuncs = [ ExtractionFunctions.decorators, ExtractionFunctions.setCoords, + ExtractionFunctions.setUncertaintyBounds, ExtractionFunctions.setName, ExtractionFunctions.setInertia, ExtractionFunctions.setLabel, diff --git a/frontend/src/conversion/UnifiedConverter.ts b/frontend/src/conversion/UnifiedConverter.ts index 253a4042..a7e73bbc 100644 --- a/frontend/src/conversion/UnifiedConverter.ts +++ b/frontend/src/conversion/UnifiedConverter.ts @@ -61,12 +61,20 @@ export class UnifiedConverter { private transformComponents(legacyComponents: any[], type: string): UnifiedComponent[] { return legacyComponents.map(component => { + const maturity = component.maturity || 0; + const uncertaintyLowerMaturity = + typeof component.uncertaintyLowerMaturity === 'number' ? component.uncertaintyLowerMaturity : maturity; + const uncertaintyUpperMaturity = + typeof component.uncertaintyUpperMaturity === 'number' ? component.uncertaintyUpperMaturity : maturity; + return createUnifiedComponent({ id: component.id || this.generateId(component.name, type), name: component.name || '', type: type, - maturity: component.maturity || 0, + maturity: maturity, visibility: component.visibility || 0, + uncertaintyLowerMaturity, + uncertaintyUpperMaturity, line: component.line, label: component.label, evolving: component.evolving || false, diff --git a/frontend/src/types/base.ts b/frontend/src/types/base.ts index 18bf4b42..88ccd4a8 100644 --- a/frontend/src/types/base.ts +++ b/frontend/src/types/base.ts @@ -9,6 +9,8 @@ export interface MapElement { id: string; visibility: number; type: string; + uncertaintyLowerMaturity: number; + uncertaintyUpperMaturity: number; evolveMaturity?: number; maturity: number; evolving: boolean; @@ -169,6 +171,8 @@ export interface Component { visibility: number; type: string; maturity: number; + uncertaintyLowerMaturity: number; + uncertaintyUpperMaturity: number; evolveMaturity?: number; evolving: boolean; evolved: boolean; diff --git a/frontend/src/types/unified/components.ts b/frontend/src/types/unified/components.ts index a62237c2..daaa80e8 100644 --- a/frontend/src/types/unified/components.ts +++ b/frontend/src/types/unified/components.ts @@ -11,6 +11,8 @@ export interface BaseMapElement { name: string; maturity: number; visibility: number; + uncertaintyLowerMaturity?: number; + uncertaintyUpperMaturity?: number; line?: number; } @@ -182,6 +184,7 @@ export const isPST = (component: UnifiedComponent): component is MapPSTData => { export const createUnifiedComponent = ( partial: Partial & Pick, ): UnifiedComponent => { + const defaultMaturity = typeof partial.maturity === 'number' ? partial.maturity : 0; const defaultDecorators = { ecosystem: false, market: false, @@ -197,8 +200,10 @@ export const createUnifiedComponent = ( }; return { - maturity: 0, + maturity: defaultMaturity, visibility: 0, + uncertaintyLowerMaturity: defaultMaturity, + uncertaintyUpperMaturity: defaultMaturity, label: {x: 0, y: 0}, evolving: false, evolved: false, From 592448638b2975d49d07f9b48d4126f6af275ab6 Mon Sep 17 00:00:00 2001 From: Mathieu JOLLY Date: Sat, 11 Apr 2026 16:15:06 +0200 Subject: [PATCH 2/2] uncertainty DSL add to component component Cup of Tea [0.85, 0.61] label [-74.00, -10.00] uncertainty [0.51, 0.61] component Cup of Tea [0.68, 0.58] uncertainty [0.48, 0.58] label [-74.00, -10.00] uncertainty left 0.1 component Cup of Tea [0.30, 0.63] label [-74.00, -10.00] uncertainty [-0.05,+0.05] --- frontend/src/__tests__/GivenConverter.js | 85 ++++++ .../__tests__/GoldenMasterConverterOutput.txt | 2 +- .../GoldenMasterConverterOutput_new.txt | 2 +- ...MasterGetNoneEvolvedOrEvolvingElements.txt | 2 +- ...erGetNoneEvolvedOrEvolvingElements_new.txt | 2 +- .../GoldenMasterGetNoneEvolvingElements.txt | 2 +- ...oldenMasterGetNoneEvolvingElements_new.txt | 2 +- .../GoldenMasterMapElementsEvolve.txt | 2 +- .../GoldenMasterMapElementsEvolve_new.txt | 2 +- .../GoldenMasterMapElementsEvolved.txt | 2 +- .../GoldenMasterMapElementsEvolved_new.txt | 2 +- .../GoldenMasterMapElementsMergedElements.txt | 2 +- ...denMasterMapElementsMergedElements_new.txt | 2 +- .../GoldenMasterMapElementsNonEvolved.txt | 2 +- .../GoldenMasterMapElementsNonEvolved_new.txt | 2 +- .../components/editor/mode-owm.test.ts | 45 ++++ .../map/VisualSelectionFeedback.test.tsx | 68 +++++ frontend/src/components/editor/mode-owm.ts | 8 + frontend/src/components/map/MapComponent.tsx | 242 ++++++++++++++++-- .../handlers/useComponentLinkingOperations.ts | 4 + frontend/src/constants/editorPrefixes.ts | 4 + frontend/src/constants/extractionFunctions.ts | 48 +++- frontend/src/conversion/UnifiedConverter.ts | 10 + frontend/src/types/base.ts | 4 + frontend/src/types/unified/components.ts | 8 + 25 files changed, 519 insertions(+), 35 deletions(-) diff --git a/frontend/src/__tests__/GivenConverter.js b/frontend/src/__tests__/GivenConverter.js index 3637cd0c..4194aacd 100755 --- a/frontend/src/__tests__/GivenConverter.js +++ b/frontend/src/__tests__/GivenConverter.js @@ -31,6 +31,8 @@ describe('Convert test suite', function () { expect(result[e.container][0].maturity).toEqual(0.4); expect(result[e.container][0].uncertaintyLowerMaturity).toEqual(0.4); expect(result[e.container][0].uncertaintyUpperMaturity).toEqual(0.4); + expect(result[e.container][0].uncertaintyLowerOffsetMaturity).toEqual(0); + expect(result[e.container][0].uncertaintyUpperOffsetMaturity).toEqual(0); expect(result[e.container][1].id).toEqual(2); expect(result[e.container][1].name).toEqual('Customer2'); @@ -38,6 +40,8 @@ describe('Convert test suite', function () { expect(result[e.container][1].maturity).toEqual(0.1); expect(result[e.container][1].uncertaintyLowerMaturity).toEqual(0.1); expect(result[e.container][1].uncertaintyUpperMaturity).toEqual(0.1); + expect(result[e.container][1].uncertaintyLowerOffsetMaturity).toEqual(0); + expect(result[e.container][1].uncertaintyUpperOffsetMaturity).toEqual(0); }); test.each(genericMapComponents)('should create map component with inertia tag set to true', e => { @@ -53,6 +57,8 @@ describe('Convert test suite', function () { expect(result[e.container][0].inertia).toEqual(true); expect(result[e.container][0].uncertaintyLowerMaturity).toEqual(0.4); expect(result[e.container][0].uncertaintyUpperMaturity).toEqual(0.4); + expect(result[e.container][0].uncertaintyLowerOffsetMaturity).toEqual(0); + expect(result[e.container][0].uncertaintyUpperOffsetMaturity).toEqual(0); }); test.each(genericMapComponents)('should parse uncertainty bounds as absolute maturity boundaries', e => { @@ -64,6 +70,8 @@ describe('Convert test suite', function () { expect(result[e.container][0].maturity).toEqual(0.4); expect(result[e.container][0].uncertaintyLowerMaturity).toEqual(0.25); expect(result[e.container][0].uncertaintyUpperMaturity).toEqual(0.75); + expect(result[e.container][0].uncertaintyLowerOffsetMaturity).toBeCloseTo(-0.15, 10); + expect(result[e.container][0].uncertaintyUpperOffsetMaturity).toBeCloseTo(0.35, 10); }); test.each(genericMapComponents)('should preserve uncertainty with inertia and decorators on one component line', e => { @@ -74,11 +82,88 @@ describe('Convert test suite', function () { expect(result[e.container][0].uncertaintyLowerMaturity).toEqual(0.2); expect(result[e.container][0].uncertaintyUpperMaturity).toEqual(0.8); + expect(result[e.container][0].uncertaintyLowerOffsetMaturity).toBeCloseTo(-0.2, 10); + expect(result[e.container][0].uncertaintyUpperOffsetMaturity).toBeCloseTo(0.4, 10); expect(result[e.container][0].inertia).toEqual(true); expect(result[e.container][0].decorators.buy).toEqual(true); expect(result[e.container][0].label).toEqual({x: 7, y: -3}); }); + test.each(genericMapComponents)('should parse one-sided uncertainty with empty lower bound', e => { + let actual = `${e.keyword} Customer [1, 0.4] uncertainty [, 0.7]\n`; + + let obj = new Converter(mockContextValue); + let result = obj.parse(actual); + + expect(result[e.container][0].maturity).toEqual(0.4); + expect(result[e.container][0].uncertaintyLowerMaturity).toEqual(0.4); + expect(result[e.container][0].uncertaintyUpperMaturity).toEqual(0.7); + expect(result[e.container][0].uncertaintyLowerOffsetMaturity).toBeCloseTo(0, 10); + expect(result[e.container][0].uncertaintyUpperOffsetMaturity).toBeCloseTo(0.3, 10); + }); + + test.each(genericMapComponents)('should parse one-sided uncertainty with relative upper bound', e => { + let actual = `${e.keyword} Customer [1, 0.4] uncertainty [,+0.2]\n`; + + let obj = new Converter(mockContextValue); + let result = obj.parse(actual); + + expect(result[e.container][0].maturity).toEqual(0.4); + expect(result[e.container][0].uncertaintyLowerMaturity).toEqual(0.4); + expect(result[e.container][0].uncertaintyUpperMaturity).toBeCloseTo(0.6, 10); + expect(result[e.container][0].uncertaintyLowerOffsetMaturity).toBeCloseTo(0, 10); + expect(result[e.container][0].uncertaintyUpperOffsetMaturity).toBeCloseTo(0.2, 10); + }); + + test.each(genericMapComponents)('should parse one-sided uncertainty with relative lower bound', e => { + let actual = `${e.keyword} Customer [1, 0.4] uncertainty [-0.15, ]\n`; + + let obj = new Converter(mockContextValue); + let result = obj.parse(actual); + + expect(result[e.container][0].maturity).toEqual(0.4); + expect(result[e.container][0].uncertaintyLowerMaturity).toBeCloseTo(0.25, 10); + expect(result[e.container][0].uncertaintyUpperMaturity).toEqual(0.4); + expect(result[e.container][0].uncertaintyLowerOffsetMaturity).toBeCloseTo(-0.15, 10); + expect(result[e.container][0].uncertaintyUpperOffsetMaturity).toBeCloseTo(0, 10); + }); + + test.each(genericMapComponents)('should parse readable right uncertainty syntax', e => { + let actual = `${e.keyword} Customer [1, 0.4] uncertainty right +0.2\n`; + + let obj = new Converter(mockContextValue); + let result = obj.parse(actual); + + expect(result[e.container][0].maturity).toEqual(0.4); + expect(result[e.container][0].uncertaintyLowerMaturity).toEqual(0.4); + expect(result[e.container][0].uncertaintyUpperMaturity).toBeCloseTo(0.6, 10); + expect(result[e.container][0].uncertaintyLowerOffsetMaturity).toBeCloseTo(0, 10); + expect(result[e.container][0].uncertaintyUpperOffsetMaturity).toBeCloseTo(0.2, 10); + }); + + test.each(genericMapComponents)('should parse readable left uncertainty syntax', e => { + let actual = `${e.keyword} Customer [1, 0.4] uncertainty left -0.1\n`; + + let obj = new Converter(mockContextValue); + let result = obj.parse(actual); + + expect(result[e.container][0].maturity).toEqual(0.4); + expect(result[e.container][0].uncertaintyLowerMaturity).toBeCloseTo(0.3, 10); + expect(result[e.container][0].uncertaintyUpperMaturity).toEqual(0.4); + expect(result[e.container][0].uncertaintyLowerOffsetMaturity).toBeCloseTo(-0.1, 10); + expect(result[e.container][0].uncertaintyUpperOffsetMaturity).toBeCloseTo(0, 10); + }); + + test.each(genericMapComponents)('should prioritize readable side syntax over bracket syntax when both are present', e => { + let actual = `${e.keyword} Customer [1, 0.4] uncertainty left -0.1 uncertainty [0.0, 1.0]\n`; + + let obj = new Converter(mockContextValue); + let result = obj.parse(actual); + + expect(result[e.container][0].uncertaintyLowerMaturity).toBeCloseTo(0.3, 10); + expect(result[e.container][0].uncertaintyUpperMaturity).toEqual(0.4); + }); + test('should create links from string', function () { let actual = 'component Customer [1, 0.4]\ncomponent Customer2 [0,0.1]\nCustomer->Customer2'; diff --git a/frontend/src/__tests__/GoldenMasterConverterOutput.txt b/frontend/src/__tests__/GoldenMasterConverterOutput.txt index 180857e3..99cac4bf 100644 --- a/frontend/src/__tests__/GoldenMasterConverterOutput.txt +++ b/frontend/src/__tests__/GoldenMasterConverterOutput.txt @@ -1 +1 @@ -{"title":"Golden Master","presentation":{"style":"plain","annotations":{"visibility":0.97,"maturity":0.64},"size":{"width":0,"height":0}},"errors":[],"components":[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.27,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":-56,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}}],"anchors":[],"submaps":[{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"}],"markets":[],"ecosystems":[],"evolved":[{"name":"EvolveComponennt","maturity":0.7,"label":{"x":5,"y":-23},"override":"","line":50,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"increaseLabelSpacing":0},{"name":"Batteries","maturity":0.65,"label":{"x":-46,"y":-20},"override":"","line":69,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"increaseLabelSpacing":0}],"pipelines":[{"id":60,"name":"foo","visibility":0.73,"line":60,"components":[],"inertia":false,"hidden":false,"maturity1":0.24,"maturity2":0.39},{"id":65,"name":"Power","visibility":0.21,"line":65,"components":[{"id":"65-66","name":"Wind","maturity":0.72,"visibility":0,"line":67,"label":{"x":-13,"y":35}},{"id":"65-67","name":"Batteries","maturity":0.58,"visibility":0,"line":68,"label":{"x":-28,"y":35}},{"id":"65-69","name":"Nuclear","maturity":0.77,"visibility":0,"line":70,"label":{"x":-15,"y":36}}],"inertia":false,"hidden":false,"maturity1":0.58,"maturity2":0.77}],"evolution":[{"line1":"one","line2":""},{"line1":"two","line2":""},{"line1":"three","line2":""},{"line1":"four","line2":""}],"showEvolutionAxis":true,"showValueChainAxis":true,"links":[{"start":"FooWithCoords","end":"InertiaComponent","flow":false,"future":false,"past":false,"context":"Constraint"}],"annotations":[{"id":26,"line":26,"increaseLabelSpacing":0,"number":1,"occurances":[{"visibility":0.85,"maturity":0.64},{"visibility":0.85,"maturity":0.68}],"text":"Standardising power allows Kettles to evolve faster"},{"id":27,"line":27,"increaseLabelSpacing":0,"number":2,"occurances":[{"visibility":0.78,"maturity":0.64}],"text":"Hot water is obvious and well known"}],"notes":[{"id":2,"line":2,"increaseLabelSpacing":0,"text":"A Map that contains all possible elements on a map.","maturity":0.01,"visibility":0.97}],"methods":[],"urls":[{"id":76,"line":76,"increaseLabelSpacing":0,"name":"submapUrl","url":"https://onlinewardleymaps.com/#clone:qu4VDDQryoZEnuw0ZZ"}],"attitudes":[{"id":33,"line":33,"increaseLabelSpacing":0,"attitude":"pioneers","maturity":0.83,"visibility":0.74,"maturity2":0.98,"visibility2":0.68,"width":""},{"id":34,"line":34,"increaseLabelSpacing":0,"attitude":"settlers","maturity":0.83,"visibility":0.88,"maturity2":0.98,"visibility2":0.82,"width":""},{"id":35,"line":35,"increaseLabelSpacing":0,"attitude":"townplanners","maturity":0.83,"visibility":0.81,"maturity2":0.98,"visibility2":0.75,"width":""}],"accelerators":[{"id":81,"line":81,"increaseLabelSpacing":0,"name":"foobar1","maturity":0.6,"visibility":0.2,"deaccelerator":false},{"id":82,"line":82,"increaseLabelSpacing":0,"name":"foobar33","maturity":0.6,"visibility":0.2,"deaccelerator":true}]} \ No newline at end of file +{"title":"Golden Master","presentation":{"style":"plain","annotations":{"visibility":0.97,"maturity":0.64},"size":{"width":0,"height":0}},"errors":[],"components":[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.27,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-56,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}}],"anchors":[],"submaps":[{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"}],"markets":[],"ecosystems":[],"evolved":[{"name":"EvolveComponennt","maturity":0.7,"label":{"x":5,"y":-23},"override":"","line":50,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"increaseLabelSpacing":0},{"name":"Batteries","maturity":0.65,"label":{"x":-46,"y":-20},"override":"","line":69,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"increaseLabelSpacing":0}],"pipelines":[{"id":60,"name":"foo","visibility":0.73,"line":60,"components":[],"inertia":false,"hidden":false,"maturity1":0.24,"maturity2":0.39},{"id":65,"name":"Power","visibility":0.21,"line":65,"components":[{"id":"65-66","name":"Wind","maturity":0.72,"visibility":0,"line":67,"label":{"x":-13,"y":35}},{"id":"65-67","name":"Batteries","maturity":0.58,"visibility":0,"line":68,"label":{"x":-28,"y":35}},{"id":"65-69","name":"Nuclear","maturity":0.77,"visibility":0,"line":70,"label":{"x":-15,"y":36}}],"inertia":false,"hidden":false,"maturity1":0.58,"maturity2":0.77}],"evolution":[{"line1":"one","line2":""},{"line1":"two","line2":""},{"line1":"three","line2":""},{"line1":"four","line2":""}],"showEvolutionAxis":true,"showValueChainAxis":true,"links":[{"start":"FooWithCoords","end":"InertiaComponent","flow":false,"future":false,"past":false,"context":"Constraint"}],"annotations":[{"id":26,"line":26,"increaseLabelSpacing":0,"number":1,"occurances":[{"visibility":0.85,"maturity":0.64},{"visibility":0.85,"maturity":0.68}],"text":"Standardising power allows Kettles to evolve faster"},{"id":27,"line":27,"increaseLabelSpacing":0,"number":2,"occurances":[{"visibility":0.78,"maturity":0.64}],"text":"Hot water is obvious and well known"}],"notes":[{"id":2,"line":2,"increaseLabelSpacing":0,"text":"A Map that contains all possible elements on a map.","maturity":0.01,"visibility":0.97}],"methods":[],"urls":[{"id":76,"line":76,"increaseLabelSpacing":0,"name":"submapUrl","url":"https://onlinewardleymaps.com/#clone:qu4VDDQryoZEnuw0ZZ"}],"attitudes":[{"id":33,"line":33,"increaseLabelSpacing":0,"attitude":"pioneers","maturity":0.83,"visibility":0.74,"maturity2":0.98,"visibility2":0.68,"width":""},{"id":34,"line":34,"increaseLabelSpacing":0,"attitude":"settlers","maturity":0.83,"visibility":0.88,"maturity2":0.98,"visibility2":0.82,"width":""},{"id":35,"line":35,"increaseLabelSpacing":0,"attitude":"townplanners","maturity":0.83,"visibility":0.81,"maturity2":0.98,"visibility2":0.75,"width":""}],"accelerators":[{"id":81,"line":81,"increaseLabelSpacing":0,"name":"foobar1","maturity":0.6,"visibility":0.2,"deaccelerator":false},{"id":82,"line":82,"increaseLabelSpacing":0,"name":"foobar33","maturity":0.6,"visibility":0.2,"deaccelerator":true}]} \ No newline at end of file diff --git a/frontend/src/__tests__/GoldenMasterConverterOutput_new.txt b/frontend/src/__tests__/GoldenMasterConverterOutput_new.txt index 180857e3..99cac4bf 100644 --- a/frontend/src/__tests__/GoldenMasterConverterOutput_new.txt +++ b/frontend/src/__tests__/GoldenMasterConverterOutput_new.txt @@ -1 +1 @@ -{"title":"Golden Master","presentation":{"style":"plain","annotations":{"visibility":0.97,"maturity":0.64},"size":{"width":0,"height":0}},"errors":[],"components":[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.27,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":-56,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}}],"anchors":[],"submaps":[{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"}],"markets":[],"ecosystems":[],"evolved":[{"name":"EvolveComponennt","maturity":0.7,"label":{"x":5,"y":-23},"override":"","line":50,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"increaseLabelSpacing":0},{"name":"Batteries","maturity":0.65,"label":{"x":-46,"y":-20},"override":"","line":69,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"increaseLabelSpacing":0}],"pipelines":[{"id":60,"name":"foo","visibility":0.73,"line":60,"components":[],"inertia":false,"hidden":false,"maturity1":0.24,"maturity2":0.39},{"id":65,"name":"Power","visibility":0.21,"line":65,"components":[{"id":"65-66","name":"Wind","maturity":0.72,"visibility":0,"line":67,"label":{"x":-13,"y":35}},{"id":"65-67","name":"Batteries","maturity":0.58,"visibility":0,"line":68,"label":{"x":-28,"y":35}},{"id":"65-69","name":"Nuclear","maturity":0.77,"visibility":0,"line":70,"label":{"x":-15,"y":36}}],"inertia":false,"hidden":false,"maturity1":0.58,"maturity2":0.77}],"evolution":[{"line1":"one","line2":""},{"line1":"two","line2":""},{"line1":"three","line2":""},{"line1":"four","line2":""}],"showEvolutionAxis":true,"showValueChainAxis":true,"links":[{"start":"FooWithCoords","end":"InertiaComponent","flow":false,"future":false,"past":false,"context":"Constraint"}],"annotations":[{"id":26,"line":26,"increaseLabelSpacing":0,"number":1,"occurances":[{"visibility":0.85,"maturity":0.64},{"visibility":0.85,"maturity":0.68}],"text":"Standardising power allows Kettles to evolve faster"},{"id":27,"line":27,"increaseLabelSpacing":0,"number":2,"occurances":[{"visibility":0.78,"maturity":0.64}],"text":"Hot water is obvious and well known"}],"notes":[{"id":2,"line":2,"increaseLabelSpacing":0,"text":"A Map that contains all possible elements on a map.","maturity":0.01,"visibility":0.97}],"methods":[],"urls":[{"id":76,"line":76,"increaseLabelSpacing":0,"name":"submapUrl","url":"https://onlinewardleymaps.com/#clone:qu4VDDQryoZEnuw0ZZ"}],"attitudes":[{"id":33,"line":33,"increaseLabelSpacing":0,"attitude":"pioneers","maturity":0.83,"visibility":0.74,"maturity2":0.98,"visibility2":0.68,"width":""},{"id":34,"line":34,"increaseLabelSpacing":0,"attitude":"settlers","maturity":0.83,"visibility":0.88,"maturity2":0.98,"visibility2":0.82,"width":""},{"id":35,"line":35,"increaseLabelSpacing":0,"attitude":"townplanners","maturity":0.83,"visibility":0.81,"maturity2":0.98,"visibility2":0.75,"width":""}],"accelerators":[{"id":81,"line":81,"increaseLabelSpacing":0,"name":"foobar1","maturity":0.6,"visibility":0.2,"deaccelerator":false},{"id":82,"line":82,"increaseLabelSpacing":0,"name":"foobar33","maturity":0.6,"visibility":0.2,"deaccelerator":true}]} \ No newline at end of file +{"title":"Golden Master","presentation":{"style":"plain","annotations":{"visibility":0.97,"maturity":0.64},"size":{"width":0,"height":0}},"errors":[],"components":[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.27,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-56,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}}],"anchors":[],"submaps":[{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"}],"markets":[],"ecosystems":[],"evolved":[{"name":"EvolveComponennt","maturity":0.7,"label":{"x":5,"y":-23},"override":"","line":50,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"increaseLabelSpacing":0},{"name":"Batteries","maturity":0.65,"label":{"x":-46,"y":-20},"override":"","line":69,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"increaseLabelSpacing":0}],"pipelines":[{"id":60,"name":"foo","visibility":0.73,"line":60,"components":[],"inertia":false,"hidden":false,"maturity1":0.24,"maturity2":0.39},{"id":65,"name":"Power","visibility":0.21,"line":65,"components":[{"id":"65-66","name":"Wind","maturity":0.72,"visibility":0,"line":67,"label":{"x":-13,"y":35}},{"id":"65-67","name":"Batteries","maturity":0.58,"visibility":0,"line":68,"label":{"x":-28,"y":35}},{"id":"65-69","name":"Nuclear","maturity":0.77,"visibility":0,"line":70,"label":{"x":-15,"y":36}}],"inertia":false,"hidden":false,"maturity1":0.58,"maturity2":0.77}],"evolution":[{"line1":"one","line2":""},{"line1":"two","line2":""},{"line1":"three","line2":""},{"line1":"four","line2":""}],"showEvolutionAxis":true,"showValueChainAxis":true,"links":[{"start":"FooWithCoords","end":"InertiaComponent","flow":false,"future":false,"past":false,"context":"Constraint"}],"annotations":[{"id":26,"line":26,"increaseLabelSpacing":0,"number":1,"occurances":[{"visibility":0.85,"maturity":0.64},{"visibility":0.85,"maturity":0.68}],"text":"Standardising power allows Kettles to evolve faster"},{"id":27,"line":27,"increaseLabelSpacing":0,"number":2,"occurances":[{"visibility":0.78,"maturity":0.64}],"text":"Hot water is obvious and well known"}],"notes":[{"id":2,"line":2,"increaseLabelSpacing":0,"text":"A Map that contains all possible elements on a map.","maturity":0.01,"visibility":0.97}],"methods":[],"urls":[{"id":76,"line":76,"increaseLabelSpacing":0,"name":"submapUrl","url":"https://onlinewardleymaps.com/#clone:qu4VDDQryoZEnuw0ZZ"}],"attitudes":[{"id":33,"line":33,"increaseLabelSpacing":0,"attitude":"pioneers","maturity":0.83,"visibility":0.74,"maturity2":0.98,"visibility2":0.68,"width":""},{"id":34,"line":34,"increaseLabelSpacing":0,"attitude":"settlers","maturity":0.83,"visibility":0.88,"maturity2":0.98,"visibility2":0.82,"width":""},{"id":35,"line":35,"increaseLabelSpacing":0,"attitude":"townplanners","maturity":0.83,"visibility":0.81,"maturity2":0.98,"visibility2":0.75,"width":""}],"accelerators":[{"id":81,"line":81,"increaseLabelSpacing":0,"name":"foobar1","maturity":0.6,"visibility":0.2,"deaccelerator":false},{"id":82,"line":82,"increaseLabelSpacing":0,"name":"foobar33","maturity":0.6,"visibility":0.2,"deaccelerator":true}]} \ No newline at end of file diff --git a/frontend/src/__tests__/GoldenMasterGetNoneEvolvedOrEvolvingElements.txt b/frontend/src/__tests__/GoldenMasterGetNoneEvolvedOrEvolvingElements.txt index 1fa4cded..70618bb6 100644 --- a/frontend/src/__tests__/GoldenMasterGetNoneEvolvedOrEvolvingElements.txt +++ b/frontend/src/__tests__/GoldenMasterGetNoneEvolvedOrEvolvingElements.txt @@ -1 +1 @@ -[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"}] \ No newline at end of file +[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"}] \ No newline at end of file diff --git a/frontend/src/__tests__/GoldenMasterGetNoneEvolvedOrEvolvingElements_new.txt b/frontend/src/__tests__/GoldenMasterGetNoneEvolvedOrEvolvingElements_new.txt index 1fa4cded..70618bb6 100644 --- a/frontend/src/__tests__/GoldenMasterGetNoneEvolvedOrEvolvingElements_new.txt +++ b/frontend/src/__tests__/GoldenMasterGetNoneEvolvedOrEvolvingElements_new.txt @@ -1 +1 @@ -[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"}] \ No newline at end of file +[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"}] \ No newline at end of file diff --git a/frontend/src/__tests__/GoldenMasterGetNoneEvolvingElements.txt b/frontend/src/__tests__/GoldenMasterGetNoneEvolvingElements.txt index 631ce530..ff45514a 100644 --- a/frontend/src/__tests__/GoldenMasterGetNoneEvolvingElements.txt +++ b/frontend/src/__tests__/GoldenMasterGetNoneEvolvingElements.txt @@ -1 +1 @@ -[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"},{"maturity":0.7,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":5,"y":-23},"evolving":false,"evolved":true,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":"49_evolved","name":"EvolveComponennt","type":"component","line":50,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file +[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"},{"maturity":0.7,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-23},"evolving":false,"evolved":true,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":"49_evolved","name":"EvolveComponennt","type":"component","line":50,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file diff --git a/frontend/src/__tests__/GoldenMasterGetNoneEvolvingElements_new.txt b/frontend/src/__tests__/GoldenMasterGetNoneEvolvingElements_new.txt index 631ce530..ff45514a 100644 --- a/frontend/src/__tests__/GoldenMasterGetNoneEvolvingElements_new.txt +++ b/frontend/src/__tests__/GoldenMasterGetNoneEvolvingElements_new.txt @@ -1 +1 @@ -[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"},{"maturity":0.7,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":5,"y":-23},"evolving":false,"evolved":true,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":"49_evolved","name":"EvolveComponennt","type":"component","line":50,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file +[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"},{"maturity":0.7,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-23},"evolving":false,"evolved":true,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":"49_evolved","name":"EvolveComponennt","type":"component","line":50,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file diff --git a/frontend/src/__tests__/GoldenMasterMapElementsEvolve.txt b/frontend/src/__tests__/GoldenMasterMapElementsEvolve.txt index a5ad725b..60fa2d01 100644 --- a/frontend/src/__tests__/GoldenMasterMapElementsEvolve.txt +++ b/frontend/src/__tests__/GoldenMasterMapElementsEvolve.txt @@ -1 +1 @@ -[{"maturity":0.27,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":-56,"y":-23},"evolving":true,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file +[{"maturity":0.27,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-56,"y":-23},"evolving":true,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file diff --git a/frontend/src/__tests__/GoldenMasterMapElementsEvolve_new.txt b/frontend/src/__tests__/GoldenMasterMapElementsEvolve_new.txt index a5ad725b..60fa2d01 100644 --- a/frontend/src/__tests__/GoldenMasterMapElementsEvolve_new.txt +++ b/frontend/src/__tests__/GoldenMasterMapElementsEvolve_new.txt @@ -1 +1 @@ -[{"maturity":0.27,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":-56,"y":-23},"evolving":true,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file +[{"maturity":0.27,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-56,"y":-23},"evolving":true,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file diff --git a/frontend/src/__tests__/GoldenMasterMapElementsEvolved.txt b/frontend/src/__tests__/GoldenMasterMapElementsEvolved.txt index 74eeb7a1..5ab76ef5 100644 --- a/frontend/src/__tests__/GoldenMasterMapElementsEvolved.txt +++ b/frontend/src/__tests__/GoldenMasterMapElementsEvolved.txt @@ -1 +1 @@ -[{"maturity":0.7,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":5,"y":-23},"evolving":false,"evolved":true,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":"49_evolved","name":"EvolveComponennt","type":"component","line":50,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file +[{"maturity":0.7,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-23},"evolving":false,"evolved":true,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":"49_evolved","name":"EvolveComponennt","type":"component","line":50,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file diff --git a/frontend/src/__tests__/GoldenMasterMapElementsEvolved_new.txt b/frontend/src/__tests__/GoldenMasterMapElementsEvolved_new.txt index 74eeb7a1..5ab76ef5 100644 --- a/frontend/src/__tests__/GoldenMasterMapElementsEvolved_new.txt +++ b/frontend/src/__tests__/GoldenMasterMapElementsEvolved_new.txt @@ -1 +1 @@ -[{"maturity":0.7,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":5,"y":-23},"evolving":false,"evolved":true,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":"49_evolved","name":"EvolveComponennt","type":"component","line":50,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file +[{"maturity":0.7,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-23},"evolving":false,"evolved":true,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":"49_evolved","name":"EvolveComponennt","type":"component","line":50,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file diff --git a/frontend/src/__tests__/GoldenMasterMapElementsMergedElements.txt b/frontend/src/__tests__/GoldenMasterMapElementsMergedElements.txt index 928236b8..8173bf62 100644 --- a/frontend/src/__tests__/GoldenMasterMapElementsMergedElements.txt +++ b/frontend/src/__tests__/GoldenMasterMapElementsMergedElements.txt @@ -1 +1 @@ -[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.27,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":-56,"y":-23},"evolving":true,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"},{"maturity":0.7,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":5,"y":-23},"evolving":false,"evolved":true,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":"49_evolved","name":"EvolveComponennt","type":"component","line":50,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file +[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.27,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-56,"y":-23},"evolving":true,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"},{"maturity":0.7,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-23},"evolving":false,"evolved":true,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":"49_evolved","name":"EvolveComponennt","type":"component","line":50,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file diff --git a/frontend/src/__tests__/GoldenMasterMapElementsMergedElements_new.txt b/frontend/src/__tests__/GoldenMasterMapElementsMergedElements_new.txt index 928236b8..8173bf62 100644 --- a/frontend/src/__tests__/GoldenMasterMapElementsMergedElements_new.txt +++ b/frontend/src/__tests__/GoldenMasterMapElementsMergedElements_new.txt @@ -1 +1 @@ -[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.27,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":-56,"y":-23},"evolving":true,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"},{"maturity":0.7,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":5,"y":-23},"evolving":false,"evolved":true,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":"49_evolved","name":"EvolveComponennt","type":"component","line":50,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file +[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.27,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-56,"y":-23},"evolving":true,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"},{"maturity":0.7,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-23},"evolving":false,"evolved":true,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":"49_evolved","name":"EvolveComponennt","type":"component","line":50,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""}] \ No newline at end of file diff --git a/frontend/src/__tests__/GoldenMasterMapElementsNonEvolved.txt b/frontend/src/__tests__/GoldenMasterMapElementsNonEvolved.txt index 746392a2..b08c886e 100644 --- a/frontend/src/__tests__/GoldenMasterMapElementsNonEvolved.txt +++ b/frontend/src/__tests__/GoldenMasterMapElementsNonEvolved.txt @@ -1 +1 @@ -[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.27,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":-56,"y":-23},"evolving":true,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"}] \ No newline at end of file +[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.27,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-56,"y":-23},"evolving":true,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"}] \ No newline at end of file diff --git a/frontend/src/__tests__/GoldenMasterMapElementsNonEvolved_new.txt b/frontend/src/__tests__/GoldenMasterMapElementsNonEvolved_new.txt index 746392a2..b08c886e 100644 --- a/frontend/src/__tests__/GoldenMasterMapElementsNonEvolved_new.txt +++ b/frontend/src/__tests__/GoldenMasterMapElementsNonEvolved_new.txt @@ -1 +1 @@ -[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.27,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"label":{"x":-56,"y":-23},"evolving":true,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"}] \ No newline at end of file +[{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":5,"name":"FooWithNoCoords","type":"component","line":5,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.23,"visibility":0.91,"uncertaintyLowerMaturity":0.23,"uncertaintyUpperMaturity":0.23,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":15,"y":4},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":6,"name":"FooWithCoords","type":"component","line":6,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.7,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":10,"name":"BuildComponent","type":"component","line":10,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":true,"outsource":false}},{"maturity":0.09,"visibility":0.59,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":12,"name":"BuyComponent","type":"component","line":12,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":true,"build":false,"outsource":false}},{"maturity":0.09,"visibility":0.51,"uncertaintyLowerMaturity":0.09,"uncertaintyUpperMaturity":0.09,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":37,"y":-23},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":14,"name":"OutsourceComponent","type":"component","line":14,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":true}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":15,"y":-30},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":39,"name":"EcoSystemNoCoords (ecosystem)","type":"component","line":39,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.1,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-9,"y":-41},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":3,"pipeline":false,"id":40,"name":"EcoSystemWithCoords","type":"component","line":40,"evolveMaturity":null,"decorators":{"ecosystem":true,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.1,"visibility":0.9,"uncertaintyLowerMaturity":0.1,"uncertaintyUpperMaturity":0.1,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":10,"y":-20},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":44,"name":"MarketNoCoords (market)","type":"component","line":44,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.9,"visibility":0.3,"uncertaintyLowerMaturity":0.9,"uncertaintyUpperMaturity":0.9,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-21,"y":18},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":45,"name":"MarketWithCoords","type":"component","line":45,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":true,"buy":false,"build":false,"outsource":false}},{"maturity":0.27,"visibility":0.07,"uncertaintyLowerMaturity":0.27,"uncertaintyUpperMaturity":0.27,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-56,"y":-23},"evolving":true,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":2,"pipeline":false,"id":49,"name":"EvolveComponennt","type":"component","line":49,"evolveMaturity":0.7,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"override":""},{"maturity":0.22,"visibility":0.2,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-97,"y":-9},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":54,"name":"InertiaComponent","type":"component","line":54,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.22,"visibility":0.15,"uncertaintyLowerMaturity":0.22,"uncertaintyUpperMaturity":0.22,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":-74,"y":-18},"evolving":false,"evolved":false,"inertia":true,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":55,"name":"Inertia Alternative","type":"component","line":55,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.32,"visibility":0.73,"uncertaintyLowerMaturity":0.32,"uncertaintyUpperMaturity":0.32,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":13,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":59,"name":"foo","type":"component","line":59,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.67,"visibility":0.21,"uncertaintyLowerMaturity":0.67,"uncertaintyUpperMaturity":0.67,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":11,"y":-13},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":true,"id":64,"name":"Power","type":"component","line":64,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false}},{"maturity":0.5,"visibility":0.83,"uncertaintyLowerMaturity":0.5,"uncertaintyUpperMaturity":0.5,"uncertaintyLowerOffsetMaturity":0,"uncertaintyUpperOffsetMaturity":0,"label":{"x":5,"y":-10},"evolving":false,"evolved":false,"inertia":false,"pseudoComponent":false,"offsetY":0,"increaseLabelSpacing":0,"pipeline":false,"id":75,"name":"Website","type":"submap","line":75,"evolveMaturity":null,"decorators":{"ecosystem":false,"market":false,"buy":false,"build":false,"outsource":false},"url":"submapUrl"}] \ No newline at end of file diff --git a/frontend/src/__tests__/components/editor/mode-owm.test.ts b/frontend/src/__tests__/components/editor/mode-owm.test.ts index bcf5ff5c..8fab4b62 100644 --- a/frontend/src/__tests__/components/editor/mode-owm.test.ts +++ b/frontend/src/__tests__/components/editor/mode-owm.test.ts @@ -102,6 +102,51 @@ describe('Monaco Editor OWM Mode Syntax Highlighting', () => { expect(flowLinkRules.length).toBeGreaterThan(0); } }); + + it('should include valuechain as a DSL keyword rule', () => { + if (OwmHighlightRules) { + const rules = new OwmHighlightRules(); + const keywordRules = rules.$rules.start.filter((rule: any) => rule.regex && typeof rule.regex === 'string'); + const hasValuechain = keywordRules.some((rule: any) => rule.regex.includes('valuechain')); + expect(hasValuechain).toBe(true); + } + }); + + it('should include uncertainty highlighting rules for mixed syntax', () => { + if (OwmHighlightRules) { + const rules = new OwmHighlightRules(); + const stringRules = rules.$rules.start.filter((rule: any) => typeof rule.regex === 'string'); + + const hasUncertaintyBracket = stringRules.some((rule: any) => rule.regex.includes('uncertainty\\s*\\[')); + const hasUncertaintySides = stringRules.some((rule: any) => rule.regex.includes('(left|right)')); + + expect(hasUncertaintyBracket).toBe(true); + expect(hasUncertaintySides).toBe(true); + } + }); + + it('should match uncertainty mixed syntax patterns', () => { + if (OwmHighlightRules) { + const rules = new OwmHighlightRules(); + const uncertaintyRules = rules.$rules.start.filter( + (rule: any) => typeof rule.regex === 'string' && rule.regex.includes('uncertainty'), + ); + const compiled = uncertaintyRules.map((rule: any) => new RegExp(rule.regex)); + + const samples = [ + 'component A [0.8, 0.5] uncertainty [, 0.7]', + 'component A [0.8, 0.5] uncertainty [0.3, ]', + 'component A [0.8, 0.5] uncertainty [,+0.2]', + 'component A [0.8, 0.5] uncertainty [-0.15, ]', + 'component A [0.8, 0.5] uncertainty right +0.20', + 'component A [0.8, 0.5] uncertainty left -0.15', + ]; + + samples.forEach(sample => { + expect(compiled.some(regex => regex.test(sample))).toBe(true); + }); + } + }); }); describe('Regex Pattern Validation', () => { diff --git a/frontend/src/__tests__/components/map/VisualSelectionFeedback.test.tsx b/frontend/src/__tests__/components/map/VisualSelectionFeedback.test.tsx index be3301b5..2e498d2f 100644 --- a/frontend/src/__tests__/components/map/VisualSelectionFeedback.test.tsx +++ b/frontend/src/__tests__/components/map/VisualSelectionFeedback.test.tsx @@ -22,11 +22,15 @@ const mockMapDimensions: MapDimensions = { }; const mockMapTheme: MapTheme = { + className: 'plain', component: { fontSize: '14px', fontWeight: 'normal', textColor: '#000', evolvedTextColor: '#666', + stroke: '#000', + strokeWidth: 1, + radius: 5, }, attitudes: { pioneers: {fill: '#ff0000', stroke: '#ff0000'}, @@ -76,6 +80,8 @@ const mockComponent: UnifiedComponent = { visibility: 0.7, uncertaintyLowerMaturity: 0.5, uncertaintyUpperMaturity: 0.5, + uncertaintyLowerOffsetMaturity: 0, + uncertaintyUpperOffsetMaturity: 0, evolved: false, evolving: false, line: 1, @@ -95,6 +101,10 @@ const mockAnchor: UnifiedComponent = { type: 'anchor', maturity: 0.6, visibility: 0.8, + uncertaintyLowerMaturity: 0.6, + uncertaintyUpperMaturity: 0.6, + uncertaintyLowerOffsetMaturity: 0, + uncertaintyUpperOffsetMaturity: 0, evolved: false, evolving: false, line: 3, @@ -199,6 +209,8 @@ describe('Visual Selection Feedback', () => { id: 'test-component-uncertain', uncertaintyLowerMaturity: 0.35, uncertaintyUpperMaturity: 0.75, + uncertaintyLowerOffsetMaturity: -0.15, + uncertaintyUpperOffsetMaturity: 0.25, }; const mockProps = { @@ -215,12 +227,68 @@ describe('Visual Selection Feedback', () => { expect(screen.getByTestId(`component-uncertainty-${uncertainComponent.id}`)).toBeInTheDocument(); }); + it('should anchor non-wardley gradient peak on component maturity inside uncertainty range', () => { + const uncertainComponent: UnifiedComponent = { + ...mockComponent, + id: 'test-component-uncertain-gradient-peak', + maturity: 0.5, + uncertaintyLowerMaturity: 0.35, + uncertaintyUpperMaturity: 0.75, + uncertaintyLowerOffsetMaturity: -0.15, + uncertaintyUpperOffsetMaturity: 0.25, + }; + + const mockProps = { + mapDimensions: mockMapDimensions, + component: uncertainComponent, + mapText: 'test map text', + mutateMapText: jest.fn(), + mapStyleDefs: {...mockMapTheme, className: 'plain'}, + setHighlightLine: jest.fn(), + scaleFactor: 1, + }; + + const {container} = renderWithProvider(); + const expectedPeakOffset = '37.50%'; + const peakStop = container.querySelector( + `#component-uncertainty-gradient-${uncertainComponent.id} stop[offset="${expectedPeakOffset}"]`, + ); + + expect(peakStop).not.toBeNull(); + }); + + it('should render wardley uncertainty as centered line with end caps', () => { + const uncertainComponent: UnifiedComponent = { + ...mockComponent, + id: 'test-component-uncertain-wardley', + uncertaintyLowerMaturity: 0.35, + uncertaintyUpperMaturity: 0.75, + uncertaintyLowerOffsetMaturity: -0.15, + uncertaintyUpperOffsetMaturity: 0.25, + }; + + const mockProps = { + mapDimensions: mockMapDimensions, + component: uncertainComponent, + mapText: 'test map text', + mutateMapText: jest.fn(), + mapStyleDefs: {...mockMapTheme, className: 'wardley'}, + setHighlightLine: jest.fn(), + scaleFactor: 1, + }; + + renderWithProvider(); + expect(screen.getByTestId(`component-uncertainty-${uncertainComponent.id}`)).toBeInTheDocument(); + }); + it('should not render uncertainty segment when lower and upper bounds are equal', () => { const certainComponent: UnifiedComponent = { ...mockComponent, id: 'test-component-certain', uncertaintyLowerMaturity: 0.5, uncertaintyUpperMaturity: 0.5, + uncertaintyLowerOffsetMaturity: 0, + uncertaintyUpperOffsetMaturity: 0, }; const mockProps = { diff --git a/frontend/src/components/editor/mode-owm.ts b/frontend/src/components/editor/mode-owm.ts index 02451006..4946e3a3 100644 --- a/frontend/src/components/editor/mode-owm.ts +++ b/frontend/src/components/editor/mode-owm.ts @@ -372,6 +372,14 @@ interface DocCommentHighlightRules extends TextHighlightRules { ], regex: '(note)(\\s*")((?:[^"\\\\]|\\\\.)*)(")(\\s*\\[)(-?\\d+(?:\\.\\d+)?)(\\s*,\\s*)(-?\\d+(?:\\.\\d+)?)(\\])', }, + { + token: ['text', 'keyword', 'text', 'keyword', 'text', 'constant.numeric'], + regex: '(\\s*)(uncertainty)(\\s+)(left|right)(\\s+)([+-]?\\d+(?:\\.\\d+)?)', + }, + { + token: ['text', 'keyword', 'text', 'punctuation', 'constant.numeric', 'punctuation', 'constant.numeric', 'punctuation'], + regex: '(\\s*)(uncertainty)(\\s*)(\\[\\s*)([^\\],]*)(\\s*,\\s*)([^\\]]*)(\\s*\\])', + }, { token: ['keyword', 'variable.parameter.function.asp'], regex: '(deaccelerator|accelerator|evolution|note|anchor|annotations|submap|title|style|outsource|build|product|buy|pipeline)(\\s*[-+\'"#;&$£%^*()-+,./a-zA-Z0-9\\s*]+)', diff --git a/frontend/src/components/map/MapComponent.tsx b/frontend/src/components/map/MapComponent.tsx index 4d5e1b4a..e5eee27f 100644 --- a/frontend/src/components/map/MapComponent.tsx +++ b/frontend/src/components/map/MapComponent.tsx @@ -45,18 +45,46 @@ const MapComponent: React.FC = ({ const calculatedPosition = new ModernPositionCalculator(); const posX = calculatedPosition.maturityToX(component.maturity, mapDimensions.width); const posY = calculatedPosition.visibilityToY(component.visibility, mapDimensions.height) + (component.offsetY ? component.offsetY : 0); + const [isUncertaintySelected, setIsUncertaintySelected] = React.useState(false); const clampMaturity = (value: number) => Math.min(1, Math.max(0, value)); - const lowerBoundary = clampMaturity(component.uncertaintyLowerMaturity ?? component.maturity); - const upperBoundary = clampMaturity(component.uncertaintyUpperMaturity ?? component.maturity); + const lowerOffset = + typeof component.uncertaintyLowerOffsetMaturity === 'number' + ? component.uncertaintyLowerOffsetMaturity + : (component.uncertaintyLowerMaturity ?? component.maturity) - component.maturity; + const upperOffset = + typeof component.uncertaintyUpperOffsetMaturity === 'number' + ? component.uncertaintyUpperOffsetMaturity + : (component.uncertaintyUpperMaturity ?? component.maturity) - component.maturity; + const lowerBoundary = clampMaturity(component.maturity + lowerOffset); + const upperBoundary = clampMaturity(component.maturity + upperOffset); const uncertaintyStart = Math.min(lowerBoundary, upperBoundary); const uncertaintyEnd = Math.max(lowerBoundary, upperBoundary); const shouldRenderUncertainty = uncertaintyEnd - uncertaintyStart > 0; const uncertaintyX1 = calculatedPosition.maturityToX(uncertaintyStart, mapDimensions.width); const uncertaintyX2 = calculatedPosition.maturityToX(uncertaintyEnd, mapDimensions.width); + const isWardleyStyle = mapStyleDefs?.className === 'wardley'; + const componentStrokeColor = mapStyleDefs?.component?.stroke || '#6b7280'; + const componentStrokeWidth = mapStyleDefs?.component?.strokeWidth || 1; + const componentRadius = mapStyleDefs?.component?.radius || 8; + const uncertaintyBandHeight = componentRadius * 2 + componentStrokeWidth; + const uncertaintyBandHalfHeight = uncertaintyBandHeight / 2; + const uncertaintyGradientId = `component-uncertainty-gradient-${component.id}`; + const uncertaintyCapHalfHeight = Math.max(2, uncertaintyBandHeight * 0.35); + const clampedComponentMaturity = clampMaturity(component.maturity); + const uncertaintySpan = Math.max(0, uncertaintyEnd - uncertaintyStart); + const uncertaintyPeakRatio = + uncertaintySpan > 0 ? Math.min(1, Math.max(0, (clampedComponentMaturity - uncertaintyStart) / uncertaintySpan)) : 0.5; + const uncertaintyPeakOffset = `${(uncertaintyPeakRatio * 100).toFixed(2)}%`; // Check if this component is currently selected const isElementSelected = isSelected(component.id); + React.useEffect(() => { + if (!isElementSelected) { + setIsUncertaintySelected(false); + } + }, [isElementSelected]); + const handleClick = (e: React.MouseEvent) => { console.log('MapComponent clicked, selecting component:', component.id); e.preventDefault(); @@ -64,6 +92,7 @@ const MapComponent: React.FC = ({ // Select this component selectComponent(component.id); + setIsUncertaintySelected(false); console.log('Component selected:', component); @@ -106,6 +135,24 @@ const MapComponent: React.FC = ({ setHoveredComponent(null); }; + const updateUncertaintyClause = (line: string, start: number, end: number, addIfMissing: boolean = true): string => { + const uncertaintyClause = `uncertainty [${start.toFixed(2)}, ${end.toFixed(2)}]`; + + if (/\buncertainty\s*\[[^\]]*\]/i.test(line)) { + return line.replace(/\buncertainty\s*\[[^\]]*\]/i, uncertaintyClause); + } + + if (!addIfMissing) { + return line; + } + + if (/\blabel\b/i.test(line)) { + return line.replace(/\blabel\b/i, `${uncertaintyClause} label`); + } + + return `${line} ${uncertaintyClause}`; + }; + const updatePosition = (movedPosition: MovedPosition) => { if (component.line === undefined) return; @@ -253,15 +300,35 @@ const MapComponent: React.FC = ({ // Use normalized matching to check if this is our component if (normalizeComponentName(componentNameInLine) === normalizeComponentName(component.name)) { + const newLowerBoundary = clampMaturity(newMaturity + lowerOffset); + const newUpperBoundary = clampMaturity(newMaturity + upperOffset); + const newUncertaintyStart = Math.min(newLowerBoundary, newUpperBoundary); + const newUncertaintyEnd = Math.max(newLowerBoundary, newUpperBoundary); + const hasUncertaintyClause = /\buncertainty\s*\[[^\]]*\]/i.test(line); + const hasRelativeUncertainty = Math.abs(lowerOffset) > 0.000001 || Math.abs(upperOffset) > 0.000001; + const shouldPersistUncertaintyClause = hasUncertaintyClause || hasRelativeUncertainty; + if (line.includes('label')) { const parts = line.split(/\blabel\b/); const updatedFirstPart = parts[0].replace( /\[([^[\]]+)\]/, `[${newVisibility.toFixed(2)}, ${newMaturity.toFixed(2)}]`, ); - return updatedFirstPart + 'label' + parts[1]; + const lineWithUpdatedCoords = updatedFirstPart + 'label' + parts[1]; + return updateUncertaintyClause( + lineWithUpdatedCoords, + newUncertaintyStart, + newUncertaintyEnd, + shouldPersistUncertaintyClause, + ); } else { - return line.replace(/\[([^[\]]+)\]/, `[${newVisibility.toFixed(2)}, ${newMaturity.toFixed(2)}]`); + const lineWithUpdatedCoords = line.replace(/\[([^[\]]+)\]/, `[${newVisibility.toFixed(2)}, ${newMaturity.toFixed(2)}]`); + return updateUncertaintyClause( + lineWithUpdatedCoords, + newUncertaintyStart, + newUncertaintyEnd, + shouldPersistUncertaintyClause, + ); } } } @@ -273,20 +340,154 @@ const MapComponent: React.FC = ({ mutateMapText(newText); }; + const handleUncertaintySelection = (e: React.MouseEvent) => { + e.preventDefault(); + e.stopPropagation(); + selectComponent(component.id); + setIsUncertaintySelected(true); + if (component.line) { + setHighlightLine(component.line); + } + }; + + const updateUncertaintyBoundary = (boundary: 'lower' | 'upper', movedPosition: MovedPosition) => { + if (component.line === undefined || component.evolved) return; + + const calculator = new ModernPositionCalculator(); + const updatedBoundary = clampMaturity(parseFloat(calculator.xToMaturity(movedPosition.x, mapDimensions.width))); + + const lower = boundary === 'lower' ? updatedBoundary : lowerBoundary; + const upper = boundary === 'upper' ? updatedBoundary : upperBoundary; + const start = Math.min(lower, upper); + const end = Math.max(lower, upper); + + const lines = mapText.split('\n'); + const updatedLines = lines.map((line, index) => { + if (index + 1 !== component.line) { + return line; + } + + if (!line.trim().startsWith('component ')) { + return line; + } + + return updateUncertaintyClause(line, start, end); + }); + + mutateMapText(updatedLines.join('\n')); + }; + return ( <> {shouldRenderUncertainty && ( - + + {!isWardleyStyle && ( + <> + + + )} + + {isWardleyStyle && ( + <> + + + + + )} + + + + {isUncertaintySelected && isElementSelected && ( + + )} + + )} + + {shouldRenderUncertainty && isUncertaintySelected && isElementSelected && ( + <> + updateUncertaintyBoundary('lower', movedPosition)} + fixedY={true} + fixedX={false} + shouldShowMoving={false} + scaleFactor={scaleFactor}> + + + updateUncertaintyBoundary('upper', movedPosition)} + fixedY={true} + fixedX={false} + shouldShowMoving={false} + scaleFactor={scaleFactor}> + + + )} = ({ {/* CSS animations for component selection */} + {!isWardleyStyle && ( + + + + + + )}