mirror of
https://gitee.com/hoslay/ddei-editor.git
synced 2025-12-07 01:28:28 +08:00
30 lines
655 B
TypeScript
30 lines
655 B
TypeScript
export default {
|
|
'id': '303004',
|
|
'name': '激活',
|
|
'code': 'act',
|
|
'desc': '激活',
|
|
'from': '100008',
|
|
|
|
'define': {
|
|
width: 20,
|
|
height: 200,
|
|
ext: {
|
|
sample: {
|
|
rules: [
|
|
//选中区域
|
|
`(i, sample, pvs, model, ovs){
|
|
if(i == 0){
|
|
let bpv = DDeiUtil.pointsToZero([model.bpv], model.cpv, model.rotate)[0]
|
|
let unitH = 20 * (bpv.y ? 100/bpv.y : 1)
|
|
for(let i = -50;i <= 50;i+=unitH){
|
|
pvs.push({x:-50,y:i,oppoint:1});
|
|
pvs.push({x:50,y:i,oppoint:1});
|
|
}
|
|
}
|
|
}`,
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|