This website works better with JavaScript.
Home
Explore
Help
Sign In
chemicalcrux
/
macrovision
Watch
1
Star
0
Fork
0
Code
Issues
5
Pull Requests
0
Releases
10
Wiki
Activity
Browse Source
Add credit cards
tags/v0.1.0
Fen Dweller
5 years ago
parent
251c019652
commit
c6cdc29108
4 changed files
with
37 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
media/attribution.js
+8
-0
media/objects/credit-card-vertical.svg
+8
-0
media/objects/credit-card.svg
+19
-0
presets/objects.js
+ 2
- 0
media/attribution.js
View File
@@ -579,6 +579,8 @@ const attributionData = {
{ name: "circle.svg", source: null },
{ name: "pencil.svg", source: null },
{ name: "pebble.svg", source: null },
{ name: "credit-card.svg", source: null },
{ name: "credit-card-vertical.svg", source: null },
],
authors: [
"chemicalcrux"
+ 8
- 0
media/objects/credit-card-vertical.svg
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 24.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 53.98 85.6" style="enable-background:new 0 0 53.98 85.6;" xml:space="preserve">
<g>
<path d="M3,85.6c-1.65,0-3-1.35-3-3V3c0-1.65,1.35-3,3-3h47.98c1.65,0,3,1.35,3,3v79.6c0,1.65-1.35,3-3,3H3z"/>
</g>
</svg>
+ 8
- 0
media/objects/credit-card.svg
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 24.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 85.6 53.98" style="enable-background:new 0 0 85.6 53.98;" xml:space="preserve">
<g>
<path d="M85.6,50.98c0,1.65-1.35,3-3,3H3c-1.65,0-3-1.35-3-3V3c0-1.65,1.35-3,3-3h79.6c1.65,0,3,1.35,3,3V50.98z"/>
</g>
</svg>
+ 19
- 0
presets/objects.js
View File
@@ -284,6 +284,25 @@ function makeObjects() {
}
)
});
results.push({
name: "Credit Card",
constructor: () => makeObject(
"Credit Card",
{
creditCard: {
height: math.unit(53.98, "mm"),
image: { source: "./media/objects/credit-card.svg" },
name: "Credit card",
},
creditCardVertical: {
height: math.unit(85.60, "mm"),
image: { source: "./media/objects/credit-card-vertical.svg" },
name: "Credit card (vertical)",
},
}
)
});
results.sort((b1, b2) => {
e1 = b1.constructor();
Write
Preview
Loading…
Cancel
Save