This commit is contained in:
yuanchuan 2021-10-31 18:00:02 +08:00
parent 94ae00b4a7
commit d0f2d10f39
4 changed files with 20 additions and 8 deletions

View File

@ -1,3 +1,13 @@
## 0.21.5
### Patches
* Use name `plot()` for `point()`.
<br /> <br />
## 0.21.4
### Patches

View File

@ -1,4 +1,4 @@
/*! css-doodle@0.21.4 */
/*! css-doodle@0.21.5 */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
@ -2706,7 +2706,7 @@
return value => `var(--${ uniform_time.name })`;
},
point({ count, context, extra, position, grid }) {
plot({ count, context, extra, position, grid }) {
let key = 'offset-points' + position;
return commands => {
let [idx = count, _, __, max = grid.count] = extra || [];
@ -2719,7 +2719,7 @@
};
},
Point({ count, context, extra, position, grid }) {
Plot({ count, context, extra, position, grid }) {
let key = 'offset-points' + position;
return commands => {
let [idx = count, _, __, max = grid.count] = extra || [];
@ -2908,8 +2908,10 @@
'pick-by-turn': 'pick-n',
'max-row': 'size-row',
'max-col': 'size-col',
'offset': 'point',
'Offset': 'Point',
'offset': 'plot',
'Offset': 'Plot',
'point': 'plot',
'Point': 'Plot',
// error prone
'stripes': 'stripe',

4
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.4",
"version": "0.21.5",
"description": "A web component for drawing patterns with CSS",
"main": "css-doodle.js",
"scripts": {