Skip to content

Commit

Permalink
refactor: إعادة تعريف نقطة المستقيم
Browse files Browse the repository at this point in the history
  • Loading branch information
Assayyaad committed Aug 12, 2024
1 parent e87ec23 commit 81886a5
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/line/func/create.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @typedef {import('../options.js').Line} Line */
/** @typedef {import("../options.js").Point} Point */
/** @typedef {import('../options.js').LineOptions} LineOptions */
/** @typedef {import('../options.js').PointsOptions} PointsOptions */
/** @typedef {import("../imports.js").Point.Point} Point */

/**
* إنشاء كائن مستقيم بناءً على الخيارات المقدمة
Expand Down
2 changes: 1 addition & 1 deletion src/line/func/point.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @typedef {import('../options.js').Line} Line */
/** @typedef {import("../options.js").Point} Point */
/** @typedef {import("../options.js").PosAssignOptions} PosAssignOptions */
/** @typedef {import("../imports.js").Point.Point} Point */

import { from } from './time.js'

Expand Down
2 changes: 1 addition & 1 deletion src/line/func/time.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @typedef {import('../options.js').Line} Line */
/** @typedef {import("../imports.js").Point.Point} Point */
/** @typedef {import("../options.js").Point} Point */

/**
* تحويل قيمة نقطة إلى نسبة أحادية على مستقيم
Expand Down
1 change: 0 additions & 1 deletion src/line/imports.js
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
export * as Point from '../point/exports.js'
4 changes: 2 additions & 2 deletions src/line/options.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/** @typedef {import("./imports.js").Point.Point} Point */

export {}

/**
Expand Down Expand Up @@ -48,3 +46,5 @@ export {}
* @property {boolean} neg - قيمة تخبر إذا كان المستقيم موجباً أم سالباً
* @property {Readonly<Point[]>} points - النقاط المحددة على المستقيم
*/

/** @typedef {number} Point */
5 changes: 0 additions & 5 deletions src/point/options.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
export {}

/**
* نقطة ممثلة برقم
* @typedef {number} Point
*/

/**
* خيارات لإنشاء نقطة ثنائية الأبعاد
* @typedef {Partial<Point2>} Point2Options
Expand Down

0 comments on commit 81886a5

Please sign in to comment.