41 lines
1.6 KiB
Smarty
41 lines
1.6 KiB
Smarty
/**
|
|
* Engineering
|
|
*/
|
|
|
|
Schema.addCategory({
|
|
name: "engineering_standard",
|
|
text: "工程技术标准",
|
|
dataAttributes: []
|
|
});
|
|
/* Regulation*/
|
|
Schema.addShape({name:"regulation", title:"工程技术标准",text:"工程技术标准", category:"engineering_standard",lineStyle:{lineWidth: 1}, props:{w:150, h:66}, anchors:[
|
|
{x:"w*0.5", y:"0"},
|
|
{x:"w", y:"h*0.5"},
|
|
{x:"w*0.5", y:"h-Math.min(h/8,w/12)"},
|
|
{x:"0", y:"h*0.5"}
|
|
], textBlock:{x:"0", y:"0", w:"w", h:"h*0.9"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[
|
|
{actions:[
|
|
{action:"move", x:"0", y:"h-Math.min(h/8,w/12)"},
|
|
{action:"line", x:"0", y:"0"},
|
|
{action:"line", x:"w", y:"0"},
|
|
{action:"line", x:"w", y:"h-Math.min(h/8,w/12)"},
|
|
{action:"quadraticCurve", x1:"w*0.75", y1:"h-3*Math.min(h/8,w/12)", x:"w*0.5", y:"h-Math.min(h/8,w/12)"},
|
|
{action:"quadraticCurve", x1:"w*0.25", y1:"h+Math.min(h/8,w/12)", x:"0", y:"h-Math.min(h/8,w/12)"},
|
|
{action:"close"}
|
|
]},
|
|
{actions:[
|
|
{action:"move",x:"w", y:"h*0.4"},
|
|
{action:"line",x:"w*0.76",y:"h-2*Math.min(h/8,w/12)"}
|
|
]},
|
|
{lineStyle:{lineStyle:"none"}, fillStyle:{type:"none"}, actions:[
|
|
{action:"move", x:"0", y:"h-Math.min(h/8,w/12)"},
|
|
{action:"line", x:"0", y:"0"},
|
|
{action:"line", x:"w", y:"0"},
|
|
{action:"line", x:"w", y:"h-Math.min(h/8,w/12)"},
|
|
{action:"quadraticCurve", x1:"w*0.75", y1:"h-3*Math.min(h/8,w/12)", x:"w*0.5", y:"h-Math.min(h/8,w/12)"},
|
|
{action:"quadraticCurve", x1:"w*0.25", y1:"h+Math.min(h/8,w/12)", x:"0", y:"h-Math.min(h/8,w/12)"},
|
|
{action:"close"}
|
|
]}
|
|
]});
|
|
|