This repository was archived by the owner on Oct 6, 2026. It is now read-only.
Repository navigation
1.1.0
Added
- Global function
_Listener(keeping_SVGListenerand_LazyLoadListener)_Listener({ svg: [Boolean], lazyload: [Boolean] })
PDparameterlistenerto disable default listenersconst app = new PD({ listener: { svg: false, lazyload: false, } });
Elementfunctions_mand_p_mis used to set the element's margin. It can set margins for top, right, bottom, and left individually or in combination.dom._m(10); // Sets margin for all four sides to 10 dom._m(10, 20); // Sets margin for top and bottom to 10, and for left and right to 20 dom._m(10, 20, 30); // Sets margin for top to 10, left and right to 20, and bottom to 30 dom._m(10, 20, 30, 40); // Sets margin for top to 10, right to 20, bottom to 30, and left to 40
_pis used to set the element's padding. It can set padding for top, right, bottom, and left individually or in combination.dom._p(10); // Sets padding for all four sides to 10 dom._p(10, 20); // Sets padding for top and bottom to 10, and for left and right to 20 dom._p(10, 20, 30); // Sets padding for top to 10, left and right to 20, and bottom to 30 dom._p(10, 20, 30, 40); // Sets padding for top to 10, right to 20, bottom to 30, and left to 40