import { SVGWidget } from "@hpcc-js/common"; export class HPCCBadge extends SVGWidget { protected root; protected logo; protected logo_accent; protected logo_circles; protected line; protected circle_1; protected circle_2; protected circle_3; protected circle_4; protected circle_5; protected circle_6; protected circle_7; protected circle_8; protected circle_accent; protected text; protected text_hpccsystems; protected text_r; protected text_tm; constructor() { super(); } testData(domNode, element) { return this; } enter(domNode, element) { super.enter(domNode, element); this.root = element.append("g"); this.logo = this.root.append("g"); this.logo_accent = this.root.append("g"); this.line = this.logo_accent.append("path") .attr("fill-rule", "evenodd") .attr("clip-rule", "evenodd") .attr("fill", "#179BD7") .attr("d", "m 189.38849,364.55373 c 191.6,3.8 0,0 191.6,3.8 l 0.1,-4.2 c -191.7,0.4 0,0 -191.7,0.4 z") ; this.circle_accent = this.logo_accent.append("path") .attr("fill-rule", "evenodd") .attr("clip-rule", "evenodd") .attr("fill", "#6E6E73") .attr("d", "M421.3,354.2c6.9,6.9,3.1,18.7-8.6,26.1c-11.8,7.4-26.3,6.9-32.1-0.6c-5.5-7.2-1.1-18.2,9.6-25C401,348,414.7,347.6,421.3,354.2z") ; this.logo_circles = this.logo.append("g"); this.circle_1 = this.logo_circles.append("path") .attr("fill-rule", "evenodd") .attr("clip-rule", "evenodd") .attr("fill", "#179BD7") .attr("d", "m 258.9815,363.84947 c 1.3,-3 1.5,-5.9 0.4,-8.1 -2.6,-5.4 -11.8,-5.1 -20.6,0.4 -3.5,2.2 -6.5,4.9 -8.7,7.8 -0.11933,0.35821 -0.39477,0.60735 -0.6,0.9 -2.9,4.1 -4.2,8.3 -3,11.6 2.1,6 11.4,6.3 20.9,0.4 5,-3.2 8.9,-7.3 11,-11.4 -0.59813,0.54778 0.47385,-1.28911 0.6,-1.6 z") ; this.circle_2 = this.logo_circles.append("path") .attr("fill-rule", "evenodd") .attr("clip-rule", "evenodd") .attr("fill", "#179BD7") .attr("d", "M291.3,349.3c9.5-5.9,14.1-15,10.5-20c-3.5-4.8-13.3-4.2-22.1,1.3c-8.8,5.5-13.7,14.1-10.9,19.3C271.7,355.4,281.9,355.2,291.3,349.3z") ; this.circle_3 = this.logo_circles.append("path") .attr("fill-rule", "evenodd") .attr("clip-rule", "evenodd") .attr("fill", "#179BD7") .attr("d", "M335.3,321.7c9.5-5.9,13.3-14.5,8.9-19c-4.3-4.3-14.8-3.2-23.6,2.3c-8.8,5.5-13.1,13.7-9.4,18.4C315,328.3,325.9,327.7,335.3,321.7z") ; this.circle_4 = this.logo_circles.append("path") .attr("fill-rule", "evenodd") .attr("clip-rule", "evenodd") .attr("fill", "#179BD7") .attr("d", "M273.2,384c-3.2-6.5-13.5-6.7-23.2-0.7c-9.7,6-15.6,16.4-13.2,23.4c2.5,7.3,13.1,8.2,23.6,1.7 C270.8,401.9,276.5,390.8,273.2,384z") ; this.circle_5 = this.logo_circles.append("path") .attr("fill-rule", "evenodd") .attr("clip-rule", "evenodd") .attr("fill", "#179BD7") .attr("d", "m 320.84499,363.83119 c 1,-3.4 0.8,-6.6 -1,-9.1 -4.2,-5.9 -15.3,-5.6 -25,0.5 -3.89999,2.4 -7.09999,5.5 -9.19999,8.7 -1.18854,2.2092 -0.0404,-0.09 -1.2,2.2 -2.2,4.1 -2.7,8.3 -0.9,11.5 3.6,6.7 15.09999,7 25.59999,0.5 5,-3.2 8.7,-7.2 10.7,-11.3 0.95557,-2.97582 0.0423,0.0306 1,-3 z") ; this.circle_6 = this.logo_circles.append("path") .attr("fill-rule", "evenodd") .attr("clip-rule", "evenodd") .attr("fill", "#179BD7") .attr("d", "M330.4,348.2c4.6,6,17,5.8,27.5-0.8c10.5-6.6,14.3-16.5,8.9-22c-5.2-5.3-17.1-4.4-26.8,1.6C330.3,333.1,325.9,342.4,330.4,348.2z") ; this.circle_7 = this.logo_circles.append("path") .attr("fill-rule", "evenodd") .attr("clip-rule", "evenodd") .attr("fill", "#179BD7") .attr("d", "M264.1,417.4c-10.8,6.7-17.2,19-14.2,27.8c3.2,9.2,15.4,11.1,27.2,3.7c11.8-7.4,17.8-20.6,13.6-29.2C286.6,411.6,274.8,410.7,264.1,417.4z") ; this.circle_8 = this.logo_circles.append("path") .attr("fill-rule", "evenodd") .attr("clip-rule", "evenodd") .attr("fill", "#179BD7") .attr("d", "M314.2,386.1c-10.8,6.7-16.2,18.4-11.9,26.4c4.5,8.4,17.8,9.5,29.6,2.2c11.8-7.4,16.6-19.9,11.1-27.7C337.7,379.6,324.9,379.3,314.2,386.1z") ; // Text --- this.text = this.root.append("g"); this.text_hpccsystems = this.text.append("path") .attr("fill", "#6E6E73") .attr("d", "M224.2,476.3c0.1-1.3,0.1-2.7,0.2-4.1c-0.3,0-0.5,0.1-0.8,0.1c-0.3,0-0.5,0-0.8,0c-0.3,0-0.5,0-0.8,0c-0.3,0-0.5-0.1-0.8-0.1c0.1,1.4,0.1,2.8,0.2,4.1c0.1,1.3,0.1,2.7,0.1,4.1v1.1c-1.1,0-2.3,0-3.3,0.1c-1.1,0-2.2,0-3.3,0c-1.1,0-2.3,0-3.3,0c-1.1,0-2.2,0-3.3-0.1v-1.1c0-1.4,0-2.8,0.1-4.1c0.1-1.3,0.1-2.7,0.2-4.1c-0.3,0-0.5,0.1-0.8,0.1c-0.3,0-0.5,0-0.8,0c-0.3,0-0.5,0-0.8,0c-0.3,0-0.5-0.1-0.8-0.1c0.1,1.4,0.1,2.8,0.2,4.1c0.1,1.3,0.1,2.7,0.1,4.1v5.5c0,1.4,0,2.8-0.1,4.1c-0.1,1.4-0.1,2.7-0.2,4c0.5,0,1-0.1,1.6-0.1c0.6,0,1.1,0,1.6,0.1c-0.1-1.3-0.1-2.7-0.2-4c-0.1-1.4-0.1-2.7-0.1-4.1v-2.9c1.1,0,2.3,0,3.3,0c1.1,0,2.2,0,3.3,0c1.1,0,2.3,0,3.3,0c1.1,0,2.2,0,3.3,0v2.9c0,1.4,0,2.8-0.1,4.1c-0.1,1.4-0.1,2.7-0.2,4c0.5,0,1-0.1,1.6-0.1c0.6,0,1.1,0,1.6,0.1c-0.1-1.3-0.1-2.7-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0.1,0.4-0.2,0.8-0.4,1.3c0.6,0.4,1.2,0.8,2.1,1.2c0.8,0.4,1.9,0.5,3.2,0.5c1.2,0,2.3-0.2,3.3-0.5c1-0.4,1.8-0.8,2.5-1.5c0.7-0.6,1.2-1.4,1.5-2.3c0.4-0.9,0.5-1.8,0.5-2.8 C424.2,486.3,423.9,485.3,423.4,484.6z") ; this.text_r = this.text.append("path") .attr("fill", "#6E6E73") .attr("d", "M433.1,472.1c2.2,0,3.9,1.8,3.9,3.9c0,2.2-1.8,3.9-3.9,3.9c-2.2,0-3.9-1.8-3.9-3.9 C429.2,473.8,430.9,472.1,433.1,472.1z M433.1,479.5c1.9,0,3.5-1.6,3.5-3.5s-1.5-3.5-3.5-3.5s-3.5,1.6-3.5,3.5 S431.2,479.5,433.1,479.5z M431.7,475c0-0.5,0-1.1-0.1-1.5c0.3,0,0.6,0.1,0.9,0.1c0.3,0,0.6-0.1,0.9-0.1c0.8,0,1.4,0.4,1.4,1.1c0,0.9-1,1.3-1.5,1.4c0.6,0.7,1.5,2,1.9,2.4v0.1c-0.1,0-0.3-0.1-0.4-0.1c-0.1,0-0.3,0-0.4,0.1c-0.5-0.8-1.1-1.6-1.8-2.4h-0.4v0.8c0,0.5,0,1.1,0.1,1.6c-0.1,0-0.2-0.1-0.4-0.1c-0.1,0-0.2,0-0.4,0.1c0-0.5,0.1-1,0.1-1.5V475z M432.2,475.7c0.1,0,0.3,0,0.5,0c0.7,0,1.4-0.3,1.4-1.1c0-0.6-0.4-0.9-1-0.9c-0.3,0-0.5,0-0.8,0.1c0,0.3-0.1,0.7-0.1,1V475.7z") ; this.text_tm = this.text.append("path") .attr("fill", "#6E6E73") .attr("d", "M376.1,322.1c0-0.6,0-1.2,0-1.9c-0.6,0-1.4,0-1.9,0.1c0-0.1,0-0.2,0-0.3c0-0.1,0-0.2,0-0.3c0.8,0,1.5,0,2.3,0s1.5,0,2.3,0c0,0.1,0,0.2,0,0.3c0,0.1,0,0.2,0,0.3c-0.5-0.1-1.3-0.1-1.9-0.1c0,0.6,0,1.2,0,1.9v1.5c0,0.8,0,1.6,0.1,2.3c-0.2,0-0.3,0-0.4,0c-0.1,0-0.3,0-0.4,0c0-0.8,0.1-1.6,0.1-2.3V322.1zM380.5,319.7c0.8,1.7,1.7,3.3,2.6,5c0.4-0.7,1.8-3.3,2.7-5h0.1c0.3,2.3,0.5,4.3,0.7,6.3c-0.1,0-0.3,0-0.4,0c-0.1,0-0.3,0-0.4,0c-0.1-1.6-0.3-3.1-0.4-4.6h0c-0.8,1.5-1.6,3-2.4,4.6h-0.1c-0.7-1.5-1.5-3-2.3-4.6h0c-0.2,1.5-0.4,3.6-0.4,4.6c-0.1,0-0.2,0-0.3,0c-0.1,0-0.2,0-0.3,0c0.3-2,0.7-4.4,0.9-6.3H380.5z") ; const bbox = this.root.node().getBBox(); const centerX = bbox.x + bbox.width / 2; const centerY = bbox.y + bbox.height / 2; const scale = Math.min(this.width(), this.height()) / Math.max(bbox.width, bbox.height); this.root .attr("transform", "translate(" + (-centerX * scale) + "," + (-centerY * scale) + ")scale(" + scale + ")") ; } update(domNode, element) { super.update(domNode, element); switch (this.animation()) { case "none": break; case "accentInOut": this.logo.attr("opacity", 0); this.logo_accent.attr("transform", "translate(-400, 0)"); this.text.attr("opacity", 0); this.logo.transition().duration(1000) .attr("opacity", 1) ; this.logo_accent.transition().delay(500).duration(1500) .attr("transform", "translate(0, 0)") ; this.text.transition().delay(100).duration(1000) .attr("opacity", 1) ; this.logo_accent.transition().ease("back").delay(7000).duration(1500) .attr("transform", "translate(400, 0)") ; this.text.transition().delay(8400).duration(1000) .attr("opacity", 0) ; this.logo_accent.transition().delay(8500).duration(1000) .attr("opacity", 0) ; this.logo.transition().delay(8500).duration(1000) .attr("opacity", 0) ; break; case "accentIn": this.logo.attr("opacity", 0); this.logo_accent.attr("transform", "translate(-400, 0)"); this.text.attr("opacity", 0); this.logo.transition().duration(1000) .attr("opacity", 1) ; this.logo_accent.transition().delay(500).duration(1500) .attr("transform", "translate(0, 0)") ; this.text.transition().delay(100).duration(1000) .attr("opacity", 1) ; break; case "fade_in": this.logo.attr("opacity", 0); // this.logo_accent.attr("transform", "translate(-400, 0)"); this.logo_accent.attr("opacity", 0); this.text.attr("opacity", 0); this.logo.transition().duration(1000) .attr("opacity", 1) ; /* this.logo_accent.transition().delay(500).duration(1500) .attr("transform", "translate(0, 0)") ; */ this.logo_accent.transition().duration(1000) .attr("opacity", 1) ; this.text.transition().delay(100).duration(1000) .attr("opacity", 1) ; /* this.logo_accent.transition().ease("back").delay(7000).duration(1500) .attr("transform", "translate(400, 0)") ; */ /* this.text.transition().delay(8400).duration(1000) .attr("opacity", 0) ; this.logo_accent.transition().delay(8500).duration(1000) .attr("opacity", 0) ; this.logo.transition().delay(8500).duration(1000) .attr("opacity", 0) ; */ break; default: break; } } } HPCCBadge.prototype._class += " other_HPCCBadge"; export interface HPCCBadge { animation(): "none" | "accentInOut" | "accentIn" | "fade_in"; animation(_: "none" | "accentInOut" | "accentIn" | "fade_in"): this; } HPCCBadge.prototype.publish("animation", "none", "set", "Animation Style", ["none", "accentInOut", "accentIn", "fade_in"]);