canvas-native
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -104,3 +104,3 @@ 'use strict'; | ||
if (typeof line.level === 'number') { | ||
if (line.isNesting) { | ||
group.meta = { level: line.level }; | ||
@@ -127,3 +127,3 @@ } | ||
if (typeof line.level === 'number') { | ||
if (line.isNesting) { | ||
return sameType && line.level === getNodeLevel(node); | ||
@@ -138,3 +138,3 @@ } | ||
if (typeof line.level !== 'number') { | ||
if (!line.isNesting) { | ||
return false; | ||
@@ -141,0 +141,0 @@ } |
@@ -34,2 +34,7 @@ 'use strict'; | ||
}, { | ||
key: 'isNesting', | ||
get: function get() { | ||
return typeof this.level === 'number' && this.groupType !== 'canvas'; | ||
} | ||
}, { | ||
key: 'type', | ||
@@ -36,0 +41,0 @@ get: function get() { |
{ | ||
"name": "canvas-native", | ||
"description": "Utilities for working with the native Canvas format", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"author": "Jonathan Clem <jonathan@usecanvas.com>", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/usecanvas/canvas-native/issues", |
81833
2130