mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-03-06 23:57:30 +08:00
Moving node and pins information to Configuration
This commit is contained in:
129
js/SVGIcon.js
129
js/SVGIcon.js
@@ -2,6 +2,20 @@ import { html } from "lit"
|
||||
|
||||
export default class SVGIcon {
|
||||
|
||||
static array = html`
|
||||
<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4 0H0V4H4V0Z" fill="currentColor" />
|
||||
<path d="M10 0H6V4H10V0Z" fill="currentColor" />
|
||||
<path d="M16 0H12V4H16V0Z" fill="currentColor" />
|
||||
<path d="M4 6H0V10H4V6Z" fill="currentColor" />
|
||||
<path class="ueb-pin-tofill" d="M10 6H6V10H10V6Z" fill="black" />
|
||||
<path d="M16 6H12V10H16V6Z" fill="currentColor" />
|
||||
<path d="M4 12H0V16H4V12Z" fill="currentColor" />
|
||||
<path d="M10 12H6V16H10V12Z" fill="currentColor" />
|
||||
<path d="M16 12H12V16H16V12Z" fill="currentColor" />
|
||||
</svg>
|
||||
`
|
||||
|
||||
static branchNode = html`
|
||||
<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H6C5.44772 2 5 2.44772 5 3V13C5 13.5523 5.44772 14 6 14H11V12H7V4H11V2Z" fill="white" />
|
||||
@@ -13,20 +27,20 @@ export default class SVGIcon {
|
||||
|
||||
static breakStruct = html`
|
||||
<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M12 14L10 12L11 11L13 13L14 12L14 15L11 15L12 14Z" fill="white"/>
|
||||
<path d="M13 3L11 5L10 4L12 2L11 1L14 1L14 4L13 3Z" fill="white"/>
|
||||
<path d="M7.975 6H3.025C1.90662 6 1 6.90662 1 8.025V8.475C1 9.59338 1.90662 10.5 3.025 10.5H7.975C9.09338 10.5 10 9.59338 10 8.475V8.025C10 6.90662 9.09338 6 7.975 6Z" fill="white"/>
|
||||
<path d="M12 14L10 12L11 11L13 13L14 12L14 15L11 15L12 14Z" fill="white" />
|
||||
<path d="M13 3L11 5L10 4L12 2L11 1L14 1L14 4L13 3Z" fill="white" />
|
||||
<path d="M7.975 6H3.025C1.90662 6 1 6.90662 1 8.025V8.475C1 9.59338 1.90662 10.5 3.025 10.5H7.975C9.09338 10.5 10 9.59338 10 8.475V8.025C10 6.90662 9.09338 6 7.975 6Z" fill="white" />
|
||||
</svg>
|
||||
`
|
||||
|
||||
static cast = html`
|
||||
<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 12L16 7.5L12 3V12Z" fill="white"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 11L4 7.5L0 4V11Z" fill="white"/>
|
||||
<rect opacity="0.5" x="5" y="6" width="1" height="3" fill="white"/>
|
||||
<rect opacity="0.5" x="7" y="6" width="1" height="3" fill="white"/>
|
||||
<rect opacity="0.5" x="9" y="6" width="1" height="3" fill="white"/>
|
||||
<rect x="9" y="6" width="3" height="3" fill="white"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 12L16 7.5L12 3V12Z" fill="white" />
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 11L4 7.5L0 4V11Z" fill="white" />
|
||||
<rect opacity="0.5" x="5" y="6" width="1" height="3" fill="white" />
|
||||
<rect opacity="0.5" x="7" y="6" width="1" height="3" fill="white" />
|
||||
<rect opacity="0.5" x="9" y="6" width="1" height="3" fill="white" />
|
||||
<rect x="9" y="6" width="3" height="3" fill="white" />
|
||||
</svg>
|
||||
`
|
||||
|
||||
@@ -45,8 +59,17 @@ export default class SVGIcon {
|
||||
|
||||
static doN = html`
|
||||
<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M1 12V8H9V4L16 10L9 16V12H1Z" fill="white"/>
|
||||
<path d="M7 6L6 6L4 2.66667V6H3V1H4L6 4.33333V1H7V6Z" fill="white"/>
|
||||
<path d="M1 12V8H9V4L16 10L9 16V12H1Z" fill="white" />
|
||||
<path d="M7 6L6 6L4 2.66667V6H3V1H4L6 4.33333V1H7V6Z" fill="white" />
|
||||
</svg>
|
||||
`
|
||||
|
||||
static event = html`
|
||||
<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect x="0.929031" y="8" width="10" height="10" rx="0.5" transform="rotate(-45 0.929031 8)" stroke="white" />
|
||||
<path d="M5 4.00024L8 1.00024V6.00024H3L5 4.00024Z" fill="white" />
|
||||
<path d="M6 13.0002L3 10.0002L8 10.0002L8 15.0002L6 13.0002Z" fill="white" />
|
||||
<path d="M4.53551 6.82854L4.53551 11.0712L0.999977 7.53564L4.53551 4.00011L4.53551 6.82854Z" fill="white" />
|
||||
</svg>
|
||||
`
|
||||
|
||||
@@ -85,7 +108,7 @@ export default class SVGIcon {
|
||||
|
||||
static genericPin = html`
|
||||
<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
||||
<circle class="ueb-pin-tofill" cx="16" cy="16" r="14" fill="black" stroke="currentColor" stroke-width="5" />
|
||||
<circle class="ueb-pin-tofill" cx="16" cy="16" r="13" fill="black" stroke="currentColor" stroke-width="4" />
|
||||
<path d="M 34 6 L 34 26 L 42 16 Z" fill="currentColor" />
|
||||
</svg>
|
||||
`
|
||||
@@ -98,7 +121,6 @@ export default class SVGIcon {
|
||||
fill: #fff;
|
||||
fill-rule: evenodd;
|
||||
}
|
||||
|
||||
.cls-2 {
|
||||
fill: none;
|
||||
}
|
||||
@@ -115,44 +137,44 @@ export default class SVGIcon {
|
||||
|
||||
static macro = html`
|
||||
<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M8 2.92L10 12.29L14.55 2.61C14.662 2.4259 14.8189 2.27332 15.0061 2.16661C15.1933 2.05989 15.4045 2.00256 15.62 2H19L18.66 2.89C18.66 2.89 17.17 3.04 17.11 3.63C17.05 4.22 16 15.34 15.93 16.13C15.86 16.92 17.33 17.13 17.33 17.13L17.17 17.99H13.84C13.7241 17.9764 13.612 17.9399 13.5103 17.8826C13.4086 17.8253 13.3194 17.7484 13.2477 17.6562C13.176 17.5641 13.1234 17.4586 13.0929 17.346C13.0624 17.2333 13.0546 17.1157 13.07 17L14.43 5.52L10 14.57C9.8 15.03 9.07 15.72 8.63 15.71H7.75L6.05 4.86L3.54 17.39C3.51941 17.5514 3.44327 17.7005 3.32465 17.8118C3.20603 17.9232 3.05235 17.9897 2.89 18H1L1.11 17.09C1.11 17.09 2.21 17.09 2.3 16.69C2.39 16.29 5.3 3.76 5.41 3.32C5.52 2.88 4.19 2.81 4.19 2.81L4.46 2H6.62C7.09 2 7.92 2.38 8 2.92Z" fill="white"/>
|
||||
<path d="M8 2.92L10 12.29L14.55 2.61C14.662 2.4259 14.8189 2.27332 15.0061 2.16661C15.1933 2.05989 15.4045 2.00256 15.62 2H19L18.66 2.89C18.66 2.89 17.17 3.04 17.11 3.63C17.05 4.22 16 15.34 15.93 16.13C15.86 16.92 17.33 17.13 17.33 17.13L17.17 17.99H13.84C13.7241 17.9764 13.612 17.9399 13.5103 17.8826C13.4086 17.8253 13.3194 17.7484 13.2477 17.6562C13.176 17.5641 13.1234 17.4586 13.0929 17.346C13.0624 17.2333 13.0546 17.1157 13.07 17L14.43 5.52L10 14.57C9.8 15.03 9.07 15.72 8.63 15.71H7.75L6.05 4.86L3.54 17.39C3.51941 17.5514 3.44327 17.7005 3.32465 17.8118C3.20603 17.9232 3.05235 17.9897 2.89 18H1L1.11 17.09C1.11 17.09 2.21 17.09 2.3 16.69C2.39 16.29 5.3 3.76 5.41 3.32C5.52 2.88 4.19 2.81 4.19 2.81L4.46 2H6.62C7.09 2 7.92 2.38 8 2.92Z" fill="white" />
|
||||
</svg>
|
||||
`
|
||||
|
||||
static makeArray = html`
|
||||
<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M15 4H13V6H15V4Z" fill="white"/>
|
||||
<path d="M15 7H13V9H15V7Z" fill="white"/>
|
||||
<path d="M15 10H13V12H15V10Z" fill="white"/>
|
||||
<path d="M12 4H10V6H12V4Z" fill="white"/>
|
||||
<path d="M12 7H10V9H12V7Z" fill="white"/>
|
||||
<path d="M12 10H10V12H12V10Z" fill="white"/>
|
||||
<path d="M9 4H7V6H9V4Z" fill="white"/>
|
||||
<path d="M9 7H7V9H9V7Z" fill="white"/>
|
||||
<path d="M9 10H7V12H9V10Z" fill="white"/>
|
||||
<path d="M3 4L1 1.99995L2 1L4 3L5 1.99995L5 5L2 5L3 4Z" fill="white"/>
|
||||
<path d="M4 13L1.99995 15L1 14L3 12L1.99995 11L5 11L5 14L4 13Z" fill="white"/>
|
||||
<path d="M15 4H13V6H15V4Z" fill="white" />
|
||||
<path d="M15 7H13V9H15V7Z" fill="white" />
|
||||
<path d="M15 10H13V12H15V10Z" fill="white" />
|
||||
<path d="M12 4H10V6H12V4Z" fill="white" />
|
||||
<path d="M12 7H10V9H12V7Z" fill="white" />
|
||||
<path d="M12 10H10V12H12V10Z" fill="white" />
|
||||
<path d="M9 4H7V6H9V4Z" fill="white" />
|
||||
<path d="M9 7H7V9H9V7Z" fill="white" />
|
||||
<path d="M9 10H7V12H9V10Z" fill="white" />
|
||||
<path d="M3 4L1 1.99995L2 1L4 3L5 1.99995L5 5L2 5L3 4Z" fill="white" />
|
||||
<path d="M4 13L1.99995 15L1 14L3 12L1.99995 11L5 11L5 14L4 13Z" fill="white" />
|
||||
</svg>
|
||||
`
|
||||
|
||||
static makeMap = html`
|
||||
<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M15 4H10V6H15V4Z" fill="white"/>
|
||||
<path d="M15 7H10V9H15V7Z" fill="white"/>
|
||||
<path d="M15 10H10V12H15V10Z" fill="white"/>
|
||||
<path d="M9 4H7V6H9V4Z" fill="white"/>
|
||||
<path d="M9 7H7V9H9V7Z" fill="white"/>
|
||||
<path d="M9 10H7V12H9V10Z" fill="white"/>
|
||||
<path d="M3 4L1 1.99995L2 1L4 3L5 1.99995L5 5L2 5L3 4Z" fill="white"/>
|
||||
<path d="M4 13L1.99995 15L1 14L3 12L1.99995 11L5 11L5 14L4 13Z" fill="white"/>
|
||||
<path d="M15 4H10V6H15V4Z" fill="white" />
|
||||
<path d="M15 7H10V9H15V7Z" fill="white" />
|
||||
<path d="M15 10H10V12H15V10Z" fill="white" />
|
||||
<path d="M9 4H7V6H9V4Z" fill="white" />
|
||||
<path d="M9 7H7V9H9V7Z" fill="white" />
|
||||
<path d="M9 10H7V12H9V10Z" fill="white" />
|
||||
<path d="M3 4L1 1.99995L2 1L4 3L5 1.99995L5 5L2 5L3 4Z" fill="white" />
|
||||
<path d="M4 13L1.99995 15L1 14L3 12L1.99995 11L5 11L5 14L4 13Z" fill="white" />
|
||||
</svg>
|
||||
`
|
||||
|
||||
static makeStruct = html`
|
||||
<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M3 4L1 1.99995L2 1L4 3L5 1.99995L5 5L2 5L3 4Z" fill="white"/>
|
||||
<path d="M4 13L1.99995 15L1 14L3 12L1.99995 11L5 11L5 14L4 13Z" fill="white"/>
|
||||
<path d="M12.975 6H8.025C6.90662 6 6 6.90662 6 8.025V8.475C6 9.59338 6.90662 10.5 8.025 10.5H12.975C14.0934 10.5 15 9.59338 15 8.475V8.025C15 6.90662 14.0934 6 12.975 6Z" fill="white"/>
|
||||
<path d="M3 4L1 1.99995L2 1L4 3L5 1.99995L5 5L2 5L3 4Z" fill="white" />
|
||||
<path d="M4 13L1.99995 15L1 14L3 12L1.99995 11L5 11L5 14L4 13Z" fill="white" />
|
||||
<path d="M12.975 6H8.025C6.90662 6 6 6.90662 6 8.025V8.475C6 9.59338 6.90662 10.5 8.025 10.5H12.975C14.0934 10.5 15 9.59338 15 8.475V8.025C15 6.90662 14.0934 6 12.975 6Z" fill="white" />
|
||||
</svg>
|
||||
`
|
||||
|
||||
@@ -169,26 +191,35 @@ export default class SVGIcon {
|
||||
</svg>
|
||||
`
|
||||
|
||||
static set = html`
|
||||
<svg viewBox="2 2 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M1 7.99956V6.99956C1.62451 6.89501 2.23976 6.7412 2.84 6.53956C3.02865 6.44859 3.18802 6.30655 3.3 6.12956C3.44478 5.91383 3.53723 5.6673 3.57 5.40956C3.6183 5.04164 3.63836 4.67055 3.63 4.29956C3.60615 3.68664 3.64974 3.07296 3.76 2.46956C3.82982 2.152 3.99359 1.86279 4.23 1.63956C4.51974 1.39713 4.86221 1.22589 5.23 1.13956C5.68612 1.03782 6.15275 0.990826 6.62 0.999563H7V1.99956C6.69952 2.01634 6.4103 2.11967 6.16722 2.2971C5.92414 2.47453 5.73757 2.71849 5.63 2.99956C5.5431 3.18346 5.5052 3.3867 5.52 3.58956C5.52 3.86956 5.52 4.40956 5.46 5.19956C5.44584 5.56977 5.38194 5.9364 5.27 6.28956C5.18779 6.5495 5.05527 6.79074 4.88 6.99956C4.62654 7.36597 4.33121 7.70157 4 7.99956" fill="currentColor" />
|
||||
<path d="M4 7.99951C4.33723 8.31397 4.63295 8.67019 4.88 9.05951C5.05095 9.2601 5.18319 9.49067 5.27 9.73951C5.38194 10.0927 5.44584 10.4593 5.46 10.8295C5.5 11.6228 5.52 12.1628 5.52 12.4495C5.5061 12.6523 5.54395 12.8553 5.63 13.0395C5.74563 13.3117 5.93533 13.546 6.17752 13.7157C6.41972 13.8854 6.70468 13.9837 7 13.9995V14.9995H6.62C6.15021 15.0156 5.68019 14.9753 5.22 14.8795C4.85378 14.7889 4.51224 14.6181 4.22 14.3795C3.98551 14.1548 3.8221 13.8662 3.75 13.5495C3.64077 12.946 3.59718 12.3324 3.62 11.7195C3.63014 11.3418 3.61007 10.964 3.56 10.5895C3.52723 10.3318 3.43478 10.0852 3.29 9.86951C3.17802 9.69252 3.01865 9.55048 2.83 9.45951C2.23302 9.25838 1.62113 9.10457 1 8.99951V7.99951" fill="currentColor" />
|
||||
<path d="M12 7.99955C11.6688 7.70156 11.3735 7.36596 11.12 6.99955C10.947 6.79667 10.8146 6.56242 10.73 6.30955C10.6181 5.95638 10.5542 5.58976 10.54 5.21954C10.54 4.42954 10.48 3.88955 10.48 3.60955C10.4983 3.40004 10.4604 3.18944 10.37 2.99955C10.2624 2.71847 10.0759 2.47452 9.83278 2.29708C9.5897 2.11965 9.30048 2.01632 9 1.99955V0.999545H9.38C9.84979 0.983442 10.3198 1.02373 10.78 1.11955C11.1478 1.20587 11.4903 1.37711 11.78 1.61955C12.0164 1.84278 12.1802 2.13198 12.25 2.44955C12.3603 3.05294 12.4039 3.66662 12.38 4.27955C12.3706 4.6572 12.3907 5.03501 12.44 5.40954C12.4728 5.66728 12.5652 5.91382 12.71 6.12955C12.822 6.30653 12.9813 6.44858 13.17 6.53955C13.767 6.74067 14.3789 6.89448 15 6.99955V7.99955" fill="currentColor" />
|
||||
<path d="M15 7.99951V8.99951C14.3755 9.10406 13.7602 9.25787 13.16 9.45951C12.9713 9.55048 12.812 9.69252 12.7 9.86951C12.5552 10.0852 12.4628 10.3318 12.43 10.5895C12.3799 10.964 12.3599 11.3418 12.37 11.7195C12.3928 12.3324 12.3492 12.946 12.24 13.5495C12.1679 13.8662 12.0045 14.1548 11.77 14.3795C11.4778 14.6181 11.1362 14.7889 10.77 14.8795C10.3098 14.9753 9.83979 15.0156 9.37 14.9995H9V13.9995C9.2998 13.9803 9.58791 13.876 9.83056 13.6989C10.0732 13.5218 10.2603 13.2792 10.37 12.9995C10.456 12.8153 10.4939 12.6123 10.48 12.4095C10.48 12.1162 10.5 11.5762 10.54 10.7895C10.5542 10.4193 10.6181 10.0527 10.73 9.69951C10.8168 9.45067 10.9491 9.2201 11.12 9.01951C11.3698 8.64424 11.6654 8.30159 12 7.99951" fill="currentColor" />
|
||||
</svg>
|
||||
`
|
||||
|
||||
static select = html`
|
||||
<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect x="1" y="2" width="6" height="2" fill="white"/>
|
||||
<rect x="10" y="7" width="3" height="2" fill="white"/>
|
||||
<path d="M12 5L15 8L12 11V5Z" fill="white"/>
|
||||
<rect x="1" y="7" width="8" height="2" fill="white"/>
|
||||
<rect x="5" y="4" width="2" height="9" fill="white"/>
|
||||
<rect x="1" y="12" width="6" height="2" fill="white"/>
|
||||
<rect x="1" y="2" width="6" height="2" fill="white" />
|
||||
<rect x="10" y="7" width="3" height="2" fill="white" />
|
||||
<path d="M12 5L15 8L12 11V5Z" fill="white" />
|
||||
<rect x="1" y="7" width="8" height="2" fill="white" />
|
||||
<rect x="5" y="4" width="2" height="9" fill="white" />
|
||||
<rect x="1" y="12" width="6" height="2" fill="white" />
|
||||
</svg>
|
||||
`
|
||||
|
||||
static sequence = html`
|
||||
<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect x="3" y="2" width="5" height="2" fill="white"/>
|
||||
<rect y="7" width="8" height="2" fill="white"/>
|
||||
<rect x="3" y="4" width="2" height="9" fill="white"/>
|
||||
<rect x="3" y="12" width="5" height="2" fill="white"/>
|
||||
<rect x="10" y="2" width="6" height="2" fill="white"/>
|
||||
<rect x="10" y="7" width="4" height="2" fill="white"/>
|
||||
<rect x="10" y="12" width="2" height="2" fill="white"/>
|
||||
<rect x="3" y="2" width="5" height="2" fill="white" />
|
||||
<rect y="7" width="8" height="2" fill="white" />
|
||||
<rect x="3" y="4" width="2" height="9" fill="white" />
|
||||
<rect x="3" y="12" width="5" height="2" fill="white" />
|
||||
<rect x="10" y="2" width="6" height="2" fill="white" />
|
||||
<rect x="10" y="7" width="4" height="2" fill="white" />
|
||||
<rect x="10" y="12" width="2" height="2" fill="white" />
|
||||
</svg>
|
||||
`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user