1
1
/* eslint-disable no-console */
2
2
import nodeToLayers from './nodeToLayers' ;
3
+ import { Group , Style } from '../models' ;
3
4
import { isNodeVisible } from '../utils/visibility' ;
4
5
import { getChildNodeList } from '../utils/hierarchy' ;
5
6
import { getName } from '../utils/name' ;
6
- import { Group , Style } from '../models' ;
7
7
import { isExistPseudoText , isExistPseudoShape } from '../utils/pseudo' ;
8
8
import { checkNoNull } from '../utils/utils' ;
9
9
import { AnyLayer } from '..' ;
@@ -79,6 +79,8 @@ const nodeToGroup = async (
79
79
} ) ;
80
80
console . groupEnd ( ) ;
81
81
82
+ checkNoNull ( group . frame ) ;
83
+
82
84
if (
83
85
group . layers . length === 1 &&
84
86
( group . layers [ 0 ] . class === 'rectangle' ||
@@ -98,7 +100,6 @@ const nodeToGroup = async (
98
100
layer . y += group . y ;
99
101
layer . rotation += group . rotation ;
100
102
101
- checkNoNull ( layer . toSketchJSON ( ) ) ;
102
103
return layer as Group ;
103
104
}
104
105
@@ -124,7 +125,6 @@ const nodeToGroup = async (
124
125
group . className = node . className ;
125
126
console . info ( '%c输出 Group 为:' , 'font-weight:bold;color:#4590f7;' , group ) ;
126
127
127
- checkNoNull ( group . toSketchJSON ( ) ) ;
128
128
return group ;
129
129
} ;
130
130
0 commit comments