mitjajez/SONCE

View on GitHub
imports/ui/components/operations.html

Summary

Maintainability
Test Coverage
<template name="Operations">
  <g id="operations">
    <symbol id="operation-continue" viewBox="440 380 20 20">
      <path d="M454 384c-3.314 0-6 2.686-6 6s2.686 6 6 6 6-2.686 6-6-2.686-6-6-6zm-1 2h2v3h3v2h-3v3h-2v-3h-3v-2h3v-3zm-8 3v2h2v-2h-2z" fill="currentColor" id="operation-continue-shape2"/>
      <path d="M442 388c-1.105 0-2 .895-2 2s.895 2 2 2 2-.895 2-2-.895-2-2-2z" fill="inherit" id="operation-continue-shape"/>
    </symbol>
    <symbol id="operation-smooth" viewBox="420 380 20 20">
      <path d="M429 385v3h-1l-1 1 3 3 3-3-1-1h-1v-3h-2z" fill="currentColor" id="operation-smooth-shape2"/>
      <path d="M432 398c1.333 0 2.22-.78 2.72-1.28s.613-.72 1.28-.72h1v-2h-1c-1.333 0-2.22.78-2.72 1.28s-.613.72-1.28.72c-.167 0-.206-.01-.406-.25-.2-.24-.438-.688-.688-1.188-.25-.5-.513-1.053-.937-1.562-.426-.51-1.137-1-1.97-1-1.333 0-2.22.78-2.72 1.28s-.613.72-1.28.72h-1v2h1c1.333 0 2.22-.78 2.72-1.28s.613-.72 1.28-.72c.167 0 .206.01.406.25.2.24.438.688.688 1.188.25.5.513 1.053.937 1.562.426.51 1.137 1 1.97 1zm5-14h-14v-2h14v2z" fill="inherit" id="operation-smooth-shape"/>
    </symbol>
    <symbol id="operation-simplify" viewBox="400 380 20 20">
      <path d="M409.005 387.5v3.5h-1l-1 1 3 3 3-3-1-1h-1v-1.5c-1.7-.85-2-2-2-2z" fill="currentColor" id="operation-simplify-shape2"/>
      <path d="M408.005 382c-1.333 0-2.22.78-2.72 1.28s-.613.72-1.28.72h-1v2h1c1.333 0 2.22-.78 2.72-1.28s.613-.72 1.28-.72c.167 0 .206.01.406.25.202.24.44.688.69 1.188.25.5.512 1.053.936 1.562.425.51 1.136 1 1.97 1 1.332 0 2.218-.78 2.718-1.28s.614-.72 1.28-.72h1v-2h-1c-1.332 0-2.218.78-2.718 1.28s-.614.72-1.28.72c-.168 0-.207-.01-.407-.25-.202-.24-.44-.688-.69-1.188-.25-.5-.512-1.053-.936-1.562-.425-.51-1.136-1-1.97-1zm-5 14h14v2h-14v-2z" fill="inherit" id="operation-simplify-shape"/>
    </symbol>
    <symbol id="operation-rotate" viewBox="380 380 20 20">
      <path d="M390.005 380l-1 1v1.062c-3.945.494-7 3.86-7 7.938 0 4.418 3.582 8 8 8s8-3.582 8-8c0-2.467-1.12-4.66-2.875-6.125l-1.406 1.406c1.395 1.1 2.28 2.806 2.28 4.72 0 3.314-2.685 6-6 6-3.313 0-6-2.686-6-6 0-2.976 2.16-5.433 5-5.906V385l1 1 3-3-3-3z" fill="currentColor" id="operation-rotate-shape2"/>
      <path d="M390.005 388c-1.105 0-2 .895-2 2s.895 2 2 2c1.104 0 2-.895 2-2s-.896-2-2-2z" fill="inherit" id="operation-rotate-shape"/>
    </symbol>
    <symbol id="operation-orthogonalize" viewBox="360 380 20 20">
      <path d="M367.005 395h6v2h-6zm-4-2h2v-6h-2zm12 0h2v-6h-2zm-8-8h6v-2h-6z" fill="currentColor" id="operation-orthogonalize-shape2"/>
      <path d="M364.005 382c-1.105 0-2 .895-2 2s.895 2 2 2c1.104 0 2-.895 2-2s-.896-2-2-2zm0 12c1.104 0 2 .895 2 2s-.896 2-2 2c-1.105 0-2-.895-2-2s.895-2 2-2zm12 0c1.104 0 2 .895 2 2s-.896 2-2 2c-1.105 0-2-.895-2-2s.895-2 2-2zm0-12c1.104 0 2 .895 2 2s-.896 2-2 2c-1.105 0-2-.895-2-2s.895-2 2-2z" fill="inherit" id="operation-orthogonalize-shape"/>
    </symbol>
    <symbol id="operation-merge" viewBox="340 380 20 20">
      <path d="M356.148 388.488c.236 0 .438.084.606.25.167.167.25.37.25.605v1.314c0 .238-.083.438-.25.605-.168.168-.37.25-.606.25h-4.63v4.614c0 .25-.084.457-.25.623-.167.166-.37.25-.607.25h-1.31c-.237 0-.44-.084-.608-.25-.168-.167-.25-.37-.25-.607v-4.63h-4.61c-.25 0-.46-.08-.626-.24-.167-.16-.25-.367-.25-.616v-1.314c0-.236.083-.438.25-.605.166-.166.368-.25.606-.25h4.63v-4.612c0-.25.08-.457.24-.625.162-.164.368-.25.617-.25h1.31c.237 0 .44.086.608.25.166.17.25.37.25.607v4.63z" fill="inherit" id="operation-merge-shape"/>
    </symbol>
    <symbol id="operation-move" viewBox="320 380 20 20">
      <path d="M330.005 381l-3 3 1 1h1v2h2v-2h1l1-1-3-3zm-6 6l1 1v1h2v2h-2v1l-1 1-3-3 3-3zm12 0l3 3-3 3-1-1v-1h-2v-2h2v-1l1-1zm-7 6h2v2h1l1 1-3 3-3-3 1-1h1v-2z" fill="currentColor" id="operation-move-shape2"/>
      <path d="M330.005 388c-1.105 0-2 .895-2 2s.895 2 2 2c1.104 0 2-.895 2-2s-.896-2-2-2z" fill="inherit" id="operation-move-shape"/>
    </symbol>
    <symbol id="operation-reverse" viewBox="300 380 20 20">
      <path d="M308.005 385l-4 5 4 5h2v-1l-3.5-4 3.5-4v-1h-2zm6 0h2v1l-3.5 4 3.5 4v1h-2l-4-5 4-5z" fill="inherit" id="operation-reverse-shape"/>
    </symbol>
    <symbol id="operation-disconnect" viewBox="280 380 20 20">
      <path d="M284.005 386.013l-4 4 4 4 1-1v-2h2.187c-.113-.317-.187-.645-.187-1 0-.345.08-.69.187-1h-2.187v-2l-1-1zm12 0l-1 1v2h-2.188c.108.31.188.655.188 1 0 .355-.074.683-.188 1h2.188v2l1 1 4-4-4-4z" fill="currentColor" id="operation-disconnect-shape2"/>
      <path d="M290.005 388c-1.105 0-2 .895-2 2s.895 2 2 2c1.104 0 2-.895 2-2s-.896-2-2-2z" fill="inherit" id="operation-disconnect-shape"/>
    </symbol>
    <symbol id="operation-split" viewBox="260 380 20 20">
      <path d="M264.005 385.013c-1 0-2 1-2 2v2h3l2 1-2 1h-3v2c0 1 1 2 2 2h1c2 0 2.487-.975 3-2l1-2 9-5s0-1-2-1l-7.03 3.906-.97-1.907c-.494-.988-1-2-3-2zm0 1h2l1 2h-4v-1c0-1.013 1-1 1-1zm8.094 4.72l-2 1 5.905 3.28c2 0 2-1 2-1zm-9.095 1.28h4l-1 2h-2s-1 0-1-1z" fill="inherit" id="operation-split-shape"/>
    </symbol>
    <symbol id="operation-straighten" viewBox="240 380 20 20">
      <path d="M245.005 389h2v2h-2zm8 2h2v-2h-2z" fill="currentColor" id="operation-straighten-shape2"/>
      <path d="M242.005 388c-1.105 0-2 .895-2 2s.895 2 2 2 2-.895 2-2-.895-2-2-2zm8 0c1.105 0 2 .895 2 2s-.895 2-2 2-2-.895-2-2 .895-2 2-2zm8 0c1.105 0 2 .895 2 2s-.895 2-2 2-2-.895-2-2 .895-2 2-2z" fill="inherit" id="operation-straighten-shape"/>
    </symbol>
    <symbol id="operation-circularize" viewBox="220 380 20 20">
      <path d="M227.036 382.607c-1.33.53-2.444 1.42-3.312 2.53.07.02.15.01.218.032.52.168.942.49 1.282.874.583-.697 1.32-1.238 2.156-1.625-.228-.423-.375-.898-.375-1.407 0-.14.012-.27.03-.406zm5.938 0c.02.135.03.266.03.406 0 .51-.146.984-.374 1.406.835.386 1.573.927 2.156 1.624.34-.385.76-.706 1.28-.875.07-.023.148-.04.22-.063-.866-1.103-1.99-1.972-3.312-2.5zm-10.938 8.218c.133 1.354.62 2.615 1.344 3.688.054-.096.122-.19.187-.28.3-.412.69-.724 1.125-.94-.44-.72-.728-1.56-.843-2.436-.565.164-1.186.162-1.783-.032-.01-.003-.022.003-.03 0zm15.906 0c-.596.194-1.217.196-1.78.032-.116.876-.405 1.716-.845 2.437.438.204.822.52 1.125.938.066.09.134.185.188.28.725-1.072 1.21-2.333 1.344-3.687-.01.003-.023-.003-.032 0zm-8.937 5.344c-.03.557-.214 1.113-.563 1.593-.027.037-.065.058-.093.094.54.115 1.08.187 1.655.187.574 0 1.116-.072 1.656-.187-.027-.036-.066-.057-.093-.094-.348-.48-.532-1.036-.562-1.594-.33.053-.655.093-1 .093s-.67-.04-1-.094z" fill="currentColor" id="operation-circularize-shape2"/>
      <path d="M230.005 381c-1.105 0-2 .895-2 2s.895 2 2 2 2-.895 2-2-.895-2-2-2zm-7.156 5c.258-.022.517.008.78.094 1.05.34 1.623 1.48 1.28 2.53-.34 1.052-1.48 1.624-2.53 1.282-1.05-.34-1.623-1.48-1.28-2.53.255-.79.972-1.31 1.75-1.376zm13.936 0c.925-.104 1.827.456 2.125 1.375.343 1.05-.23 2.19-1.28 2.53-1.05.343-2.19-.23-2.53-1.28-.343-1.05.23-2.19 1.28-2.53.13-.044.274-.08.406-.095zm-10.72 8c.386.013.79.132 1.126.375.894.65 1.087 1.92.438 2.813-.65.893-1.92 1.086-2.813.437-.893-.65-1.086-1.92-.437-2.813.406-.558 1.046-.834 1.687-.812zm7.876 0c.642-.022 1.282.254 1.688.812.65.894.456 2.164-.438 2.813-.893.65-2.163.456-2.812-.437-.65-.894-.456-2.164.437-2.813.336-.243.74-.362 1.125-.375z" fill="inherit" id="operation-circularize-shape"/>
    </symbol>
    <symbol id="operation-delete" viewBox="200 380 20 20">
      <path d="M212.156 394.787c0 .09.035.167.102.228.067.06.154.09.257.09h.36c.098 0 .182-.03.25-.086.072-.06.11-.136.11-.233v-5.29c0-.092-.038-.173-.11-.237-.068-.067-.152-.1-.25-.1h-.36c-.098 0-.182.033-.25.1-.072.064-.11.145-.11.237zm-1.62-5.29c0-.092-.032-.173-.103-.237-.073-.067-.157-.1-.253-.1h-.36c-.098 0-.18.033-.244.1-.063.064-.096.145-.096.237v5.29c0 .09.03.167.093.228.06.06.142.09.247.09h.36c.096 0 .18-.03.253-.086.07-.06.104-.136.104-.233zm-1.864-4.533c.883-.013 1.773-.013 2.676 0 0-.07.005-.135.02-.202.01-.067.01-.13 0-.187v-.128c-.216-.058-.445-.09-.683-.095-.24-.006-.467-.01-.68-.01-.227 0-.457.004-.694.01-.235.005-.462.037-.675.095v.128c0 .057.002.122.01.19.006.07.015.136.027.2m-.828 4.532c0-.092-.037-.173-.106-.237-.07-.067-.155-.1-.253-.1h-.358c-.1 0-.18.033-.244.1-.065.064-.098.145-.098.237v5.29c0 .09.033.167.098.228.064.06.144.09.244.09h.358c.098 0 .182-.03.253-.086.07-.06.106-.136.106-.233zm2.16-1.312c.792-.01 1.582-.03 2.373-.05.79-.024 1.58-.08 2.374-.173v7.212c0 .36-.135.674-.404.934-.27.262-.6.392-.985.392h-6.72c-.387 0-.72-.128-1-.39-.278-.254-.416-.567-.416-.936v-7.212c.753.094 1.502.153 2.243.182.742.027 1.49.04 2.244.04zm5.996-2.11v.595c-.227.115-.603.207-1.13.28-.528.072-1.096.126-1.707.162-.61.04-1.203.062-1.78.065-.575.006-1.034.01-1.378.01-.338 0-.797-.004-1.38-.01-.583-.003-1.18-.025-1.79-.065-.61-.036-1.173-.09-1.694-.158-.52-.07-.894-.164-1.12-.284-.014-.092-.02-.19-.02-.3v-.606c0-.102.006-.207.02-.31.15-.078.37-.15.652-.203.28-.052.58-.097.9-.132.318-.034.633-.06.942-.077.312-.015.552-.03.723-.042-.05-.47-.014-.837.105-1.104.12-.262.302-.46.548-.588.244-.13.545-.214.905-.252.36-.036.76-.054 1.21-.054.338 0 .672.007 1.006.025.336.018.633.078.898.175.264.102.473.26.63.47.156.214.235.514.235.905v.207c0 .07-.008.142-.017.216.176.01.418.027.724.043.307.02.622.044.945.078.32.035.626.08.912.133.29.055.51.126.663.203z" fill="inherit" id="operation-delete-shape"/>
    </symbol>
  </g>
</template>