This commit is contained in:
yuanchuan 2021-10-25 15:18:32 +08:00
parent 506adb16c8
commit 9da309640f
4 changed files with 18 additions and 6 deletions

View File

@ -1,3 +1,14 @@
## 0.21.2
### Patches
* Add the missing `&` operator computation.
* Add context value `I` into `@match`.
<br /> <br />
## 0.21.1
### Enhancement

View File

@ -1,4 +1,4 @@
/*! css-doodle@0.21.1 */
/*! css-doodle@0.21.2 */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
@ -1713,6 +1713,7 @@
case '*': return a * b;
case '%': return a % b;
case '|': return a | b;
case '&': return a & b;
case '<': return a < b;
case '>': return a > b;
case '^': return Math.pow(a, b);
@ -3201,9 +3202,9 @@
match({ count, grid, x, y }) {
return expr => {
return !!calc('(' + expr + ')', {
x, y,
X: grid.x, Y: grid.y,
i: count,
x, X: grid.x,
y, Y: grid.y,
i: count, I: grid.count,
});
}
}

2
css-doodle.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "css-doodle",
"version": "0.21.1",
"version": "0.21.2",
"description": "A web component for drawing patterns with CSS",
"main": "css-doodle.js",
"scripts": {