aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/solid-dom-fixtures/SVG/output.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-06-22 23:21:48 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-06-22 23:21:48 -0700
commit729d445b6885f69dd2c6355f38707bd42851c791 (patch)
treef87a7c408929ea3f57bbb7ace380cf869da83c0e /test/bun.js/solid-dom-fixtures/SVG/output.js
parent25f820c6bf1d8ec6d444ef579cc036b8c0607b75 (diff)
downloadbun-729d445b6885f69dd2c6355f38707bd42851c791.tar.gz
bun-729d445b6885f69dd2c6355f38707bd42851c791.tar.zst
bun-729d445b6885f69dd2c6355f38707bd42851c791.zip
change the directory structurejarred/rename
Diffstat (limited to 'test/bun.js/solid-dom-fixtures/SVG/output.js')
-rw-r--r--test/bun.js/solid-dom-fixtures/SVG/output.js108
1 files changed, 108 insertions, 0 deletions
diff --git a/test/bun.js/solid-dom-fixtures/SVG/output.js b/test/bun.js/solid-dom-fixtures/SVG/output.js
new file mode 100644
index 000000000..edac460af
--- /dev/null
+++ b/test/bun.js/solid-dom-fixtures/SVG/output.js
@@ -0,0 +1,108 @@
+import { template as _$template } from "r-dom";
+import { setAttributeNS as _$setAttributeNS } from "r-dom";
+import { createComponent as _$createComponent } from "r-dom";
+import { spread as _$spread } from "r-dom";
+import { setAttribute as _$setAttribute } from "r-dom";
+import { effect as _$effect } from "r-dom";
+
+const _tmpl$ = /*#__PURE__*/ _$template(
+ `<svg width="400" height="180"><rect stroke-width="2" x="50" y="20" rx="20" ry="20" width="150" height="150" style="fill:red;stroke:black;stroke-width:5;opacity:0.5"></rect><linearGradient gradientTransform="rotate(25)"><stop offset="0%"></stop></linearGradient></svg>`,
+ 8
+ ),
+ _tmpl$2 = /*#__PURE__*/ _$template(
+ `<svg width="400" height="180"><rect rx="20" ry="20" width="150" height="150"></rect></svg>`,
+ 4
+ ),
+ _tmpl$3 = /*#__PURE__*/ _$template(
+ `<svg width="400" height="180"><rect></rect></svg>`,
+ 4
+ ),
+ _tmpl$4 = /*#__PURE__*/ _$template(
+ `<svg><rect x="50" y="20" width="150" height="150"></rect></svg>`,
+ 4,
+ true
+ ),
+ _tmpl$5 = /*#__PURE__*/ _$template(
+ `<svg viewBox="0 0 160 40" xmlns="http://www.w3.org/2000/svg"><a><text x="10" y="25">MDN Web Docs</text></a></svg>`,
+ 6
+ ),
+ _tmpl$6 = /*#__PURE__*/ _$template(
+ `<svg viewBox="0 0 160 40" xmlns="http://www.w3.org/2000/svg"><text x="10" y="25"></text></svg>`,
+ 4
+ );
+
+const template = _tmpl$.cloneNode(true);
+
+const template2 = (() => {
+ const _el$2 = _tmpl$2.cloneNode(true),
+ _el$3 = _el$2.firstChild;
+
+ _el$3.style.setProperty("fill", "red");
+
+ _el$3.style.setProperty("stroke", "black");
+
+ _el$3.style.setProperty("opacity", "0.5");
+
+ _$effect(
+ (_p$) => {
+ const _v$ = state.name,
+ _v$2 = state.width,
+ _v$3 = state.x,
+ _v$4 = state.y,
+ _v$5 = props.stroke;
+ _v$ !== _p$._v$ && _$setAttribute(_el$3, "class", (_p$._v$ = _v$));
+ _v$2 !== _p$._v$2 &&
+ _$setAttribute(_el$3, "stroke-width", (_p$._v$2 = _v$2));
+ _v$3 !== _p$._v$3 && _$setAttribute(_el$3, "x", (_p$._v$3 = _v$3));
+ _v$4 !== _p$._v$4 && _$setAttribute(_el$3, "y", (_p$._v$4 = _v$4));
+ _v$5 !== _p$._v$5 &&
+ _el$3.style.setProperty("stroke-width", (_p$._v$5 = _v$5));
+ return _p$;
+ },
+ {
+ _v$: undefined,
+ _v$2: undefined,
+ _v$3: undefined,
+ _v$4: undefined,
+ _v$5: undefined,
+ }
+ );
+
+ return _el$2;
+})();
+
+const template3 = (() => {
+ const _el$4 = _tmpl$3.cloneNode(true),
+ _el$5 = _el$4.firstChild;
+
+ _$spread(_el$5, props, true, false);
+
+ return _el$4;
+})();
+
+const template4 = _tmpl$4.cloneNode(true);
+
+const template5 = _tmpl$4.cloneNode(true);
+
+const template6 = _$createComponent(Component, {
+ get children() {
+ return _tmpl$4.cloneNode(true);
+ },
+});
+
+const template7 = (() => {
+ const _el$9 = _tmpl$5.cloneNode(true),
+ _el$10 = _el$9.firstChild;
+
+ _$setAttributeNS(_el$10, "http://www.w3.org/1999/xlink", "xlink:href", url);
+
+ return _el$9;
+})();
+
+const template8 = (() => {
+ const _el$11 = _tmpl$6.cloneNode(true),
+ _el$12 = _el$11.firstChild;
+
+ _el$12.textContent = text;
+ return _el$11;
+})();