@tspro/ts-utils-lib 2.2.1 → 2.3.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.
- package/CHANGELOG.md +8 -0
- package/dist/index.d.ts +8 -1
- package/dist/index.es5.iife.js +1 -1
- package/dist/index.es5.polyfilled.iife.js +1 -1
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +12 -2
- package/dist/index.mjs.map +1 -0
- package/package.json +4 -4
- package/dist/index.d.mts +0 -1541
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
|
+
## [2.3.0] - 2025-11-27
|
|
3
|
+
### Changed
|
|
4
|
+
- Replaced .d.mts type declarations with .d.ts.
|
|
5
|
+
- Include .map files in package.
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- Utils.Dom.injectCss()
|
|
9
|
+
|
|
2
10
|
## [2.2.1] - 2025-11-25
|
|
3
11
|
### Fixed
|
|
4
12
|
- Moved "core-js" and "regenerator-runtime" to "devDependencies" because
|
package/dist/index.d.ts
CHANGED
|
@@ -471,6 +471,12 @@ declare function getDimension(style?: CSSProperties): {
|
|
|
471
471
|
};
|
|
472
472
|
declare function styleLayoutChanged(style1?: CSSProperties, style2?: CSSProperties): boolean;
|
|
473
473
|
declare function getCanvasTextWidth(text: string, font: string): number;
|
|
474
|
+
/**
|
|
475
|
+
* Add style element to document head.
|
|
476
|
+
* @param styleId - Id of style element.
|
|
477
|
+
* @param styleCss - Style CSS string.
|
|
478
|
+
*/
|
|
479
|
+
declare function injectCss(styleId: string, styleCss: string): void;
|
|
474
480
|
|
|
475
481
|
type index$4_CSSProperties = CSSProperties;
|
|
476
482
|
declare const index$4_addClass: typeof addClass;
|
|
@@ -484,6 +490,7 @@ declare const index$4_getOffset: typeof getOffset;
|
|
|
484
490
|
declare const index$4_getPadding: typeof getPadding;
|
|
485
491
|
declare const index$4_getWidth: typeof getWidth;
|
|
486
492
|
declare const index$4_hasClass: typeof hasClass;
|
|
493
|
+
declare const index$4_injectCss: typeof injectCss;
|
|
487
494
|
declare const index$4_removeClass: typeof removeClass;
|
|
488
495
|
declare const index$4_removeFromParent: typeof removeFromParent;
|
|
489
496
|
declare const index$4_setHeight: typeof setHeight;
|
|
@@ -493,7 +500,7 @@ declare const index$4_setVisibility: typeof setVisibility;
|
|
|
493
500
|
declare const index$4_setWidth: typeof setWidth;
|
|
494
501
|
declare const index$4_styleLayoutChanged: typeof styleLayoutChanged;
|
|
495
502
|
declare namespace index$4 {
|
|
496
|
-
export { type index$4_CSSProperties as CSSProperties, index$4_addClass as addClass, index$4_appendTo as appendTo, index$4_getButton as getButton, index$4_getCanvas as getCanvas, index$4_getCanvasTextWidth as getCanvasTextWidth, index$4_getDimension as getDimension, index$4_getHeight as getHeight, index$4_getOffset as getOffset, index$4_getPadding as getPadding, index$4_getWidth as getWidth, index$4_hasClass as hasClass, index$4_removeClass as removeClass, index$4_removeFromParent as removeFromParent, index$4_setHeight as setHeight, index$4_setOffset as setOffset, index$4_setRect as setRect, index$4_setVisibility as setVisibility, index$4_setWidth as setWidth, index$4_styleLayoutChanged as styleLayoutChanged };
|
|
503
|
+
export { type index$4_CSSProperties as CSSProperties, index$4_addClass as addClass, index$4_appendTo as appendTo, index$4_getButton as getButton, index$4_getCanvas as getCanvas, index$4_getCanvasTextWidth as getCanvasTextWidth, index$4_getDimension as getDimension, index$4_getHeight as getHeight, index$4_getOffset as getOffset, index$4_getPadding as getPadding, index$4_getWidth as getWidth, index$4_hasClass as hasClass, index$4_injectCss as injectCss, index$4_removeClass as removeClass, index$4_removeFromParent as removeFromParent, index$4_setHeight as setHeight, index$4_setOffset as setOffset, index$4_setRect as setRect, index$4_setVisibility as setVisibility, index$4_setWidth as setWidth, index$4_styleLayoutChanged as styleLayoutChanged };
|
|
497
504
|
}
|
|
498
505
|
|
|
499
506
|
declare function linearToDecibels(linearVolume: number): number;
|