-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Luna
authored and
David Luna
committed
Sep 8, 2024
1 parent
727d8b6
commit 117645f
Showing
6 changed files
with
50 additions
and
25 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import { STEPS_BEGIN } from './steps-begin.js'; | ||
import { STEPS_UNION } from './steps-union.js'; | ||
import { STEPS_INTERSECTION } from './steps-intersection.js'; | ||
import { STEPS_ADVANCED } from './steps-advanced.js'; | ||
|
||
export * from './runner.js'; | ||
// eslint-disable-next-line prettier/prettier | ||
export const STEPS = [ | ||
...STEPS_BEGIN, | ||
...STEPS_UNION, | ||
...STEPS_INTERSECTION, | ||
...STEPS_ADVANCED, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* eslint-disable no-undef */ | ||
|
||
/** @type {import('./runner').Step[]} */ | ||
export const STEPS_ADVANCED = [ | ||
{ | ||
comment: 'You can combine union and instersections', | ||
code: () => { | ||
const quadrantOne = new Csset('.quadrant-one'); | ||
const quadrantFour = new Csset('.quadrant-four'); | ||
const circle = new Csset('.circle'); | ||
|
||
return quadrantOne.union(quadrantFour).intersection(circle); | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters