parent
792397c033
commit
902a8788cd
|
|
@ -1,3 +1,11 @@
|
|||
## 0.32.2
|
||||
|
||||
* Do not use `??` operator at the moment.
|
||||
|
||||
<br /> <br />
|
||||
|
||||
|
||||
|
||||
## 0.32.1
|
||||
|
||||
* Build grid without DOM object.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/*! css-doodle@0.32.1 */
|
||||
/*! css-doodle@0.32.2 */
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||
typeof define === 'function' && define.amd ? define(factory) :
|
||||
|
|
@ -6256,9 +6256,15 @@ void main() {
|
|||
`;
|
||||
}
|
||||
|
||||
function get_content(input) {
|
||||
return is_nil(input) ? '' : input;
|
||||
}
|
||||
|
||||
function create_cell(x, y, z, content, child = '') {
|
||||
let id = cell_id(x, y, z);
|
||||
return `<cell id="${id}">${content['#' + id]??''}${child??''}</cell>`;
|
||||
let head = get_content(content['#' + id]);
|
||||
let tail = get_content(child);
|
||||
return `<cell id="${id}">${head}${tail}</cell>`;
|
||||
}
|
||||
|
||||
function create_grid(grid_obj, content) {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "css-doodle",
|
||||
"version": "0.32.1",
|
||||
"version": "0.32.2",
|
||||
"description": "A web component for drawing patterns with CSS",
|
||||
"main": "css-doodle.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -632,9 +632,15 @@ function get_grid_styles(grid_obj) {
|
|||
`;
|
||||
}
|
||||
|
||||
function get_content(input) {
|
||||
return is_nil(input) ? '' : input;
|
||||
}
|
||||
|
||||
function create_cell(x, y, z, content, child = '') {
|
||||
let id = cell_id(x, y, z);
|
||||
return `<cell id="${id}">${content['#' + id]??''}${child??''}</cell>`;
|
||||
let head = get_content(content['#' + id]);
|
||||
let tail = get_content(child);
|
||||
return `<cell id="${id}">${head}${tail}</cell>`;
|
||||
}
|
||||
|
||||
function create_grid(grid_obj, content) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue