samuele-cozzi/obsidian-marp-slides

View on GitHub
src/utilities/icons.ts

Summary

Maintainability
A
0 mins
Test Coverage
export const ICON_SLIDE_PREVIEW = 
    '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100" height="100"><g><path fill="currentColor" stroke="currentColor" d="M100 49.133V8.783c0 -1.2 -0.971 -2.171 -2.171 -2.171H44.467c-1.2 0 -2.171 0.971 -2.171 2.171v16.163h34.492c2.692 0 4.879 2.188 4.879 4.879v21.475h16.163C99.029 51.3 100 50.329 100 49.133z"/><path fill="currentColor" stroke="currentColor"  d="M60.413 72.342h16.379c1.2 0 2.171 -0.971 2.171 -2.171v-18.871v-21.475c0 -1.2 -0.971 -2.171 -2.171 -2.171H42.3H23.429c-1.2 0 -2.171 0.971 -2.171 2.171v16.163h21.042h13.233c2.692 0 4.879 2.188 4.879 4.879v0.433V72.342z"/><path fill="currentColor" stroke="currentColor" d="M0 50.867v40.346c0 1.2 0.971 2.171 2.171 2.171h53.363c1.2 0 2.171 -0.971 2.171 -2.171V75.054v-1.354V72.342V51.3v-0.433c0 -1.2 -0.971 -2.171 -2.171 -2.171H42.3H21.258h-1.354H18.546H2.171C0.971 48.7 0 49.671 0 50.867z"/></g></svg>';

export const ICON_EXPORT_PDF = 
    '<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100" height="100" viewBox="0 0 550.801 550.801">    <path  fill="currentColor" stroke="currentColor" d="M160.381,282.225c0-14.832-10.299-23.684-28.474-23.684c-7.414,0-12.437,0.715-15.071,1.432V307.6        c3.114,0.707,6.942,0.949,12.192,0.949C148.419,308.549,160.381,298.74,160.381,282.225z"/>    <path  fill="currentColor" stroke="currentColor" d="M272.875,259.019c-8.145,0-13.397,0.717-16.519,1.435v105.523c3.116,0.729,8.142,0.729,12.69,0.729        c33.017,0.231,54.554-17.946,54.554-56.474C323.842,276.719,304.215,259.019,272.875,259.019z"/>    <path  fill="currentColor" stroke="currentColor" d="M488.426,197.019H475.2v-63.816c0-0.398-0.063-0.799-0.116-1.202c-0.021-2.534-0.827-5.023-2.562-6.995L366.325,3.694        c-0.032-0.031-0.063-0.042-0.085-0.076c-0.633-0.707-1.371-1.295-2.151-1.804c-0.231-0.155-0.464-0.285-0.706-0.419        c-0.676-0.369-1.393-0.675-2.131-0.896c-0.2-0.056-0.38-0.138-0.58-0.19C359.87,0.119,359.037,0,358.193,0H97.2        c-11.918,0-21.6,9.693-21.6,21.601v175.413H62.377c-17.049,0-30.873,13.818-30.873,30.873v160.545        c0,17.043,13.824,30.87,30.873,30.87h13.224V529.2c0,11.907,9.682,21.601,21.6,21.601h356.4c11.907,0,21.6-9.693,21.6-21.601        V419.302h13.226c17.044,0,30.871-13.827,30.871-30.87v-160.54C519.297,210.838,505.47,197.019,488.426,197.019z M97.2,21.605        h250.193v110.513c0,5.967,4.841,10.8,10.8,10.8h95.407v54.108H97.2V21.605z M362.359,309.023c0,30.876-11.243,52.165-26.82,65.333        c-16.971,14.117-42.82,20.814-74.396,20.814c-18.9,0-32.297-1.197-41.401-2.389V234.365c13.399-2.149,30.878-3.346,49.304-3.346        c30.612,0,50.478,5.508,66.039,17.226C351.828,260.69,362.359,280.547,362.359,309.023z M80.7,393.499V234.365        c11.241-1.904,27.042-3.346,49.296-3.346c22.491,0,38.527,4.308,49.291,12.928c10.292,8.131,17.215,21.534,17.215,37.328        c0,15.799-5.25,29.198-14.829,38.285c-12.442,11.728-30.865,16.996-52.407,16.996c-4.778,0-9.1-0.243-12.435-0.723v57.67H80.7        V393.499z M453.601,523.353H97.2V419.302h356.4V523.353z M484.898,262.127h-61.989v36.851h57.913v29.674h-57.913v64.848h-36.593        V232.216h98.582V262.127z"/></svg>'

export const ICON_EXPORT_PPTX = 
    '<svg fill="#000000" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100" height="100" viewBox="0 0 550.801 550.801"><path fill="currentColor" stroke="currentColor" d="M222.581,262.339c-5.504,0-9.229,0.538-11.176,1.061v35.292c2.312,0.541,5.145,0.715,9.046,0.715 c14.374,0,23.237-7.276,23.237-19.519C243.688,268.904,236.051,262.339,222.581,262.339z"/><path fill="currentColor" stroke="currentColor" d="M486.201,196.116h-13.166V132.59c0-0.399-0.062-0.795-0.115-1.2c-0.021-2.522-0.825-5-2.552-6.96L364.657,3.677 c-0.033-0.034-0.064-0.044-0.085-0.075c-0.63-0.704-1.364-1.292-2.143-1.796c-0.229-0.157-0.461-0.286-0.702-0.419 c-0.672-0.365-1.387-0.672-2.121-0.893c-0.2-0.052-0.379-0.134-0.577-0.188C358.23,0.118,357.401,0,356.562,0H96.757 C84.894,0,75.256,9.649,75.256,21.502v174.613H62.092c-16.971,0-30.732,13.756-30.732,30.73v159.81 c0,16.966,13.761,30.736,30.732,30.736h13.164V526.79c0,11.854,9.638,21.501,21.501,21.501h354.776 c11.853,0,21.501-9.647,21.501-21.501V417.392h13.166c16.966,0,30.729-13.764,30.729-30.731V226.854 C516.93,209.872,503.167,196.116,486.201,196.116z M96.757,21.502h249.054v110.006c0,5.94,4.817,10.751,10.751,10.751h94.972 v53.861H96.757V21.502z M278.639,265.544v-22.711h91.863v22.711h-32.63v96.822h-27.128v-96.822H278.639z M270.452,279.195 c0,11.696-3.89,21.622-10.987,28.363c-9.228,8.692-22.887,12.604-38.837,12.604c-3.556,0-6.75-0.179-9.228-0.54v42.74h-26.78 V244.429c8.336-1.417,20.045-2.488,36.536-2.488c16.68,0,28.555,3.194,36.544,9.575 C265.326,257.552,270.452,267.484,270.452,279.195z M81.578,362.362V244.429c8.336-1.417,20.034-2.488,36.526-2.488 c16.675,0,28.549,3.194,36.536,9.575c7.627,6.037,12.766,15.968,12.766,27.669c0,11.696-3.903,21.627-10.998,28.368 c-9.229,8.692-22.876,12.598-38.842,12.598c-3.536,0-6.746-0.179-9.229-0.535v42.74H81.578V362.362z M451.534,520.962H96.757 v-103.57h354.776V520.962z M451.041,362.362l-10.824-21.638c-4.425-8.336-7.276-14.541-10.646-21.454h-0.346 c-2.478,6.913-5.503,13.118-9.219,21.454l-9.937,21.638h-30.852l34.573-60.488l-33.329-59.041h31.028l10.458,21.819 c3.555,7.268,6.215,13.122,9.05,19.861h0.356c2.835-7.633,5.145-12.953,8.159-19.861l10.109-21.819h30.867l-33.702,58.347 l35.466,61.182H451.041z"/><path fill="currentColor" stroke="currentColor" d="M140.627,279.888c0-10.989-7.628-17.554-21.109-17.554c-5.487,0-9.231,0.538-11.181,1.061v35.297 c2.315,0.535,5.145,0.715,9.053,0.715C131.763,299.407,140.627,292.135,140.627,279.888z"/></svg>'

export const ICON_SLIDE_PRESENT =
    '<svg width="100" height="100" viewBox="0 0 600 600" xmlns="http://www.w3.org/2000/svg"><g><rect stroke-width="40" rx="40" id="svg_1" height="400" width="525.00001" y="100" x="37.5" stroke="currentColor" fill="none"/><path id="svg_9" d="m109,215.22229l0,0l0,-0.02939l0,0.02939zm0.0155,-0.02939l89.44746,84.82179l-89.46295,84.7924l32.88988,31.19291l122.35284,-116.00001l-122.35284,-116.00001l-32.87438,31.19291zm158.4976,198.69133l223.48689,0l0,-44.06384l-223.48689,0l0,44.06384zm67.19021,-91.83028l156.29668,0l0,-44.06384l-156.29668,0l0,44.06384zm-67.19021,-135.90881l0,44.09323l223.48689,0l0,-44.09323l-223.48689,0z" stroke-width="30" fill="currentColor"/></g></svg>';