@mlightcad/common 1.2.3 → 1.2.4

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 (67) hide show
  1. package/dist/common.js +1478 -0
  2. package/dist/common.umd.cjs +1 -0
  3. package/lib/AcCmColor.d.ts +201 -0
  4. package/lib/AcCmColor.d.ts.map +1 -0
  5. package/lib/AcCmColor.js +641 -0
  6. package/lib/AcCmColor.js.map +1 -0
  7. package/lib/AcCmColorUtil.d.ts +41 -0
  8. package/lib/AcCmColorUtil.d.ts.map +1 -0
  9. package/lib/AcCmColorUtil.js +90 -0
  10. package/lib/AcCmColorUtil.js.map +1 -0
  11. package/lib/AcCmErrors.d.ts +56 -0
  12. package/lib/AcCmErrors.d.ts.map +1 -0
  13. package/lib/AcCmErrors.js +70 -0
  14. package/lib/AcCmErrors.js.map +1 -0
  15. package/lib/AcCmEventDispatcher.d.ts +101 -0
  16. package/lib/AcCmEventDispatcher.d.ts.map +1 -0
  17. package/lib/AcCmEventDispatcher.js +97 -0
  18. package/lib/AcCmEventDispatcher.js.map +1 -0
  19. package/lib/AcCmEventManager.d.ts +66 -0
  20. package/lib/AcCmEventManager.d.ts.map +1 -0
  21. package/lib/AcCmEventManager.js +133 -0
  22. package/lib/AcCmEventManager.js.map +1 -0
  23. package/lib/AcCmLodashUtils.d.ts +145 -0
  24. package/lib/AcCmLodashUtils.d.ts.map +1 -0
  25. package/lib/AcCmLodashUtils.js +293 -0
  26. package/lib/AcCmLodashUtils.js.map +1 -0
  27. package/lib/AcCmLogUtil.d.ts +80 -0
  28. package/lib/AcCmLogUtil.d.ts.map +1 -0
  29. package/lib/AcCmLogUtil.js +72 -0
  30. package/lib/AcCmLogUtil.js.map +1 -0
  31. package/lib/AcCmObject.d.ts +150 -0
  32. package/lib/AcCmObject.d.ts.map +1 -0
  33. package/lib/AcCmObject.js +204 -0
  34. package/lib/AcCmObject.js.map +1 -0
  35. package/lib/AcCmPerformanceCollector.d.ts +89 -0
  36. package/lib/AcCmPerformanceCollector.d.ts.map +1 -0
  37. package/lib/AcCmPerformanceCollector.js +119 -0
  38. package/lib/AcCmPerformanceCollector.js.map +1 -0
  39. package/lib/AcCmStringUtil.d.ts +44 -0
  40. package/lib/AcCmStringUtil.d.ts.map +1 -0
  41. package/lib/AcCmStringUtil.js +58 -0
  42. package/lib/AcCmStringUtil.js.map +1 -0
  43. package/lib/AcCmTaskScheduler.d.ts +188 -0
  44. package/lib/AcCmTaskScheduler.d.ts.map +1 -0
  45. package/lib/AcCmTaskScheduler.js +256 -0
  46. package/lib/AcCmTaskScheduler.js.map +1 -0
  47. package/lib/index.d.ts +12 -0
  48. package/lib/index.d.ts.map +1 -0
  49. package/lib/index.js +12 -0
  50. package/lib/index.js.map +1 -0
  51. package/lib/loader/AcCmFileLoader.d.ts +95 -0
  52. package/lib/loader/AcCmFileLoader.d.ts.map +1 -0
  53. package/lib/loader/AcCmFileLoader.js +275 -0
  54. package/lib/loader/AcCmFileLoader.js.map +1 -0
  55. package/lib/loader/AcCmLoader.d.ts +125 -0
  56. package/lib/loader/AcCmLoader.d.ts.map +1 -0
  57. package/lib/loader/AcCmLoader.js +116 -0
  58. package/lib/loader/AcCmLoader.js.map +1 -0
  59. package/lib/loader/AcCmLoadingManager.d.ts +166 -0
  60. package/lib/loader/AcCmLoadingManager.d.ts.map +1 -0
  61. package/lib/loader/AcCmLoadingManager.js +172 -0
  62. package/lib/loader/AcCmLoadingManager.js.map +1 -0
  63. package/lib/loader/index.d.ts +3 -0
  64. package/lib/loader/index.d.ts.map +1 -0
  65. package/lib/loader/index.js +3 -0
  66. package/lib/loader/index.js.map +1 -0
  67. package/package.json +1 -1
@@ -0,0 +1,166 @@
1
+ /**
2
+ * @fileoverview Loading management system for the AutoCAD Common library.
3
+ *
4
+ * This module provides a centralized loading manager that tracks and coordinates
5
+ * multiple file loading operations with progress reporting, error handling, and
6
+ * URL modification capabilities.
7
+ *
8
+ * @module AcCmLoadingManager
9
+ * @version 1.0.0
10
+ */
11
+ import { AcCmLoader } from './AcCmLoader';
12
+ /**
13
+ * Callback function that is called when loading starts.
14
+ *
15
+ * @param {string} url - The URL of the item that just started loading.
16
+ * @param {number} itemsLoaded - The number of items already loaded so far.
17
+ * @param {number} itemsTotal - The total number of items to be loaded.
18
+ */
19
+ export type AcCmOnStartCallback = (url: string, itemsLoaded: number, itemsTotal: number) => void;
20
+ /**
21
+ * Callback function that is called when all loading operations are completed successfully.
22
+ */
23
+ export type AcCmOnLoadCallback = () => void;
24
+ /**
25
+ * Callback function that is called when an individual item completes loading.
26
+ *
27
+ * @param {string} url - The URL of the item that just finished loading.
28
+ * @param {number} itemsLoaded - The number of items loaded so far.
29
+ * @param {number} itemsTotal - The total number of items to be loaded.
30
+ */
31
+ export type AcCmOnProgressCallback = (url: string, itemsLoaded: number, itemsTotal: number) => void;
32
+ /**
33
+ * Callback function that is called when any loading operation encounters an error.
34
+ *
35
+ * @param {string} url - The URL of the item that failed to load.
36
+ */
37
+ export type AcCmOnErrorCallback = (url: string) => void;
38
+ /**
39
+ * Function that modifies URLs before loading requests are sent.
40
+ *
41
+ * This callback allows intercepting and modifying URLs to implement custom loading
42
+ * behavior, such as adding authentication tokens or redirecting to different servers.
43
+ *
44
+ * @param {string} url - The original URL.
45
+ * @returns {string} The modified URL or the original URL if no changes are needed.
46
+ */
47
+ export type AcCmUrlModifier = (url: string) => string;
48
+ /**
49
+ * Centralized loading manager that handles and tracks multiple loading operations.
50
+ *
51
+ * This class manages the loading state across multiple file operations, providing
52
+ * progress tracking, error handling, and URL modification capabilities. A default
53
+ * global instance is created and used by loaders if not supplied manually.
54
+ *
55
+ * Separate loading managers can be useful when you need independent loading progress
56
+ * tracking (e.g., separate progress bars for different types of resources).
57
+ *
58
+ * @example
59
+ * ```typescript
60
+ * import { AcCmLoadingManager } from './AcCmLoadingManager'
61
+ *
62
+ * // Create a custom loading manager
63
+ * const manager = new AcCmLoadingManager()
64
+ *
65
+ * // Set up callbacks
66
+ * manager.onStart = (url, loaded, total) => {
67
+ * console.log(`Started loading: ${url} (${loaded}/${total})`)
68
+ * }
69
+ *
70
+ * manager.onProgress = (url, loaded, total) => {
71
+ * console.log(`Progress: ${url} (${loaded}/${total})`)
72
+ * }
73
+ *
74
+ * manager.onLoad = () => {
75
+ * console.log('All loading completed!')
76
+ * }
77
+ *
78
+ * manager.onError = (url) => {
79
+ * console.error(`Failed to load: ${url}`)
80
+ * }
81
+ * ```
82
+ */
83
+ export declare class AcCmLoadingManager {
84
+ /**
85
+ * This function will be called when loading starts.
86
+ */
87
+ onStart?: AcCmOnStartCallback;
88
+ /**
89
+ * This function will be called when all loading is completed. By default this is undefined, unless
90
+ * passed in the constructor.
91
+ */
92
+ onLoad?: AcCmOnLoadCallback;
93
+ /**
94
+ * This function will be called when an item is complete.
95
+ */
96
+ onProgress?: AcCmOnProgressCallback;
97
+ /**
98
+ * This function will be called when any item errors.
99
+ */
100
+ onError?: AcCmOnErrorCallback;
101
+ private isLoading;
102
+ private itemsLoaded;
103
+ private itemsTotal;
104
+ private handlers;
105
+ private urlModifier?;
106
+ /**
107
+ * Create a new AcCmLoadingManager instance
108
+ * @param onLoad this function will be called when all loaders are done.
109
+ * @param onProgress this function will be called when an item is complete.
110
+ * @param onError this function will be called a loader encounters errors.
111
+ */
112
+ constructor(onLoad?: AcCmOnLoadCallback, onProgress?: AcCmOnProgressCallback, onError?: AcCmOnErrorCallback);
113
+ /**
114
+ * This should be called by any loader using the manager when the loader starts loading an url.
115
+ * @param url The loaded url
116
+ */
117
+ itemStart(url: string): void;
118
+ /**
119
+ * This should be called by any loader using the manager when the loader ended loading an url.
120
+ * @param url The loaded url
121
+ */
122
+ itemEnd(url: string): void;
123
+ /**
124
+ * This should be called by any loader using the manager when the loader errors loading an url.
125
+ * @param url The loaded url
126
+ */
127
+ itemError(url: string): void;
128
+ /**
129
+ * Given a URL, uses the URL modifier callback (if any) and returns a resolved URL. If no URL
130
+ * modifier is set, returns the original URL.
131
+ * @param url The url to load
132
+ * @returns Return resolved URL
133
+ */
134
+ resolveURL(url: string): string;
135
+ /**
136
+ * If provided, the callback will be passed each resource URL before a request is sent. The callback
137
+ * may return the original URL, or a new URL to override loading behavior. This behavior can be used
138
+ * to load assets from .ZIP files, drag-and-drop APIs, and Data URIs.
139
+ * @param transform URL modifier callback. Called with url argument, and must return resolvedURL.
140
+ * @returns Return this object
141
+ */
142
+ setURLModifier(transform: AcCmUrlModifier): this;
143
+ /**
144
+ * Register a loader with the given regular expression. Can be used to define what loader should
145
+ * be used in order to load specific files. A typical use case is to overwrite the default loader
146
+ * for textures.
147
+ * @param regex A regular expression.
148
+ * @param loader The loader.
149
+ * @returns Return this object
150
+ */
151
+ addHandler(regex: RegExp, loader: AcCmLoader): this;
152
+ /**
153
+ * Remove the loader for the given regular expression.
154
+ * @param regex A regular expression.
155
+ * @returns Return this object
156
+ */
157
+ removeHandler(regex: RegExp): this;
158
+ /**
159
+ * Retrieve the registered loader for the given file path.
160
+ * @param file The file path.
161
+ * @returns Return the registered loader for the given file path.
162
+ */
163
+ getHandler(file: string): RegExp | AcCmLoader | null;
164
+ }
165
+ export declare const DefaultLoadingManager: AcCmLoadingManager;
166
+ //# sourceMappingURL=AcCmLoadingManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcCmLoadingManager.d.ts","sourceRoot":"","sources":["../../src/loader/AcCmLoadingManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAChC,GAAG,EAAE,MAAM,EACX,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,KACf,IAAI,CAAA;AAET;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,IAAI,CAAA;AAE3C;;;;;;GAMG;AACH,MAAM,MAAM,sBAAsB,GAAG,CACnC,GAAG,EAAE,MAAM,EACX,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EAAE,MAAM;CAcxB;AAED,eAAO,MAAM,qBAAqB,oBAAyC,CAAA"}
@@ -0,0 +1,172 @@
1
+ /**
2
+ * @fileoverview Loading management system for the AutoCAD Common library.
3
+ *
4
+ * This module provides a centralized loading manager that tracks and coordinates
5
+ * multiple file loading operations with progress reporting, error handling, and
6
+ * URL modification capabilities.
7
+ *
8
+ * @module AcCmLoadingManager
9
+ * @version 1.0.0
10
+ */
11
+ /**
12
+ * Centralized loading manager that handles and tracks multiple loading operations.
13
+ *
14
+ * This class manages the loading state across multiple file operations, providing
15
+ * progress tracking, error handling, and URL modification capabilities. A default
16
+ * global instance is created and used by loaders if not supplied manually.
17
+ *
18
+ * Separate loading managers can be useful when you need independent loading progress
19
+ * tracking (e.g., separate progress bars for different types of resources).
20
+ *
21
+ * @example
22
+ * ```typescript
23
+ * import { AcCmLoadingManager } from './AcCmLoadingManager'
24
+ *
25
+ * // Create a custom loading manager
26
+ * const manager = new AcCmLoadingManager()
27
+ *
28
+ * // Set up callbacks
29
+ * manager.onStart = (url, loaded, total) => {
30
+ * console.log(`Started loading: ${url} (${loaded}/${total})`)
31
+ * }
32
+ *
33
+ * manager.onProgress = (url, loaded, total) => {
34
+ * console.log(`Progress: ${url} (${loaded}/${total})`)
35
+ * }
36
+ *
37
+ * manager.onLoad = () => {
38
+ * console.log('All loading completed!')
39
+ * }
40
+ *
41
+ * manager.onError = (url) => {
42
+ * console.error(`Failed to load: ${url}`)
43
+ * }
44
+ * ```
45
+ */
46
+ var AcCmLoadingManager = /** @class */ (function () {
47
+ /**
48
+ * Create a new AcCmLoadingManager instance
49
+ * @param onLoad this function will be called when all loaders are done.
50
+ * @param onProgress this function will be called when an item is complete.
51
+ * @param onError this function will be called a loader encounters errors.
52
+ */
53
+ function AcCmLoadingManager(onLoad, onProgress, onError) {
54
+ this.isLoading = false;
55
+ this.itemsLoaded = 0;
56
+ this.itemsTotal = 0;
57
+ this.urlModifier = undefined;
58
+ this.handlers = [];
59
+ // Refer to #5689 for the reason why we don't set .onStart
60
+ // in the constructor
61
+ this.onStart = undefined;
62
+ this.onLoad = onLoad;
63
+ this.onProgress = onProgress;
64
+ this.onError = onError;
65
+ }
66
+ /**
67
+ * This should be called by any loader using the manager when the loader starts loading an url.
68
+ * @param url The loaded url
69
+ */
70
+ AcCmLoadingManager.prototype.itemStart = function (url) {
71
+ this.itemsTotal++;
72
+ if (this.isLoading === false) {
73
+ if (this.onStart !== undefined) {
74
+ this.onStart(url, this.itemsLoaded, this.itemsTotal);
75
+ }
76
+ }
77
+ this.isLoading = true;
78
+ };
79
+ /**
80
+ * This should be called by any loader using the manager when the loader ended loading an url.
81
+ * @param url The loaded url
82
+ */
83
+ AcCmLoadingManager.prototype.itemEnd = function (url) {
84
+ this.itemsLoaded++;
85
+ if (this.onProgress !== undefined) {
86
+ this.onProgress(url, this.itemsLoaded, this.itemsTotal);
87
+ }
88
+ if (this.itemsLoaded === this.itemsTotal) {
89
+ this.isLoading = false;
90
+ if (this.onLoad !== undefined) {
91
+ this.onLoad();
92
+ }
93
+ }
94
+ };
95
+ /**
96
+ * This should be called by any loader using the manager when the loader errors loading an url.
97
+ * @param url The loaded url
98
+ */
99
+ AcCmLoadingManager.prototype.itemError = function (url) {
100
+ if (this.onError !== undefined) {
101
+ this.onError(url);
102
+ }
103
+ };
104
+ /**
105
+ * Given a URL, uses the URL modifier callback (if any) and returns a resolved URL. If no URL
106
+ * modifier is set, returns the original URL.
107
+ * @param url The url to load
108
+ * @returns Return resolved URL
109
+ */
110
+ AcCmLoadingManager.prototype.resolveURL = function (url) {
111
+ if (this.urlModifier) {
112
+ return this.urlModifier(url);
113
+ }
114
+ return url;
115
+ };
116
+ /**
117
+ * If provided, the callback will be passed each resource URL before a request is sent. The callback
118
+ * may return the original URL, or a new URL to override loading behavior. This behavior can be used
119
+ * to load assets from .ZIP files, drag-and-drop APIs, and Data URIs.
120
+ * @param transform URL modifier callback. Called with url argument, and must return resolvedURL.
121
+ * @returns Return this object
122
+ */
123
+ AcCmLoadingManager.prototype.setURLModifier = function (transform) {
124
+ this.urlModifier = transform;
125
+ return this;
126
+ };
127
+ /**
128
+ * Register a loader with the given regular expression. Can be used to define what loader should
129
+ * be used in order to load specific files. A typical use case is to overwrite the default loader
130
+ * for textures.
131
+ * @param regex A regular expression.
132
+ * @param loader The loader.
133
+ * @returns Return this object
134
+ */
135
+ AcCmLoadingManager.prototype.addHandler = function (regex, loader) {
136
+ this.handlers.push(regex, loader);
137
+ return this;
138
+ };
139
+ /**
140
+ * Remove the loader for the given regular expression.
141
+ * @param regex A regular expression.
142
+ * @returns Return this object
143
+ */
144
+ AcCmLoadingManager.prototype.removeHandler = function (regex) {
145
+ var index = this.handlers.indexOf(regex);
146
+ if (index !== -1) {
147
+ this.handlers.splice(index, 2);
148
+ }
149
+ return this;
150
+ };
151
+ /**
152
+ * Retrieve the registered loader for the given file path.
153
+ * @param file The file path.
154
+ * @returns Return the registered loader for the given file path.
155
+ */
156
+ AcCmLoadingManager.prototype.getHandler = function (file) {
157
+ for (var i = 0, l = this.handlers.length; i < l; i += 2) {
158
+ var regex = this.handlers[i];
159
+ var loader = this.handlers[i + 1];
160
+ if (regex.global)
161
+ regex.lastIndex = 0; // see #17920
162
+ if (regex.test(file)) {
163
+ return loader;
164
+ }
165
+ }
166
+ return null;
167
+ };
168
+ return AcCmLoadingManager;
169
+ }());
170
+ export { AcCmLoadingManager };
171
+ export var DefaultLoadingManager = /*@__PURE__*/ new AcCmLoadingManager();
172
+ //# sourceMappingURL=AcCmLoadingManager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcCmLoadingManager.js","sourceRoot":"","sources":["../../src/loader/AcCmLoadingManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAqDH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH;IAwBE;;;;;OAKG;IACH,4BACE,MAA2B,EAC3B,UAAmC,EACnC,OAA6B;QAE7B,IAAI,CAAC,SAAS,GAAG,KAA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AAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,CAAA;YAEnC,IAAI,KAAK,CAAC,MAAM;gBAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAA,CAAC,aAAa;YAEnD,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBACrB,OAAO,MAAM,CAAA;YACf,CAAC;QACH,CAAC;QAED,OAAO,IAAI,CAAA;IACb,CAAC;IACH,yBAAC;AAAD,CAAC,AA1KD,IA0KC;;AAED,MAAM,CAAC,IAAM,qBAAqB,GAAG,aAAa,CAAC,IAAI,kBAAkB,EAAE,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './AcCmLoadingManager';
2
+ export * from './AcCmLoader';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/loader/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,cAAc,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './AcCmLoadingManager';
2
+ export * from './AcCmLoader';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/loader/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,cAAc,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlightcad/common",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {