chore: establish learning module baseline
This commit is contained in:
commit
2d04197f3f
2409 files changed
+533050
No files matched your search
@@ -0,0 +1,58 @@
|
||||
import type { LinePoint, LineStyleType } from '@openmaic/dsl';
|
||||
|
||||
export interface LinePoolItem {
|
||||
path: string;
|
||||
style: LineStyleType;
|
||||
points: [LinePoint, LinePoint];
|
||||
isBroken?: boolean;
|
||||
isBroken2?: boolean;
|
||||
isCurve?: boolean;
|
||||
isCubic?: boolean;
|
||||
}
|
||||
|
||||
interface PresetLine {
|
||||
type: string;
|
||||
children: LinePoolItem[];
|
||||
}
|
||||
|
||||
export const LINE_LIST: PresetLine[] = [
|
||||
{
|
||||
type: '直线',
|
||||
children: [
|
||||
{ path: 'M 0 0 L 20 20', style: 'solid', points: ['', ''] },
|
||||
{ path: 'M 0 0 L 20 20', style: 'dashed', points: ['', ''] },
|
||||
{ path: 'M 0 0 L 20 20', style: 'solid', points: ['', 'arrow'] },
|
||||
{ path: 'M 0 0 L 20 20', style: 'dashed', points: ['', 'arrow'] },
|
||||
{ path: 'M 0 0 L 20 20', style: 'solid', points: ['', 'dot'] },
|
||||
],
|
||||
},
|
||||
{
|
||||
type: '折线、曲线',
|
||||
children: [
|
||||
{
|
||||
path: 'M 0 0 L 0 20 L 20 20',
|
||||
style: 'solid',
|
||||
points: ['', 'arrow'],
|
||||
isBroken: true,
|
||||
},
|
||||
{
|
||||
path: 'M 0 0 L 10 0 L 10 20 L 20 20',
|
||||
style: 'solid',
|
||||
points: ['', 'arrow'],
|
||||
isBroken2: true,
|
||||
},
|
||||
{
|
||||
path: 'M 0 0 Q 0 20 20 20',
|
||||
style: 'solid',
|
||||
points: ['', 'arrow'],
|
||||
isCurve: true,
|
||||
},
|
||||
{
|
||||
path: 'M 0 0 C 20 0 0 20 20 20',
|
||||
style: 'solid',
|
||||
points: ['', 'arrow'],
|
||||
isCubic: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
Reference in new issue
Block a user