@zenfg/inspector 0.1.0-beta.3 → 0.1.0

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 (172) hide show
  1. package/GUIDE.md +182 -0
  2. package/README.md +61 -89
  3. package/THEMING.md +124 -0
  4. package/dist/FrameGraphInspector.d.ts +23 -4
  5. package/dist/FrameGraphInspector.d.ts.map +1 -1
  6. package/dist/FrameGraphInspector.js +137 -29
  7. package/dist/FrameGraphInspector.js.map +1 -1
  8. package/dist/capture.d.ts +5 -0
  9. package/dist/capture.d.ts.map +1 -0
  10. package/dist/capture.js +2 -0
  11. package/dist/capture.js.map +1 -0
  12. package/dist/debugCaptureModel.d.ts +19 -0
  13. package/dist/debugCaptureModel.d.ts.map +1 -1
  14. package/dist/debugCaptureModel.js +36 -2
  15. package/dist/debugCaptureModel.js.map +1 -1
  16. package/dist/index.d.ts +2 -0
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js.map +1 -1
  19. package/dist/panelAliasAnalysis.d.ts +1 -0
  20. package/dist/panelAliasAnalysis.d.ts.map +1 -1
  21. package/dist/panelAliasAnalysis.js +23 -54
  22. package/dist/panelAliasAnalysis.js.map +1 -1
  23. package/dist/panelCytoscapeGraphRenderer.d.ts +15 -2
  24. package/dist/panelCytoscapeGraphRenderer.d.ts.map +1 -1
  25. package/dist/panelCytoscapeGraphRenderer.js +145 -23
  26. package/dist/panelCytoscapeGraphRenderer.js.map +1 -1
  27. package/dist/panelDetailLayout.d.ts +27 -0
  28. package/dist/panelDetailLayout.d.ts.map +1 -0
  29. package/dist/panelDetailLayout.js +174 -0
  30. package/dist/panelDetailLayout.js.map +1 -0
  31. package/dist/panelDetailStyles.d.ts +2 -0
  32. package/dist/panelDetailStyles.d.ts.map +1 -0
  33. package/dist/panelDetailStyles.js +57 -0
  34. package/dist/panelDetailStyles.js.map +1 -0
  35. package/dist/panelDiagnosticsView.d.ts +10 -1
  36. package/dist/panelDiagnosticsView.d.ts.map +1 -1
  37. package/dist/panelDiagnosticsView.js +166 -57
  38. package/dist/panelDiagnosticsView.js.map +1 -1
  39. package/dist/panelDomHelpers.d.ts.map +1 -1
  40. package/dist/panelDomHelpers.js +6 -5
  41. package/dist/panelDomHelpers.js.map +1 -1
  42. package/dist/panelGraphLayout.d.ts +3 -2
  43. package/dist/panelGraphLayout.d.ts.map +1 -1
  44. package/dist/panelGraphLayout.js +6 -5
  45. package/dist/panelGraphLayout.js.map +1 -1
  46. package/dist/panelGraphRenderer.d.ts +10 -0
  47. package/dist/panelGraphRenderer.d.ts.map +1 -1
  48. package/dist/panelGraphRenderer.js.map +1 -1
  49. package/dist/panelGraphScene.d.ts +1 -0
  50. package/dist/panelGraphScene.d.ts.map +1 -1
  51. package/dist/panelGraphScene.js +69 -32
  52. package/dist/panelGraphScene.js.map +1 -1
  53. package/dist/panelGraphSearch.d.ts +16 -0
  54. package/dist/panelGraphSearch.d.ts.map +1 -0
  55. package/dist/panelGraphSearch.js +93 -0
  56. package/dist/panelGraphSearch.js.map +1 -0
  57. package/dist/panelGraphView.d.ts +82 -0
  58. package/dist/panelGraphView.d.ts.map +1 -1
  59. package/dist/panelGraphView.js +15 -4
  60. package/dist/panelGraphView.js.map +1 -1
  61. package/dist/panelGraphVisuals.d.ts +14 -6
  62. package/dist/panelGraphVisuals.d.ts.map +1 -1
  63. package/dist/panelGraphVisuals.js +126 -51
  64. package/dist/panelGraphVisuals.js.map +1 -1
  65. package/dist/panelInspectorView.d.ts +8 -0
  66. package/dist/panelInspectorView.d.ts.map +1 -1
  67. package/dist/panelInspectorView.js +242 -48
  68. package/dist/panelInspectorView.js.map +1 -1
  69. package/dist/panelListStyles.d.ts +3 -0
  70. package/dist/panelListStyles.d.ts.map +1 -0
  71. package/dist/panelListStyles.js +155 -0
  72. package/dist/panelListStyles.js.map +1 -0
  73. package/dist/panelMemoryStyles.d.ts +3 -0
  74. package/dist/panelMemoryStyles.d.ts.map +1 -0
  75. package/dist/panelMemoryStyles.js +42 -0
  76. package/dist/panelMemoryStyles.js.map +1 -0
  77. package/dist/panelMemoryView.d.ts +13 -1
  78. package/dist/panelMemoryView.d.ts.map +1 -1
  79. package/dist/panelMemoryView.js +161 -41
  80. package/dist/panelMemoryView.js.map +1 -1
  81. package/dist/panelPassesView.d.ts +15 -0
  82. package/dist/panelPassesView.d.ts.map +1 -1
  83. package/dist/panelPassesView.js +202 -72
  84. package/dist/panelPassesView.js.map +1 -1
  85. package/dist/panelRawView.d.ts +15 -0
  86. package/dist/panelRawView.d.ts.map +1 -0
  87. package/dist/panelRawView.js +105 -0
  88. package/dist/panelRawView.js.map +1 -0
  89. package/dist/panelResourcesView.d.ts +8 -0
  90. package/dist/panelResourcesView.d.ts.map +1 -1
  91. package/dist/panelResourcesView.js +62 -31
  92. package/dist/panelResourcesView.js.map +1 -1
  93. package/dist/panelSelection.d.ts +9 -1
  94. package/dist/panelSelection.d.ts.map +1 -1
  95. package/dist/panelSelection.js +34 -4
  96. package/dist/panelSelection.js.map +1 -1
  97. package/dist/panelTheme.d.ts +13 -0
  98. package/dist/panelTheme.d.ts.map +1 -0
  99. package/dist/panelTheme.js +104 -0
  100. package/dist/panelTheme.js.map +1 -0
  101. package/dist/panelTypes.d.ts +10 -1
  102. package/dist/panelTypes.d.ts.map +1 -1
  103. package/dist/panelTypes.js.map +1 -1
  104. package/dist/panelVisualTheme.d.ts +147 -50
  105. package/dist/panelVisualTheme.d.ts.map +1 -1
  106. package/dist/panelVisualTheme.js +34 -44
  107. package/dist/panelVisualTheme.js.map +1 -1
  108. package/dist/panelWorkbenchHelpers.d.ts +12 -1
  109. package/dist/panelWorkbenchHelpers.d.ts.map +1 -1
  110. package/dist/panelWorkbenchHelpers.js +62 -1
  111. package/dist/panelWorkbenchHelpers.js.map +1 -1
  112. package/dist/panelWorkbenchStyles.d.ts +2 -0
  113. package/dist/panelWorkbenchStyles.d.ts.map +1 -0
  114. package/dist/panelWorkbenchStyles.js +101 -0
  115. package/dist/panelWorkbenchStyles.js.map +1 -0
  116. package/dist/panelWorkbenchView.d.ts +16 -0
  117. package/dist/panelWorkbenchView.d.ts.map +1 -1
  118. package/dist/panelWorkbenchView.js +228 -50
  119. package/dist/panelWorkbenchView.js.map +1 -1
  120. package/dist/query.js.map +1 -1
  121. package/dist/styles.d.ts.map +1 -1
  122. package/dist/styles.js +147 -195
  123. package/dist/styles.js.map +1 -1
  124. package/dist/theme.d.ts +22 -0
  125. package/dist/theme.d.ts.map +1 -0
  126. package/dist/theme.js +10 -0
  127. package/dist/theme.js.map +1 -0
  128. package/dist/themeDefinitions.d.ts +251 -0
  129. package/dist/themeDefinitions.d.ts.map +1 -0
  130. package/dist/themeDefinitions.js +96 -0
  131. package/dist/themeDefinitions.js.map +1 -0
  132. package/dist/themePalette.d.ts +66 -0
  133. package/dist/themePalette.d.ts.map +1 -0
  134. package/dist/themePalette.js +37 -0
  135. package/dist/themePalette.js.map +1 -0
  136. package/dist/themes.css +165 -0
  137. package/package.json +44 -10
  138. package/src/FrameGraphInspector.ts +130 -31
  139. package/src/capture.ts +4 -0
  140. package/src/debugCaptureModel.ts +53 -2
  141. package/src/index.ts +6 -2
  142. package/src/panelAliasAnalysis.ts +24 -70
  143. package/src/panelCytoscapeGraphRenderer.ts +140 -23
  144. package/src/panelDetailLayout.ts +155 -0
  145. package/src/panelDetailStyles.ts +56 -0
  146. package/src/panelDiagnosticsView.ts +166 -85
  147. package/src/panelDomHelpers.ts +4 -5
  148. package/src/panelGraphLayout.ts +6 -5
  149. package/src/panelGraphRenderer.ts +7 -0
  150. package/src/panelGraphScene.ts +68 -30
  151. package/src/panelGraphSearch.ts +96 -0
  152. package/src/panelGraphView.ts +14 -4
  153. package/src/panelGraphVisuals.ts +122 -52
  154. package/src/panelInspectorView.ts +227 -48
  155. package/src/panelListStyles.ts +154 -0
  156. package/src/panelMemoryStyles.ts +41 -0
  157. package/src/panelMemoryView.ts +178 -53
  158. package/src/panelPassesView.ts +190 -137
  159. package/src/panelRawView.ts +99 -0
  160. package/src/panelResourcesView.ts +69 -56
  161. package/src/panelSelection.ts +37 -5
  162. package/src/panelTheme.ts +85 -0
  163. package/src/panelTypes.ts +7 -1
  164. package/src/panelVisualTheme.ts +38 -49
  165. package/src/panelWorkbenchHelpers.ts +60 -2
  166. package/src/panelWorkbenchStyles.ts +100 -0
  167. package/src/panelWorkbenchView.ts +201 -52
  168. package/src/query.ts +11 -11
  169. package/src/styles.ts +148 -195
  170. package/src/theme.ts +24 -0
  171. package/src/themeDefinitions.ts +103 -0
  172. package/src/themePalette.ts +44 -0
@@ -0,0 +1,66 @@
1
+ /** Appearance of the shared Tokyo Night application palette. */
2
+ export type ThemeMode = 'dark' | 'light';
3
+ declare const dark: {
4
+ readonly canvas: "#24283b";
5
+ readonly sidebar: "#1f2335";
6
+ readonly panel: "#292e42";
7
+ readonly inset: "#202437";
8
+ readonly hover: "#30374e";
9
+ readonly border: "#454d6c";
10
+ readonly divider: "#353c55";
11
+ readonly text: "#c0caf5";
12
+ readonly secondary: "#a9b1d6";
13
+ readonly muted: "#9aa5ce";
14
+ readonly accent: "#7aa2f7";
15
+ readonly accentSoft: "#2c3855";
16
+ readonly onAccent: "#1f2335";
17
+ readonly purple: "#bb9af7";
18
+ readonly cyan: "#7dcfff";
19
+ readonly success: "#9ece6a";
20
+ readonly warning: "#e0af68";
21
+ readonly danger: "#f7768e";
22
+ readonly render: "#9ece6a";
23
+ readonly compute: "#a6afff";
24
+ readonly copy: "#e0af68";
25
+ readonly clear: "#c4cf89";
26
+ readonly command: "#bb9af7";
27
+ readonly external: "#ff9e64";
28
+ readonly declaration: "#cfc9c2";
29
+ readonly output: "#f5a2c0";
30
+ readonly texture: "#f5a2c0";
31
+ readonly buffer: "#73daca";
32
+ readonly edge: "#9aa5ce";
33
+ readonly group: "#8592bd";
34
+ readonly comment: "#9aa5ce";
35
+ readonly keyword: "#bb9af7";
36
+ readonly string: "#9ece6a";
37
+ readonly number: "#ff9e64";
38
+ readonly function: "#7aa2f7";
39
+ readonly type: "#7dcfff";
40
+ readonly property: "#73daca";
41
+ };
42
+ /** Semantic colors shared by the Inspector and its hosts. */
43
+ export type VisualPalette = {
44
+ readonly [Key in keyof typeof dark]: string;
45
+ };
46
+ /** Tokyo Night Storm and Light semantic palettes. */
47
+ export declare const visualThemes: Readonly<Record<ThemeMode, VisualPalette>>;
48
+ /** Shared typography, spacing, and corner dimensions. */
49
+ export declare const visualMetrics: {
50
+ readonly fontUi: "system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Microsoft YaHei\", sans-serif";
51
+ readonly fontMono: "ui-monospace, SFMono-Regular, Consolas, \"Liberation Mono\", \"Microsoft YaHei\", monospace";
52
+ readonly fontBody: "14px";
53
+ readonly fontControl: "13px";
54
+ readonly fontTitle: "28px";
55
+ readonly fontCode: "14px";
56
+ readonly space1: "4px";
57
+ readonly space2: "8px";
58
+ readonly space3: "12px";
59
+ readonly space4: "16px";
60
+ readonly space6: "24px";
61
+ readonly space8: "32px";
62
+ readonly radiusSmall: "6px";
63
+ readonly radiusPanel: "10px";
64
+ };
65
+ export {};
66
+ //# sourceMappingURL=themePalette.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"themePalette.d.ts","sourceRoot":"","sources":["../src/themePalette.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAEzC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWA,CAAC;AAEX,6DAA6D;AAC7D,MAAM,MAAM,aAAa,GAAG;IAAE,QAAQ,EAAE,GAAG,IAAI,MAAM,OAAO,IAAI,GAAG,MAAM;CAAE,CAAC;AAE5E,qDAAqD;AACrD,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,aAAa,CAAC,CAcnE,CAAC;AAEF,yDAAyD;AACzD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;CAMhB,CAAC"}
@@ -0,0 +1,37 @@
1
+ const dark = {
2
+ canvas: '#24283b', sidebar: '#1f2335', panel: '#292e42', inset: '#202437',
3
+ hover: '#30374e', border: '#454d6c', divider: '#353c55',
4
+ text: '#c0caf5', secondary: '#a9b1d6', muted: '#9aa5ce',
5
+ accent: '#7aa2f7', accentSoft: '#2c3855', onAccent: '#1f2335',
6
+ purple: '#bb9af7', cyan: '#7dcfff', success: '#9ece6a', warning: '#e0af68', danger: '#f7768e',
7
+ render: '#9ece6a', compute: '#a6afff', copy: '#e0af68', clear: '#c4cf89',
8
+ command: '#bb9af7', external: '#ff9e64', declaration: '#cfc9c2', output: '#f5a2c0',
9
+ texture: '#f5a2c0', buffer: '#73daca', edge: '#9aa5ce', group: '#8592bd',
10
+ comment: '#9aa5ce', keyword: '#bb9af7', string: '#9ece6a', number: '#ff9e64',
11
+ function: '#7aa2f7', type: '#7dcfff', property: '#73daca',
12
+ };
13
+ /** Tokyo Night Storm and Light semantic palettes. */
14
+ export const visualThemes = {
15
+ dark,
16
+ light: {
17
+ canvas: '#f5f6fa', sidebar: '#eceef5', panel: '#ffffff', inset: '#eef0f7',
18
+ hover: '#e2e6f1', border: '#909ab0', divider: '#d8ddea',
19
+ text: '#343b58', secondary: '#59627d', muted: '#5e667e',
20
+ accent: '#2959aa', accentSoft: '#e1e9f8', onAccent: '#ffffff',
21
+ purple: '#5a3e8e', cyan: '#006c86', success: '#385f0d', warning: '#8f5e15', danger: '#a03b50',
22
+ render: '#385f0d', compute: '#5155a6', copy: '#8f5e15', clear: '#566423',
23
+ command: '#5a3e8e', external: '#965027', declaration: '#65553e', output: '#963c67',
24
+ texture: '#963c67', buffer: '#236b62', edge: '#606982', group: '#606982',
25
+ comment: '#606982', keyword: '#5a3e8e', string: '#385f0d', number: '#965027',
26
+ function: '#2959aa', type: '#006c86', property: '#236b62',
27
+ },
28
+ };
29
+ /** Shared typography, spacing, and corner dimensions. */
30
+ export const visualMetrics = {
31
+ fontUi: 'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif',
32
+ fontMono: 'ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", "Microsoft YaHei", monospace',
33
+ fontBody: '14px', fontControl: '13px', fontTitle: '28px', fontCode: '14px',
34
+ space1: '4px', space2: '8px', space3: '12px', space4: '16px', space6: '24px', space8: '32px',
35
+ radiusSmall: '6px', radiusPanel: '10px',
36
+ };
37
+ //# sourceMappingURL=themePalette.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"themePalette.js","sourceRoot":"","sources":["../src/themePalette.ts"],"names":[],"mappings":"AAGA,MAAM,IAAI,GAAG;IACZ,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS;IACzE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS;IACvD,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS;IACvD,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS;IAC7D,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS;IAC7F,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS;IACxE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS;IAClF,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS;IACxE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS;IAC5E,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS;CAChD,CAAC;AAKX,qDAAqD;AACrD,MAAM,CAAC,MAAM,YAAY,GAA+C;IACvE,IAAI;IACJ,KAAK,EAAE;QACN,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS;QACzE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS;QACvD,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS;QACvD,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS;QAC7D,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS;QAC7F,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS;QACxE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS;QAClF,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS;QACxE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS;QAC5E,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS;KACzD;CACD,CAAC;AAEF,yDAAyD;AACzD,MAAM,CAAC,MAAM,aAAa,GAAG;IAC5B,MAAM,EAAE,yFAAyF;IACjG,QAAQ,EAAE,yFAAyF;IACnG,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAC1E,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAC5F,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM;CAC9B,CAAC","sourcesContent":["/** Appearance of the shared Tokyo Night application palette. */\nexport type ThemeMode = 'dark' | 'light';\n\nconst dark = {\n\tcanvas: '#24283b', sidebar: '#1f2335', panel: '#292e42', inset: '#202437',\n\thover: '#30374e', border: '#454d6c', divider: '#353c55',\n\ttext: '#c0caf5', secondary: '#a9b1d6', muted: '#9aa5ce',\n\taccent: '#7aa2f7', accentSoft: '#2c3855', onAccent: '#1f2335',\n\tpurple: '#bb9af7', cyan: '#7dcfff', success: '#9ece6a', warning: '#e0af68', danger: '#f7768e',\n\trender: '#9ece6a', compute: '#a6afff', copy: '#e0af68', clear: '#c4cf89',\n\tcommand: '#bb9af7', external: '#ff9e64', declaration: '#cfc9c2', output: '#f5a2c0',\n\ttexture: '#f5a2c0', buffer: '#73daca', edge: '#9aa5ce', group: '#8592bd',\n\tcomment: '#9aa5ce', keyword: '#bb9af7', string: '#9ece6a', number: '#ff9e64',\n\tfunction: '#7aa2f7', type: '#7dcfff', property: '#73daca',\n} as const;\n\n/** Semantic colors shared by the Inspector and its hosts. */\nexport type VisualPalette = { readonly [Key in keyof typeof dark]: string };\n\n/** Tokyo Night Storm and Light semantic palettes. */\nexport const visualThemes: Readonly<Record<ThemeMode, VisualPalette>> = {\n\tdark,\n\tlight: {\n\t\tcanvas: '#f5f6fa', sidebar: '#eceef5', panel: '#ffffff', inset: '#eef0f7',\n\t\thover: '#e2e6f1', border: '#909ab0', divider: '#d8ddea',\n\t\ttext: '#343b58', secondary: '#59627d', muted: '#5e667e',\n\t\taccent: '#2959aa', accentSoft: '#e1e9f8', onAccent: '#ffffff',\n\t\tpurple: '#5a3e8e', cyan: '#006c86', success: '#385f0d', warning: '#8f5e15', danger: '#a03b50',\n\t\trender: '#385f0d', compute: '#5155a6', copy: '#8f5e15', clear: '#566423',\n\t\tcommand: '#5a3e8e', external: '#965027', declaration: '#65553e', output: '#963c67',\n\t\ttexture: '#963c67', buffer: '#236b62', edge: '#606982', group: '#606982',\n\t\tcomment: '#606982', keyword: '#5a3e8e', string: '#385f0d', number: '#965027',\n\t\tfunction: '#2959aa', type: '#006c86', property: '#236b62',\n\t},\n};\n\n/** Shared typography, spacing, and corner dimensions. */\nexport const visualMetrics = {\n\tfontUi: 'system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Microsoft YaHei\", sans-serif',\n\tfontMono: 'ui-monospace, SFMono-Regular, Consolas, \"Liberation Mono\", \"Microsoft YaHei\", monospace',\n\tfontBody: '14px', fontControl: '13px', fontTitle: '28px', fontCode: '14px',\n\tspace1: '4px', space2: '8px', space3: '12px', space4: '16px', space6: '24px', space8: '32px',\n\tradiusSmall: '6px', radiusPanel: '10px',\n} as const;\n"]}
@@ -0,0 +1,165 @@
1
+ /* Generated from Inspector theme definitions. */
2
+ [data-zfgi-theme="tokyo-night-storm"] {
3
+ --zfgi-color-scheme: dark;
4
+ --zfgi-canvas: #24283b;
5
+ --zfgi-background: #292e42;
6
+ --zfgi-surface: #202437;
7
+ --zfgi-surface-raised: #292e42;
8
+ --zfgi-surface-hover: #30374e;
9
+ --zfgi-border: #454d6c;
10
+ --zfgi-border-subtle: #353c55;
11
+ --zfgi-border-strong: #454d6c;
12
+ --zfgi-text: #c0caf5;
13
+ --zfgi-text-secondary: #a9b1d6;
14
+ --zfgi-muted: #9aa5ce;
15
+ --zfgi-accent: #7aa2f7;
16
+ --zfgi-accent-soft: #2c3855;
17
+ --zfgi-accent-hover: #30374e;
18
+ --zfgi-success: #9ece6a;
19
+ --zfgi-warning: #e0af68;
20
+ --zfgi-danger: #f7768e;
21
+ --zfgi-shadow: 0 8px 24px #0006;
22
+ --zfgi-backdrop: #13172899;
23
+ --zfgi-font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
24
+ --zfgi-font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", "Microsoft YaHei", monospace;
25
+ --zfgi-font-size: 13px;
26
+ --zfgi-font-size-small: 12px;
27
+ --zfgi-control-height: 32px;
28
+ --zfgi-row-height: 36px;
29
+ --zfgi-radius-sm: 6px;
30
+ --zfgi-radius-md: 10px;
31
+ --zfgi-space-1: 4px;
32
+ --zfgi-space-2: 8px;
33
+ --zfgi-space-3: 12px;
34
+ --zfgi-space-4: 16px;
35
+ --zfgi-graph-tint: 18%;
36
+ --zfgi-graph-text: #d5ddff;
37
+ --zfgi-graph-muted: #9aa5ce;
38
+ --zfgi-graph-font-family: var(--zfgi-font-mono, ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", "Microsoft YaHei", monospace);
39
+ --zfgi-graph-font-size: 13px;
40
+ --zfgi-graph-node-border-width: 1.25px;
41
+ --zfgi-graph-group-border-width: 1.5px;
42
+ --zfgi-graph-edge-width: 1.5px;
43
+ --zfgi-graph-edge-opacity: 1;
44
+ --zfgi-graph-ordering-opacity: 1;
45
+ --zfgi-graph-group-opacity: 1;
46
+ --zfgi-graph-arrow-scale: 0.8;
47
+ --zfgi-graph-hover-width: 2.5px;
48
+ --zfgi-graph-selected-width: 3px;
49
+ --zfgi-graph-selected: var(--zfgi-accent, #7aa2f7);
50
+ --zfgi-graph-hover: #d5ddff;
51
+ --zfgi-graph-active-bg: var(--zfgi-graph-text, #d5ddff);
52
+ --zfgi-graph-active-bg-opacity: 0.08;
53
+ --zfgi-graph-active-bg-size: 12px;
54
+ --zfgi-graph-group-stroke: #8592bd;
55
+ --zfgi-graph-group-fill: #292e42;
56
+ --zfgi-graph-group-alternate-fill: #30364b;
57
+ --zfgi-graph-value: #9aa5ce;
58
+ --zfgi-graph-ordering: #9aa5ce;
59
+ --zfgi-graph-read: #73daca;
60
+ --zfgi-graph-write: #e0af68;
61
+ --zfgi-graph-culled-stroke: #9aa5ce;
62
+ --zfgi-graph-culled-fill: #202437;
63
+ --zfgi-graph-render-stroke: #9ece6a;
64
+ --zfgi-graph-render-fill: color-mix(in srgb, var(--zfgi-graph-render-stroke, #9ece6a) var(--zfgi-graph-tint, 18%), var(--zfgi-canvas, #24283b));
65
+ --zfgi-graph-compute-stroke: #a6afff;
66
+ --zfgi-graph-compute-fill: color-mix(in srgb, var(--zfgi-graph-compute-stroke, #a6afff) var(--zfgi-graph-tint, 18%), var(--zfgi-canvas, #24283b));
67
+ --zfgi-graph-copy-stroke: #e0af68;
68
+ --zfgi-graph-copy-fill: color-mix(in srgb, var(--zfgi-graph-copy-stroke, #e0af68) var(--zfgi-graph-tint, 18%), var(--zfgi-canvas, #24283b));
69
+ --zfgi-graph-clear-stroke: #c4cf89;
70
+ --zfgi-graph-clear-fill: color-mix(in srgb, var(--zfgi-graph-clear-stroke, #c4cf89) var(--zfgi-graph-tint, 18%), var(--zfgi-canvas, #24283b));
71
+ --zfgi-graph-command-stroke: #bb9af7;
72
+ --zfgi-graph-command-fill: color-mix(in srgb, var(--zfgi-graph-command-stroke, #bb9af7) var(--zfgi-graph-tint, 18%), var(--zfgi-canvas, #24283b));
73
+ --zfgi-graph-external-stroke: #ff9e64;
74
+ --zfgi-graph-external-fill: color-mix(in srgb, var(--zfgi-graph-external-stroke, #ff9e64) var(--zfgi-graph-tint, 18%), var(--zfgi-canvas, #24283b));
75
+ --zfgi-graph-declaration-stroke: #cfc9c2;
76
+ --zfgi-graph-declaration-fill: color-mix(in srgb, var(--zfgi-graph-declaration-stroke, #cfc9c2) var(--zfgi-graph-tint, 18%), var(--zfgi-canvas, #24283b));
77
+ --zfgi-graph-output-stroke: #f5a2c0;
78
+ --zfgi-graph-output-fill: color-mix(in srgb, var(--zfgi-graph-output-stroke, #f5a2c0) var(--zfgi-graph-tint, 18%), var(--zfgi-canvas, #24283b));
79
+ --zfgi-graph-texture-stroke: #f5a2c0;
80
+ --zfgi-graph-texture-fill: color-mix(in srgb, var(--zfgi-graph-texture-stroke, #f5a2c0) var(--zfgi-graph-tint, 18%), var(--zfgi-canvas, #24283b));
81
+ --zfgi-graph-buffer-stroke: #73daca;
82
+ --zfgi-graph-buffer-fill: color-mix(in srgb, var(--zfgi-graph-buffer-stroke, #73daca) var(--zfgi-graph-tint, 18%), var(--zfgi-canvas, #24283b));
83
+ }
84
+ [data-zfgi-theme="tokyo-night-light"] {
85
+ --zfgi-color-scheme: light;
86
+ --zfgi-canvas: #f5f6fa;
87
+ --zfgi-background: #ffffff;
88
+ --zfgi-surface: #eef0f7;
89
+ --zfgi-surface-raised: #ffffff;
90
+ --zfgi-surface-hover: #e2e6f1;
91
+ --zfgi-border: #909ab0;
92
+ --zfgi-border-subtle: #d8ddea;
93
+ --zfgi-border-strong: #909ab0;
94
+ --zfgi-text: #343b58;
95
+ --zfgi-text-secondary: #59627d;
96
+ --zfgi-muted: #5e667e;
97
+ --zfgi-accent: #2959aa;
98
+ --zfgi-accent-soft: #e1e9f8;
99
+ --zfgi-accent-hover: #e2e6f1;
100
+ --zfgi-success: #385f0d;
101
+ --zfgi-warning: #8f5e15;
102
+ --zfgi-danger: #a03b50;
103
+ --zfgi-shadow: 0 8px 24px #343b5826;
104
+ --zfgi-backdrop: #343b5840;
105
+ --zfgi-font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
106
+ --zfgi-font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", "Microsoft YaHei", monospace;
107
+ --zfgi-font-size: 13px;
108
+ --zfgi-font-size-small: 12px;
109
+ --zfgi-control-height: 32px;
110
+ --zfgi-row-height: 36px;
111
+ --zfgi-radius-sm: 6px;
112
+ --zfgi-radius-md: 10px;
113
+ --zfgi-space-1: 4px;
114
+ --zfgi-space-2: 8px;
115
+ --zfgi-space-3: 12px;
116
+ --zfgi-space-4: 16px;
117
+ --zfgi-graph-tint: 8%;
118
+ --zfgi-graph-text: #343b58;
119
+ --zfgi-graph-muted: #5e667e;
120
+ --zfgi-graph-font-family: var(--zfgi-font-mono, ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", "Microsoft YaHei", monospace);
121
+ --zfgi-graph-font-size: 13px;
122
+ --zfgi-graph-node-border-width: 1.25px;
123
+ --zfgi-graph-group-border-width: 1.5px;
124
+ --zfgi-graph-edge-width: 1.5px;
125
+ --zfgi-graph-edge-opacity: 1;
126
+ --zfgi-graph-ordering-opacity: 1;
127
+ --zfgi-graph-group-opacity: 1;
128
+ --zfgi-graph-arrow-scale: 0.8;
129
+ --zfgi-graph-hover-width: 2.5px;
130
+ --zfgi-graph-selected-width: 3px;
131
+ --zfgi-graph-selected: var(--zfgi-accent, #2959aa);
132
+ --zfgi-graph-hover: #343b58;
133
+ --zfgi-graph-active-bg: var(--zfgi-graph-text, #343b58);
134
+ --zfgi-graph-active-bg-opacity: 0.08;
135
+ --zfgi-graph-active-bg-size: 12px;
136
+ --zfgi-graph-group-stroke: #606982;
137
+ --zfgi-graph-group-fill: #eceef5;
138
+ --zfgi-graph-group-alternate-fill: #e5e9f3;
139
+ --zfgi-graph-value: #606982;
140
+ --zfgi-graph-ordering: #606982;
141
+ --zfgi-graph-read: #236b62;
142
+ --zfgi-graph-write: #8f5e15;
143
+ --zfgi-graph-culled-stroke: #5e667e;
144
+ --zfgi-graph-culled-fill: #eef0f7;
145
+ --zfgi-graph-render-stroke: #385f0d;
146
+ --zfgi-graph-render-fill: color-mix(in srgb, var(--zfgi-graph-render-stroke, #385f0d) var(--zfgi-graph-tint, 8%), var(--zfgi-canvas, #f5f6fa));
147
+ --zfgi-graph-compute-stroke: #5155a6;
148
+ --zfgi-graph-compute-fill: color-mix(in srgb, var(--zfgi-graph-compute-stroke, #5155a6) var(--zfgi-graph-tint, 8%), var(--zfgi-canvas, #f5f6fa));
149
+ --zfgi-graph-copy-stroke: #8f5e15;
150
+ --zfgi-graph-copy-fill: color-mix(in srgb, var(--zfgi-graph-copy-stroke, #8f5e15) var(--zfgi-graph-tint, 8%), var(--zfgi-canvas, #f5f6fa));
151
+ --zfgi-graph-clear-stroke: #566423;
152
+ --zfgi-graph-clear-fill: color-mix(in srgb, var(--zfgi-graph-clear-stroke, #566423) var(--zfgi-graph-tint, 8%), var(--zfgi-canvas, #f5f6fa));
153
+ --zfgi-graph-command-stroke: #5a3e8e;
154
+ --zfgi-graph-command-fill: color-mix(in srgb, var(--zfgi-graph-command-stroke, #5a3e8e) var(--zfgi-graph-tint, 8%), var(--zfgi-canvas, #f5f6fa));
155
+ --zfgi-graph-external-stroke: #965027;
156
+ --zfgi-graph-external-fill: color-mix(in srgb, var(--zfgi-graph-external-stroke, #965027) var(--zfgi-graph-tint, 8%), var(--zfgi-canvas, #f5f6fa));
157
+ --zfgi-graph-declaration-stroke: #65553e;
158
+ --zfgi-graph-declaration-fill: color-mix(in srgb, var(--zfgi-graph-declaration-stroke, #65553e) var(--zfgi-graph-tint, 8%), var(--zfgi-canvas, #f5f6fa));
159
+ --zfgi-graph-output-stroke: #963c67;
160
+ --zfgi-graph-output-fill: color-mix(in srgb, var(--zfgi-graph-output-stroke, #963c67) var(--zfgi-graph-tint, 8%), var(--zfgi-canvas, #f5f6fa));
161
+ --zfgi-graph-texture-stroke: #963c67;
162
+ --zfgi-graph-texture-fill: color-mix(in srgb, var(--zfgi-graph-texture-stroke, #963c67) var(--zfgi-graph-tint, 8%), var(--zfgi-canvas, #f5f6fa));
163
+ --zfgi-graph-buffer-stroke: #236b62;
164
+ --zfgi-graph-buffer-fill: color-mix(in srgb, var(--zfgi-graph-buffer-stroke, #236b62) var(--zfgi-graph-tint, 8%), var(--zfgi-canvas, #f5f6fa));
165
+ }
package/package.json CHANGED
@@ -1,14 +1,33 @@
1
1
  {
2
2
  "name": "@zenfg/inspector",
3
- "version": "0.1.0-beta.3",
3
+ "version": "0.1.0",
4
4
  "description": "Embeddable Inspector for ZenFG Snapshot files and live captures",
5
5
  "type": "module",
6
- "sideEffects": false,
7
- "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js" } },
6
+ "sideEffects": [
7
+ "**/*.css"
8
+ ],
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ },
14
+ "./theme": {
15
+ "types": "./dist/theme.d.ts",
16
+ "import": "./dist/theme.js"
17
+ },
18
+ "./themes.css": "./dist/themes.css"
19
+ },
8
20
  "types": "./dist/index.d.ts",
9
- "files": ["dist", "src", "README.md", "LICENSE"],
21
+ "files": [
22
+ "dist",
23
+ "src",
24
+ "README.md",
25
+ "LICENSE",
26
+ "THEMING.md",
27
+ "GUIDE.md"
28
+ ],
10
29
  "dependencies": {
11
- "@zenfg/snapshot": "0.1.0-beta.3",
30
+ "@zenfg/snapshot": "0.1.0",
12
31
  "cytoscape": "^3.34.1",
13
32
  "elkjs": "^0.12.0"
14
33
  },
@@ -20,10 +39,25 @@
20
39
  "typecheck": "tsc --noEmit -p tsconfig.json",
21
40
  "test": "node ../../scripts/run-tests.mjs packages/inspector/tests"
22
41
  },
23
- "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" },
42
+ "publishConfig": {
43
+ "access": "public",
44
+ "registry": "https://registry.npmjs.org/"
45
+ },
24
46
  "license": "MIT",
25
- "repository": { "type": "git", "url": "git+https://github.com/uinosoft/zenfg.git", "directory": "packages/inspector" },
26
- "homepage": "https://github.com/uinosoft/zenfg/tree/main/packages/inspector",
27
- "bugs": { "url": "https://github.com/uinosoft/zenfg/issues" },
28
- "keywords": ["framegraph", "inspector", "webgpu", "wgpu", "diagnostics"]
47
+ "repository": {
48
+ "type": "git",
49
+ "url": "git+https://github.com/uinosoft/zenfg.git",
50
+ "directory": "packages/inspector"
51
+ },
52
+ "homepage": "https://uinosoft.github.io/zenfg/docs/packages/inspector.html",
53
+ "bugs": {
54
+ "url": "https://github.com/uinosoft/zenfg/issues"
55
+ },
56
+ "keywords": [
57
+ "framegraph",
58
+ "inspector",
59
+ "webgpu",
60
+ "wgpu",
61
+ "diagnostics"
62
+ ]
29
63
  }