Skip to content

Commit

Permalink
Merge pull request #862 from JetBrains/feature/celllayout_full_width_…
Browse files Browse the repository at this point in the history
…root

Celllayout: add the option to have the root cell occupy the full editor width
  • Loading branch information
alexanderpann authored Jun 19, 2024
2 parents 51e789d + 292f99c commit 0c8d599
Show file tree
Hide file tree
Showing 12 changed files with 487 additions and 20 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is *loosely* based on [Keep a Changelog](https://keepachangelog.com/e

## June 2024

### Added

- *de.itemis.mps.editor.celllayout.styles*: A new style sheet item *full-width-root* was added that can make the root cell of the editor occupy the full editor width. That means that, for example, horizontal lines with a push/grow style will extend to the full editor width as well as all other cells with the same style.

### Fixed

- *de.itemis.mps.editor.diagram.runtime*: Diagrams can now be used in an headless environment (e.g. for rendering documentation).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20536,6 +20536,11 @@
</node>
</node>
</node>
<node concept="1SiIV0" id="6W5Xfjf_imB" role="3bR37C">
<node concept="3bR9La" id="6W5Xfjf_imC" role="1SiIV1">
<ref role="3bR37D" node="6SVXTgIel8z" resolve="de.itemis.mps.editor.celllayout.styles" />
</node>
</node>
</node>
<node concept="1E1JtA" id="7qi8mU1OzZB" role="2G$12L">
<property role="BnDLt" value="true" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@
</registry>
<node concept="V5hpn" id="6SVXTgI9FWP">
<property role="TrG5h" value="LayoutStyleAttributes" />
<node concept="3t5Usi" id="6W5Xfjf3D25" role="V601i">
<property role="iBDjm" value="7zL4upErSle/simple" />
<property role="TrG5h" value="_full-width-root" />
<node concept="10P_77" id="6W5Xfjf3D44" role="3t5Oan" />
<node concept="3clFbT" id="6W5Xfjf3D4k" role="3t49C2" />
</node>
<node concept="3t5Usi" id="6SVXTgI9FWQ" role="V601i">
<property role="iBDjm" value="7zL4upErSle/simple" />
<property role="TrG5h" value="_border-color" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
</facets>
<accessoryModels />
<sourcePath />
<dependencies>
<dependency reexport="false">24c96a96-b7a1-4f30-82da-0f8e279a2661(de.itemis.mps.editor.celllayout.styles)</dependency>
</dependencies>
<languageVersions>
<language slang="l:1919c723-b60b-4592-9318-9ce96d91da44:de.itemis.mps.editor.celllayout" version="0" />
<language slang="l:f3061a53-9226-4cc5-a443-f952ceaf5816:jetbrains.mps.baseLanguage" version="12" />
Expand Down Expand Up @@ -51,6 +54,7 @@
<module reference="6ed54515-acc8-4d1e-a16c-9fd6cfe951ea(MPS.Core)" version="0" />
<module reference="8865b7a8-5271-43d3-884c-6fd1d9cfdd34(MPS.OpenAPI)" version="0" />
<module reference="a49c7665-6e20-479f-8483-903f65b74ed2(de.itemis.mps.editor.celllayout.sandboxlang)" version="0" />
<module reference="24c96a96-b7a1-4f30-82da-0f8e279a2661(de.itemis.mps.editor.celllayout.styles)" version="0" />
<module reference="ceab5195-25ea-4f22-9b92-103b95ca8c0c(jetbrains.mps.lang.core)" version="0" />
<module reference="a9e4c532-c5f5-4bb7-99ef-42abb73bbb70(jetbrains.mps.lang.descriptor.aspects)" version="0" />
</dependencyVersions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
</languages>
<imports>
<import index="z60i" ref="6354ebe7-c22a-4a0f-ac54-50b52ab9b065/java:java.awt(JDK/)" />
<import index="z0fb" ref="r:0b928dd6-dd7e-45a8-b309-a2e315b7877a(de.itemis.mps.editor.celllayout.styles.editor)" />
<import index="uvw8" ref="r:8779fe48-e315-4d07-bdd5-8767e3f955d0(de.itemis.mps.editor.celllayout.sandboxlang.structure)" implicit="true" />
<import index="tpck" ref="r:00000000-0000-4000-0000-011c89590288(jetbrains.mps.lang.core.structure)" implicit="true" />
</imports>
Expand Down Expand Up @@ -101,6 +102,7 @@
<concept id="8304752469786031156" name="de.itemis.mps.editor.celllayout.structure.VerticalLineCell" flags="ng" index="2up9LE" />
<concept id="8304752469786524965" name="de.itemis.mps.editor.celllayout.structure.VerticalLineColorStyle" flags="lg" index="2ur1lV" />
<concept id="8304752469786516942" name="de.itemis.mps.editor.celllayout.structure.VerticalLineWidthStyle" flags="lg" index="2ur3mg" />
<concept id="8000069645376918054" name="de.itemis.mps.editor.celllayout.structure.FullWidthRootStyle" flags="lg" index="2w5Ari" />
<concept id="4682418030829244851" name="de.itemis.mps.editor.celllayout.structure.StringStyle" flags="lg" index="2TzlJg">
<property id="1238091709220" name="value" index="1413C4" />
<child id="1236443321503" name="query" index="3xKXm0" />
Expand Down Expand Up @@ -1817,6 +1819,9 @@
<node concept="24kQdi" id="7d0q5VHblIl">
<ref role="1XX52x" to="uvw8:7d0q5VHb5QX" resolve="LinesContainer" />
<node concept="3EZMnI" id="7d0q5VHblIn" role="2wV5jI">
<node concept="2w5Ari" id="6W5Xfjf5pz_" role="3F10Kt">
<property role="VOm3f" value="true" />
</node>
<node concept="3EZMnI" id="7d0q5VHblIu" role="3EZMnx">
<node concept="VPM3Z" id="7d0q5VHblIw" role="3F10Kt">
<property role="VOm3f" value="false" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,25 @@
<language slang="l:a247e09e-2435-45ba-b8d2-07e93feba96a:jetbrains.mps.baseLanguage.tuples" version="0" />
<language slang="l:aee9cad2-acd4-4608-aef2-0004f6a1cdbd:jetbrains.mps.lang.actions" version="4" />
<language slang="l:af65afd8-f0dd-4942-87d9-63a55f2a9db1:jetbrains.mps.lang.behavior" version="2" />
<language slang="l:3f4bc5f5-c6c1-4a28-8b10-c83066ffa4a1:jetbrains.mps.lang.constraints" version="6" />
<language slang="l:e51810c5-7308-4642-bcb6-469e61b5dd18:jetbrains.mps.lang.constraints.msg.specification" version="0" />
<language slang="l:47257bf3-78d3-470b-89d9-8c3261a61d15:jetbrains.mps.lang.constraints.rules" version="0" />
<language slang="l:5dae8159-ab99-46bb-a40d-0cee30ee7018:jetbrains.mps.lang.constraints.rules.kinds" version="0" />
<language slang="l:134c38d4-e3af-4d9e-b069-1c7df0a4005d:jetbrains.mps.lang.constraints.rules.skeleton" version="0" />
<language slang="l:3ad5badc-1d9c-461c-b7b1-fa2fcd0a0ae7:jetbrains.mps.lang.context" version="0" />
<language slang="l:ea3159bf-f48e-4720-bde2-86dba75f0d34:jetbrains.mps.lang.context.defs" version="0" />
<language slang="l:ceab5195-25ea-4f22-9b92-103b95ca8c0c:jetbrains.mps.lang.core" version="2" />
<language slang="l:f4ad079d-bc71-4ffb-9600-9328705cf998:jetbrains.mps.lang.descriptor" version="0" />
<language slang="l:18bc6592-03a6-4e29-a83a-7ff23bde13ba:jetbrains.mps.lang.editor" version="14" />
<language slang="l:d7a92d38-f7db-40d0-8431-763b0c3c9f20:jetbrains.mps.lang.intentions" version="1" />
<language slang="l:ad93155d-79b2-4759-b10c-55123e763903:jetbrains.mps.lang.messages" version="0" />
<language slang="l:446c26eb-2b7b-4bf0-9b35-f83fa582753e:jetbrains.mps.lang.modelapi" version="0" />
<language slang="l:d4615e3b-d671-4ba9-af01-2b78369b0ba7:jetbrains.mps.lang.pattern" version="2" />
<language slang="l:3a13115c-633c-4c5c-bbcc-75c4219e9555:jetbrains.mps.lang.quotation" version="5" />
<language slang="l:982eb8df-2c96-4bd7-9963-11712ea622e5:jetbrains.mps.lang.resources" version="2" />
<language slang="l:b3551702-269c-4f05-ba61-58060cef4292:jetbrains.mps.lang.rulesAndMessages" version="0" />
<language slang="l:d8f591ec-4d86-4af2-9f92-a9e93c803ffa:jetbrains.mps.lang.scopes" version="0" />
<language slang="l:13744753-c81f-424a-9c1b-cf8943bf4e86:jetbrains.mps.lang.sharedConcepts" version="0" />
<language slang="l:7866978e-a0f0-4cc7-81bc-4d213d9375e1:jetbrains.mps.lang.smodel" version="19" />
<language slang="l:c72da2b9-7cce-4447-8389-f407dc1158b7:jetbrains.mps.lang.structure" version="9" />
<language slang="l:c7fb639f-be78-4307-89b0-b5959c3fa8c8:jetbrains.mps.lang.text" version="0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<import index="z1c3" ref="6ed54515-acc8-4d1e-a16c-9fd6cfe951ea/java:jetbrains.mps.project(MPS.Core/)" />
<import index="33ny" ref="6354ebe7-c22a-4a0f-ac54-50b52ab9b065/java:java.util(JDK/)" />
<import index="rdi9" ref="r:c30772cf-6faa-4379-900e-6719e180568e(de.itemis.mps.editor.celllayout.runtime.plugin)" />
<import index="pvux" ref="r:bb8c05bc-4758-44fe-b1ab-f9faa5a73d31(de.itemis.mps.editor.celllayout.structure)" implicit="true" />
<import index="pvux" ref="r:bb8c05bc-4758-44fe-b1ab-f9faa5a73d31(de.itemis.mps.editor.celllayout.structure)" />
</imports>
<registry>
<language id="af65afd8-f0dd-4942-87d9-63a55f2a9db1" name="jetbrains.mps.lang.behavior">
Expand Down Expand Up @@ -922,5 +922,56 @@
<node concept="3clFbS" id="7d0q5VHb7R8" role="2VODD2" />
</node>
</node>
<node concept="13h7C7" id="6W5Xfjf4TxP">
<ref role="13h7C2" to="pvux:6W5Xfjf4T8A" resolve="FullWidthRootStyle" />
<node concept="13i0hz" id="6W5Xfjf4U7P" role="13h7CS">
<property role="2Ki8OM" value="true" />
<property role="TrG5h" value="getStyleAttributeDeclaration" />
<property role="13i0it" value="false" />
<property role="13i0iv" value="false" />
<ref role="13i0hy" node="2nutuZsM_FC" resolve="getStyleAttributeDeclaration" />
<node concept="3Tm1VV" id="6W5Xfjf4U7Q" role="1B3o_S" />
<node concept="3clFbS" id="6W5Xfjf4U7R" role="3clF47">
<node concept="3clFbF" id="6W5Xfjf4U7S" role="3cqZAp">
<node concept="2OqwBi" id="6W5Xfjf4U7T" role="3clFbG">
<node concept="2c44tf" id="6W5Xfjf4U7U" role="2Oq$k0">
<node concept="1Z6Ecs" id="6W5Xfjf4U7V" role="2c44tc">
<ref role="1Z6EpT" to="z0fb:6W5Xfjf3D25" resolve="_full-width-root" />
</node>
</node>
<node concept="3TrEf2" id="6W5Xfjf4U7W" role="2OqNvi">
<ref role="3Tt5mk" to="tpc2:5eGiGGGHIMM" resolve="attributeDeclaration" />
</node>
</node>
</node>
</node>
<node concept="3Tqbb2" id="6W5Xfjf4U7X" role="3clF45">
<ref role="ehGHo" to="tpc2:3t4KfBEkQvF" resolve="StyleAttributeDeclaration" />
</node>
</node>
<node concept="13i0hz" id="6W5Xfjf4U7Y" role="13h7CS">
<property role="13i0iv" value="false" />
<property role="TrG5h" value="getStyleAttribute" />
<property role="13i0it" value="false" />
<ref role="13i0hy" to="tpcb:3a0zHG4tjdX" resolve="getStyleAttribute" />
<node concept="3Tm1VV" id="6W5Xfjf4U7Z" role="1B3o_S" />
<node concept="3clFbS" id="6W5Xfjf4U80" role="3clF47">
<node concept="3clFbF" id="6W5Xfjf4U81" role="3cqZAp">
<node concept="1Z6Ecs" id="6W5Xfjf4U82" role="3clFbG">
<ref role="1Z6EpT" to="z0fb:6W5Xfjf3D25" resolve="_full-width-root" />
</node>
</node>
</node>
<node concept="3uibUv" id="6W5Xfjf4U83" role="3clF45">
<ref role="3uigEE" to="hox0:~StyleAttribute" resolve="StyleAttribute" />
<node concept="3uibUv" id="6W5Xfjf4U84" role="11_B2D">
<ref role="3uigEE" to="wyt6:~Boolean" resolve="Boolean" />
</node>
</node>
</node>
<node concept="13hLZK" id="6W5Xfjf4TxQ" role="13h7CW">
<node concept="3clFbS" id="6W5Xfjf4TxR" role="2VODD2" />
</node>
</node>
</model>

Loading

0 comments on commit 0c8d599

Please sign in to comment.