@umituz/web-canvas 1.0.7 → 1.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 (41) hide show
  1. package/README.md +33 -0
  2. package/dist/CanvasConfig-HFgH7irb.d.mts +310 -0
  3. package/dist/CanvasConfig-HFgH7irb.d.ts +310 -0
  4. package/dist/application/index.d.mts +78 -0
  5. package/dist/application/index.d.ts +78 -0
  6. package/dist/application/index.js +1146 -0
  7. package/dist/application/index.mjs +11 -0
  8. package/dist/chunk-DNKRSL6D.mjs +358 -0
  9. package/dist/chunk-HJ24NSQA.mjs +777 -0
  10. package/dist/chunk-MC6PNV2F.mjs +34 -0
  11. package/dist/chunk-TZGTTYTZ.mjs +0 -0
  12. package/dist/chunk-UOGTEMIJ.mjs +712 -0
  13. package/dist/chunk-Z6IB4BQV.mjs +31 -0
  14. package/dist/domain/config/index.d.mts +87 -0
  15. package/dist/domain/config/index.d.ts +87 -0
  16. package/dist/domain/config/index.js +92 -0
  17. package/dist/domain/config/index.mjs +15 -0
  18. package/dist/domain/index.d.mts +45 -0
  19. package/dist/domain/index.d.ts +45 -0
  20. package/dist/domain/index.js +137 -0
  21. package/dist/domain/index.mjs +55 -0
  22. package/dist/index.d.mts +7 -0
  23. package/dist/index.d.ts +7 -0
  24. package/dist/index.js +1927 -0
  25. package/dist/index.mjs +40 -0
  26. package/dist/infrastructure/index.d.mts +198 -0
  27. package/dist/infrastructure/index.d.ts +198 -0
  28. package/dist/infrastructure/index.js +765 -0
  29. package/dist/infrastructure/index.mjs +13 -0
  30. package/dist/presentation/index.d.mts +145 -0
  31. package/dist/presentation/index.d.ts +145 -0
  32. package/dist/presentation/index.js +1911 -0
  33. package/dist/presentation/index.mjs +16 -0
  34. package/dist/report.types-DWDnprBx.d.mts +76 -0
  35. package/dist/report.types-DWDnprBx.d.ts +76 -0
  36. package/package.json +8 -2
  37. package/src/domain/types/freehand.types.ts +42 -0
  38. package/src/domain/types/index.ts +1 -0
  39. package/src/index.ts +10 -0
  40. package/src/presentation/hooks/useFreehandCanvas.ts +244 -0
  41. package/src/presentation/index.ts +1 -0
@@ -0,0 +1,34 @@
1
+ // src/domain/config/CanvasConfig.ts
2
+ var DEFAULT_CANVAS_CONFIG = {
3
+ defaultFormat: "png",
4
+ defaultQuality: 0.9,
5
+ maxDimension: 4096,
6
+ scale: 2,
7
+ backgroundColor: "#ffffff",
8
+ useCORS: true
9
+ };
10
+
11
+ // src/domain/config/DeviceConfig.ts
12
+ var DEVICE_DIMENSIONS = {
13
+ "iphone-15-pro": { width: 1290, height: 2796 },
14
+ "iphone-15": { width: 1179, height: 2556 },
15
+ "iphone-se": { width: 1080, height: 2340 },
16
+ "ipad-pro": { width: 2048, height: 2732 },
17
+ "ipad": { width: 1620, height: 2160 },
18
+ "android-phone": { width: 1440, height: 3120 },
19
+ "android-tablet": { width: 2e3, height: 2200 },
20
+ "desktop": { width: 1920, height: 1080 }
21
+ };
22
+ var DEFAULT_DEVICE_CONFIG = {
23
+ devices: Object.keys(DEVICE_DIMENSIONS),
24
+ defaultDevice: "iphone-15-pro",
25
+ showFrame: true,
26
+ frameColor: "#1f2937",
27
+ frameThickness: 8
28
+ };
29
+
30
+ export {
31
+ DEFAULT_CANVAS_CONFIG,
32
+ DEVICE_DIMENSIONS,
33
+ DEFAULT_DEVICE_CONFIG
34
+ };
File without changes