| @@ -579,6 +579,8 @@ const attributionData = { | |||||
| { name: "circle.svg", source: null }, | { name: "circle.svg", source: null }, | ||||
| { name: "pencil.svg", source: null }, | { name: "pencil.svg", source: null }, | ||||
| { name: "pebble.svg", source: null }, | { name: "pebble.svg", source: null }, | ||||
| { name: "credit-card.svg", source: null }, | |||||
| { name: "credit-card-vertical.svg", source: null }, | |||||
| ], | ], | ||||
| authors: [ | authors: [ | ||||
| "chemicalcrux" | "chemicalcrux" | ||||
| @@ -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> | |||||
| @@ -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> | |||||
| @@ -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) => { | results.sort((b1, b2) => { | ||||
| e1 = b1.constructor(); | e1 = b1.constructor(); | ||||