{ dis: 1, count: 2, neg: false }
إذا كانت الخيارات غير صالحة
const line = Line.create.one({})
// line = { neg: false, start: 0, dis: 1, spacing: 1, count: 2, end: 1, points: [0, 1] }
const line = Line.create.one({ points: [0, -5, -10] })
// line = { neg: true, start: 0, dis: 10, spacing: 5, count: 3, end: -10, points: [0, -5, -10] }
const line = Line.create.one({ start: 0, end: -10, count: 3 })
// line = { neg: true, start: 0, dis: 10, spacing: 5, count: 3, end: -10, points: [0, -5, -10] }
const line = Line.create.one({ start: 0, dis: 10, count: 3, neg: true })
// line = { neg: true, start: 0, dis: 10, spacing: 5, count: 3, end: -10, points: [0, -5, -10] }
const line = Line.create.one({ start: 0, spacing: 5, count: 3, neg: true })
// line = { neg: true, start: 0, dis: 10, spacing: 5, count: 3, end: -10, points: [0, -5, -10] }
const line = Line.create.one({ start: 0, spacing: 5, dis: 10, neg: true })
// line = { neg: true, start: 0, dis: 10, spacing: 5, count: 3, end: -10, points: [0, -5, -10] }
إنشاء كائن مستقيم بناءً على الخيارات المقدمة