# Copyright 2022 The GRADIS Project Contributors # SPDX-License-Identifier: CC0-1.0 # SPDX-FileContributor: Lucas Hinderberger # # Each abovementioned SPDX-FileContributor has contributed to and/or modified this file. # Please add your name and email address to the list above, if you publish modifications. GRADIFF v0.1 [Chunk] Author: "John Doe " Timestamp: @2022-08-30T17:30:00Z CREATE canvasA: Canvas(100, 100) CREATE ptAA: PointAbsolute(10, 10) CREATE ptCA: PointAbsolute(30, 10) CREATE ptEA: PointAbsolute(50, 10) CREATE ptGA: PointAbsolute(70, 10) CREATE ptIA: PointAbsolute(90, 10) CREATE ptAB: PointAbsolute(10, 20) CREATE ptCB: PointAbsolute(30, 20) CREATE ptEB: PointAbsolute(50, 20) CREATE ptGB: PointAbsolute(70, 20) CREATE ptIB: PointAbsolute(90, 20) CREATE ptAC: PointAbsolute(10, 30) CREATE ptCC: PointAbsolute(30, 30) CREATE ptEC: PointAbsolute(50, 30) CREATE ptGC: PointAbsolute(70, 30) CREATE ptIC: PointAbsolute(90, 30) CREATE ptAD: PointAbsolute(10, 40) CREATE ptCD: PointAbsolute(30, 40) CREATE ptED: PointAbsolute(50, 40) CREATE ptGD: PointAbsolute(70, 40) CREATE ptID: PointAbsolute(90, 40) CREATE ptAE: PointAbsolute(10, 50) CREATE ptCE: PointAbsolute(30, 50) CREATE ptEE: PointAbsolute(50, 50) CREATE ptGE: PointAbsolute(70, 50) CREATE ptIE: PointAbsolute(90, 50) CREATE ptAG: PointAbsolute(10, 70) CREATE ptCG: PointAbsolute(30, 70) CREATE ptEG: PointAbsolute(50, 70) CREATE ptGG: PointAbsolute(70, 70) CREATE ptIG: PointAbsolute(90, 70) CREATE ptAI: PointAbsolute(10, 90) CREATE ptCI: PointAbsolute(30, 90) CREATE ptEI: PointAbsolute(50, 90) CREATE ptGI: PointAbsolute(70, 90) CREATE ptII: PointAbsolute(90, 90) CREATE ptBF: PointAbsolute(20, 60) CREATE ptFA: PointAbsolute(60, 10) CREATE ptHE: PointAbsolute(80, 50) CREATE arrowHorizontal: Arrow($ptAA, $ptCA) CREATE arrowVertical: Arrow($ptEA, $ptEC) CREATE arrowDiagonalA: Arrow($ptFA, $ptHE) SET arrowDiagonalA.StartTipStyle = "EquilateralTriangle" SET arrowDiagonalA.LineStyle = "Dashed" CREATE arrowDiagonalB: Arrow($ptGA, $ptIC) SET arrowDiagonalB.StartTipStyle = "EquilateralTriangle" SET arrowDiagonalB.LineStyle = "Dotted" CREATE arrowMultiLeg: Arrow($ptAE, $ptCG) ARRINSERT arrowMultiLeg.Points[1]: $ptCE ARRINSERT arrowMultiLeg.Points[2]: $ptEG ARRINSERT arrowMultiLeg.Points[3]: $ptCI ARRINSERT arrowMultiLeg.Points[4]: $ptAG ARRINSERT arrowMultiLeg.Points[5]: $ptBF SET arrowMultiLeg.StartTipStyle = "EquilateralTriangle" CREATE arrowColorful: Arrow($ptEE, $ptGE) SET arrowColorful.StartTipStyle = "EquilateralTriangle" SET arrowColorful.StartTipColor = #FF0000FF SET arrowColorful.EndTipColor = #00FF00FF SET arrowColorful.LineColor = #0000FFFF CREATE arrowSmallTips: Arrow($ptGG, $ptIG) SET arrowSmallTips.StartTipStyle = "EquilateralTriangle" SET arrowSmallTips.StartTipScale = 0.15 SET arrowSmallTips.EndTipScale = 0.5 CREATE arrowLargeTips: Arrow($ptGI, $ptII) SET arrowLargeTips.StartTipStyle = "EquilateralTriangle" SET arrowLargeTips.StartTipScale = 1.5 SET arrowLargeTips.EndTipScale = 4 CREATE arrowThin: Arrow($ptAB, $ptCB) SET arrowThin.LineThickness = 0.25 CREATE arrowThick: Arrow($ptAC, $ptCC) SET arrowThick.LineThickness = 2.5 [Chunk] Author: "John Doe " Timestamp: @2022-08-30T17:30:00Z CREATE canvasB: Canvas(300, 250) CREATE ptBoxColorTestAAnchor: PointAbsolute(0, 50) CREATE boxColorTestA: Box($ptBoxColorTestAAnchor, 50, 50) SET boxColorTestA.Text = "gradis" SET boxColorTestA.FontFamily = "Jellee" SET boxColorTestA.FontSize = 30 CREATE ptBoxColorTestBAnchor: PointAbsolute(50, 50) CREATE boxColorTestB: Box($ptBoxColorTestBAnchor, 50, 50) SET boxColorTestB.Text = "gradis" SET boxColorTestB.FontFamily = "Jellee" SET boxColorTestB.FontSize = 30 SET boxColorTestB.TextColor = #FF00AAFF CREATE ptBoxColorTestCAnchor: PointAbsolute(100, 50) CREATE boxColorTestC: Box($ptBoxColorTestCAnchor, 50, 50) SET boxColorTestC.Text = "gradis" SET boxColorTestC.FontFamily = "Jellee" SET boxColorTestC.FontSize = 30 SET boxColorTestC.TextColor = #AAFF00FF CREATE ptBoxColorTestDAnchor: PointAbsolute(150, 50) CREATE boxColorTestD: Box($ptBoxColorTestDAnchor, 50, 50) SET boxColorTestD.Text = "gradis" SET boxColorTestD.FontFamily = "Jellee" SET boxColorTestD.FontSize = 30 SET boxColorTestD.TextColor = #00AAFFFF CREATE ptBoxColorTestEAnchor: PointAbsolute(200, 50) CREATE boxColorTestE: Box($ptBoxColorTestEAnchor, 50, 50) SET boxColorTestE.BackgroundColor = #00FF00FF SET boxColorTestE.Text = "gradis" SET boxColorTestE.FontFamily = "Jellee" SET boxColorTestE.FontSize = 30 SET boxColorTestE.TextColor = #FF00AA7F CREATE ptBoxColorTestFAnchor: PointAbsolute(250, 50) CREATE boxColorTestF: Box($ptBoxColorTestFAnchor, 50, 50) SET boxColorTestF.BackgroundColor = #FF0000FF SET boxColorTestF.Text = "gradis" SET boxColorTestF.FontFamily = "Jellee" SET boxColorTestF.FontSize = 30 SET boxColorTestF.TextColor = #0000007F CREATE ptBoxWeightTestAAnchor: PointAbsolute(0, 150) CREATE boxWeightTestA: Box($ptBoxWeightTestAAnchor, 50, 50) SET boxWeightTestA.Text = "Weight" SET boxWeightTestA.FontFamily = "Fira Sans" SET boxWeightTestA.FontSize = 30 SET boxWeightTestA.FontWeight = 100 CREATE ptBoxWeightTestBAnchor: PointAbsolute(50, 150) CREATE boxWeightTestB: Box($ptBoxWeightTestBAnchor, 50, 50) SET boxWeightTestB.Text = "Weight" SET boxWeightTestB.FontFamily = "Fira Sans" SET boxWeightTestB.FontSize = 30 SET boxWeightTestB.FontWeight = 200 CREATE ptBoxWeightTestCAnchor: PointAbsolute(100, 150) CREATE boxWeightTestC: Box($ptBoxWeightTestCAnchor, 50, 50) SET boxWeightTestC.Text = "Weight" SET boxWeightTestC.FontFamily = "Fira Sans" SET boxWeightTestC.FontSize = 30 SET boxWeightTestC.FontWeight = 300 CREATE ptBoxWeightTestDAnchor: PointAbsolute(150, 150) CREATE boxWeightTestD: Box($ptBoxWeightTestDAnchor, 50, 50) SET boxWeightTestD.Text = "Weight" SET boxWeightTestD.FontFamily = "Fira Sans" SET boxWeightTestD.FontSize = 30 SET boxWeightTestD.FontWeight = 400 CREATE ptBoxWeightTestEAnchor: PointAbsolute(200, 150) CREATE boxWeightTestE: Box($ptBoxWeightTestEAnchor, 50, 50) SET boxWeightTestE.Text = "Weight" SET boxWeightTestE.FontFamily = "Fira Sans" SET boxWeightTestE.FontSize = 30 SET boxWeightTestE.FontWeight = 500 CREATE ptBoxWeightTestFAnchor: PointAbsolute(250, 150) CREATE boxWeightTestF: Box($ptBoxWeightTestFAnchor, 50, 50) SET boxWeightTestF.Text = "Weight" SET boxWeightTestF.FontFamily = "Fira Sans" SET boxWeightTestF.FontSize = 30 SET boxWeightTestF.FontWeight = 600 CREATE ptBoxWeightTestGAnchor: PointAbsolute(250, 100) CREATE boxWeightTestG: Box($ptBoxWeightTestGAnchor, 50, 50) SET boxWeightTestG.Text = "Weight" SET boxWeightTestG.FontFamily = "Fira Sans" SET boxWeightTestG.FontSize = 30 SET boxWeightTestG.FontWeight = 700 CREATE ptBoxWeightTestHAnchor: PointAbsolute(200, 100) CREATE boxWeightTestH: Box($ptBoxWeightTestHAnchor, 50, 50) SET boxWeightTestH.Text = "Weight" SET boxWeightTestH.FontFamily = "Fira Sans" SET boxWeightTestH.FontSize = 30 SET boxWeightTestH.FontWeight = 800 CREATE ptBoxWeightTestIAnchor: PointAbsolute(150, 100) CREATE boxWeightTestI: Box($ptBoxWeightTestIAnchor, 50, 50) SET boxWeightTestI.Text = "Weight" SET boxWeightTestI.FontFamily = "Fira Sans" SET boxWeightTestI.FontSize = 30 SET boxWeightTestI.FontWeight = 900 CREATE ptBoxStretchTestAAnchor: PointAbsolute(0, 100) CREATE boxStretchTestA: Box($ptBoxStretchTestAAnchor, 50, 50) SET boxStretchTestA.Text = "Stretch" SET boxStretchTestA.FontFamily = "Noto Sans" SET boxStretchTestA.FontSize = 30 SET boxStretchTestA.FontStretch = 0.5 CREATE ptBoxStretchTestBAnchor: PointAbsolute(50, 100) CREATE boxStretchTestB: Box($ptBoxStretchTestBAnchor, 50, 50) SET boxStretchTestB.Text = "Stretch" SET boxStretchTestB.FontFamily = "Noto Sans" SET boxStretchTestB.FontSize = 30 SET boxStretchTestB.FontStretch = 0.75 CREATE ptBoxStretchTestCAnchor: PointAbsolute(100, 100) CREATE boxStretchTestC: Box($ptBoxStretchTestCAnchor, 50, 50) SET boxStretchTestC.Text = "Stretch" SET boxStretchTestC.FontFamily = "Noto Sans" SET boxStretchTestC.FontSize = 30 SET boxStretchTestC.FontStretch = 1 CREATE ptBoxMultilineTestLeftAnchor: PointAbsolute(0, 200) CREATE boxMultilineTestLeft: Box($ptBoxMultilineTestLeftAnchor, 50, 50) SET boxMultilineTestLeft.Text = "A text that spans multiple lines. Magnificent!" SET boxMultilineTestLeft.FontFamily = "Noto Sans" SET boxMultilineTestLeft.FontSize = 12 SET boxMultilineTestLeft.TextHAlignment = "Left" CREATE ptBoxMultilineTestCenterAnchor: PointAbsolute(50, 200) CREATE boxMultilineTestCenter: Box($ptBoxMultilineTestCenterAnchor, 50, 50) SET boxMultilineTestCenter.Text = "A text that spans multiple lines. Magnificent!" SET boxMultilineTestCenter.FontFamily = "Noto Sans" SET boxMultilineTestCenter.FontSize = 12 CREATE ptBoxMultilineTestRightAnchor: PointAbsolute(100, 200) CREATE boxMultilineTestRight: Box($ptBoxMultilineTestRightAnchor, 50, 50) SET boxMultilineTestRight.Text = "A text that spans multiple lines. Magnificent!" SET boxMultilineTestRight.FontFamily = "Noto Sans" SET boxMultilineTestRight.FontSize = 12 SET boxMultilineTestRight.TextHAlignment = "Right" CREATE ptBoxMultilineTestTopAnchor: PointAbsolute(150, 200) CREATE boxMultilineTestTop: Box($ptBoxMultilineTestTopAnchor, 50, 50) SET boxMultilineTestTop.Text = "A text that spans multiple lines. Magnificent!" SET boxMultilineTestTop.FontFamily = "Noto Sans" SET boxMultilineTestTop.FontSize = 12 SET boxMultilineTestTop.TextVAlignment = "Top" CREATE ptBoxMultilineTestBottomAnchor: PointAbsolute(200, 200) CREATE boxMultilineTestBottom: Box($ptBoxMultilineTestBottomAnchor, 50, 50) SET boxMultilineTestBottom.Text = "A text that spans multiple lines. Magnificent!" SET boxMultilineTestBottom.FontFamily = "Noto Sans" SET boxMultilineTestBottom.FontSize = 12 SET boxMultilineTestBottom.TextVAlignment = "Bottom" CREATE ptBoxMultilineTestMLSAnchor: PointAbsolute(250, 200) CREATE boxMultilineTestMoreLineSpace: Box($ptBoxMultilineTestMLSAnchor, 50, 50) SET boxMultilineTestMoreLineSpace.Text = "A text that spans multiple lines. Magnificent!" SET boxMultilineTestMoreLineSpace.FontFamily = "Noto Sans" SET boxMultilineTestMoreLineSpace.FontSize = 12 SET boxMultilineTestMoreLineSpace.FontStretch = 1 SET boxMultilineTestMoreLineSpace.LineHeight = 1.5 CREATE ptBoxClipXTestAnchor: PointAbsolute(0, 250) CREATE boxClipXTest: Box($ptBoxClipXTestAnchor, 50, 50) SET boxClipXTest.Text = "Too long (clipped in X direction)" SET boxClipXTest.FontFamily = "Noto Sans" SET boxClipXTest.FontSize = 12 CREATE ptBoxClipYTestAnchor: PointAbsolute(50, 250) CREATE boxClipYTest: Box($ptBoxClipYTestAnchor, 50, 50) SET boxClipYTest.Text = "Way way too long text ( clipped in Y direction )" SET boxClipYTest.FontFamily = "Noto Sans" SET boxClipYTest.FontSize = 12 CREATE ptBoxClipXYTestAnchor: PointAbsolute(100, 250) CREATE boxClipXYTest: Box($ptBoxClipXYTestAnchor, 50, 50) SET boxClipXYTest.Text = "Way way too long long long long long long text ( clipped in X and Y direction )" SET boxClipXYTest.FontFamily = "Noto Sans" SET boxClipXYTest.FontSize = 12 CREATE ptBoxStyleTestNormalAnchor: PointAbsolute(150, 250) CREATE boxStyleTestNormal: Box($ptBoxStyleTestNormalAnchor, 50, 50) SET boxStyleTestNormal.Text = "Normal" SET boxStyleTestNormal.FontFamily = "Fira Sans" SET boxStyleTestNormal.FontSize = 30 SET boxStyleTestNormal.FontStyle = "Normal" CREATE ptBoxStyleTestItalicAnchor: PointAbsolute(200, 250) CREATE boxStyleTestItalic: Box($ptBoxStyleTestItalicAnchor, 50, 50) SET boxStyleTestItalic.Text = "Italic" SET boxStyleTestItalic.FontFamily = "Fira Sans" SET boxStyleTestItalic.FontSize = 30 SET boxStyleTestItalic.FontStyle = "Italic" CREATE ptBoxStyleTestObliqueAnchor: PointAbsolute(250, 250) CREATE boxStyleTestOblique: Box($ptBoxStyleTestObliqueAnchor, 50, 50) SET boxStyleTestOblique.Text = "Oblique" SET boxStyleTestOblique.FontFamily = "Fira Sans" SET boxStyleTestOblique.FontSize = 30 SET boxStyleTestOblique.FontStyle = "Oblique"