Lit Prism
7 ΠΎΡΠ΅Π½ΠΎΠΊ
)ΠΠ±Π·ΠΎΡ
Inspect Lit or Polymer webcomponents 'through a prism'. View and modify component properties on the fly through Chrome DevTools.
Inspect LitElement or PolymerElement webcomponents 'through a prism'. View and modify component properties on the fly through Chrome Developer Tools. Open the developer tools (F12) and select the Lit Prism sidepane from within the Elements panel. Select an HTML element from the Elements panel in order to view its properties. Currently supported webcomponents are LitElement and PolymerElement components. The list of properties will refresh automatically whenever a property or a subproperty value changes, and the sidepane will keep the current scroll position. Due to a developer tools limitation the expanded values cannot be re-expanded after updating the property list. In such cases, it might be useful to toggle the "Automatically refresh property list' switch to 'disabled'. No data is or will be collected. Changelog: v1.2.0 Added support for other types of webcomponents as well, especially for Lit V2 elements. Increased auto refresh interval to 1 second. Grouping webcomponent methods into _FUNCTIONS. v1.1.1 Minor tweak, added the Lit Message also to arrays, as a first entry, in case it was an array, instead of an object, which contained a circular reference. v1.1.0 Fixed issue regarding high resource consumption, due to the long process of depth-limited stringification process. Components whose integral list of properties can easily be stringified are returned instantly. For components which contain properties with circular references, the individual data props are analyzed, and only those are truncated, which have circular references. The rest of the props are returned as-is, irrelevant of the depth. An informative message is prepended as a sub-value to the truncated props. Props that are undefined are also listed now, with having the value "undefined" as a string. v1.0.3 Fixed a bug because of which some Polymer properties which were specified in the component's static properties getter were not listed in the sidepane. Swapped the safeStringify method with an alternative one, which supports depth specification, thus, effectively limiting the JSON stringification process, avoiding endless circular references. v1.0.2 Fixed a bug because of which array properties of Polymer components were not listed in the sidepane. Marketplace searchable tags: litelement, lit-element, lit element, polymerelement, polymer-element, polymer element
5 ΠΈΠ· 57 ΠΎΡΠ΅Π½ΠΎΠΊ
ΠΠΎΠ΄ΡΠΎΠ±Π½Π΅Π΅ ΠΎ ΡΠ΅Π·ΡΠ»ΡΡΠ°ΡΠ°Ρ ΠΈ ΠΎΡΠ·ΡΠ²Π°Ρ β¦
ΠΠΎΠ΄ΡΠΎΠ±Π½ΠΎΡΡΠΈ
- ΠΠ΅ΡΡΠΈΡ1.2.0
- ΠΠ±Π½ΠΎΠ²Π»Π΅Π½ΠΎ13 Π°Π²Π³ΡΡΡΠ° 2022β―Π³.
- ΠΠ²ΡΠΎΡ:KΓΆble IstvΓ‘n
- Π Π°Π·ΠΌΠ΅Ρ130KiB
- Π―Π·ΡΠΊΠΈEnglish
- Π Π°Π·ΡΠ°Π±ΠΎΡΡΠΈΠΊ
ΠΠ»Π΅ΠΊΡΡΠΎΠ½Π½Π°Ρ ΠΏΠΎΡΡΠ°
kobleistvan@gmail.com - ΠΠ΅ ΠΏΡΠΎΠ΄Π°Π²Π΅ΡΠ Π°Π·ΡΠ°Π±ΠΎΡΡΠΈΠΊ Π½Π΅ ΡΠΊΠ°Π·Π°Π» Π΄Π»Ρ ΡΠ΅Π±Ρ ΡΡΠ°ΡΡΡ ΠΏΡΠΎΠ΄Π°Π²ΡΠ°. ΠΡΠΎΡΠΈΠΌ ΠΊΠ»ΠΈΠ΅Π½ΡΠΎΠ² ΠΈΠ· ΠΠ²ΡΠΎΠΏΠ΅ΠΉΡΠΊΠΎΠ³ΠΎ ΡΠΎΡΠ·Π° ΠΎΠ±ΡΠ°ΡΠΈΡΡ Π²Π½ΠΈΠΌΠ°Π½ΠΈΠ΅, ΡΡΠΎ Π½Π° ΡΠ΄Π΅Π»ΠΊΠΈ ΠΌΠ΅ΠΆΠ΄Ρ Π²Π°ΠΌΠΈ ΠΈ ΡΡΠΈΠΌ ΡΠ°Π·ΡΠ°Π±ΠΎΡΡΠΈΠΊΠΎΠΌ Π½Π΅ ΡΠ°ΡΠΏΡΠΎΡΡΡΠ°Π½ΡΡΡΡΡ Π·Π°ΠΊΠΎΠ½Ρ ΠΎ Π·Π°ΡΠΈΡΠ΅ ΠΏΡΠ°Π² ΠΏΠΎΡΡΠ΅Π±ΠΈΡΠ΅Π»Π΅ΠΉ.
ΠΠΎΠ½ΡΠΈΠ΄Π΅Π½ΡΠΈΠ°Π»ΡΠ½ΠΎΡΡΡ
ΠΡΠΎΡ ΡΠ°Π·ΡΠ°Π±ΠΎΡΡΠΈΠΊ ΡΡΠ²Π΅ΡΠΆΠ΄Π°Π΅Ρ, ΡΡΠΎ Π²Π°ΡΠΈ Π΄Π°Π½Π½ΡΠ΅:
- ΠΠ΅ ΠΏΡΠΎΠ΄Π°ΡΡΡΡ ΡΡΠ΅ΡΡΠΈΠΌ Π»ΠΈΡΠ°ΠΌ, Π·Π° ΠΈΡΠΊΠ»ΡΡΠ΅Π½ΠΈΠ΅ΠΌ ΡΠ°Π·ΡΠ΅ΡΠ΅Π½Π½ΡΡ Π²Π°ΡΠΈΠ°Π½ΡΠΎΠ² ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π½ΠΈΡ
- ΠΠ΅ ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΡΡΡΡ ΠΈ Π½Π΅ ΠΏΠ΅ΡΠ΅Π΄Π°ΡΡΡΡ Π² ΡΠ΅Π»ΡΡ , Π½Π΅ ΡΠ²ΡΠ·Π°Π½Π½ΡΡ Ρ ΡΠ°Π±ΠΎΡΠΎΠΉ ΠΎΡΠ½ΠΎΠ²Π½ΡΡ ΡΡΠ½ΠΊΡΠΈΠΉ ΠΏΡΠΎΠ΄ΡΠΊΡΠ°
- ΠΠ΅ ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΡΡΡΡ ΠΈ Π½Π΅ ΠΏΠ΅ΡΠ΅Π΄Π°ΡΡΡΡ Π΄Π»Ρ ΠΎΠΏΡΠ΅Π΄Π΅Π»Π΅Π½ΠΈΡ ΠΏΠ»Π°ΡΠ΅ΠΆΠ΅ΡΠΏΠΎΡΠΎΠ±Π½ΠΎΡΡΠΈ ΠΈΠ»ΠΈ Π² ΡΠ΅Π»ΡΡ ΠΊΡΠ΅Π΄ΠΈΡΠΎΠ²Π°Π½ΠΈΡ
ΠΠΎΠ΄Π΄Π΅ΡΠΆΠΊΠ°
Π§ΡΠΎΠ±Ρ ΡΠΎΠΎΠ±ΡΠΈΡΡ ΠΎΠ± ΠΎΡΠΈΠ±ΠΊΠ°Ρ Π² ΡΠ°Π±ΠΎΡΠ΅ ΠΏΡΠΎΠ΄ΡΠΊΡΠ°, Π·Π°Π΄Π°ΡΡ Π²ΠΎΠΏΡΠΎΡ ΠΈΠ»ΠΈ ΠΏΠΎΠ΄Π΅Π»ΠΈΡΡΡΡ ΠΈΠ΄Π΅ΡΠΌΠΈ, ΠΎΡΠΊΡΠΎΠΉΡΠ΅ ΡΡΡ ΡΡΡΠ°Π½ΠΈΡΡ Π² Π±ΡΠ°ΡΠ·Π΅ΡΠ΅ Π΄Π»Ρ ΠΊΠΎΠΌΠΏΡΡΡΠ΅ΡΠ°.