@rxdi/ui-kit 0.7.129 → 0.7.130

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxdi/ui-kit",
3
- "version": "0.7.129",
3
+ "version": "0.7.130",
4
4
  "description": "UI Components for building graphql-server website",
5
5
  "bolt": {
6
6
  "workspaces": [
@@ -0,0 +1,2 @@
1
+ export * from './vesica.component';
2
+ export * from './vesica.service';
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./vesica.component"), exports);
14
+ __exportStar(require("./vesica.service"), exports);
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/vesica/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmC;AACnC,mDAAiC"}
@@ -0,0 +1,4 @@
1
+ import { LitElement } from '@rxdi/lit-html';
2
+ export declare class VesicaComponent extends LitElement {
3
+ drawCircle(): SVGElement;
4
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.VesicaComponent = void 0;
10
+ const lit_html_1 = require("@rxdi/lit-html");
11
+ const vesica_service_1 = require("./vesica.service");
12
+ let VesicaComponent = class VesicaComponent extends lit_html_1.LitElement {
13
+ drawCircle() {
14
+ const strokeWidth = Math.floor(Math.random() * vesica_service_1.VesicaService.width + 1) / vesica_service_1.VesicaService.wres;
15
+ const styles = vesica_service_1.VesicaService.style(vesica_service_1.VesicaService.color, "none", strokeWidth);
16
+ return vesica_service_1.VesicaService.circle(100, styles);
17
+ }
18
+ };
19
+ VesicaComponent = __decorate([
20
+ (0, lit_html_1.Component)({
21
+ selector: 'vesica-piscis',
22
+ template() {
23
+ return (0, lit_html_1.svg) `
24
+ <svg viewBox="-110 -110 220 220" xmlns="http://www.w3.org/2000/svg">
25
+ ${this.drawCircle()}
26
+ ${vesica_service_1.VesicaService.generate()}
27
+ </svg>`;
28
+ },
29
+ })
30
+ ], VesicaComponent);
31
+ exports.VesicaComponent = VesicaComponent;
32
+ //# sourceMappingURL=vesica.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vesica.component.js","sourceRoot":"","sources":["../../src/vesica/vesica.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6CAA4D;AAC5D,qDAAiD;AAYjD,IAAa,eAAe,GAA5B,MAAa,eAAgB,SAAQ,qBAAU;IAE7C,UAAU;QACR,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,8BAAa,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,8BAAa,CAAC,IAAI,CAAC;QAC7F,MAAM,MAAM,GAAG,8BAAa,CAAC,KAAK,CAAC,8BAAa,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;QAC7E,OAAO,8BAAa,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAC3C,CAAC;CACF,CAAA;AAPY,eAAe;IAV3B,IAAA,oBAAS,EAAC;QACT,QAAQ,EAAE,eAAe;QACzB,QAAQ;YACN,OAAO,IAAA,cAAG,EAAA;;QAEN,IAAI,CAAC,UAAU,EAAE;QACjB,8BAAa,CAAC,QAAQ,EAAE;WACrB,CAAA;QACT,CAAC;KACF,CAAC;GACW,eAAe,CAO3B;AAPY,0CAAe"}
@@ -0,0 +1,23 @@
1
+ interface Style {
2
+ stroke: string;
3
+ fill: string;
4
+ strokeWidth: string;
5
+ }
6
+ export declare class VesicaService {
7
+ static color: string;
8
+ static width: number;
9
+ static wres: number;
10
+ static generate(depth?: number, ls?: number): SVGElement;
11
+ static randomShape(size: number, style: Style): SVGElement;
12
+ static scale(x: number, y: number, child: SVGElement[]): SVGElement;
13
+ static rotate(deg: number, child?: SVGElement[]): SVGElement;
14
+ static translate(x: number, y: number, child?: Node[]): SVGElement;
15
+ static group(child?: SVGElement[]): SVGElement;
16
+ static npoly(r: number, n: number, s: number, style: Style): SVGElement;
17
+ static rect(w: number, h: number, style: Style): SVGElement;
18
+ static circle(r: number, style: Style): SVGElement;
19
+ static addChild(p: SVGElement, c: Node[]): SVGElement;
20
+ static style(stroke: string, fill: string, strokeWidth: number): Style;
21
+ static svgElm(name: string): SVGElement;
22
+ }
23
+ export {};
@@ -0,0 +1,171 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VesicaService = void 0;
4
+ class VesicaService {
5
+ static generate(depth = 0, ls = 1) {
6
+ const r = Math.random();
7
+ if (depth < 10) {
8
+ if (r > 0.7) { // simple scale in
9
+ const s = (Math.random()) * 0.2 + 0.8;
10
+ const st = this.style(this.color, "none", Math.floor(Math.random() * this.width + 1) / this.wres / ls);
11
+ // draw base circle
12
+ const base = this.scale(s, s, [this.randomShape(100, st)]);
13
+ const elm = this.generate(depth + 1, ls * s);
14
+ base.appendChild(elm);
15
+ return base;
16
+ }
17
+ else if (r > 0.6) {
18
+ const st = this.style(this.color, "none", Math.floor(Math.random() * this.width + 1) / this.wres / ls);
19
+ const elm = this.group([]);
20
+ const rspace = 5 + Math.random() * 10;
21
+ const count = Math.floor(Math.random() * 5);
22
+ // let r = 100;
23
+ const npn = 3 + Math.floor(Math.random() * 16);
24
+ const nps = 3 + Math.floor(Math.random() * 16);
25
+ const mode = Math.floor(Math.random() * 3);
26
+ for (let i = 0; i < count; i++) {
27
+ switch (mode) {
28
+ case 0:
29
+ elm.appendChild(this.circle(r, st));
30
+ break;
31
+ case 1:
32
+ elm.appendChild(this.rect(r * (Math.sqrt(2)), r * (Math.sqrt(2)), st));
33
+ break;
34
+ case 2:
35
+ elm.appendChild(this.npoly(r, npn, nps, st));
36
+ break;
37
+ }
38
+ // r = r - rspace;
39
+ }
40
+ var nscale = (100 - rspace * count) / 100;
41
+ elm.appendChild(this.scale(nscale, nscale, [this.generate(depth + 1, ls * nscale)]));
42
+ return elm;
43
+ }
44
+ else if (r > 0.5) { // simple rotate
45
+ const s = Math.floor((Math.random()) * 8) * 45;
46
+ // draw base circle
47
+ const base = this.rotate(s);
48
+ const elm = this.generate(depth, ls); // dont count depth
49
+ base.appendChild(elm);
50
+ return base;
51
+ }
52
+ else if (r > 0.4) { // twin scale in
53
+ const st = this.style(this.color, "none", Math.floor(Math.random() * this.width + 1) / this.wres / ls);
54
+ const ratio = Math.random();
55
+ const s1 = this.translate(-100 + ratio / 2 * 200, 0, [this.scale(ratio, ratio, [this.randomShape(100 * ratio, st), this.generate(depth + 1, ls * ratio)])]);
56
+ const s2 = this.translate(-100 + ((ratio + 1) / 2 * 200), 0, [this.scale(1 - ratio, 1 - ratio, [this.randomShape(100 * (1 - ratio), st), this.generate(depth + 1, ls * (1 - ratio))])]);
57
+ return this.group([s1, s2]);
58
+ }
59
+ else { // flower
60
+ const base = this.group();
61
+ const size = Math.random() * 100;
62
+ const num = (1 << (Math.random() * 4 + 1));
63
+ const shape = this.scale(size / 100, size / 100, [this.generate(depth + 7, ls * size / 100)]);
64
+ for (let i = 0; i < num; i++) {
65
+ var relm = this.rotate(360 * i / num, [this.translate(0, 100 - size, [shape.cloneNode(true)])]);
66
+ base.appendChild(relm);
67
+ }
68
+ const s = (100 - size) / 100;
69
+ const st = this.style(this.color, "none", Math.floor(Math.random() * this.width + 1) / this.wres / ls);
70
+ // draw base circle
71
+ //base.appendChild(scale(s,s,[randomShape(100, st)]));
72
+ base.appendChild(this.scale(s, s, [this.generate(depth + 1, ls * s)]));
73
+ return base;
74
+ }
75
+ }
76
+ const s = this.style(this.color, "none", Math.floor(Math.random() * this.width + 1) / this.wres / ls);
77
+ return this.randomShape(100, s);
78
+ }
79
+ static randomShape(size, style) {
80
+ var r = Math.random();
81
+ if (r > 0.4) {
82
+ return this.circle(size, style);
83
+ }
84
+ else if (r > 0.2) {
85
+ return this.rect(size * (Math.sqrt(2)), size * (Math.sqrt(2)), style);
86
+ //return group([circle(size, style), rect(size*(Math.sqrt(2)), size*(Math.sqrt(2)), style)]);
87
+ }
88
+ else {
89
+ return this.npoly(size, (3 + Math.floor(Math.random() * 16)), (3 + Math.floor(Math.random() * 16)), style);
90
+ }
91
+ }
92
+ static scale(x, y, child) {
93
+ var elm = this.svgElm("g");
94
+ elm.setAttribute("transform", "scale(" + x + "," + y + ")");
95
+ this.addChild(elm, child);
96
+ return elm;
97
+ }
98
+ static rotate(deg, child) {
99
+ var elm = this.svgElm("g");
100
+ elm.setAttribute("transform", "rotate(" + deg + ")");
101
+ this.addChild(elm, child);
102
+ return elm;
103
+ }
104
+ static translate(x, y, child) {
105
+ var elm = this.svgElm("g");
106
+ elm.setAttribute("transform", "translate(" + x + "," + y + ")");
107
+ this.addChild(elm, child);
108
+ return elm;
109
+ }
110
+ static group(child) {
111
+ var elm = this.svgElm("g");
112
+ this.addChild(elm, child);
113
+ return elm;
114
+ }
115
+ static npoly(r, n, s, style) {
116
+ var elm = this.svgElm("polygon");
117
+ var points = [];
118
+ var c = 0;
119
+ for (var i = 0; i < n; i++) {
120
+ points.push(r * Math.cos(Math.PI * 2 * c / n) + "," + r * Math.sin(Math.PI * 2 * c / n));
121
+ c += s;
122
+ }
123
+ elm.setAttribute("points", points.join(" "));
124
+ elm.setAttribute("stroke", style.stroke);
125
+ elm.setAttribute("stroke-width", style.strokeWidth);
126
+ elm.setAttribute("fill", style.fill);
127
+ return elm;
128
+ }
129
+ static rect(w, h, style) {
130
+ const elm = this.svgElm("rect");
131
+ elm.setAttribute("x", String(-w / 2));
132
+ elm.setAttribute("y", String(-h / 2));
133
+ elm.setAttribute("width", String(w));
134
+ elm.setAttribute("height", String(h));
135
+ elm.setAttribute("stroke", style.stroke);
136
+ elm.setAttribute("stroke-width", style.strokeWidth);
137
+ elm.setAttribute("fill", style.fill);
138
+ return elm;
139
+ }
140
+ static circle(r, style) {
141
+ const elm = this.svgElm("circle");
142
+ elm.setAttribute("r", String(r));
143
+ elm.setAttribute("stroke", style.stroke);
144
+ elm.setAttribute("stroke-width", style.strokeWidth);
145
+ elm.setAttribute("fill", style.fill);
146
+ return elm;
147
+ }
148
+ static addChild(p, c) {
149
+ if (Array.isArray(c)) {
150
+ c.forEach(function (i) {
151
+ p.appendChild(i);
152
+ });
153
+ }
154
+ return p;
155
+ }
156
+ static style(stroke, fill, strokeWidth) {
157
+ return {
158
+ stroke: stroke,
159
+ fill: fill,
160
+ strokeWidth: String(strokeWidth),
161
+ };
162
+ }
163
+ static svgElm(name) {
164
+ return document.createElementNS("http://www.w3.org/2000/svg", name);
165
+ }
166
+ }
167
+ exports.VesicaService = VesicaService;
168
+ VesicaService.color = "#3ba6f1";
169
+ VesicaService.width = 0.5;
170
+ VesicaService.wres = 2;
171
+ //# sourceMappingURL=vesica.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vesica.service.js","sourceRoot":"","sources":["../../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