UNPKG

@zklogic/draw.io

Version:

Draw.IO - Graph Editor integration in Angular-cli

1 lines 8.92 kB
Sidebar.prototype.addLeanMappingPalette=function(){var e=100,t=100,n=mxConstants.STYLE_STROKEWIDTH+"=2;html=1;shape=mxgraph.lean_mapping.",l=mxConstants.STYLE_VERTICAL_LABEL_POSITION+"=bottom;html=1;"+mxConstants.STYLE_VERTICAL_ALIGN+"=top;strokeWidth=2;shape=mxgraph.lean_mapping.",r=this,i="value stream lean mapping ",a="mxgraph.lean_mapping";this.setCurrentSearchEntryLibrary("lean_mapping");var o=[this.createVertexTemplateEntry(l+"boat_shipment;align=center;",e,t,"","Boat Shipment",null,null,this.getTagsForStencil(a,"boat_shipment",i).join(" ")),this.addDataEntry(i+"data box",60,100,"Data Box","1ZVfT8MgFMU/Da9LB7Pude10LxofNPFxuRZWiLQQirP10wstczbd4p9osz00uT2XA/f8HgCRtKhXBjS/VZRJRK4QSY1StquKOmVSIhwJisgSYRy5D+HrI91p2400GFba7xhwZ9iCfGGd0gmVbWQQKmvUM3sU1HInYEQSbgs36HLqyoqD9uuKOvcZJpJBuS5Aa1HmEwoW1k+q7lvCicxYVh+dupXCyCumCmZN45a8hilcN+6CRZyJnO9cURCh6oT8w7pn4IqA4TASMkDiLQ87Op/RuATu5GSjSnsv3rw490w0ZC7+DdvYAMyHFRnIhRR56WkJSv0eP8aCf4UF/wGV2UEqd6dMpemnHwHSxQBSAjbjZwBpNh6keABpsQUhzwBSPB6ky6/v5RODM/83OO53/yC2vd57+Q4="),this.createVertexTemplateEntry(n+"outside_sources;whiteSpace=wrap;align=center;",e,70,'<table cellpadding="5" cellspacing="0" style="font-size:1em;width:100%;height:100%;"><tr><td height="50%"></td></tr><tr><td align="center" height="50%">XYZ Corp</td></tr></table>',"Customer/Supplier",null,null,this.getTagsForStencil(a,"outside_sources",i).join(" ")),this.addEntry(i+"dedicated process manufacturing",(function(){var e=new mxCell("\nDescription",new mxGeometry(0,0,100,70),n+"manufacturing_process;fontSize=12;verticalAlign=middle;html=1;align=center;whiteSpace=wrap;");e.vertex=!0;var t=new mxCell("Process",new mxGeometry(0,0,100,13),"text;fontSize=12;spacingLeft=2;verticalAlign=top;html=1;align=center;spacingTop=-5;resizeWidth=1;");return t.vertex=!0,e.insert(t),r.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Dedicated Process")})),this.createVertexTemplateEntry(n+"manufacturing_process_shared;spacingTop=-5;align=center;"+mxConstants.STYLE_VERTICAL_ALIGN+"=top;",e,70,"Process","Shared Process",null,null,this.getTagsForStencil(a,"manufacturing_process_shared",i).join(" ")),this.createVertexTemplateEntry(l+"work_cell;pointerEvents=1;",70,60,"","Workcell",null,null,this.getTagsForStencil(a,"work_cell",i).join(" ")),this.createVertexTemplateEntry(l+"inventory_box;",e,90,"","Inventory Box",null,null,this.getTagsForStencil(a,"inventory_box",i).join(" ")),this.createVertexTemplateEntry(l+"push_arrow;",e,30,"","Push Arrow",null,null,this.getTagsForStencil(a,"push_arrow",i).join(" ")),this.createVertexTemplateEntry(n+"supermarket;",60,t,"","Supermarket",null,null,this.getTagsForStencil(a,"supermarket",i).join(" ")),this.createVertexTemplateEntry(l+"physical_pull;pointerEvents=1;",e,t,"","Material Pull",null,null,this.getTagsForStencil(a,"physical_pull",i+"circular arrow").join(" ")),this.createVertexTemplateEntry(n+"fifo_lane;overflow=fill;"+mxConstants.STYLE_VERTICAL_ALIGN+"=top;align=center;",e,50,'<table cellpadding="0" cellspacing="0" style="font-size:1em;width:100%;height:100%;"><tr><td height="0%">MAX=XX</td></tr><tr><td align="center" height="100%"></td></tr></table>',"FIFO Lane",null,null,this.getTagsForStencil(a,"fifo_lane",i).join(" ")),this.createVertexTemplateEntry(n+"buffer_or_safety_stock;",40,t,"","Safety Stock",null,null,this.getTagsForStencil(a,"buffer_or_safety_stock",i).join(" ")),this.addEntry(this.getTagsForStencil(a,"truck_shipment",i).join(" "),(function(){var e=new mxCell("",new mxGeometry(0,0,100,100),n+"truck_shipment;");e.vertex=!0;var t=new mxCell("2x per\nWeek",new mxGeometry(0,0,60,80),"text;fontSize=12;verticalAlign=middle;html=1;align=center;whiteSpace=wrap;");return t.vertex=!0,e.insert(t),r.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Truck Shipment")})),this.createVertexTemplateEntry(n+"schedule;whiteSpace=wrap;align=center;",e,70,"Production\nControl","Production Control",null,null,this.getTagsForStencil(a,"schedule",i).join(" ")),this.createVertexTemplateEntry(n+"schedule;whiteSpace=wrap;align=center;",e,70,"Other\nInformation","Other Information",null,null,this.getTagsForStencil(a,"schedule",i).join(" ")),this.createVertexTemplateEntry(l+"go_see_production_scheduling;pointerEvents=1;",92,60,"","Go See Production Scheduling",null,null,this.getTagsForStencil(a,"go_see_production_scheduling",i).join(" ")),this.addEntry(this.getTagsForStencil(a,"kaizen_lightening_burst",i).join(" "),(function(){var e=new mxCell("",new mxGeometry(0,0,90,40),l+"kaizen_lightening_burst;");e.vertex=!0;var t=new mxCell("",new mxGeometry(8,8,74,24),"rect;fillColor=#000000;strokeColor=none;");return t.vertex=!0,e.insert(t),r.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Kaizen Lightening Burst")})),this.createVertexTemplateEntry(l+"kanban_post;",50,100,"","Kanban Post",null,null,this.getTagsForStencil(a,"kanban_post",i).join(" ")),this.createVertexTemplateEntry(l+"load_leveling;",100,30,"","Load Leveling",null,null,this.getTagsForStencil(a,"load_leveling",i).join(" ")),this.createVertexTemplateEntry(l+"move_by_forklift;",92,100,"","Move by Forklift",null,null,this.getTagsForStencil(a,"move_by_forklift",i).join(" ")),this.createVertexTemplateEntry(n+"mrp_erp;whiteSpace=wrap;",70,100,"","MRP/ERP",null,null,this.getTagsForStencil(a,"mrp_erp",i).join(" ")),this.createVertexTemplateEntry(l+"operator;",100,84,"","Operator",null,null,this.getTagsForStencil(a,"operator",i).join(" ")),this.createVertexTemplateEntry(n+"quality_problem;fontSize=24;fontStyle=1;whiteSpace=wrap;align=center;",80,100,"Q","Quality Problem",null,null,this.getTagsForStencil(a,"quality_problem",i).join(" ")),this.createVertexTemplateEntry(l+"verbal;pointerEvents=1;",50,100,"","Verbal Information",null,null,this.getTagsForStencil(a,"verbal",i).join(" ")),this.createVertexTemplateEntry(n+"fifo_sequence_flow;pointerEvents=1;fontStyle=0;fontSize=20;align=center;",e,50,"FIFO","FIFO Sequence",null,null,this.getTagsForStencil(a,"fifo_sequence_flow",i).join(" ")),this.createVertexTemplateEntry(n+"production_kanban;overflow=fill;",e,t,'<p style="font-size:2em;margin-right:35px;margin-top:13px;text-align:right">P</p>',"Production Kanban",null,null,this.getTagsForStencil(a,"production_kanban",i).join(" ")),this.createVertexTemplateEntry(n+"withdrawal_kanban;overflow=fill;",e,t,'<p style="font-size:2em;margin-right:35px;margin-top:13px;text-align:right">W</p>',"Withdrawal Kanban",null,null,this.getTagsForStencil(a,"withdrawal_kanban",i).join(" ")),this.createVertexTemplateEntry(n+"signal_kanban;overflow=fill;",e,90,'<p style="font-size:2em;margin-right:35px;margin-top:4px;text-align:right">S</p>',"Signal Kanban",null,null,this.getTagsForStencil(a,"signal_kanban",i).join(" ")),this.createVertexTemplateEntry(l+"sequenced_pull_ball;",60,60,"","Sequenced Pull Ball",null,null,this.getTagsForStencil(a,"sequenced_pull_ball",i).join(" ")),this.createVertexTemplateEntry(l+"rail_shipment;",e,30,"","Rail Shipment",null,null,this.getTagsForStencil(a,"rail_shipment",i).join(" ")),this.createVertexTemplateEntry(l+"airplane_7;",100,45,"","Air Freight",null,null,this.getTagsForStencil(a,"airplane_7",i).join(" ")),this.createVertexTemplateEntry(l+"warehouse;",e,60,"","Warehouse",null,null,this.getTagsForStencil(a,"warehouse",i).join(" ")),this.createVertexTemplateEntry(l+"timeline2;dx1=0;dy1=1;dx2=30;dy2=0;dx3=160;dy3=1;dx4=230;dy4=0;dx5=310;dy5=1;dy6=0;",400,40,"","Timeline",null,null,this.getTagsForStencil(a,"timeline",i).join(" ")),this.createVertexTemplateEntry(l+"crossDock;",e,80,"","Cross-Dock",null,null,this.getTagsForStencil(a,"crossDock",i).join(" ")),this.createVertexTemplateEntry(n+"orders;overflow=fill;",e,60,'<table cellpadding="0" cellspacing="0" style="font-size:1.5em;width:100%;height:100%;"><tr><td height="65%"></td></tr><tr><td align="center" height="35%">IN</td></tr></table>',"Orders",null,null,this.getTagsForStencil(a,"orders",i).join(" ")),this.createVertexTemplateEntry(l+"batched_kanban;",200,80,"","Batched Kanban",null,null,this.getTagsForStencil(a,"batched_kanban",i).join(" ")),this.createVertexTemplateEntry(l+"control_center;",80,80,"","Control Center",null,null,this.getTagsForStencil(a,"control_center",i).join(" ")),this.createEdgeTemplateEntry("shape=flexArrow;html=1;",100,100,"","Shipments",null,this.getTagsForStencil(a,"arrow",i).join(" ")),this.createEdgeTemplateEntry("shape=mxgraph.lean_mapping.manual_info_flow_edge;html=1;",100,100,"Daily","Manual Information",null,this.getTagsForStencil(a,"manual_info_flow_edge",i).join(" ")),this.createEdgeTemplateEntry("shape=mxgraph.lean_mapping.electronic_info_flow_edge;html=1;",100,100,"Monthly","Electronic Information",null,this.getTagsForStencil(a,"electronic_info_flow_edge",i).join(" "))];this.addPalette("lean_mapping","Value Stream Mapping",!1,mxUtils.bind(this,(function(e){for(var t=0;t<o.length;t++)e.appendChild(o[t](e))}))),this.setCurrentSearchEntryLibrary()};