Files
INTUIA/Programa final/_internal/share/jupyter/lab/static/5246.8992e5e0cc14a6b85a27.js
T

1 line
9.4 KiB
JavaScript
Raw Normal View History

2026-03-15 13:27:50 +00:00
"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5246],{65246:(t,e,a)=>{a.d(e,{diagram:()=>N});var r=a(81786);var n=a(92935);var i=a(29);var d=a(84416);var o=a(76235);var s=a(74353);var l=a.n(s);var p=a(16750);var c=a(42838);var g=a.n(c);let h=0;const f=function(t,e,a,r,i){const d=function(t){switch(t){case i.db.relationType.AGGREGATION:return"aggregation";case i.db.relationType.EXTENSION:return"extension";case i.db.relationType.COMPOSITION:return"composition";case i.db.relationType.DEPENDENCY:return"dependency";case i.db.relationType.LOLLIPOP:return"lollipop"}};e.points=e.points.filter((t=>!Number.isNaN(t.y)));const s=e.points;const l=(0,n.n8j)().x((function(t){return t.x})).y((function(t){return t.y})).curve(n.qrM);const p=t.append("path").attr("d",l(s)).attr("id","edge"+h).attr("class","relation");let c="";if(r.arrowMarkerAbsolute){c=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search;c=c.replace(/\(/g,"\\(");c=c.replace(/\)/g,"\\)")}if(a.relation.lineType==1){p.attr("class","relation dashed-line")}if(a.relation.lineType==10){p.attr("class","relation dotted-line")}if(a.relation.type1!=="none"){p.attr("marker-start","url("+c+"#"+d(a.relation.type1)+"Start)")}if(a.relation.type2!=="none"){p.attr("marker-end","url("+c+"#"+d(a.relation.type2)+"End)")}let g,f;const x=e.points.length;let u=o.u.calcLabelPosition(e.points);g=u.x;f=u.y;let y,b;let m,w;if(x%2!==0&&x>1){let t=o.u.calcCardinalityPosition(a.relation.type1!=="none",e.points,e.points[0]);let r=o.u.calcCardinalityPosition(a.relation.type2!=="none",e.points,e.points[x-1]);o.l.debug("cardinality_1_point "+JSON.stringify(t));o.l.debug("cardinality_2_point "+JSON.stringify(r));y=t.x;b=t.y;m=r.x;w=r.y}if(a.title!==void 0){const e=t.append("g").attr("class","classLabel");const n=e.append("text").attr("class","label").attr("x",g).attr("y",f).attr("fill","red").attr("text-anchor","middle").text(a.title);window.label=n;const i=n.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",i.x-r.padding/2).attr("y",i.y-r.padding/2).attr("width",i.width+r.padding).attr("height",i.height+r.padding)}o.l.info("Rendering relation "+JSON.stringify(a));if(a.relationTitle1!==void 0&&a.relationTitle1!=="none"){const e=t.append("g").attr("class","cardinality");e.append("text").attr("class","type1").attr("x",y).attr("y",b).attr("fill","black").attr("font-size","6").text(a.relationTitle1)}if(a.relationTitle2!==void 0&&a.relationTitle2!=="none"){const e=t.append("g").attr("class","cardinality");e.append("text").attr("class","type2").attr("x",m).attr("y",w).attr("fill","black").attr("font-size","6").text(a.relationTitle2)}h++};const x=function(t,e,a,r){o.l.debug("Rendering class ",e,a);const n=e.id;const i={id:n,label:e.id,width:0,height:0};const d=t.append("g").attr("id",r.db.lookUpDomId(n)).attr("class","classGroup");let s;if(e.link){s=d.append("svg:a").attr("xlink:href",e.link).attr("target",e.linkTarget).append("text").attr("y",a.textHeight+a.padding).attr("x",0)}else{s=d.append("text").attr("y",a.textHeight+a.padding).attr("x",0)}let l=true;e.annotations.forEach((function(t){const e=s.append("tspan").text("«"+t+"»");if(!l){e.attr("dy",a.textHeight)}l=false}));let p=u(e);const c=s.append("tspan").text(p).attr("class","title");if(!l){c.attr("dy",a.textHeight)}const g=s.node().getBBox().height;let h;let f;let x;if(e.members.length>0){h=d.append("line").attr("x1",0).attr("y1",a.padding+g+a.dividerMargin/2).attr("y2",a.padding+g+a.dividerMargin/2);const t=d.append("text").attr("x",a.padding).attr("y",g+a.dividerMargin+a.textHeight).attr("fill","white").attr("class","classText");l=true;e.members.forEach((function(e){b(t,e,l,a);l=false}));f=t.node().getBBox()}if(e.methods.length>0){x=d.append("line").attr("x1",0).attr("y1",a.padding+g+a.dividerMargin+f.height).attr("y2",a.padding+g+a.dividerMargin+f.height);const t=d.append("text").attr("x",a.padding).attr("y",g+2*a.dividerMargin+f.height+a.textHeight).attr("fill","white").attr("class","classText");l=true