Некодим логотипНекодим
МодификацииПубликацииНекодИИмЦены
Некодим логотипНекодим

© 2020-2026 Некодим

Готовые модификации для вашего сайта. Улучшайте функциональность и дизайн без программирования.

Компания

  • Контакты
  • Публичная оферта
  • Политика конфиденциальности
  • Согласие на обработку данных
  • Лицензионное соглашение
  • Реферальная программа

Полезное

  • Модификации
  • Публикации
  • Каталог блоков Tilda
  • MCP для агентов
  • Журнал изменений
  • Доска почёта

Личный кабинет

  • Вход
  • Регистрация
  • Цены
Журнал измененийИстория GitФайлыTilda MCP
Каталог файлов

tilda-zero-1.2.js

Код файла
Версия от 05.12.2026, 07:00:59 МСК
Оригинал на CDNСнимок 56c3b845Полный текст
2601 2602			if (atomTransform === 'matrix(1, 0, 0, 1, 0, 0)') atomTransform = 'none';2603			if (atomTransform === 'none') return;2604 2605			/*2606			 * matrix(a, b, c, d, e, f)2607			 *2608			 * The two arguments, A and D are for scaling the element in the2609			 * X-direction and the Y-direction, respectively. Identically to that of the scale(a, d) method.2610			 *2611			 * matrix(1, 0, 0, 1, 0, 0) === transform: scale(1)2612
История файла и сравнение версий
  • 05.12.2026, 07:00:59 · 56c3b845
*
2613 * The second and third arguments B and C are for skewing the element.
2614 * The two values work identically to that of the skew(b, c) method.
2615 *
2616 * matrix(0.707107, 0.707107, -0.707107, 0.707107, 0, 0) === rotate(45deg)
2617 * if there is any rotation than B === -C && A === D
2618 */
2619 collectedData.push({
2620 element: element,
2621 atom: atom,
2622 atomTransform: atomTransform,
2623 });
2624 });
2625 });
2626
2627 fastDOM.write(function () {
2628 collectedData.forEach(function (item) {
2629 item.atom.style.transform = 'none';
2630 item.element.style.transform = item.atomTransform;
2631 });
2632 });
2633}
2634
2635function t396__fixElementsLineHeights(elements) {
2636 var fastDOM = t396__initFastDOM();
2637 var collectedData = [];
2638
2639 fastDOM.read(function () {
2640 Array.prototype.forEach.call(elements, function (element) {
2641 var elementType = element.getAttribute('data-elem-type');
2642 if (elementType !== 'text') return;
2643
2644 var atom = element.querySelector('.tn-atom');
2645 if (!atom) return;
2646
2647 if (t396__isInsideGroupWithZoom(element)) return;
2648
2649 var zoom = element.style.zoom;
2650 var textSizeAdjust = atom.style.webkitTextSizeAdjust;
2651 var fontSize = atom.style.fontSize;
2652 var lineHeightUnits = element.getAttribute('data-field-lineheightunits-value') || '';
2653
2654 collectedData.push({
2655 element: element,
2656 atom: atom,
2657 zoom: zoom,
2658 textSizeAdjust: textSizeAdjust,
2659 fontSize: fontSize,
2660 isRelativeLineHeight: lineHeightUnits === '%',
2661 });
2662 });
2663 });
2664
2665 fastDOM.write(function () {
2666 collectedData.forEach(function (item) {
2667 item.atom.style.removeProperty('line-height');
2668
2669 if (window.t396__isSafari && item.zoom) {
2670 item.atom.style.webkitTextSizeAdjust = 'none';
2671 item.atom.style.fontSize = '';
2672 item.element.style.zoom = '';
2673 }
2674 });
2675 });
2676
2677 fastDOM.read(function () {
2678 collectedData.forEach(function (item) {
2679 item.computedLineHeight = parseFloat(window.getComputedStyle(item.atom).lineHeight);
2680 });
2681 });
2682
2683 fastDOM.write(function () {
2684 collectedData.forEach(function (item) {
2685 var lineHeight = item.computedLineHeight;
2686
2687 if (window.t396__isSafari && item.zoom) {
2688 item.atom.style.webkitTextSizeAdjust = item.textSizeAdjust;
2689 item.atom.style.fontSize = item.fontSize;
2690 if (item.zoom) item.element.style.zoom = item.zoom;
2691 }
2692
2693 if (lineHeight && !isNaN(lineHeight)) {
2694 item.atom.style.setProperty('--lh-px', Math.round(lineHeight) + 'px');
2695
2696 if (!item.isRelativeLineHeight) {
2697 item.atom.style.lineHeight = Math.round(lineHeight) + 'px';
2698 }
2699 }
2700 });
Предыдущие 100 строкСледующие 100 строк