Skip to content

Commit

Permalink
add a couple of todos
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjlockwood committed Dec 1, 2017
1 parent aa97b2f commit 7dead25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/convertPathData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export type Params = typeof defaultParams;
function fn(item: JsApi, params: Params) {
if (
!(item.isElem('path') || item.isElem('clip-path')) ||
// TODO: properly reference the attribute using the correct namespace
// TODO: don't optimize the path if it has a name?
!item.hasAttr('android:pathData')
) {
return item;
Expand Down
1 change: 1 addition & 0 deletions src/plugins/removeEmptyGroups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Plugin } from './_types';
* TODO: are there any empty containers that could be removed in an animated-vector?
*/
function fn(item: JsApi) {
// TODO: should we remove an empty group if it has a name? we could break an AVD...
return item.isElem('group') && item.isEmpty() ? undefined : item;
}

Expand Down

0 comments on commit 7dead25

Please sign in to comment.