Skip to content

Commit e351b55

Browse files
authored
Merge pull request #1 from tithely/enhance-transform-attribute
[ENHANCE] Fix transform attribute
2 parents 78cd241 + 8b7cc98 commit e351b55

File tree

1,049 files changed

+3145
-1049
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,049 files changed

+3145
-1049
lines changed

bin/assemble.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
136136
},
137137
displayMirrored() {
138138
const { mirrored, contextMirrored } = this as IconProps & IconContext
139-
return mirrored ?? contextMirrored ? \`scale(-1, 1)\` : \`none\`
139+
return mirrored !== undefined
140+
? (mirrored ? \`scale(-1, 1)\` : undefined)
141+
: (contextMirrored ? \`scale(-1, 1)\` : undefined)
140142
}
141143
}
142144
})

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tithely/phosphor-vue",
3-
"version": "1.4.2",
3+
"version": "1.4.3",
44
"description": "A clean and friendly icon family for Vue, too!",
55
"repository": "[email protected]:tithely/phosphor-vue.git",
66
"author": "Aaron Maurice <[email protected]>",

src/components/PhActivity.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
7272
},
7373
displayMirrored() {
7474
const { mirrored, contextMirrored } = this as IconProps & IconContext
75-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
75+
return mirrored !== undefined
76+
? (mirrored ? `scale(-1, 1)` : undefined)
77+
: (contextMirrored ? `scale(-1, 1)` : undefined)
7678
}
7779
}
7880
})

src/components/PhAddressBook.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
349349
},
350350
displayMirrored() {
351351
const { mirrored, contextMirrored } = this as IconProps & IconContext
352-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
352+
return mirrored !== undefined
353+
? (mirrored ? `scale(-1, 1)` : undefined)
354+
: (contextMirrored ? `scale(-1, 1)` : undefined)
353355
}
354356
}
355357
})

src/components/PhAirplane.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
7474
},
7575
displayMirrored() {
7676
const { mirrored, contextMirrored } = this as IconProps & IconContext
77-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
77+
return mirrored !== undefined
78+
? (mirrored ? `scale(-1, 1)` : undefined)
79+
: (contextMirrored ? `scale(-1, 1)` : undefined)
7880
}
7981
}
8082
})

src/components/PhAirplaneInFlight.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
119119
},
120120
displayMirrored() {
121121
const { mirrored, contextMirrored } = this as IconProps & IconContext
122-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
122+
return mirrored !== undefined
123+
? (mirrored ? `scale(-1, 1)` : undefined)
124+
: (contextMirrored ? `scale(-1, 1)` : undefined)
123125
}
124126
}
125127
})

src/components/PhAirplaneLanding.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
119119
},
120120
displayMirrored() {
121121
const { mirrored, contextMirrored } = this as IconProps & IconContext
122-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
122+
return mirrored !== undefined
123+
? (mirrored ? `scale(-1, 1)` : undefined)
124+
: (contextMirrored ? `scale(-1, 1)` : undefined)
123125
}
124126
}
125127
})

src/components/PhAirplaneTakeoff.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
119119
},
120120
displayMirrored() {
121121
const { mirrored, contextMirrored } = this as IconProps & IconContext
122-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
122+
return mirrored !== undefined
123+
? (mirrored ? `scale(-1, 1)` : undefined)
124+
: (contextMirrored ? `scale(-1, 1)` : undefined)
123125
}
124126
}
125127
})

src/components/PhAirplaneTilt.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
7474
},
7575
displayMirrored() {
7676
const { mirrored, contextMirrored } = this as IconProps & IconContext
77-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
77+
return mirrored !== undefined
78+
? (mirrored ? `scale(-1, 1)` : undefined)
79+
: (contextMirrored ? `scale(-1, 1)` : undefined)
7880
}
7981
}
8082
})

src/components/PhAirplay.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
104104
},
105105
displayMirrored() {
106106
const { mirrored, contextMirrored } = this as IconProps & IconContext
107-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
107+
return mirrored !== undefined
108+
? (mirrored ? `scale(-1, 1)` : undefined)
109+
: (contextMirrored ? `scale(-1, 1)` : undefined)
108110
}
109111
}
110112
})

0 commit comments

Comments
 (0)