0.21.2
This commit is contained in:
parent
506adb16c8
commit
9da309640f
11
CHANGELOG.md
11
CHANGELOG.md
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -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": {
|
||||
|
|
|
|||
Loading…
Reference in New Issue