Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
django-iconify
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Libraries
django-iconify
Commits
0a4a4d54
Verified
Commit
0a4a4d54
authored
4 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Fix some typos
parent
8e6ddbc9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dj_iconify/types.py
+3
-3
3 additions, 3 deletions
dj_iconify/types.py
with
3 additions
and
3 deletions
dj_iconify/types.py
+
3
−
3
View file @
0a4a4d54
...
@@ -100,7 +100,7 @@ class IconifyIcon(IconifyOptional):
...
@@ -100,7 +100,7 @@ class IconifyIcon(IconifyOptional):
transform
=
[]
transform
=
[]
if
rotate
is
not
None
:
if
rotate
is
not
None
:
center_x
,
center_y
=
int
(
self
.
width
/
2
),
int
(
self
.
height
/
2
)
center_x
,
center_y
=
int
(
orig_
width
/
2
),
int
(
orig_
height
/
2
)
if
rotate
.
isnumeric
():
if
rotate
.
isnumeric
():
deg
=
int
(
rotate
)
*
90
deg
=
int
(
rotate
)
*
90
elif
rotate
.
endswith
(
"
deg
"
):
elif
rotate
.
endswith
(
"
deg
"
):
...
@@ -108,7 +108,7 @@ class IconifyIcon(IconifyOptional):
...
@@ -108,7 +108,7 @@ class IconifyIcon(IconifyOptional):
transform
.
append
(
f
"
rotate(
{
deg
}
{
center_x
}
{
center_y
}
)
"
)
transform
.
append
(
f
"
rotate(
{
deg
}
{
center_x
}
{
center_y
}
)
"
)
if
flip
is
not
None
:
if
flip
is
not
None
:
flip
=
flip
.
split
(
"
,
"
)
flip
=
flip
.
split
(
"
,
"
)
translate_x
,
translate_y
=
0
translate_x
,
translate_y
=
0
,
0
scale_x
,
scale_y
=
1
,
1
scale_x
,
scale_y
=
1
,
1
if
"
horizontal
"
in
flip
:
if
"
horizontal
"
in
flip
:
translate_x
=
orig_width
translate_x
=
orig_width
...
@@ -116,7 +116,7 @@ class IconifyIcon(IconifyOptional):
...
@@ -116,7 +116,7 @@ class IconifyIcon(IconifyOptional):
if
"
vertical
"
in
flip
:
if
"
vertical
"
in
flip
:
translate_y
=
orig_height
translate_y
=
orig_height
scale_y
=
-
1
scale_y
=
-
1
transform
.
append
(
f
"
translate(
{
translate_x
}
{
translate_
z
}
)
"
)
transform
.
append
(
f
"
translate(
{
translate_x
}
{
translate_
y
}
)
"
)
transform
.
append
(
f
"
scale(
{
scale_x
}
{
scale_y
}
)
"
)
transform
.
append
(
f
"
scale(
{
scale_x
}
{
scale_y
}
)
"
)
if
transform
:
if
transform
:
transform
=
"
"
.
join
(
transform
)
transform
=
"
"
.
join
(
transform
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment