@layers-app/editor 0.3.10 → 0.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.js +6 -6
- package/dist/{layers.aWv9gYR0.js → layers.BnjxHNDK.js} +85 -85
- package/dist/{layers.CIe6IWwR.js → layers.C125HTat.js} +1 -1
- package/dist/layers.Cjs5EBWM.js +343 -0
- package/dist/{layers.BCi5-29W.js → layers.DPccTctI.js} +17 -17
- package/dist/layers.DZ8DrrVn.js +53491 -0
- package/dist/layers.QVaGPbs3.js +161 -0
- package/dist/{layers.B1OkrScy.js → layers.VK3NB7Nd.js} +1 -1
- package/dist/{layers.CXdHS8ME.js → layers.YZkXZvVS.js} +10897 -11432
- package/package.json +15 -22
- package/dist/layers.0O-HO6IA.js +0 -42
- package/dist/layers.0ONhG6ew.js +0 -1283
- package/dist/layers.1g-B3F0-.js +0 -10
- package/dist/layers.2UOO6NPF.js +0 -1
- package/dist/layers.4YQUM2o7.js +0 -32
- package/dist/layers.4nj6Lu4f.js +0 -21938
- package/dist/layers.52famHy6.js +0 -1
- package/dist/layers.5I_IaZtB.js +0 -32
- package/dist/layers.5zC40cdV.js +0 -4
- package/dist/layers.7JqFgE4-.js +0 -15
- package/dist/layers.8fJJJO7B.js +0 -425
- package/dist/layers.9QK1wiQj.js +0 -1
- package/dist/layers.9YzbhWId.js +0 -21763
- package/dist/layers.9pNaFvaX.js +0 -1
- package/dist/layers.9tDhGbsk.js +0 -1
- package/dist/layers.AjgD53rQ.js +0 -1
- package/dist/layers.B-qy_g4-.js +0 -13
- package/dist/layers.B19hGmey.js +0 -1
- package/dist/layers.B1ni4mxG.js +0 -36
- package/dist/layers.B2AGu32C.js +0 -11692
- package/dist/layers.B2t-s3Lr.js +0 -6
- package/dist/layers.B3D4g2HH.js +0 -1
- package/dist/layers.B3YugRxw.js +0 -793
- package/dist/layers.B47MBsc7.js +0 -118
- package/dist/layers.B5hfyctM.js +0 -8
- package/dist/layers.B63KPCAA.js +0 -9
- package/dist/layers.B8PWivoQ.js +0 -40
- package/dist/layers.BAdPyX9t.js +0 -7
- package/dist/layers.BAm8tKx8.js +0 -40
- package/dist/layers.BAtv1CM7.js +0 -1
- package/dist/layers.BCZU7qmb.js +0 -11
- package/dist/layers.BG2XT6bu.js +0 -39
- package/dist/layers.BG2lFV8Q.js +0 -161
- package/dist/layers.BGByoe0m.js +0 -37
- package/dist/layers.BHYgMpdU.js +0 -2
- package/dist/layers.BIeVwYKL.js +0 -1
- package/dist/layers.BKQ2-TA6.js +0 -35
- package/dist/layers.BL7yj6jI.js +0 -42
- package/dist/layers.BLBW8FvN.js +0 -36
- package/dist/layers.BLBrBUT9.js +0 -257
- package/dist/layers.BLiY1HIQ.js +0 -2
- package/dist/layers.BMHNM70S.js +0 -802
- package/dist/layers.BMlAGxNa.js +0 -1
- package/dist/layers.BMmPJdA-.js +0 -139
- package/dist/layers.BRhYJnwf.js +0 -34
- package/dist/layers.BSSwgQP4.js +0 -14
- package/dist/layers.BSTBZrFn.js +0 -1
- package/dist/layers.BSmyi-2W.js +0 -2479
- package/dist/layers.BVgbqt8Z.js +0 -8
- package/dist/layers.BY3vgRLa.js +0 -1619
- package/dist/layers.BZ4fzqMZ.js +0 -44
- package/dist/layers.BZGWH3Cr.js +0 -6
- package/dist/layers.Ba1QnqD6.js +0 -268
- package/dist/layers.BamW7DBf.js +0 -39
- package/dist/layers.BbCfEXyj.js +0 -55
- package/dist/layers.BcuKH1X9.js +0 -11
- package/dist/layers.BdtKVDwG.js +0 -202
- package/dist/layers.Bf086Zg-.js +0 -11
- package/dist/layers.BgOa2ZQq.js +0 -7
- package/dist/layers.BgSFSWxA.js +0 -1
- package/dist/layers.BgU5v1oL.js +0 -39
- package/dist/layers.BgV4j9Nb.js +0 -40
- package/dist/layers.BhFtwnU6.js +0 -1
- package/dist/layers.Bhlh_Lb0.js +0 -423
- package/dist/layers.BiJ8hfRt.js +0 -1510
- package/dist/layers.Bjz6Sxuh.js +0 -61
- package/dist/layers.BoSwtXdp.js +0 -36
- package/dist/layers.BpilXLfW.js +0 -6
- package/dist/layers.Bq3fSgMC.js +0 -1
- package/dist/layers.BqYF5Wn-.js +0 -8
- package/dist/layers.BrNer6r9.js +0 -9
- package/dist/layers.Bs-tmR42.js +0 -1
- package/dist/layers.Bsy26Dgb.js +0 -9
- package/dist/layers.Bsyoxmr3.js +0 -38
- package/dist/layers.Bw3IwJS4.js +0 -931
- package/dist/layers.BwCHjgy_.js +0 -52
- package/dist/layers.BwQO9dS8.js +0 -65
- package/dist/layers.Bw_mvLXS.js +0 -2235
- package/dist/layers.BxljeGSf.js +0 -2966
- package/dist/layers.BxtXwRBq.js +0 -42
- package/dist/layers.ByLBhn1N.js +0 -84
- package/dist/layers.Bysth3Gx.js +0 -33
- package/dist/layers.BzEvPu_n.js +0 -9
- package/dist/layers.C0zcnhpp.js +0 -37
- package/dist/layers.C1KJbm2d.js +0 -10
- package/dist/layers.C2B7YCnj.js +0 -7
- package/dist/layers.C2m4apzR.js +0 -39
- package/dist/layers.C37MKWId.js +0 -10
- package/dist/layers.C55wllfV.js +0 -9148
- package/dist/layers.C5RBh30O.js +0 -1
- package/dist/layers.C6_vCH6p.js +0 -1
- package/dist/layers.C7lIplJU.js +0 -247
- package/dist/layers.C8_lu5UH.js +0 -23
- package/dist/layers.C8r8J3P2.js +0 -139
- package/dist/layers.C9H7Y0FE.js +0 -10
- package/dist/layers.CEYmizt4.js +0 -38
- package/dist/layers.CFnyQPRT.js +0 -39
- package/dist/layers.CFoUxBD9.js +0 -36
- package/dist/layers.CH0Y8svW.js +0 -9
- package/dist/layers.CHZsXQcr.js +0 -1
- package/dist/layers.CHm7GEXp.js +0 -1
- package/dist/layers.CJompNyf.js +0 -282
- package/dist/layers.CKRpzRNC.js +0 -41
- package/dist/layers.CL7Vtav2.js +0 -1126
- package/dist/layers.CMb7-d7c.js +0 -320
- package/dist/layers.COAF7f8g.js +0 -1
- package/dist/layers.CRMGGzG_.js +0 -1
- package/dist/layers.CTnykjar.js +0 -7
- package/dist/layers.CUp4CMxi.js +0 -1
- package/dist/layers.CY7AkIEG.js +0 -96
- package/dist/layers.C__Q8WfO.js +0 -42
- package/dist/layers.C_k7A3Mz.js +0 -4
- package/dist/layers.CbHImeup.js +0 -501
- package/dist/layers.CcruShdv.js +0 -9
- package/dist/layers.CeuSQNzd.js +0 -39
- package/dist/layers.CftGMfFK.js +0 -1
- package/dist/layers.CgP9of2S.js +0 -41
- package/dist/layers.Ck51CP9N.js +0 -70
- package/dist/layers.CkdiwuzV.js +0 -39
- package/dist/layers.CngXbKrP.js +0 -6
- package/dist/layers.CoqLozCl.js +0 -1
- package/dist/layers.CpxqY-jd.js +0 -6
- package/dist/layers.CqNmSCMj.js +0 -19
- package/dist/layers.CqVTtuYm.js +0 -6
- package/dist/layers.CrF5v5NG.js +0 -38
- package/dist/layers.CrQXROLL.js +0 -5
- package/dist/layers.CrtDarq7.js +0 -32
- package/dist/layers.Cs24L6er.js +0 -261
- package/dist/layers.CsRSoujK.js +0 -207
- package/dist/layers.Ct5A2AuM.js +0 -51
- package/dist/layers.CtQab1jh.js +0 -10
- package/dist/layers.CuECE6wg.js +0 -5
- package/dist/layers.Cud1By9I.js +0 -1
- package/dist/layers.CuuUIwmp.js +0 -1
- package/dist/layers.CwisDuwP.js +0 -33
- package/dist/layers.CyR9faht.js +0 -10
- package/dist/layers.D-WddaLv.js +0 -5
- package/dist/layers.D-zqjapg.js +0 -7
- package/dist/layers.D0LDNQ9o.js +0 -1359
- package/dist/layers.D0zn4_Mx.js +0 -1
- package/dist/layers.D1LKQvHR.js +0 -8
- package/dist/layers.D2NzxX2a.js +0 -7
- package/dist/layers.D325bOwU.js +0 -41
- package/dist/layers.D3r6Uv1D.js +0 -40
- package/dist/layers.D4fGb2cV.js +0 -1272
- package/dist/layers.D6dtx0Il.js +0 -32
- package/dist/layers.D7jGxypv.js +0 -8
- package/dist/layers.DALQQ8Jh.js +0 -960
- package/dist/layers.DAq8zxBu.js +0 -10
- package/dist/layers.DC5byRJg.js +0 -3
- package/dist/layers.DCQ4LYm3.js +0 -48146
- package/dist/layers.DCrCZ4Iw.js +0 -220
- package/dist/layers.DE9KqC57.js +0 -10
- package/dist/layers.DEZqmeoy.js +0 -4
- package/dist/layers.DF0CR_A4.js +0 -1265
- package/dist/layers.DG0jm2Nx.js +0 -40
- package/dist/layers.DH8m0bpe.js +0 -40
- package/dist/layers.DKaByMlh.js +0 -40
- package/dist/layers.DLJXsUyO.js +0 -59
- package/dist/layers.DLwuMfdd.js +0 -84
- package/dist/layers.DMkBISW1.js +0 -1
- package/dist/layers.DMqAEBD9.js +0 -8
- package/dist/layers.DN9HoVxI.js +0 -18
- package/dist/layers.DOeTmzDz.js +0 -41
- package/dist/layers.DOrgOHBr.js +0 -1
- package/dist/layers.DRTDeNDp.js +0 -9
- package/dist/layers.DS0zmYTv.js +0 -790
- package/dist/layers.DSpBzg-g.js +0 -39
- package/dist/layers.DT9K5vqK.js +0 -9
- package/dist/layers.DU4R3b7-.js +0 -373
- package/dist/layers.DUUGwrsX.js +0 -9
- package/dist/layers.DUeoP9C_.js +0 -35
- package/dist/layers.DV_nYDft.js +0 -8
- package/dist/layers.DWRS8OMs.js +0 -5
- package/dist/layers.DY-LYN9J.js +0 -1
- package/dist/layers.DZi_xtue.js +0 -8
- package/dist/layers.D_Gt3BTM.js +0 -803
- package/dist/layers.D_IV_Isr.js +0 -10
- package/dist/layers.D_ueJnG9.js +0 -4
- package/dist/layers.DaI9YYuA.js +0 -35
- package/dist/layers.DbaKVP5e.js +0 -1
- package/dist/layers.Dct-KMDd.js +0 -7
- package/dist/layers.DctVUFXU.js +0 -7
- package/dist/layers.DelKGHRg.js +0 -10
- package/dist/layers.DenbWMKi.js +0 -6
- package/dist/layers.Dhv7yWkp.js +0 -40
- package/dist/layers.DjUOC4st.js +0 -16
- package/dist/layers.DkUmi55f.js +0 -230
- package/dist/layers.Dng9-1hf.js +0 -1
- package/dist/layers.DqiivndF.js +0 -84
- package/dist/layers.Dr9YWgvN.js +0 -5
- package/dist/layers.DrWX1ycB.js +0 -11
- package/dist/layers.Ds4pa4-Y.js +0 -37
- package/dist/layers.Due5h_RY.js +0 -186
- package/dist/layers.DvIm8rgw.js +0 -769
- package/dist/layers.DxA6ocdw.js +0 -70
- package/dist/layers.DxyLWJqF.js +0 -6
- package/dist/layers.Dy1naDTQ.js +0 -14
- package/dist/layers.DyC-LKRA.js +0 -8
- package/dist/layers.DytGTqf8.js +0 -1088
- package/dist/layers.FQ_E02QW.js +0 -37
- package/dist/layers.FTHV-Y5l.js +0 -41
- package/dist/layers.GlCiDO9w.js +0 -1089
- package/dist/layers.JWCLFILJ.js +0 -1
- package/dist/layers.KEj1ospI.js +0 -1580
- package/dist/layers.KiDruC_P.js +0 -8
- package/dist/layers.Lizv1OMz.js +0 -1
- package/dist/layers.MlHvpwem.js +0 -40
- package/dist/layers.Mm28Q5GR.js +0 -904
- package/dist/layers.QA_0DDl0.js +0 -32
- package/dist/layers.RKQb3yWw.js +0 -40
- package/dist/layers.Rt0GeQX8.js +0 -8
- package/dist/layers.Th8DM3Nm.js +0 -32
- package/dist/layers.VUfdRL5t.js +0 -42
- package/dist/layers.WE4L5H9a.js +0 -7
- package/dist/layers.Wxscoddr.js +0 -1
- package/dist/layers.X3AnuPZA.js +0 -116
- package/dist/layers._VrzPGNk.js +0 -160
- package/dist/layers.b0h5ZBmD.js +0 -61
- package/dist/layers.bxJG2pW0.js +0 -11
- package/dist/layers.cO9a_CSG.js +0 -1034
- package/dist/layers.dE-Zsmej.js +0 -41
- package/dist/layers.f35vZvjY.js +0 -9
- package/dist/layers.hifDeB_3.js +0 -122
- package/dist/layers.ib97KSUu.js +0 -41
- package/dist/layers.lCpg7dOn.js +0 -21
- package/dist/layers.n5GYoY3M.js +0 -1
- package/dist/layers.noKqP2-f.js +0 -41
- package/dist/layers.p6FtxLKx.js +0 -39
- package/dist/layers.wSwlPOh0.js +0 -2
- package/dist/layers.z1Zi6yTK.js +0 -437
package/dist/layers.BwCHjgy_.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./layers.CY7AkIEG.js");require("lodash-es");const Ve=require("./layers.COAF7f8g.js"),Oe=require("./layers.9QK1wiQj.js");require("./layers.DkUmi55f.js");const Le=require("./layers.Wxscoddr.js");var ce=(function(){var e=function(V,i,r,a){for(r=r||{},a=V.length;a--;r[V[a]]=i);return r},t=[1,3],l=[1,4],c=[1,5],u=[1,6],d=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],p=[1,18],h=[2,7],o=[1,22],g=[1,23],R=[1,24],v=[1,25],N=[1,26],x=[1,27],$=[1,20],S=[1,28],A=[1,29],M=[62,63],de=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],pe=[1,47],ye=[1,48],fe=[1,49],_e=[1,50],ge=[1,51],Ee=[1,52],Re=[1,53],L=[53,54],D=[1,64],P=[1,60],Y=[1,61],U=[1,62],B=[1,63],Q=[1,65],z=[1,69],X=[1,70],J=[1,67],Z=[1,68],I=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ne={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(i,r,a,n,y,s,K){var _=s.length-1;switch(y){case 4:this.$=s[_].trim(),n.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),n.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:n.addRequirement(s[_-3],s[_-4]);break;case 14:n.setNewReqId(s[_-2]);break;case 15:n.setNewReqText(s[_-2]);break;case 16:n.setNewReqRisk(s[_-2]);break;case 17:n.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=n.RequirementType.REQUIREMENT;break;case 21:this.$=n.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=n.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=n.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=n.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=n.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=n.RiskLevel.LOW_RISK;break;case 27:this.$=n.RiskLevel.MED_RISK;break;case 28:this.$=n.RiskLevel.HIGH_RISK;break;case 29:this.$=n.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=n.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=n.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=n.VerifyType.VERIFY_TEST;break;case 33:n.addElement(s[_-3]);break;case 34:n.setNewElementType(s[_-2]);break;case 35:n.setNewElementDocRef(s[_-2]);break;case 38:n.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:n.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=n.Relationships.CONTAINS;break;case 41:this.$=n.Relationships.COPIES;break;case 42:this.$=n.Relationships.DERIVES;break;case 43:this.$=n.Relationships.SATISFIES;break;case 44:this.$=n.Relationships.VERIFIES;break;case 45:this.$=n.Relationships.REFINES;break;case 46:this.$=n.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:l,11:c,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:l,11:c,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(d,[2,6]),{3:12,4:2,6:t,9:l,11:c,13:u},{1:[2,2]},{4:17,5:p,7:13,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:v,35:N,36:x,44:$,62:S,63:A},e(d,[2,4]),e(d,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:p,7:31,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:v,35:N,36:x,44:$,62:S,63:A},{4:17,5:p,7:32,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:v,35:N,36:x,44:$,62:S,63:A},{4:17,5:p,7:33,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:v,35:N,36:x,44:$,62:S,63:A},{4:17,5:p,7:34,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:v,35:N,36:x,44:$,62:S,63:A},{4:17,5:p,7:35,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:v,35:N,36:x,44:$,62:S,63:A},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(M,[2,20]),e(M,[2,21]),e(M,[2,22]),e(M,[2,23]),e(M,[2,24]),e(M,[2,25]),e(de,[2,49]),e(de,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:pe,56:ye,57:fe,58:_e,59:ge,60:Ee,61:Re},{52:54,55:pe,56:ye,57:fe,58:_e,59:ge,60:Ee,61:Re},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(L,[2,40]),e(L,[2,41]),e(L,[2,42]),e(L,[2,43]),e(L,[2,44]),e(L,[2,45]),e(L,[2,46]),{54:[1,58]},{5:D,20:59,21:P,24:Y,26:U,28:B,30:Q},{5:z,30:X,46:66,47:J,49:Z},{23:71,62:S,63:A},{23:72,62:S,63:A},e(I,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:D,20:77,21:P,24:Y,26:U,28:B,30:Q},e(I,[2,19]),e(I,[2,33]),{22:[1,78]},{22:[1,79]},{5:z,30:X,46:80,47:J,49:Z},e(I,[2,37]),e(I,[2,38]),e(I,[2,39]),{23:81,62:S,63:A},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(I,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(I,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:D,20:106,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:107,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:108,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:109,21:P,24:Y,26:U,28:B,30:Q},{5:z,30:X,46:110,47:J,49:Z},{5:z,30:X,46:111,47:J,49:Z},e(I,[2,14]),e(I,[2,15]),e(I,[2,16]),e(I,[2,17]),e(I,[2,34]),e(I,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=r,a}},parse:function(i){var r=this,a=[0],n=[],y=[null],s=[],K=this.table,_="",ee=0,me=0,ve=2,Ie=1,$e=s.slice.call(arguments,1),E=Object.create(this.lexer),C={yy:{}};for(var se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,se)&&(C.yy[se]=this.yy[se]);E.setInput(i,C.yy),C.yy.lexer=E,C.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ae=E.yylloc;s.push(ae);var we=E.options&&E.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function qe(){var q;return q=n.pop()||E.lex()||Ie,typeof q!="number"&&(q instanceof Array&&(n=q,q=n.pop()),q=r.symbols_[q]||q),q}for(var b,F,T,le,H={},te,w,be,ie;;){if(F=a[a.length-1],this.defaultActions[F]?T=this.defaultActions[F]:((b===null||typeof b>"u")&&(b=qe()),T=K[F]&&K[F][b]),typeof T>"u"||!T.length||!T[0]){var oe="";ie=[];for(te in K[F])this.terminals_[te]&&te>ve&&ie.push("'"+this.terminals_[te]+"'");E.showPosition?oe="Parse error on line "+(ee+1)+`:
|
|
2
|
-
`+E.showPosition()+`
|
|
3
|
-
Expecting `+ie.join(", ")+", got '"+(this.terminals_[b]||b)+"'":oe="Parse error on line "+(ee+1)+": Unexpected "+(b==Ie?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(oe,{text:E.match,token:this.terminals_[b]||b,line:E.yylineno,loc:ae,expected:ie})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+F+", token: "+b);switch(T[0]){case 1:a.push(b),y.push(E.yytext),s.push(E.yylloc),a.push(T[1]),b=null,me=E.yyleng,_=E.yytext,ee=E.yylineno,ae=E.yylloc;break;case 2:if(w=this.productions_[T[1]][1],H.$=y[y.length-w],H._$={first_line:s[s.length-(w||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(w||1)].first_column,last_column:s[s.length-1].last_column},we&&(H._$.range=[s[s.length-(w||1)].range[0],s[s.length-1].range[1]]),le=this.performAction.apply(H,[_,me,ee,C.yy,T[1],y,s].concat($e)),typeof le<"u")return le;w&&(a=a.slice(0,-1*w*2),y=y.slice(0,-1*w),s=s.slice(0,-1*w)),a.push(this.productions_[T[1]][0]),y.push(H.$),s.push(H._$),be=K[a[a.length-2]][a[a.length-1]],a.push(be);break;case 3:return!0}}return!0}},Ae=(function(){var V={EOF:1,parseError:function(r,a){if(this.yy.parser)this.yy.parser.parseError(r,a);else throw new Error(r)},setInput:function(i,r){return this.yy=r||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var r=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===n.length?this.yylloc.first_column:0)+n[n.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
5
|
-
`+r+"^"},test_match:function(i,r){var a,n,y;if(this.options.backtrack_lexer&&(y={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(y.yylloc.range=this.yylloc.range.slice(0))),n=i[0].match(/(?:\r\n?|\n).*/g),n&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],a=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var s in y)this[s]=y[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,r,a,n;this._more||(this.yytext="",this.match="");for(var y=this._currentRules(),s=0;s<y.length;s++)if(a=this._input.match(this.rules[y[s]]),a&&(!r||a[0].length>r[0].length)){if(r=a,n=s,this.options.backtrack_lexer){if(i=this.test_match(a,y[s]),i!==!1)return i;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(i=this.test_match(r,y[n]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,a,n,y){switch(n){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:return 8;case 13:return 6;case 14:return 19;case 15:return 30;case 16:return 22;case 17:return 21;case 18:return 24;case 19:return 26;case 20:return 28;case 21:return 31;case 22:return 32;case 23:return 33;case 24:return 34;case 25:return 35;case 26:return 36;case 27:return 37;case 28:return 38;case 29:return 39;case 30:return 40;case 31:return 41;case 32:return 42;case 33:return 43;case 34:return 44;case 35:return 55;case 36:return 56;case 37:return 57;case 38:return 58;case 39:return 59;case 40:return 60;case 41:return 61;case 42:return 47;case 43:return 49;case 44:return 51;case 45:return 54;case 46:return 53;case 47:this.begin("string");break;case 48:this.popState();break;case 49:return"qString";case 50:return a.yytext=a.yytext.trim(),62}},rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[48,49],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,50],inclusive:!0}}};return V})();ne.lexer=Ae;function re(){this.yy={}}return re.prototype=ne,ne.Parser=re,new re})();ce.parser=ce;const Ce=ce;let ue=[],k={},G={},O={},j={};const Fe={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},Me={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},De={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Pe={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},Ye=(e,t)=>(G[e]===void 0&&(G[e]={name:e,type:t,id:k.id,text:k.text,risk:k.risk,verifyMethod:k.verifyMethod}),k={},G[e]),Ue=()=>G,Be=e=>{k!==void 0&&(k.id=e)},Qe=e=>{k!==void 0&&(k.text=e)},He=e=>{k!==void 0&&(k.risk=e)},We=e=>{k!==void 0&&(k.verifyMethod=e)},Ke=e=>(j[e]===void 0&&(j[e]={name:e,type:O.type,docRef:O.docRef},m.log$1.info("Added new requirement: ",e)),O={},j[e]),Ge=()=>j,je=e=>{O!==void 0&&(O.type=e)},ze=e=>{O!==void 0&&(O.docRef=e)},Xe=(e,t,l)=>{ue.push({type:e,src:t,dst:l})},Je=()=>ue,Ze=()=>{ue=[],k={},G={},O={},j={},m.clear()},et={RequirementType:Fe,RiskLevel:Me,VerifyType:De,Relationships:Pe,getConfig:()=>m.getConfig().req,addRequirement:Ye,getRequirements:Ue,setNewReqId:Be,setNewReqText:Qe,setNewReqRisk:He,setNewReqVerifyMethod:We,setAccTitle:m.setAccTitle,getAccTitle:m.getAccTitle,setAccDescription:m.setAccDescription,getAccDescription:m.getAccDescription,addElement:Ke,getElements:Ge,setNewElementType:je,setNewElementDocRef:ze,addRelationship:Xe,getRelationships:Je,clear:Ze},tt=e=>`
|
|
7
|
-
|
|
8
|
-
marker {
|
|
9
|
-
fill: ${e.relationColor};
|
|
10
|
-
stroke: ${e.relationColor};
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
marker.cross {
|
|
14
|
-
stroke: ${e.lineColor};
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
svg {
|
|
18
|
-
font-family: ${e.fontFamily};
|
|
19
|
-
font-size: ${e.fontSize};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.reqBox {
|
|
23
|
-
fill: ${e.requirementBackground};
|
|
24
|
-
fill-opacity: 1.0;
|
|
25
|
-
stroke: ${e.requirementBorderColor};
|
|
26
|
-
stroke-width: ${e.requirementBorderSize};
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.reqTitle, .reqLabel{
|
|
30
|
-
fill: ${e.requirementTextColor};
|
|
31
|
-
}
|
|
32
|
-
.reqLabelBox {
|
|
33
|
-
fill: ${e.relationLabelBackground};
|
|
34
|
-
fill-opacity: 1.0;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.req-title-line {
|
|
38
|
-
stroke: ${e.requirementBorderColor};
|
|
39
|
-
stroke-width: ${e.requirementBorderSize};
|
|
40
|
-
}
|
|
41
|
-
.relationshipLine {
|
|
42
|
-
stroke: ${e.relationColor};
|
|
43
|
-
stroke-width: 1;
|
|
44
|
-
}
|
|
45
|
-
.relationshipLabel {
|
|
46
|
-
fill: ${e.relationLabelColor};
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
`,it=tt,he={CONTAINS:"contains",ARROW:"arrow"},nt=(e,t)=>{let l=e.append("defs").append("marker").attr("id",he.CONTAINS+"_line_ending").attr("refX",0).attr("refY",t.line_height/2).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("g");l.append("circle").attr("cx",t.line_height/2).attr("cy",t.line_height/2).attr("r",t.line_height/2).attr("fill","none"),l.append("line").attr("x1",0).attr("x2",t.line_height).attr("y1",t.line_height/2).attr("y2",t.line_height/2).attr("stroke-width",1),l.append("line").attr("y1",0).attr("y2",t.line_height).attr("x1",t.line_height/2).attr("x2",t.line_height/2).attr("stroke-width",1),e.append("defs").append("marker").attr("id",he.ARROW+"_line_ending").attr("refX",t.line_height).attr("refY",.5*t.line_height).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("path").attr("d",`M0,0
|
|
50
|
-
L${t.line_height},${t.line_height/2}
|
|
51
|
-
M${t.line_height},${t.line_height/2}
|
|
52
|
-
L0,${t.line_height}`).attr("stroke-width",1)},Se={ReqMarkers:he,insertLineEndings:nt};let f={},ke=0;const Te=(e,t)=>e.insert("rect","#"+t).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",f.rect_min_width+"px").attr("height",f.rect_min_height+"px"),Ne=(e,t,l)=>{let c=f.rect_min_width/2,u=e.append("text").attr("class","req reqLabel reqTitle").attr("id",t).attr("x",c).attr("y",f.rect_padding).attr("dominant-baseline","hanging"),d=0;l.forEach(g=>{d==0?u.append("tspan").attr("text-anchor","middle").attr("x",f.rect_min_width/2).attr("dy",0).text(g):u.append("tspan").attr("text-anchor","middle").attr("x",f.rect_min_width/2).attr("dy",f.line_height*.75).text(g),d++});let p=1.5*f.rect_padding,h=d*f.line_height*.75,o=p+h;return e.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",f.rect_min_width).attr("y1",o).attr("y2",o),{titleNode:u,y:o}},xe=(e,t,l,c)=>{let u=e.append("text").attr("class","req reqLabel").attr("id",t).attr("x",f.rect_padding).attr("y",c).attr("dominant-baseline","hanging"),d=0;const p=30;let h=[];return l.forEach(o=>{let g=o.length;for(;g>p&&d<3;){let R=o.substring(0,p);o=o.substring(p,o.length),g=o.length,h[h.length]=R,d++}if(d==3){let R=h[h.length-1];h[h.length-1]=R.substring(0,R.length-4)+"..."}else h[h.length]=o;d=0}),h.forEach(o=>{u.append("tspan").attr("x",f.rect_padding).attr("dy",f.line_height).text(o)}),u},rt=(e,t,l,c)=>{const u=t.node().getTotalLength(),d=t.node().getPointAtLength(u*.5),p="rel"+ke;ke++;const o=e.append("text").attr("class","req relationshipLabel").attr("id",p).attr("x",d.x).attr("y",d.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(c).node().getBBox();e.insert("rect","#"+p).attr("class","req reqLabelBox").attr("x",d.x-o.width/2).attr("y",d.y-o.height/2).attr("width",o.width).attr("height",o.height).attr("fill","white").attr("fill-opacity","85%")},st=function(e,t,l,c,u){const d=l.edge(W(t.src),W(t.dst)),p=Le.line().x(function(o){return o.x}).y(function(o){return o.y}),h=e.insert("path","#"+c).attr("class","er relationshipLine").attr("d",p(d.points)).attr("fill","none");t.type==u.db.Relationships.CONTAINS?h.attr("marker-start","url("+m.common$1.getUrl(f.arrowMarkerAbsolute)+"#"+t.type+"_line_ending)"):(h.attr("stroke-dasharray","10,7"),h.attr("marker-end","url("+m.common$1.getUrl(f.arrowMarkerAbsolute)+"#"+Se.ReqMarkers.ARROW+"_line_ending)")),rt(e,h,f,`<<${t.type}>>`)},at=(e,t,l)=>{Object.keys(e).forEach(c=>{let u=e[c];c=W(c),m.log$1.info("Added new requirement: ",c);const d=l.append("g").attr("id",c),p="req-"+c,h=Te(d,p);let o=Ne(d,c+"_title",[`<<${u.type}>>`,`${u.name}`]);xe(d,c+"_body",[`Id: ${u.id}`,`Text: ${u.text}`,`Risk: ${u.risk}`,`Verification: ${u.verifyMethod}`],o.y);const g=h.node().getBBox();t.setNode(c,{width:g.width,height:g.height,shape:"rect",id:c})})},lt=(e,t,l)=>{Object.keys(e).forEach(c=>{let u=e[c];const d=W(c),p=l.append("g").attr("id",d),h="element-"+d,o=Te(p,h);let g=Ne(p,h+"_title",["<<Element>>",`${c}`]);xe(p,h+"_body",[`Type: ${u.type||"Not Specified"}`,`Doc Ref: ${u.docRef||"None"}`],g.y);const R=o.node().getBBox();t.setNode(d,{width:R.width,height:R.height,shape:"rect",id:d})})},ot=(e,t)=>(e.forEach(function(l){let c=W(l.src),u=W(l.dst);t.setEdge(c,u,{relationship:l})}),e),ct=function(e,t){t.nodes().forEach(function(l){l!==void 0&&t.node(l)!==void 0&&(e.select("#"+l),e.select("#"+l).attr("transform","translate("+(t.node(l).x-t.node(l).width/2)+","+(t.node(l).y-t.node(l).height/2)+" )"))})},W=e=>e.replace(/\s/g,"").replace(/\./g,"_"),ht=(e,t,l,c)=>{f=m.getConfig().requirement;const u=f.securityLevel;let d;u==="sandbox"&&(d=m.select("#i"+t));const h=(u==="sandbox"?m.select(d.nodes()[0].contentDocument.body):m.select("body")).select(`[id='${t}']`);Se.insertLineEndings(h,f);const o=new Oe.Graph({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:f.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let g=c.db.getRequirements(),R=c.db.getElements(),v=c.db.getRelationships();at(g,o,h),lt(R,o,h),ot(v,o),Ve.layout(o),ct(h,o),v.forEach(function(A){st(h,A,o,t,c)});const N=f.rect_padding,x=h.node().getBBox(),$=x.width+N*2,S=x.height+N*2;m.configureSvgSize(h,S,$,f.useMaxWidth),h.attr("viewBox",`${x.x-N} ${x.y-N} ${$} ${S}`)},ut={draw:ht},dt={parser:Ce,db:et,renderer:ut,styles:it};exports.diagram=dt;
|
package/dist/layers.BwQO9dS8.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { K as i } from "./layers.9YzbhWId.js";
|
|
2
|
-
import { m as o } from "./layers.C55wllfV.js";
|
|
3
|
-
const l = (s, t) => {
|
|
4
|
-
const r = s.append("rect");
|
|
5
|
-
if (r.attr("x", t.x), r.attr("y", t.y), r.attr("fill", t.fill), r.attr("stroke", t.stroke), r.attr("width", t.width), r.attr("height", t.height), t.name && r.attr("name", t.name), t.rx !== void 0 && r.attr("rx", t.rx), t.ry !== void 0 && r.attr("ry", t.ry), t.attrs !== void 0)
|
|
6
|
-
for (const e in t.attrs)
|
|
7
|
-
r.attr(e, t.attrs[e]);
|
|
8
|
-
return t.class !== void 0 && r.attr("class", t.class), r;
|
|
9
|
-
}, d = (s, t) => {
|
|
10
|
-
const r = {
|
|
11
|
-
x: t.startx,
|
|
12
|
-
y: t.starty,
|
|
13
|
-
width: t.stopx - t.startx,
|
|
14
|
-
height: t.stopy - t.starty,
|
|
15
|
-
fill: t.fill,
|
|
16
|
-
stroke: t.stroke,
|
|
17
|
-
class: "rect"
|
|
18
|
-
};
|
|
19
|
-
l(s, r).lower();
|
|
20
|
-
}, h = (s, t) => {
|
|
21
|
-
const r = t.text.replace(o, " "), e = s.append("text");
|
|
22
|
-
e.attr("x", t.x), e.attr("y", t.y), e.attr("class", "legend"), e.style("text-anchor", t.anchor), t.class !== void 0 && e.attr("class", t.class);
|
|
23
|
-
const n = e.append("tspan");
|
|
24
|
-
return n.attr("x", t.x + t.textMargin * 2), n.text(r), e;
|
|
25
|
-
}, m = (s, t, r, e) => {
|
|
26
|
-
const n = s.append("image");
|
|
27
|
-
n.attr("x", t), n.attr("y", r);
|
|
28
|
-
const a = i.sanitizeUrl(e);
|
|
29
|
-
n.attr("xlink:href", a);
|
|
30
|
-
}, p = (s, t, r, e) => {
|
|
31
|
-
const n = s.append("use");
|
|
32
|
-
n.attr("x", t), n.attr("y", r);
|
|
33
|
-
const a = i.sanitizeUrl(e);
|
|
34
|
-
n.attr("xlink:href", `#${a}`);
|
|
35
|
-
}, y = () => ({
|
|
36
|
-
x: 0,
|
|
37
|
-
y: 0,
|
|
38
|
-
width: 100,
|
|
39
|
-
height: 100,
|
|
40
|
-
fill: "#EDF2AE",
|
|
41
|
-
stroke: "#666",
|
|
42
|
-
anchor: "start",
|
|
43
|
-
rx: 0,
|
|
44
|
-
ry: 0
|
|
45
|
-
}), g = () => ({
|
|
46
|
-
x: 0,
|
|
47
|
-
y: 0,
|
|
48
|
-
width: 100,
|
|
49
|
-
height: 100,
|
|
50
|
-
"text-anchor": "start",
|
|
51
|
-
style: "#666",
|
|
52
|
-
textMargin: 0,
|
|
53
|
-
rx: 0,
|
|
54
|
-
ry: 0,
|
|
55
|
-
tspan: !0
|
|
56
|
-
});
|
|
57
|
-
export {
|
|
58
|
-
d as a,
|
|
59
|
-
g as b,
|
|
60
|
-
p as c,
|
|
61
|
-
l as d,
|
|
62
|
-
m as e,
|
|
63
|
-
h as f,
|
|
64
|
-
y as g
|
|
65
|
-
};
|