@vscada/primitives 0.0.1

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.
Files changed (311) hide show
  1. package/dist/.tsbuildinfo +1 -0
  2. package/dist/annotation/index.d.ts +9 -0
  3. package/dist/annotation/index.d.ts.map +1 -0
  4. package/dist/annotation/off-page/index.d.ts +3 -0
  5. package/dist/annotation/off-page/index.d.ts.map +1 -0
  6. package/dist/annotation/off-page/off-page.stories.d.ts +7 -0
  7. package/dist/annotation/off-page/off-page.stories.d.ts.map +1 -0
  8. package/dist/annotation/story-kit.d.ts +28 -0
  9. package/dist/annotation/story-kit.d.ts.map +1 -0
  10. package/dist/annotation.js +44 -0
  11. package/dist/base-CByO_2mM.js +87 -0
  12. package/dist/bevel-DnmDNvyc.js +14 -0
  13. package/dist/chrome/bevel.d.ts +21 -0
  14. package/dist/chrome/bevel.d.ts.map +1 -0
  15. package/dist/controls/index.d.ts +4 -0
  16. package/dist/controls/index.d.ts.map +1 -0
  17. package/dist/controls/motor-starter-panel/index.d.ts +4 -0
  18. package/dist/controls/motor-starter-panel/index.d.ts.map +1 -0
  19. package/dist/controls/motor-starter-panel/motor-starter-panel.stories.d.ts +10 -0
  20. package/dist/controls/motor-starter-panel/motor-starter-panel.stories.d.ts.map +1 -0
  21. package/dist/controls/pushbutton/index.d.ts +4 -0
  22. package/dist/controls/pushbutton/index.d.ts.map +1 -0
  23. package/dist/controls/pushbutton/pushbutton.stories.d.ts +7 -0
  24. package/dist/controls/pushbutton/pushbutton.stories.d.ts.map +1 -0
  25. package/dist/controls/selector-switch/index.d.ts +4 -0
  26. package/dist/controls/selector-switch/index.d.ts.map +1 -0
  27. package/dist/controls/selector-switch/selector-switch.stories.d.ts +8 -0
  28. package/dist/controls/selector-switch/selector-switch.stories.d.ts.map +1 -0
  29. package/dist/controls/story-kit.d.ts +31 -0
  30. package/dist/controls/story-kit.d.ts.map +1 -0
  31. package/dist/controls.js +149 -0
  32. package/dist/conveyance/conveyor/conveyor.stories.d.ts +9 -0
  33. package/dist/conveyance/conveyor/conveyor.stories.d.ts.map +1 -0
  34. package/dist/conveyance/conveyor/index.d.ts +4 -0
  35. package/dist/conveyance/conveyor/index.d.ts.map +1 -0
  36. package/dist/conveyance/duct/duct.stories.d.ts +7 -0
  37. package/dist/conveyance/duct/duct.stories.d.ts.map +1 -0
  38. package/dist/conveyance/duct/index.d.ts +4 -0
  39. package/dist/conveyance/duct/index.d.ts.map +1 -0
  40. package/dist/conveyance/index.d.ts +5 -0
  41. package/dist/conveyance/index.d.ts.map +1 -0
  42. package/dist/conveyance/pipe/dash.d.ts +28 -0
  43. package/dist/conveyance/pipe/dash.d.ts.map +1 -0
  44. package/dist/conveyance/pipe/flange.d.ts +9 -0
  45. package/dist/conveyance/pipe/flange.d.ts.map +1 -0
  46. package/dist/conveyance/pipe/index.d.ts +3 -0
  47. package/dist/conveyance/pipe/index.d.ts.map +1 -0
  48. package/dist/conveyance/pipe/wave.d.ts +29 -0
  49. package/dist/conveyance/pipe/wave.d.ts.map +1 -0
  50. package/dist/conveyance/screw-feeder/index.d.ts +4 -0
  51. package/dist/conveyance/screw-feeder/index.d.ts.map +1 -0
  52. package/dist/conveyance/screw-feeder/screw-feeder.stories.d.ts +7 -0
  53. package/dist/conveyance/screw-feeder/screw-feeder.stories.d.ts.map +1 -0
  54. package/dist/conveyance/story-kit.d.ts +28 -0
  55. package/dist/conveyance/story-kit.d.ts.map +1 -0
  56. package/dist/conveyance.js +345 -0
  57. package/dist/electrical/base.d.ts +54 -0
  58. package/dist/electrical/base.d.ts.map +1 -0
  59. package/dist/electrical/breaker/breaker.stories.d.ts +9 -0
  60. package/dist/electrical/breaker/breaker.stories.d.ts.map +1 -0
  61. package/dist/electrical/breaker/index.d.ts +4 -0
  62. package/dist/electrical/breaker/index.d.ts.map +1 -0
  63. package/dist/electrical/busbar/busbar.stories.d.ts +8 -0
  64. package/dist/electrical/busbar/busbar.stories.d.ts.map +1 -0
  65. package/dist/electrical/busbar/index.d.ts +4 -0
  66. package/dist/electrical/busbar/index.d.ts.map +1 -0
  67. package/dist/electrical/generator/generator.stories.d.ts +9 -0
  68. package/dist/electrical/generator/generator.stories.d.ts.map +1 -0
  69. package/dist/electrical/generator/index.d.ts +4 -0
  70. package/dist/electrical/generator/index.d.ts.map +1 -0
  71. package/dist/electrical/index.d.ts +4 -0
  72. package/dist/electrical/index.d.ts.map +1 -0
  73. package/dist/electrical/single-line.stories.d.ts +15 -0
  74. package/dist/electrical/single-line.stories.d.ts.map +1 -0
  75. package/dist/electrical/story-kit.d.ts +34 -0
  76. package/dist/electrical/story-kit.d.ts.map +1 -0
  77. package/dist/electrical/transformer/index.d.ts +4 -0
  78. package/dist/electrical/transformer/index.d.ts.map +1 -0
  79. package/dist/electrical/transformer/transformer.stories.d.ts +8 -0
  80. package/dist/electrical/transformer/transformer.stories.d.ts.map +1 -0
  81. package/dist/electrical.js +214 -0
  82. package/dist/filtration/bag-filter/bag-filter.stories.d.ts +6 -0
  83. package/dist/filtration/bag-filter/bag-filter.stories.d.ts.map +1 -0
  84. package/dist/filtration/bag-filter/index.d.ts +3 -0
  85. package/dist/filtration/bag-filter/index.d.ts.map +1 -0
  86. package/dist/filtration/base.d.ts +25 -0
  87. package/dist/filtration/base.d.ts.map +1 -0
  88. package/dist/filtration/cyclone/cyclone.stories.d.ts +6 -0
  89. package/dist/filtration/cyclone/cyclone.stories.d.ts.map +1 -0
  90. package/dist/filtration/cyclone/index.d.ts +3 -0
  91. package/dist/filtration/cyclone/index.d.ts.map +1 -0
  92. package/dist/filtration/index.d.ts +9 -0
  93. package/dist/filtration/index.d.ts.map +1 -0
  94. package/dist/filtration/scrubber/index.d.ts +3 -0
  95. package/dist/filtration/scrubber/index.d.ts.map +1 -0
  96. package/dist/filtration/scrubber/scrubber.stories.d.ts +6 -0
  97. package/dist/filtration/scrubber/scrubber.stories.d.ts.map +1 -0
  98. package/dist/filtration/stack/index.d.ts +3 -0
  99. package/dist/filtration/stack/index.d.ts.map +1 -0
  100. package/dist/filtration/stack/stack.stories.d.ts +6 -0
  101. package/dist/filtration/stack/stack.stories.d.ts.map +1 -0
  102. package/dist/filtration/story-kit.d.ts +27 -0
  103. package/dist/filtration/story-kit.d.ts.map +1 -0
  104. package/dist/filtration.js +163 -0
  105. package/dist/gradients/pipe-gradient.d.ts +35 -0
  106. package/dist/gradients/pipe-gradient.d.ts.map +1 -0
  107. package/dist/heat/base.d.ts +28 -0
  108. package/dist/heat/base.d.ts.map +1 -0
  109. package/dist/heat/boiler/boiler.stories.d.ts +8 -0
  110. package/dist/heat/boiler/boiler.stories.d.ts.map +1 -0
  111. package/dist/heat/boiler/index.d.ts +3 -0
  112. package/dist/heat/boiler/index.d.ts.map +1 -0
  113. package/dist/heat/coil/coil.stories.d.ts +6 -0
  114. package/dist/heat/coil/coil.stories.d.ts.map +1 -0
  115. package/dist/heat/coil/index.d.ts +3 -0
  116. package/dist/heat/coil/index.d.ts.map +1 -0
  117. package/dist/heat/condenser/condenser.stories.d.ts +6 -0
  118. package/dist/heat/condenser/condenser.stories.d.ts.map +1 -0
  119. package/dist/heat/condenser/index.d.ts +3 -0
  120. package/dist/heat/condenser/index.d.ts.map +1 -0
  121. package/dist/heat/cooling-tower/cooling-tower.stories.d.ts +6 -0
  122. package/dist/heat/cooling-tower/cooling-tower.stories.d.ts.map +1 -0
  123. package/dist/heat/cooling-tower/index.d.ts +3 -0
  124. package/dist/heat/cooling-tower/index.d.ts.map +1 -0
  125. package/dist/heat/furnace/furnace.stories.d.ts +8 -0
  126. package/dist/heat/furnace/furnace.stories.d.ts.map +1 -0
  127. package/dist/heat/furnace/index.d.ts +3 -0
  128. package/dist/heat/furnace/index.d.ts.map +1 -0
  129. package/dist/heat/index.d.ts +9 -0
  130. package/dist/heat/index.d.ts.map +1 -0
  131. package/dist/heat/shell-tube/index.d.ts +3 -0
  132. package/dist/heat/shell-tube/index.d.ts.map +1 -0
  133. package/dist/heat/shell-tube/shell-tube.stories.d.ts +6 -0
  134. package/dist/heat/shell-tube/shell-tube.stories.d.ts.map +1 -0
  135. package/dist/heat/story-kit.d.ts +27 -0
  136. package/dist/heat/story-kit.d.ts.map +1 -0
  137. package/dist/heat.js +290 -0
  138. package/dist/index.d.ts +2 -0
  139. package/dist/index.d.ts.map +1 -0
  140. package/dist/index.js +4 -0
  141. package/dist/instruments/bargraph/bargraph.stories.d.ts +8 -0
  142. package/dist/instruments/bargraph/bargraph.stories.d.ts.map +1 -0
  143. package/dist/instruments/bargraph/index.d.ts +3 -0
  144. package/dist/instruments/bargraph/index.d.ts.map +1 -0
  145. package/dist/instruments/face.d.ts +15 -0
  146. package/dist/instruments/face.d.ts.map +1 -0
  147. package/dist/instruments/gauge-analog/gauge-analog.stories.d.ts +11 -0
  148. package/dist/instruments/gauge-analog/gauge-analog.stories.d.ts.map +1 -0
  149. package/dist/instruments/gauge-analog/index.d.ts +3 -0
  150. package/dist/instruments/gauge-analog/index.d.ts.map +1 -0
  151. package/dist/instruments/gauge-digital/gauge-digital.stories.d.ts +7 -0
  152. package/dist/instruments/gauge-digital/gauge-digital.stories.d.ts.map +1 -0
  153. package/dist/instruments/gauge-digital/index.d.ts +3 -0
  154. package/dist/instruments/gauge-digital/index.d.ts.map +1 -0
  155. package/dist/instruments/index.d.ts +10 -0
  156. package/dist/instruments/index.d.ts.map +1 -0
  157. package/dist/instruments/indicator-lamp/index.d.ts +3 -0
  158. package/dist/instruments/indicator-lamp/index.d.ts.map +1 -0
  159. package/dist/instruments/indicator-lamp/indicator-lamp.stories.d.ts +9 -0
  160. package/dist/instruments/indicator-lamp/indicator-lamp.stories.d.ts.map +1 -0
  161. package/dist/instruments/readout-panel/index.d.ts +3 -0
  162. package/dist/instruments/readout-panel/index.d.ts.map +1 -0
  163. package/dist/instruments/readout-panel/readout-panel.stories.d.ts +6 -0
  164. package/dist/instruments/readout-panel/readout-panel.stories.d.ts.map +1 -0
  165. package/dist/instruments/story-kit.d.ts +29 -0
  166. package/dist/instruments/story-kit.d.ts.map +1 -0
  167. package/dist/instruments/trend-mini/index.d.ts +3 -0
  168. package/dist/instruments/trend-mini/index.d.ts.map +1 -0
  169. package/dist/instruments/trend-mini/trend-mini.stories.d.ts +6 -0
  170. package/dist/instruments/trend-mini/trend-mini.stories.d.ts.map +1 -0
  171. package/dist/instruments.js +347 -0
  172. package/dist/motion/seamless-loop.d.ts +14 -0
  173. package/dist/motion/seamless-loop.d.ts.map +1 -0
  174. package/dist/pipe-gradient-B538FEvi.js +18 -0
  175. package/dist/readout/index.d.ts +3 -0
  176. package/dist/readout/index.d.ts.map +1 -0
  177. package/dist/readout/readout.stories.d.ts +8 -0
  178. package/dist/readout/readout.stories.d.ts.map +1 -0
  179. package/dist/readout/story-kit.d.ts +27 -0
  180. package/dist/readout/story-kit.d.ts.map +1 -0
  181. package/dist/readout.js +33 -0
  182. package/dist/recipe-BxxL1vV1.js +383 -0
  183. package/dist/rotating/compressor/compressor.stories.d.ts +28 -0
  184. package/dist/rotating/compressor/compressor.stories.d.ts.map +1 -0
  185. package/dist/rotating/compressor/index.d.ts +3 -0
  186. package/dist/rotating/compressor/index.d.ts.map +1 -0
  187. package/dist/rotating/fan-axial/fan-axial.stories.d.ts +31 -0
  188. package/dist/rotating/fan-axial/fan-axial.stories.d.ts.map +1 -0
  189. package/dist/rotating/fan-axial/index.d.ts +3 -0
  190. package/dist/rotating/fan-axial/index.d.ts.map +1 -0
  191. package/dist/rotating/fan-centrifugal/fan-centrifugal.stories.d.ts +31 -0
  192. package/dist/rotating/fan-centrifugal/fan-centrifugal.stories.d.ts.map +1 -0
  193. package/dist/rotating/fan-centrifugal/index.d.ts +3 -0
  194. package/dist/rotating/fan-centrifugal/index.d.ts.map +1 -0
  195. package/dist/rotating/index.d.ts +12 -0
  196. package/dist/rotating/index.d.ts.map +1 -0
  197. package/dist/rotating/motor/index.d.ts +3 -0
  198. package/dist/rotating/motor/index.d.ts.map +1 -0
  199. package/dist/rotating/motor/motor.stories.d.ts +28 -0
  200. package/dist/rotating/motor/motor.stories.d.ts.map +1 -0
  201. package/dist/rotating/pump-centrifugal/index.d.ts +3 -0
  202. package/dist/rotating/pump-centrifugal/index.d.ts.map +1 -0
  203. package/dist/rotating/pump-centrifugal/pump-centrifugal.stories.d.ts +29 -0
  204. package/dist/rotating/pump-centrifugal/pump-centrifugal.stories.d.ts.map +1 -0
  205. package/dist/rotating/pump-positive-displacement/index.d.ts +3 -0
  206. package/dist/rotating/pump-positive-displacement/index.d.ts.map +1 -0
  207. package/dist/rotating/pump-positive-displacement/pump-positive-displacement.stories.d.ts +28 -0
  208. package/dist/rotating/pump-positive-displacement/pump-positive-displacement.stories.d.ts.map +1 -0
  209. package/dist/rotating/story-kit.d.ts +65 -0
  210. package/dist/rotating/story-kit.d.ts.map +1 -0
  211. package/dist/rotating/turbine/index.d.ts +3 -0
  212. package/dist/rotating/turbine/index.d.ts.map +1 -0
  213. package/dist/rotating/turbine/turbine.stories.d.ts +29 -0
  214. package/dist/rotating/turbine/turbine.stories.d.ts.map +1 -0
  215. package/dist/rotating.js +513 -0
  216. package/dist/rotation-drive/base.d.ts +110 -0
  217. package/dist/rotation-drive/base.d.ts.map +1 -0
  218. package/dist/valves/ball/ball.stories.d.ts +26 -0
  219. package/dist/valves/ball/ball.stories.d.ts.map +1 -0
  220. package/dist/valves/ball/index.d.ts +3 -0
  221. package/dist/valves/ball/index.d.ts.map +1 -0
  222. package/dist/valves/base.d.ts +70 -0
  223. package/dist/valves/base.d.ts.map +1 -0
  224. package/dist/valves/butterfly/butterfly.stories.d.ts +26 -0
  225. package/dist/valves/butterfly/butterfly.stories.d.ts.map +1 -0
  226. package/dist/valves/butterfly/index.d.ts +3 -0
  227. package/dist/valves/butterfly/index.d.ts.map +1 -0
  228. package/dist/valves/check/check.stories.d.ts +25 -0
  229. package/dist/valves/check/check.stories.d.ts.map +1 -0
  230. package/dist/valves/check/index.d.ts +3 -0
  231. package/dist/valves/check/index.d.ts.map +1 -0
  232. package/dist/valves/control/control.stories.d.ts +26 -0
  233. package/dist/valves/control/control.stories.d.ts.map +1 -0
  234. package/dist/valves/control/index.d.ts +3 -0
  235. package/dist/valves/control/index.d.ts.map +1 -0
  236. package/dist/valves/gate/gate.stories.d.ts +26 -0
  237. package/dist/valves/gate/gate.stories.d.ts.map +1 -0
  238. package/dist/valves/gate/index.d.ts +3 -0
  239. package/dist/valves/gate/index.d.ts.map +1 -0
  240. package/dist/valves/index.d.ts +8 -0
  241. package/dist/valves/index.d.ts.map +1 -0
  242. package/dist/valves/relief/index.d.ts +3 -0
  243. package/dist/valves/relief/index.d.ts.map +1 -0
  244. package/dist/valves/relief/relief.stories.d.ts +26 -0
  245. package/dist/valves/relief/relief.stories.d.ts.map +1 -0
  246. package/dist/valves/story-kit.d.ts +54 -0
  247. package/dist/valves/story-kit.d.ts.map +1 -0
  248. package/dist/valves.js +424 -0
  249. package/dist/vapor/base.d.ts +42 -0
  250. package/dist/vapor/base.d.ts.map +1 -0
  251. package/dist/vapor/billow-layer.d.ts +33 -0
  252. package/dist/vapor/billow-layer.d.ts.map +1 -0
  253. package/dist/vapor/billow-path.d.ts +36 -0
  254. package/dist/vapor/billow-path.d.ts.map +1 -0
  255. package/dist/vapor/index.d.ts +8 -0
  256. package/dist/vapor/index.d.ts.map +1 -0
  257. package/dist/vapor/plume/index.d.ts +3 -0
  258. package/dist/vapor/plume/index.d.ts.map +1 -0
  259. package/dist/vapor/plume/plume.stories.d.ts +9 -0
  260. package/dist/vapor/plume/plume.stories.d.ts.map +1 -0
  261. package/dist/vapor/steam-vent/index.d.ts +3 -0
  262. package/dist/vapor/steam-vent/index.d.ts.map +1 -0
  263. package/dist/vapor/steam-vent/steam-vent.stories.d.ts +9 -0
  264. package/dist/vapor/steam-vent/steam-vent.stories.d.ts.map +1 -0
  265. package/dist/vapor/story-kit.d.ts +28 -0
  266. package/dist/vapor/story-kit.d.ts.map +1 -0
  267. package/dist/vapor.js +194 -0
  268. package/dist/vessel-body/hardware.d.ts +13 -0
  269. package/dist/vessel-body/hardware.d.ts.map +1 -0
  270. package/dist/vessel-body/liquid/dished-bottom.d.ts +33 -0
  271. package/dist/vessel-body/liquid/dished-bottom.d.ts.map +1 -0
  272. package/dist/vessel-body/liquid/index.d.ts +11 -0
  273. package/dist/vessel-body/liquid/index.d.ts.map +1 -0
  274. package/dist/vessel-body/liquid/wave-layer.d.ts +57 -0
  275. package/dist/vessel-body/liquid/wave-layer.d.ts.map +1 -0
  276. package/dist/vessel-body/liquid/wave-path.d.ts +45 -0
  277. package/dist/vessel-body/liquid/wave-path.d.ts.map +1 -0
  278. package/dist/vessel-body/recipe.d.ts +85 -0
  279. package/dist/vessel-body/recipe.d.ts.map +1 -0
  280. package/dist/vessel-body/shapes.d.ts +78 -0
  281. package/dist/vessel-body/shapes.d.ts.map +1 -0
  282. package/dist/vessels/drum/drum.stories.d.ts +33 -0
  283. package/dist/vessels/drum/drum.stories.d.ts.map +1 -0
  284. package/dist/vessels/drum/index.d.ts +3 -0
  285. package/dist/vessels/drum/index.d.ts.map +1 -0
  286. package/dist/vessels/hopper/hopper.stories.d.ts +39 -0
  287. package/dist/vessels/hopper/hopper.stories.d.ts.map +1 -0
  288. package/dist/vessels/hopper/index.d.ts +3 -0
  289. package/dist/vessels/hopper/index.d.ts.map +1 -0
  290. package/dist/vessels/index.d.ts +10 -0
  291. package/dist/vessels/index.d.ts.map +1 -0
  292. package/dist/vessels/silo/index.d.ts +3 -0
  293. package/dist/vessels/silo/index.d.ts.map +1 -0
  294. package/dist/vessels/silo/silo.stories.d.ts +33 -0
  295. package/dist/vessels/silo/silo.stories.d.ts.map +1 -0
  296. package/dist/vessels/story-kit.d.ts +83 -0
  297. package/dist/vessels/story-kit.d.ts.map +1 -0
  298. package/dist/vessels/tank-horizontal/index.d.ts +3 -0
  299. package/dist/vessels/tank-horizontal/index.d.ts.map +1 -0
  300. package/dist/vessels/tank-horizontal/tank-horizontal.stories.d.ts +33 -0
  301. package/dist/vessels/tank-horizontal/tank-horizontal.stories.d.ts.map +1 -0
  302. package/dist/vessels/tank-spherical/index.d.ts +3 -0
  303. package/dist/vessels/tank-spherical/index.d.ts.map +1 -0
  304. package/dist/vessels/tank-spherical/tank-spherical.stories.d.ts +33 -0
  305. package/dist/vessels/tank-spherical/tank-spherical.stories.d.ts.map +1 -0
  306. package/dist/vessels/tank-vertical/index.d.ts +3 -0
  307. package/dist/vessels/tank-vertical/index.d.ts.map +1 -0
  308. package/dist/vessels/tank-vertical/tank-vertical.stories.d.ts +47 -0
  309. package/dist/vessels/tank-vertical/tank-vertical.stories.d.ts.map +1 -0
  310. package/dist/vessels.js +198 -0
  311. package/package.json +76 -0
@@ -0,0 +1,28 @@
1
+ import { type RotatingStory, type RotatingStoryArgs, type RotatingStoryMeta } from '../story-kit';
2
+ export declare const meta: RotatingStoryMeta;
3
+ export declare const argTypes: {
4
+ readonly state: {
5
+ readonly control: {
6
+ readonly type: "select";
7
+ };
8
+ };
9
+ readonly speed: {
10
+ readonly control: {
11
+ readonly type: "range";
12
+ readonly min: 0;
13
+ readonly max: 1;
14
+ readonly step: 1;
15
+ };
16
+ };
17
+ readonly stale: {
18
+ readonly control: "boolean";
19
+ };
20
+ };
21
+ export declare const Default: RotatingStory;
22
+ export declare const Running: RotatingStory;
23
+ export declare const Starting: RotatingStory;
24
+ export declare const Tripped: RotatingStory;
25
+ export declare const StaleFreeze: RotatingStory;
26
+ export declare function render(container: HTMLElement, args?: Partial<RotatingStoryArgs>): import("../story-kit").MountedRotatingStory;
27
+ export default meta;
28
+ //# sourceMappingURL=pump-positive-displacement.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pump-positive-displacement.stories.d.ts","sourceRoot":"","sources":["../../../src/rotating/pump-positive-displacement/pump-positive-displacement.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgD,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEhJ,eAAO,MAAM,IAAI,EAAE,iBAOlB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;CAA2B,CAAC;AAEjD,eAAO,MAAM,OAAO,EAAE,aAAmC,CAAC;AAC1D,eAAO,MAAM,OAAO,EAAE,aAA2H,CAAC;AAClJ,eAAO,MAAM,QAAQ,EAAE,aAAsG,CAAC;AAC9H,eAAO,MAAM,OAAO,EAAE,aAAyF,CAAC;AAChH,eAAO,MAAM,WAAW,EAAE,aAA+F,CAAC;AAE1H,wBAAgB,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE,IAAI,GAAE,OAAO,CAAC,iBAAiB,CAAM,+CAEnF;AAED,eAAe,IAAI,CAAC"}
@@ -0,0 +1,65 @@
1
+ import { ScadaView, type Binding, type Renderer, type TimeSource } from '@vscada/core';
2
+ export interface RotatingStoryMeta {
3
+ title: string;
4
+ /** The registered primitive `type` — must be a key in `rotating.primitives`. */
5
+ elementType: string;
6
+ width: number;
7
+ height: number;
8
+ /** The element's state set, in `map` index order (e.g. pump's 5 states, a fan's 3). */
9
+ states: readonly string[];
10
+ /** The `rotate` binding's declared max (min is always 0) — e.g. a fan's RPM ceiling. */
11
+ maxSpeed: number;
12
+ /** Extra bindings appended verbatim (e.g. turbine's RPM/power `readout` binding sites). */
13
+ extraBindings?: Binding[];
14
+ }
15
+ export interface RotatingStoryArgs {
16
+ /** One of `meta.states`, by name. */
17
+ state: string;
18
+ /** 0..`meta.maxSpeed`. */
19
+ speed: number;
20
+ /** Reuses Story 1.6's freeze mechanism (`connectionState = 'disconnected'`). */
21
+ stale: boolean;
22
+ /** tag -> value, applied alongside state/speed (e.g. turbine's readout tags). */
23
+ extraValues?: Record<string, number>;
24
+ }
25
+ export declare function defaultRotatingStoryArgs(meta: RotatingStoryMeta): RotatingStoryArgs;
26
+ export declare const ROTATING_STORY_ARG_TYPES: {
27
+ readonly state: {
28
+ readonly control: {
29
+ readonly type: "select";
30
+ };
31
+ };
32
+ readonly speed: {
33
+ readonly control: {
34
+ readonly type: "range";
35
+ readonly min: 0;
36
+ readonly max: 1;
37
+ readonly step: 1;
38
+ };
39
+ };
40
+ readonly stale: {
41
+ readonly control: "boolean";
42
+ };
43
+ };
44
+ export interface RotatingStory {
45
+ name: string;
46
+ args?: Partial<RotatingStoryArgs>;
47
+ }
48
+ export interface MountedRotatingStory {
49
+ element: ScadaView;
50
+ setArgs(next: Partial<RotatingStoryArgs>): void;
51
+ teardown(): void;
52
+ }
53
+ export interface MountRotatingStoryOptions {
54
+ /** Real usage always gets the real WAAPI-backed `domRenderer`; tests inject a stub (jsdom/happy-dom has no `Element.animate`). */
55
+ renderer?: Renderer;
56
+ timeSource?: TimeSource;
57
+ }
58
+ /**
59
+ * Mounts one rotating-equipment primitive as a real `<scada-view>` inside
60
+ * `container`, driven by `args` (state select / speed sweep / stale
61
+ * freeze). Mirrors `mountVesselStory`'s shape exactly — per-primitive
62
+ * `.stories.ts` files only ever supply `meta` + named story `args`.
63
+ */
64
+ export declare function mountRotatingStory(container: HTMLElement, meta: RotatingStoryMeta, initialArgs?: Partial<RotatingStoryArgs>, options?: MountRotatingStoryOptions): MountedRotatingStory;
65
+ //# sourceMappingURL=story-kit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"story-kit.d.ts","sourceRoot":"","sources":["../../src/rotating/story-kit.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,SAAS,EACT,KAAK,OAAO,EACZ,KAAK,QAAQ,EAGb,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AAgEtB,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,gFAAgF;IAChF,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,uFAAuF;IACvF,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,wFAAwF;IACxF,QAAQ,EAAE,MAAM,CAAC;IACjB,2FAA2F;IAC3F,aAAa,CAAC,EAAE,OAAO,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAChC,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,gFAAgF;IAChF,KAAK,EAAE,OAAO,CAAC;IACf,iFAAiF;IACjF,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,iBAAiB,GAAG,iBAAiB,CAGnF;AAED,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;CAI3B,CAAC;AAwCX,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,SAAS,CAAC;IACnB,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC;IAChD,QAAQ,IAAI,IAAI,CAAC;CAClB;AAED,MAAM,WAAW,yBAAyB;IACxC,kIAAkI;IAClI,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,WAAW,EACtB,IAAI,EAAE,iBAAiB,EACvB,WAAW,GAAE,OAAO,CAAC,iBAAiB,CAAM,EAC5C,OAAO,GAAE,yBAA8B,GACtC,oBAAoB,CA6BtB"}
@@ -0,0 +1,3 @@
1
+ import type { PrimitiveGroup } from '@vscada/core';
2
+ export declare const rotating: PrimitiveGroup;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rotating/turbine/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA8B,cAAc,EAA+E,MAAM,cAAc,CAAC;AA0K5J,eAAO,MAAM,QAAQ,EAAE,cAGrB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { type RotatingStory, type RotatingStoryArgs, type RotatingStoryMeta } from '../story-kit';
2
+ /** §16 demo — RPM/power readout binding sites, on top of the standard state+rotate bindings every other rotating primitive declares. */
3
+ export declare const meta: RotatingStoryMeta;
4
+ export declare const argTypes: {
5
+ readonly state: {
6
+ readonly control: {
7
+ readonly type: "select";
8
+ };
9
+ };
10
+ readonly speed: {
11
+ readonly control: {
12
+ readonly type: "range";
13
+ readonly min: 0;
14
+ readonly max: 1;
15
+ readonly step: 1;
16
+ };
17
+ };
18
+ readonly stale: {
19
+ readonly control: "boolean";
20
+ };
21
+ };
22
+ export declare const Default: RotatingStory;
23
+ export declare const Running: RotatingStory;
24
+ export declare const Starting: RotatingStory;
25
+ export declare const Tripped: RotatingStory;
26
+ export declare const StaleFreeze: RotatingStory;
27
+ export declare function render(container: HTMLElement, args?: Partial<RotatingStoryArgs>): import("../story-kit").MountedRotatingStory;
28
+ export default meta;
29
+ //# sourceMappingURL=turbine.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"turbine.stories.d.ts","sourceRoot":"","sources":["../../../src/rotating/turbine/turbine.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgD,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEhJ,wIAAwI;AACxI,eAAO,MAAM,IAAI,EAAE,iBAWlB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;CAA2B,CAAC;AAEjD,eAAO,MAAM,OAAO,EAAE,aAAmC,CAAC;AAC1D,eAAO,MAAM,OAAO,EAAE,aAGrB,CAAC;AACF,eAAO,MAAM,QAAQ,EAAE,aAGtB,CAAC;AACF,eAAO,MAAM,OAAO,EAAE,aAGrB,CAAC;AACF,eAAO,MAAM,WAAW,EAAE,aAGzB,CAAC;AAEF,wBAAgB,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE,IAAI,GAAE,OAAO,CAAC,iBAAiB,CAAM,+CAEnF;AAED,eAAe,IAAI,CAAC"}
@@ -0,0 +1,513 @@
1
+ import { n as e, r as t, t as n } from "./base-CByO_2mM.js";
2
+ //#region src/rotating/pump-centrifugal/index.ts
3
+ var r = "http://www.w3.org/2000/svg", i = 1e3, a = 800, o = 4, s = "running", c = t(s, {
4
+ duration: 1800,
5
+ easing: "ease-out"
6
+ }, {
7
+ duration: 3500,
8
+ easing: "ease-in"
9
+ });
10
+ function l(t, n, l) {
11
+ let u = n.tokens.pump, d = document.createElementNS(r, "g");
12
+ if (d.setAttribute("data-element-id", t.id), d.setAttribute("class", "vscada-pump"), !u) return {
13
+ svg: d,
14
+ handles: {}
15
+ };
16
+ let { w: f, h: p } = t, m = document.createElementNS(r, "rect");
17
+ m.setAttribute("width", String(f)), m.setAttribute("height", String(p)), m.setAttribute("fill", u.bodyDeenergizedColor), d.appendChild(m);
18
+ let h = document.createElementNS(r, "g");
19
+ h.setAttribute("class", "vscada-pump-impeller"), h.style.transformOrigin = `${f / 2}px ${p / 2}px`;
20
+ for (let e = 0; e < 3; e++) {
21
+ let t = document.createElementNS(r, "rect");
22
+ t.setAttribute("x", String(f / 2 - 2)), t.setAttribute("y", String(p * .1)), t.setAttribute("width", "4"), t.setAttribute("height", String(p * .4)), t.setAttribute("fill", u.impellerColor), t.setAttribute("transform", `rotate(${e * 120} ${f / 2} ${p / 2})`), h.appendChild(t);
23
+ }
24
+ d.appendChild(h);
25
+ let g = l.animateTransform(h, ["rotate(0deg)", "rotate(360deg)"], i), _ = f * .85, v = p * .12, y = document.createElementNS(r, "circle");
26
+ y.setAttribute("class", "vscada-pump-lamp"), y.setAttribute("cx", String(_)), y.setAttribute("cy", String(v)), y.setAttribute("r", "6"), y.style.transformOrigin = `${_}px ${v}px`, d.appendChild(y);
27
+ let b = l.animateTransform(y, [
28
+ "scale(1)",
29
+ "scale(0.35)",
30
+ "scale(1)"
31
+ ], a);
32
+ b.pause();
33
+ let x = document.createElementNS(r, "text");
34
+ return x.setAttribute("class", "vscada-pump-label"), x.setAttribute("x", "0"), x.setAttribute("y", String(p + 14)), x.setAttribute("font-size", "10"), d.appendChild(x), {
35
+ svg: d,
36
+ handles: e({
37
+ element: t,
38
+ renderer: l,
39
+ tokens: u,
40
+ runningState: s,
41
+ defaultTransition: c,
42
+ visuals: {
43
+ body: m,
44
+ lamp: y,
45
+ label: x
46
+ },
47
+ rotationControls: [g],
48
+ blinkControl: b,
49
+ maxRate: o
50
+ }).handles
51
+ };
52
+ }
53
+ var u = Object.freeze({
54
+ group: "rotating",
55
+ primitives: Object.freeze({ "pump-centrifugal": { build: l } })
56
+ }), d = "http://www.w3.org/2000/svg", f = 1600, p = 800, m = 4, h = "running", g = t(h, {
57
+ duration: 1800,
58
+ easing: "ease-out"
59
+ }, {
60
+ duration: 3500,
61
+ easing: "ease-in"
62
+ });
63
+ function _(e, t, n, r) {
64
+ let i = document.createElementNS(d, "g");
65
+ i.style.transformOrigin = `${e}px ${t}px`;
66
+ for (let a = 0; a < 2; a++) {
67
+ let o = document.createElementNS(d, "rect");
68
+ o.setAttribute("x", String(e - n)), o.setAttribute("y", String(t - n * .35)), o.setAttribute("width", String(n * 2)), o.setAttribute("height", String(n * .7)), o.setAttribute("rx", String(n * .35)), o.setAttribute("fill", r), o.setAttribute("transform", `rotate(${a * 90} ${e} ${t})`), i.appendChild(o);
69
+ }
70
+ return i;
71
+ }
72
+ function v(t, n, r) {
73
+ let i = n.tokens.drivenEquipment, a = document.createElementNS(d, "g");
74
+ if (a.setAttribute("data-element-id", t.id), a.setAttribute("class", "vscada-pump-pd"), !i) return {
75
+ svg: a,
76
+ handles: {}
77
+ };
78
+ let { w: o, h: s } = t, c = document.createElementNS(d, "rect");
79
+ c.setAttribute("width", String(o)), c.setAttribute("height", String(s)), c.setAttribute("fill", i.bodyDeenergizedColor), a.appendChild(c);
80
+ let l = Math.min(o, s) * .16, u = _(o * .35, s * .55, l, i.rotorColor), v = _(o * .65, s * .55, l, i.rotorColor);
81
+ a.appendChild(u), a.appendChild(v);
82
+ let y = r.animateTransform(u, ["rotate(0deg)", "rotate(360deg)"], f), b = r.animateTransform(v, ["rotate(90deg)", "rotate(450deg)"], f), x = o * .85, S = s * .12, C = document.createElementNS(d, "circle");
83
+ C.setAttribute("class", "vscada-pump-pd-lamp"), C.setAttribute("cx", String(x)), C.setAttribute("cy", String(S)), C.setAttribute("r", "6"), C.style.transformOrigin = `${x}px ${S}px`, a.appendChild(C);
84
+ let w = r.animateTransform(C, [
85
+ "scale(1)",
86
+ "scale(0.35)",
87
+ "scale(1)"
88
+ ], p);
89
+ w.pause();
90
+ let T = document.createElementNS(d, "text");
91
+ return T.setAttribute("class", "vscada-pump-pd-label"), T.setAttribute("x", "0"), T.setAttribute("y", String(s + 14)), T.setAttribute("font-size", "10"), a.appendChild(T), {
92
+ svg: a,
93
+ handles: e({
94
+ element: t,
95
+ renderer: r,
96
+ tokens: i,
97
+ runningState: h,
98
+ defaultTransition: g,
99
+ visuals: {
100
+ body: c,
101
+ lamp: C,
102
+ label: T
103
+ },
104
+ rotationControls: [y, b],
105
+ blinkControl: w,
106
+ maxRate: m
107
+ }).handles
108
+ };
109
+ }
110
+ var y = Object.freeze({
111
+ group: "rotating",
112
+ primitives: Object.freeze({ "pump-positive-displacement": { build: v } })
113
+ }), b = "http://www.w3.org/2000/svg", x = 700, S = 800, C = 4, w = "running", T = .05, E = t(w, {
114
+ duration: 1800,
115
+ easing: "ease-out"
116
+ }, {
117
+ duration: 3500,
118
+ easing: "ease-in"
119
+ });
120
+ function D(e, t, n, r, i) {
121
+ let a = document.createElementNS(b, "g");
122
+ a.style.transformOrigin = `${e}px ${t}px`;
123
+ let o = document.createElementNS(b, "circle");
124
+ o.setAttribute("cx", String(e)), o.setAttribute("cy", String(t)), o.setAttribute("r", String(n)), o.setAttribute("fill", i), a.appendChild(o);
125
+ let s = n * 1.1, c = n * .5;
126
+ for (let o = 0; o < 4; o++) {
127
+ let l = document.createElementNS(b, "polygon"), u = [
128
+ [e - s / 2, t - n],
129
+ [e + s / 2, t - n],
130
+ [e + c / 2, t - n - r],
131
+ [e - c / 2, t - n - r]
132
+ ].map((e) => e.join(",")).join(" ");
133
+ l.setAttribute("points", u), l.setAttribute("fill", i), l.setAttribute("transform", `rotate(${o * 90} ${e} ${t})`), a.appendChild(l);
134
+ }
135
+ return a;
136
+ }
137
+ function ee(e, t, n, r, i, a) {
138
+ let o = document.createElementNS(b, "g");
139
+ o.style.transformOrigin = `${e}px ${t}px`;
140
+ let s = document.createElementNS(b, "circle");
141
+ s.setAttribute("cx", String(e)), s.setAttribute("cy", String(t)), s.setAttribute("r", String(n)), s.setAttribute("fill", r), s.setAttribute("opacity", String(i)), o.appendChild(s);
142
+ let c = document.createElementNS(b, "g");
143
+ c.style.transformOrigin = `${e}px ${t}px`;
144
+ let l = document.createElementNS(b, "line");
145
+ return l.setAttribute("x1", String(e)), l.setAttribute("y1", String(t - n * .15)), l.setAttribute("x2", String(e)), l.setAttribute("y2", String(t - n * .95)), l.setAttribute("stroke", r), l.setAttribute("stroke-width", String(a)), l.setAttribute("opacity", String(Math.min(i * 1.5, 1))), c.appendChild(l), o.appendChild(c), {
146
+ group: o,
147
+ streak: c
148
+ };
149
+ }
150
+ function O(t, r, i) {
151
+ let a = r.tokens.fan, o = document.createElementNS(b, "g");
152
+ if (o.setAttribute("data-element-id", t.id), o.setAttribute("class", "vscada-fan-axial"), !a) return {
153
+ svg: o,
154
+ handles: {}
155
+ };
156
+ let { w: s, h: c } = t, l = s / 2, u = c / 2, d = Math.min(s, c) * .4, f = document.createElementNS(b, "rect");
157
+ f.setAttribute("width", String(s)), f.setAttribute("height", String(c)), f.setAttribute("fill", a.bodyDeenergizedColor), o.appendChild(f);
158
+ let p = D(l, u, d * .22, d * .85, a.bladeColor);
159
+ p.setAttribute("class", "vscada-fan-axial-blades"), o.appendChild(p);
160
+ let m = i.animateTransform(p, ["rotate(0deg)", "rotate(360deg)"], x), { group: h, streak: g } = ee(l, u, d, a.blurredDiscColor, a.blurredDiscOpacity, a.strokeWidth ?? 2);
161
+ h.setAttribute("class", "vscada-fan-axial-blur"), o.appendChild(h);
162
+ let _ = i.animateTransform(g, ["rotate(0deg)", "rotate(360deg)"], x);
163
+ i.setAttr(p, "opacity", "1"), i.setAttr(h, "opacity", "0");
164
+ let v = s * .85, y = c * .12, O = document.createElementNS(b, "circle");
165
+ O.setAttribute("class", "vscada-fan-axial-lamp"), O.setAttribute("cx", String(v)), O.setAttribute("cy", String(y)), O.setAttribute("r", "6"), O.style.transformOrigin = `${v}px ${y}px`, o.appendChild(O);
166
+ let k = i.animateTransform(O, [
167
+ "scale(1)",
168
+ "scale(0.35)",
169
+ "scale(1)"
170
+ ], S);
171
+ k.pause();
172
+ let A = document.createElementNS(b, "text");
173
+ A.setAttribute("class", "vscada-fan-axial-label"), A.setAttribute("x", "0"), A.setAttribute("y", String(c + 14)), A.setAttribute("font-size", "10"), o.appendChild(A);
174
+ let j = new n(a.blurThresholdRpm, T), M = !1;
175
+ return {
176
+ svg: o,
177
+ handles: e({
178
+ element: t,
179
+ renderer: i,
180
+ tokens: a,
181
+ runningState: w,
182
+ defaultTransition: E,
183
+ visuals: {
184
+ body: f,
185
+ lamp: O,
186
+ label: A
187
+ },
188
+ rotationControls: [m, _],
189
+ blinkControl: k,
190
+ maxRate: C,
191
+ onSpeedRawValue(e) {
192
+ let t = j.update(e);
193
+ t !== M && (M = t, i.setAttr(p, "opacity", t ? "0" : "1"), i.setAttr(h, "opacity", t ? "1" : "0"));
194
+ }
195
+ }).handles
196
+ };
197
+ }
198
+ var k = Object.freeze({
199
+ group: "rotating",
200
+ primitives: Object.freeze({ "fan-axial": { build: O } })
201
+ }), A = "http://www.w3.org/2000/svg", j = 900, M = 800, N = 4, P = "running", te = .05, ne = t(P, {
202
+ duration: 1800,
203
+ easing: "ease-out"
204
+ }, {
205
+ duration: 3500,
206
+ easing: "ease-in"
207
+ });
208
+ function re(e, t, n, r, i) {
209
+ let a = document.createElementNS(A, "g");
210
+ a.style.transformOrigin = `${e}px ${t}px`;
211
+ let o = document.createElementNS(A, "circle");
212
+ o.setAttribute("cx", String(e)), o.setAttribute("cy", String(t)), o.setAttribute("r", String(n * .55)), o.setAttribute("fill", "none"), o.setAttribute("stroke", i), o.setAttribute("stroke-width", String(n * .08)), a.appendChild(o);
213
+ let s = n * .4, c = n * .12;
214
+ for (let o = 0; o < r; o++) {
215
+ let l = 360 / r * o, u = document.createElementNS(A, "rect");
216
+ u.setAttribute("x", String(e - c / 2)), u.setAttribute("y", String(t - n)), u.setAttribute("width", String(c)), u.setAttribute("height", String(s)), u.setAttribute("fill", i), u.setAttribute("transform", `rotate(${l + 12} ${e} ${t})`), a.appendChild(u);
217
+ }
218
+ return a;
219
+ }
220
+ function F(e, t, n, r, i, a) {
221
+ let o = document.createElementNS(A, "g");
222
+ o.style.transformOrigin = `${e}px ${t}px`;
223
+ let s = document.createElementNS(A, "circle");
224
+ s.setAttribute("cx", String(e)), s.setAttribute("cy", String(t)), s.setAttribute("r", String(n)), s.setAttribute("fill", r), s.setAttribute("opacity", String(i)), o.appendChild(s);
225
+ let c = document.createElementNS(A, "g");
226
+ c.style.transformOrigin = `${e}px ${t}px`;
227
+ let l = document.createElementNS(A, "line");
228
+ return l.setAttribute("x1", String(e)), l.setAttribute("y1", String(t - n * .15)), l.setAttribute("x2", String(e)), l.setAttribute("y2", String(t - n * .95)), l.setAttribute("stroke", r), l.setAttribute("stroke-width", String(a)), l.setAttribute("opacity", String(Math.min(i * 1.5, 1))), c.appendChild(l), o.appendChild(c), {
229
+ group: o,
230
+ streak: c
231
+ };
232
+ }
233
+ function I(t, r, i) {
234
+ let a = r.tokens.fan, o = document.createElementNS(A, "g");
235
+ if (o.setAttribute("data-element-id", t.id), o.setAttribute("class", "vscada-fan-centrifugal"), !a) return {
236
+ svg: o,
237
+ handles: {}
238
+ };
239
+ let { w: s, h: c } = t, l = s / 2, u = c / 2, d = Math.min(s, c) * .4, f = document.createElementNS(A, "rect");
240
+ f.setAttribute("width", String(s)), f.setAttribute("height", String(c)), f.setAttribute("fill", a.bodyDeenergizedColor), o.appendChild(f);
241
+ let p = re(l, u, d, 8, a.bladeColor);
242
+ p.setAttribute("class", "vscada-fan-centrifugal-blades"), o.appendChild(p);
243
+ let m = i.animateTransform(p, ["rotate(0deg)", "rotate(360deg)"], j), { group: h, streak: g } = F(l, u, d, a.blurredDiscColor, a.blurredDiscOpacity, a.strokeWidth ?? 2);
244
+ h.setAttribute("class", "vscada-fan-centrifugal-blur"), o.appendChild(h);
245
+ let _ = i.animateTransform(g, ["rotate(0deg)", "rotate(360deg)"], j);
246
+ i.setAttr(p, "opacity", "1"), i.setAttr(h, "opacity", "0");
247
+ let v = s * .85, y = c * .12, b = document.createElementNS(A, "circle");
248
+ b.setAttribute("class", "vscada-fan-centrifugal-lamp"), b.setAttribute("cx", String(v)), b.setAttribute("cy", String(y)), b.setAttribute("r", "6"), b.style.transformOrigin = `${v}px ${y}px`, o.appendChild(b);
249
+ let x = i.animateTransform(b, [
250
+ "scale(1)",
251
+ "scale(0.35)",
252
+ "scale(1)"
253
+ ], M);
254
+ x.pause();
255
+ let S = document.createElementNS(A, "text");
256
+ S.setAttribute("class", "vscada-fan-centrifugal-label"), S.setAttribute("x", "0"), S.setAttribute("y", String(c + 14)), S.setAttribute("font-size", "10"), o.appendChild(S);
257
+ let C = new n(a.blurThresholdRpm, te), w = !1;
258
+ return {
259
+ svg: o,
260
+ handles: e({
261
+ element: t,
262
+ renderer: i,
263
+ tokens: a,
264
+ runningState: P,
265
+ defaultTransition: ne,
266
+ visuals: {
267
+ body: f,
268
+ lamp: b,
269
+ label: S
270
+ },
271
+ rotationControls: [m, _],
272
+ blinkControl: x,
273
+ maxRate: N,
274
+ onSpeedRawValue(e) {
275
+ let t = C.update(e);
276
+ t !== w && (w = t, i.setAttr(p, "opacity", t ? "0" : "1"), i.setAttr(h, "opacity", t ? "1" : "0"));
277
+ }
278
+ }).handles
279
+ };
280
+ }
281
+ var L = Object.freeze({
282
+ group: "rotating",
283
+ primitives: Object.freeze({ "fan-centrifugal": { build: I } })
284
+ }), R = "http://www.w3.org/2000/svg", z = 600, B = 800, V = 4, H = "running", U = t(H, {
285
+ duration: 1800,
286
+ easing: "ease-out"
287
+ }, {
288
+ duration: 3500,
289
+ easing: "ease-in"
290
+ });
291
+ function W(e, t, n, r) {
292
+ let i = document.createElementNS(R, "g");
293
+ i.style.transformOrigin = `${e}px ${t}px`;
294
+ let a = document.createElementNS(R, "circle");
295
+ a.setAttribute("cx", String(e)), a.setAttribute("cy", String(t)), a.setAttribute("r", String(n * .3)), a.setAttribute("fill", r), i.appendChild(a);
296
+ for (let a = 0; a < 4; a++) {
297
+ let o = document.createElementNS(R, "rect");
298
+ o.setAttribute("x", String(e - n * .1)), o.setAttribute("y", String(t - n)), o.setAttribute("width", String(n * .2)), o.setAttribute("height", String(n)), o.setAttribute("fill", r), o.setAttribute("transform", `rotate(${a * 90} ${e} ${t})`), i.appendChild(o);
299
+ }
300
+ return i;
301
+ }
302
+ function G(t, n, r) {
303
+ let i = n.tokens.drivenEquipment, a = document.createElementNS(R, "g");
304
+ if (a.setAttribute("data-element-id", t.id), a.setAttribute("class", "vscada-compressor"), !i) return {
305
+ svg: a,
306
+ handles: {}
307
+ };
308
+ let { w: o, h: s } = t, c = document.createElementNS(R, "rect");
309
+ c.setAttribute("width", String(o)), c.setAttribute("height", String(s)), c.setAttribute("fill", i.bodyDeenergizedColor), a.appendChild(c);
310
+ let l = document.createElementNS(R, "rect"), u = Math.min(o, s) * .12;
311
+ l.setAttribute("x", String(u)), l.setAttribute("y", String(u)), l.setAttribute("width", String(o - u * 2)), l.setAttribute("height", String(s - u * 2)), l.setAttribute("fill", "none"), l.setAttribute("stroke", i.rotorColor), l.setAttribute("stroke-width", String(i.strokeWidth ?? 1)), l.setAttribute("opacity", "0.5"), a.appendChild(l);
312
+ let d = W(o / 2, s / 2, Math.min(o, s) * .22, i.rotorColor);
313
+ a.appendChild(d);
314
+ let f = r.animateTransform(d, ["rotate(0deg)", "rotate(360deg)"], z), p = o * .85, m = s * .12, h = document.createElementNS(R, "circle");
315
+ h.setAttribute("class", "vscada-compressor-lamp"), h.setAttribute("cx", String(p)), h.setAttribute("cy", String(m)), h.setAttribute("r", "6"), h.style.transformOrigin = `${p}px ${m}px`, a.appendChild(h);
316
+ let g = r.animateTransform(h, [
317
+ "scale(1)",
318
+ "scale(0.35)",
319
+ "scale(1)"
320
+ ], B);
321
+ g.pause();
322
+ let _ = document.createElementNS(R, "text");
323
+ return _.setAttribute("class", "vscada-compressor-label"), _.setAttribute("x", "0"), _.setAttribute("y", String(s + 14)), _.setAttribute("font-size", "10"), a.appendChild(_), {
324
+ svg: a,
325
+ handles: e({
326
+ element: t,
327
+ renderer: r,
328
+ tokens: i,
329
+ runningState: H,
330
+ defaultTransition: U,
331
+ visuals: {
332
+ body: c,
333
+ lamp: h,
334
+ label: _
335
+ },
336
+ rotationControls: [f],
337
+ blinkControl: g,
338
+ maxRate: V
339
+ }).handles
340
+ };
341
+ }
342
+ var K = Object.freeze({
343
+ group: "rotating",
344
+ primitives: Object.freeze({ compressor: { build: G } })
345
+ }), q = "http://www.w3.org/2000/svg", J = 500, Y = 800, ie = 4, X = "running", ae = t(X, {
346
+ duration: 1800,
347
+ easing: "ease-out"
348
+ }, {
349
+ duration: 3500,
350
+ easing: "ease-in"
351
+ });
352
+ function oe(e, t) {
353
+ if (typeof e != "number") return String(e);
354
+ let n = e.toFixed(t.decimals);
355
+ return t.unit.length > 0 ? `${n} ${t.unit}` : n;
356
+ }
357
+ function se(e, t, n, r) {
358
+ let i = document.createElementNS(q, "g");
359
+ i.style.transformOrigin = `${e}px ${t}px`;
360
+ let a = document.createElementNS(q, "circle");
361
+ a.setAttribute("cx", String(e)), a.setAttribute("cy", String(t)), a.setAttribute("r", String(n * .3)), a.setAttribute("fill", r), i.appendChild(a);
362
+ for (let a = 0; a < 4; a++) {
363
+ let o = document.createElementNS(q, "rect");
364
+ o.setAttribute("x", String(e - n * .1)), o.setAttribute("y", String(t - n)), o.setAttribute("width", String(n * .2)), o.setAttribute("height", String(n)), o.setAttribute("fill", r), o.setAttribute("transform", `rotate(${a * 90} ${e} ${t})`), i.appendChild(o);
365
+ }
366
+ return i;
367
+ }
368
+ function ce(t, n, r) {
369
+ let i = n.tokens.drivenEquipment, a = document.createElementNS(q, "g");
370
+ if (a.setAttribute("data-element-id", t.id), a.setAttribute("class", "vscada-turbine"), !i) return {
371
+ svg: a,
372
+ handles: {}
373
+ };
374
+ let { w: o, h: s } = t, c = document.createElementNS(q, "rect");
375
+ c.setAttribute("width", String(o)), c.setAttribute("height", String(s)), c.setAttribute("fill", i.bodyDeenergizedColor), a.appendChild(c);
376
+ let l = Math.min(o, s) * .12, u = document.createElementNS(q, "rect");
377
+ u.setAttribute("x", String(l)), u.setAttribute("y", String(l)), u.setAttribute("width", String(o - l * 2)), u.setAttribute("height", String(s - l * 2)), u.setAttribute("fill", "none"), u.setAttribute("stroke", i.rotorColor), u.setAttribute("stroke-width", String(i.strokeWidth ?? 1)), u.setAttribute("opacity", "0.5"), a.appendChild(u);
378
+ let d = se(o / 2, s / 2, Math.min(o, s) * .22, i.rotorColor);
379
+ a.appendChild(d);
380
+ let f = r.animateTransform(d, ["rotate(0deg)", "rotate(360deg)"], J), p = o * .85, m = s * .12, h = document.createElementNS(q, "circle");
381
+ h.setAttribute("class", "vscada-turbine-lamp"), h.setAttribute("cx", String(p)), h.setAttribute("cy", String(m)), h.setAttribute("r", "6"), h.style.transformOrigin = `${p}px ${m}px`, a.appendChild(h);
382
+ let g = r.animateTransform(h, [
383
+ "scale(1)",
384
+ "scale(0.35)",
385
+ "scale(1)"
386
+ ], Y);
387
+ g.pause();
388
+ let _ = document.createElementNS(q, "text");
389
+ _.setAttribute("class", "vscada-turbine-label"), _.setAttribute("x", "0"), _.setAttribute("y", String(s + 14)), _.setAttribute("font-size", "10"), a.appendChild(_);
390
+ let v = { ...e({
391
+ element: t,
392
+ renderer: r,
393
+ tokens: i,
394
+ runningState: X,
395
+ defaultTransition: ae,
396
+ visuals: {
397
+ body: c,
398
+ lamp: h,
399
+ label: _
400
+ },
401
+ rotationControls: [f],
402
+ blinkControl: g,
403
+ maxRate: ie
404
+ }).handles };
405
+ return t.bindings.filter((e) => e.type === "readout").forEach((e, t) => {
406
+ let n = document.createElementNS(q, "text");
407
+ n.setAttribute("class", "vscada-turbine-readout"), n.setAttribute("data-tag", e.tag), n.setAttribute("x", "0"), n.setAttribute("y", String(s + 28 + t * 14)), n.setAttribute("font-size", "10"), a.appendChild(n);
408
+ let i = (t) => {
409
+ r.setText(n, oe(t, e));
410
+ }, o = v[e.tag];
411
+ if (o && (o.kind === "numeric" || o.kind === "text" || o.kind === "state")) {
412
+ let t = o.write.bind(o);
413
+ v[e.tag] = {
414
+ kind: o.kind,
415
+ write(e, n, r) {
416
+ t(e, n, r), i(n);
417
+ }
418
+ };
419
+ } else {
420
+ let t = {
421
+ kind: "text",
422
+ write: (e, t) => i(t)
423
+ };
424
+ v[e.tag] = t;
425
+ }
426
+ }), {
427
+ svg: a,
428
+ handles: v
429
+ };
430
+ }
431
+ var Z = Object.freeze({
432
+ group: "rotating",
433
+ primitives: Object.freeze({ turbine: { build: ce } })
434
+ }), Q = "http://www.w3.org/2000/svg", le = 500, ue = 800, de = 4, $ = "running", fe = t($, {
435
+ duration: 1800,
436
+ easing: "ease-out"
437
+ }, {
438
+ duration: 3500,
439
+ easing: "ease-in"
440
+ });
441
+ function pe(e, t, n, r) {
442
+ let i = document.createElementNS(Q, "g");
443
+ i.style.transformOrigin = `${e}px ${t}px`;
444
+ let a = document.createElementNS(Q, "circle");
445
+ a.setAttribute("cx", String(e)), a.setAttribute("cy", String(t)), a.setAttribute("r", String(n * .25)), a.setAttribute("fill", r), i.appendChild(a);
446
+ for (let a = 0; a < 3; a++) {
447
+ let o = document.createElementNS(Q, "polygon"), s = [
448
+ [e - n * .12, t],
449
+ [e + n * .12, t],
450
+ [e + n * .05, t - n],
451
+ [e - n * .05, t - n]
452
+ ].map((e) => e.join(",")).join(" ");
453
+ o.setAttribute("points", s), o.setAttribute("fill", r), o.setAttribute("transform", `rotate(${a * 120} ${e} ${t})`), i.appendChild(o);
454
+ }
455
+ return i;
456
+ }
457
+ function me(t, n, r) {
458
+ let i = n.tokens.drivenEquipment, a = document.createElementNS(Q, "g");
459
+ if (a.setAttribute("data-element-id", t.id), a.setAttribute("class", "vscada-motor"), !i) return {
460
+ svg: a,
461
+ handles: {}
462
+ };
463
+ let { w: o, h: s } = t, c = o * .65, l = document.createElementNS(Q, "rect");
464
+ l.setAttribute("width", String(c)), l.setAttribute("height", String(s)), l.setAttribute("fill", i.bodyDeenergizedColor), a.appendChild(l);
465
+ let u = document.createElementNS(Q, "line");
466
+ u.setAttribute("class", "vscada-motor-shaft"), u.setAttribute("x1", String(c)), u.setAttribute("y1", String(s / 2)), u.setAttribute("x2", String(o * .82)), u.setAttribute("y2", String(s / 2)), u.setAttribute("stroke", i.rotorColor), u.setAttribute("stroke-width", String(Math.max(s * .06, i.strokeWidth ?? 1))), a.appendChild(u);
467
+ let d = pe(o * .15, s / 2, Math.min(c, s) * .3, i.rotorColor);
468
+ d.setAttribute("class", "vscada-motor-cowl-fan"), a.appendChild(d);
469
+ let f = r.animateTransform(d, ["rotate(0deg)", "rotate(360deg)"], le), p = c * .85, m = s * .14, h = document.createElementNS(Q, "circle");
470
+ h.setAttribute("class", "vscada-motor-lamp"), h.setAttribute("cx", String(p)), h.setAttribute("cy", String(m)), h.setAttribute("r", "6"), h.style.transformOrigin = `${p}px ${m}px`, a.appendChild(h);
471
+ let g = r.animateTransform(h, [
472
+ "scale(1)",
473
+ "scale(0.35)",
474
+ "scale(1)"
475
+ ], ue);
476
+ g.pause();
477
+ let _ = document.createElementNS(Q, "text");
478
+ return _.setAttribute("class", "vscada-motor-label"), _.setAttribute("x", "0"), _.setAttribute("y", String(s + 14)), _.setAttribute("font-size", "10"), a.appendChild(_), {
479
+ svg: a,
480
+ handles: e({
481
+ element: t,
482
+ renderer: r,
483
+ tokens: i,
484
+ runningState: $,
485
+ defaultTransition: fe,
486
+ visuals: {
487
+ body: l,
488
+ lamp: h,
489
+ label: _
490
+ },
491
+ rotationControls: [f],
492
+ blinkControl: g,
493
+ maxRate: de
494
+ }).handles
495
+ };
496
+ }
497
+ var he = Object.freeze({
498
+ group: "rotating",
499
+ primitives: Object.freeze({ motor: { build: me } })
500
+ }), ge = Object.freeze({
501
+ group: "rotating",
502
+ primitives: Object.freeze({
503
+ ...u.primitives,
504
+ ...y.primitives,
505
+ ...k.primitives,
506
+ ...L.primitives,
507
+ ...K.primitives,
508
+ ...Z.primitives,
509
+ ...he.primitives
510
+ })
511
+ });
512
+ //#endregion
513
+ export { ge as rotating };