graphics-debug 0.0.75 → 0.0.76

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.
@@ -0,0 +1,34 @@
1
+ // lib/setStepOfAllObjects.ts
2
+ function setStepOfAllObjects(graphics, step) {
3
+ if (graphics.points) {
4
+ for (const p of graphics.points) {
5
+ p.step = step;
6
+ }
7
+ }
8
+ if (graphics.lines) {
9
+ for (const line of graphics.lines) {
10
+ line.step = step;
11
+ }
12
+ }
13
+ if (graphics.rects) {
14
+ for (const rect of graphics.rects) {
15
+ rect.step = step;
16
+ }
17
+ }
18
+ if (graphics.circles) {
19
+ for (const circle of graphics.circles) {
20
+ circle.step = step;
21
+ }
22
+ }
23
+ if (graphics.texts) {
24
+ for (const text of graphics.texts) {
25
+ text.step = step;
26
+ }
27
+ }
28
+ return graphics;
29
+ }
30
+
31
+ export {
32
+ setStepOfAllObjects
33
+ };
34
+ //# sourceMappingURL=chunk-7KPSBUOD.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../lib/setStepOfAllObjects.ts"],"sourcesContent":["import type { GraphicsObject } from \"./types\"\n\nexport function setStepOfAllObjects(\n graphics: GraphicsObject,\n step: number,\n): GraphicsObject {\n if (graphics.points) {\n for (const p of graphics.points) {\n p.step = step\n }\n }\n if (graphics.lines) {\n for (const line of graphics.lines) {\n line.step = step\n }\n }\n if (graphics.rects) {\n for (const rect of graphics.rects) {\n rect.step = step\n }\n }\n if (graphics.circles) {\n for (const circle of graphics.circles) {\n circle.step = step\n }\n }\n if (graphics.texts) {\n for (const text of graphics.texts) {\n text.step = step\n }\n }\n return graphics\n}\n"],"mappings":";AAEO,SAAS,oBACd,UACA,MACgB;AAChB,MAAI,SAAS,QAAQ;AACnB,eAAW,KAAK,SAAS,QAAQ;AAC/B,QAAE,OAAO;AAAA,IACX;AAAA,EACF;AACA,MAAI,SAAS,OAAO;AAClB,eAAW,QAAQ,SAAS,OAAO;AACjC,WAAK,OAAO;AAAA,IACd;AAAA,EACF;AACA,MAAI,SAAS,OAAO;AAClB,eAAW,QAAQ,SAAS,OAAO;AACjC,WAAK,OAAO;AAAA,IACd;AAAA,EACF;AACA,MAAI,SAAS,SAAS;AACpB,eAAW,UAAU,SAAS,SAAS;AACrC,aAAO,OAAO;AAAA,IAChB;AAAA,EACF;AACA,MAAI,SAAS,OAAO;AAClB,eAAW,QAAQ,SAAS,OAAO;AACjC,WAAK,OAAO;AAAA,IACd;AAAA,EACF;AACA,SAAO;AACT;","names":[]}
package/dist/cli/cli.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  getHtmlFromLogString,
4
4
  getSvgsFromLogString
5
5
  } from "../chunk-NL6Q6BUP.js";
6
- import "../chunk-XIPXIFXO.js";
6
+ import "../chunk-7KPSBUOD.js";
7
7
  import "../chunk-NPOHLW76.js";
8
8
  import "../chunk-B2WYIXWQ.js";
9
9
  import "../chunk-WFPC5ZH3.js";
package/dist/lib/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  } from "../chunk-NL6Q6BUP.js";
6
6
  import {
7
7
  setStepOfAllObjects
8
- } from "../chunk-XIPXIFXO.js";
8
+ } from "../chunk-7KPSBUOD.js";
9
9
  import {
10
10
  createGraphicsGrid,
11
11
  stackGraphicsHorizontally,
package/dist/lib/react.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "../chunk-NL6Q6BUP.js";
2
- import "../chunk-XIPXIFXO.js";
2
+ import "../chunk-7KPSBUOD.js";
3
3
  import "../chunk-NPOHLW76.js";
4
4
  import "../chunk-B2WYIXWQ.js";
5
5
  import "../chunk-WFPC5ZH3.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  setStepOfAllObjects
3
- } from "../chunk-XIPXIFXO.js";
3
+ } from "../chunk-7KPSBUOD.js";
4
4
  export {
5
5
  setStepOfAllObjects
6
6
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "graphics-debug",
3
3
  "main": "dist/lib/index.js",
4
4
  "type": "module",
5
- "version": "0.0.75",
5
+ "version": "0.0.76",
6
6
  "files": [
7
7
  "dist"
8
8
  ],
@@ -1,31 +0,0 @@
1
- // lib/setStepOfAllObjects.ts
2
- function setStepOfAllObjects(graphics, step) {
3
- return {
4
- ...graphics,
5
- points: graphics.points?.map((p) => ({
6
- ...p,
7
- step
8
- })),
9
- lines: graphics.lines?.map((line) => ({
10
- ...line,
11
- step
12
- })),
13
- rects: graphics.rects?.map((rect) => ({
14
- ...rect,
15
- step
16
- })),
17
- circles: graphics.circles?.map((circle) => ({
18
- ...circle,
19
- step
20
- })),
21
- texts: graphics.texts?.map((text) => ({
22
- ...text,
23
- step
24
- }))
25
- };
26
- }
27
-
28
- export {
29
- setStepOfAllObjects
30
- };
31
- //# sourceMappingURL=chunk-XIPXIFXO.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../lib/setStepOfAllObjects.ts"],"sourcesContent":["import type { GraphicsObject } from \"./types\"\n\nexport function setStepOfAllObjects(\n graphics: GraphicsObject,\n step: number,\n): GraphicsObject {\n return {\n ...graphics,\n points: graphics.points?.map((p) => ({\n ...p,\n step,\n })),\n lines: graphics.lines?.map((line) => ({\n ...line,\n step,\n })),\n rects: graphics.rects?.map((rect) => ({\n ...rect,\n step,\n })),\n circles: graphics.circles?.map((circle) => ({\n ...circle,\n step,\n })),\n texts: graphics.texts?.map((text) => ({\n ...text,\n step,\n })),\n }\n}\n"],"mappings":";AAEO,SAAS,oBACd,UACA,MACgB;AAChB,SAAO;AAAA,IACL,GAAG;AAAA,IACH,QAAQ,SAAS,QAAQ,IAAI,CAAC,OAAO;AAAA,MACnC,GAAG;AAAA,MACH;AAAA,IACF,EAAE;AAAA,IACF,OAAO,SAAS,OAAO,IAAI,CAAC,UAAU;AAAA,MACpC,GAAG;AAAA,MACH;AAAA,IACF,EAAE;AAAA,IACF,OAAO,SAAS,OAAO,IAAI,CAAC,UAAU;AAAA,MACpC,GAAG;AAAA,MACH;AAAA,IACF,EAAE;AAAA,IACF,SAAS,SAAS,SAAS,IAAI,CAAC,YAAY;AAAA,MAC1C,GAAG;AAAA,MACH;AAAA,IACF,EAAE;AAAA,IACF,OAAO,SAAS,OAAO,IAAI,CAAC,UAAU;AAAA,MACpC,GAAG;AAAA,MACH;AAAA,IACF,EAAE;AAAA,EACJ;AACF;","names":[]}