[{"data":1,"prerenderedAt":632},["ShallowReactive",2],{"articles-all":3,"/es/desarrollo/funciones/map":513},[4,18,26,33,40,49,56,64,71,80,89,96,103,110,117,124,131,139,151,161,169,180,188,195,206,215,221,228,235,242,248,253,260,268,273,279,285,291,297,303,309,316,323,330,337,344,350,357,364,371,378,385,392,398,403,409,416,423,428,434,440,445,450,455,461,467,473,480,487,494,501,507],{"locale":5,"path":6,"title":7,"description":8,"cat":9,"catSlug":10,"tags":11,"icon":13,"updated":14,"words":15,"read":16,"stem":17},"en","/desarrollo/netlify/desplegar-proyecto","Deploy a Project","Learn how to deploy your project on Netlify.","Nuxt/Sanity","desarrollo",[12],"netlify","i-lucide-cloud","2026-01-02",104,"2 min read","1.desarrollo/1.netlify/1.desplegar-proyecto",{"locale":5,"path":19,"title":20,"description":21,"cat":9,"catSlug":10,"tags":22,"icon":13,"updated":23,"words":24,"read":16,"stem":25},"/desarrollo/netlify/configurar-hook-sanity","Deploy from Sanity","Learn how to set up a Build Hook in Netlify to trigger deploys directly from Sanity Studio.",[12],"2026-01-13",99,"1.desarrollo/1.netlify/2.configurar-hook-sanity",{"locale":5,"path":27,"title":28,"description":29,"cat":9,"catSlug":10,"tags":30,"icon":13,"updated":23,"words":31,"read":16,"stem":32},"/desarrollo/netlify/configurar-pagina-preview","Set Up Preview Page","Learn how to set up a preview page using Netlify and Sanity to review changes before production.",[12],142,"1.desarrollo/1.netlify/3.configurar-pagina-preview",{"locale":5,"path":34,"title":35,"description":36,"cat":9,"catSlug":10,"tags":37,"icon":13,"updated":14,"words":38,"read":16,"stem":39},"/desarrollo/netlify/configurar-formulario","Set Up Forms","Learn how to create and use Netlify forms",[12],259,"1.desarrollo/1.netlify/4.configurar-formulario",{"locale":5,"path":41,"title":42,"description":43,"cat":9,"catSlug":10,"tags":44,"icon":46,"updated":14,"words":47,"read":16,"stem":48},"/desarrollo/nuxt/introduccion","Starter Introduction","Work in progress...",[45],"nuxt","i-lucide-layers",3,"1.desarrollo/2.nuxt/1.introduccion",{"locale":5,"path":50,"title":51,"description":52,"cat":9,"catSlug":10,"tags":53,"icon":46,"updated":14,"words":54,"read":16,"stem":55},"/desarrollo/nuxt/preload","Font Preload","To avoid the typographic jump while the font loads, just enable font preloading in App.vue, in useHead:",[45],206,"1.desarrollo/2.nuxt/preload",{"locale":5,"path":57,"title":42,"description":58,"cat":9,"catSlug":10,"tags":59,"icon":61,"updated":14,"words":62,"read":16,"stem":63},"/desarrollo/sanity/introduccion","Learn how to set up the deploy and preview page",[60],"sanity","i-lucide-database",33,"1.desarrollo/3.sanity/1.introduccion",{"locale":5,"path":65,"title":66,"description":67,"cat":9,"catSlug":10,"tags":68,"icon":61,"updated":14,"words":69,"read":16,"stem":70},"/desarrollo/sanity/preview-documentos","Set Up Per-Document Preview","Learn how to set up preview for each existing document in your project",[60],154,"1.desarrollo/3.sanity/2.preview-documentos",{"locale":5,"path":72,"title":73,"description":74,"cat":9,"catSlug":10,"tags":75,"icon":61,"updated":76,"words":77,"read":78,"stem":79},"/desarrollo/sanity/ai-assistant","Sanity AI Assistant and AI Actions (Editing, Translations and SEO)","What Sanity's AI Assist is, how instructions work, and the translation and content actions our starter adds.",[60],"2026-10-26",1405,"7 min read","1.desarrollo/3.sanity/3.ai-assistant",{"locale":5,"path":81,"title":82,"description":83,"cat":9,"catSlug":10,"tags":84,"icon":86,"updated":14,"words":87,"read":16,"stem":88},"/desarrollo/funciones/clamp","clamp()","Clamps a value within a specific range so it never exceeds the limits.",[85],"funciones","i-lucide-square-function",134,"1.desarrollo/4.funciones/1.clamp",{"locale":5,"path":90,"title":91,"description":92,"cat":9,"catSlug":10,"tags":93,"icon":86,"updated":14,"words":94,"read":16,"stem":95},"/desarrollo/funciones/lerp","lerp()","Classic linear interpolation to ease an initial value toward a final one using an alpha factor.",[85],147,"1.desarrollo/4.funciones/2.lerp",{"locale":5,"path":97,"title":98,"description":99,"cat":9,"catSlug":10,"tags":100,"icon":86,"updated":14,"words":101,"read":16,"stem":102},"/desarrollo/funciones/map","map()","This function is commonly known as a linear mapping or range remapping function.",[85],260,"1.desarrollo/4.funciones/3.map",{"locale":5,"path":104,"title":105,"description":106,"cat":9,"catSlug":10,"tags":107,"icon":86,"updated":14,"words":108,"read":16,"stem":109},"/desarrollo/funciones/mix","mix()","Interpolates between two numeric values using an alpha factor between 0 and 1.",[85],139,"1.desarrollo/4.funciones/4.mix",{"locale":5,"path":111,"title":112,"description":113,"cat":9,"catSlug":10,"tags":114,"icon":86,"updated":14,"words":115,"read":16,"stem":116},"/desarrollo/funciones/smoothstep","smoothstep()","Produces a smooth transition between two values, ideal for animation without abrupt jumps.",[85],171,"1.desarrollo/4.funciones/5.smoothstep",{"locale":5,"path":118,"title":119,"description":120,"cat":9,"catSlug":10,"tags":121,"icon":86,"updated":14,"words":122,"read":16,"stem":123},"/desarrollo/funciones/step","step()","Returns 0 or 1 depending on whether a value exceeds a given threshold.",[85],112,"1.desarrollo/4.funciones/6.step",{"locale":5,"path":125,"title":126,"description":127,"cat":9,"catSlug":10,"tags":128,"icon":86,"updated":14,"words":129,"read":16,"stem":130},"/desarrollo/funciones/truncatedecimals","truncateDecimals()","Truncates a number to the requested decimal places without rounding.",[85],119,"1.desarrollo/4.funciones/7.truncateDecimals",{"locale":5,"path":132,"title":133,"description":134,"cat":9,"catSlug":10,"tags":135,"icon":86,"updated":14,"words":136,"read":137,"stem":138},"/desarrollo/funciones/vec","Vec","Utility class for working with 2D and 3D vectors and performing common operations.",[85],510,"3 min read","1.desarrollo/4.funciones/8.vec",{"locale":5,"path":140,"title":141,"description":142,"cat":143,"catSlug":144,"tags":145,"icon":147,"updated":148,"words":149,"read":16,"stem":150},"/shopify/admin/colaboradores-externos","External Collaborators","How to add external collaborators in Shopify","Shopify","shopify",[146],"admin","i-lucide-settings","2026-09-25",7,"2.shopify/1.admin/1.colaboradores-externos",{"locale":5,"path":152,"title":153,"description":154,"cat":143,"catSlug":144,"tags":155,"icon":157,"updated":158,"words":159,"read":137,"stem":160},"/shopify/ia/shopify-con-claude","Shopify with Claude: installation, connecting stores and usage","Quick guide to working with Shopify stores from Claude Code (the Code tab of Claude Desktop).",[156],"ia","i-lucide-sparkles","2026-11-04",672,"2.shopify/2.ia/1.shopify-con-claude",{"locale":5,"path":162,"title":163,"description":164,"cat":143,"catSlug":144,"tags":165,"icon":157,"updated":166,"words":167,"read":16,"stem":168},"/shopify/ia/skills-claude","AI Skills for Shopify","What our Claude skills are, which imports they automate, and why you don't need a skill to edit JSON.",[156],"2026-10-20",401,"2.shopify/2.ia/2.skills-claude",{"locale":5,"path":170,"title":171,"description":172,"cat":173,"catSlug":174,"tags":175,"icon":176,"updated":177,"words":178,"read":16,"stem":179},"/holded/fichaje","Time Tracking","Learn how to start and stop the timer to log your time accurately","Holded","holded",[174],"i-lucide-clock","2026-01-08",37,"3.holded/1.fichaje",{"locale":5,"path":181,"title":182,"description":183,"cat":173,"catSlug":174,"tags":184,"icon":176,"updated":185,"words":186,"read":16,"stem":187},"/holded/proyectos-tareas-horas","Project Hours","Create projects and log tasks efficiently",[174],"2026-01-22",36,"3.holded/2.proyectos-tareas-horas",{"locale":5,"path":189,"title":190,"description":191,"cat":173,"catSlug":174,"tags":192,"icon":176,"updated":14,"words":193,"read":16,"stem":194},"/holded/vacaciones","Time Off","Learn how to request days off and check your absence history",[174],39,"3.holded/3.vacaciones",{"locale":5,"path":196,"title":197,"description":198,"cat":199,"catSlug":200,"tags":201,"icon":202,"updated":203,"words":204,"read":16,"stem":205},"/cloudflare/redirigir-www","Redirect www to non-www","How to redirect the www version of a Cloudflare Pages (pages.dev) project to the domain without www.","Cloudflare","cloudflare",[200],"i-simple-icons-cloudflare","2026-10-17",144,"4.cloudflare/1.redirigir-www",{"locale":207,"path":208,"title":209,"description":210,"cat":9,"catSlug":10,"tags":211,"icon":13,"updated":14,"words":212,"read":213,"stem":214},"ca","/ca/desarrollo/netlify/desplegar-proyecto","Desplegar un projecte","Aprèn a desplegar el teu projecte a Netlify.",[12],108,"2 min de lectura","ca/1.desarrollo/1.netlify/1.desplegar-proyecto",{"locale":207,"path":216,"title":217,"description":218,"cat":9,"catSlug":10,"tags":219,"icon":13,"updated":23,"words":15,"read":213,"stem":220},"/ca/desarrollo/netlify/configurar-hook-sanity","Deploy des de Sanity","Aprèn a configurar un Build Hook a Netlify per llançar deploys directament des de Sanity Studio.",[12],"ca/1.desarrollo/1.netlify/2.configurar-hook-sanity",{"locale":207,"path":222,"title":223,"description":224,"cat":9,"catSlug":10,"tags":225,"icon":13,"updated":23,"words":226,"read":213,"stem":227},"/ca/desarrollo/netlify/configurar-pagina-preview","Configurar la pàgina de preview","Aprèn a configurar una pàgina de preview amb Netlify i Sanity per visualitzar canvis abans de producció.",[12],153,"ca/1.desarrollo/1.netlify/3.configurar-pagina-preview",{"locale":207,"path":229,"title":230,"description":231,"cat":9,"catSlug":10,"tags":232,"icon":13,"updated":14,"words":233,"read":213,"stem":234},"/ca/desarrollo/netlify/configurar-formulario","Configurar formularis","Aprèn a crear i utilitzar formularis de Netlify",[12],276,"ca/1.desarrollo/1.netlify/4.configurar-formulario",{"locale":207,"path":236,"title":237,"description":238,"cat":9,"catSlug":10,"tags":239,"icon":46,"updated":14,"words":240,"read":213,"stem":241},"/ca/desarrollo/nuxt/introduccion","Introducció a l'Starter","En desenvolupament...",[45],2,"ca/1.desarrollo/2.nuxt/1.introduccion",{"locale":207,"path":243,"title":51,"description":244,"cat":9,"catSlug":10,"tags":245,"icon":46,"updated":14,"words":246,"read":213,"stem":247},"/ca/desarrollo/nuxt/preload","Per evitar el salt tipogràfic mentre la font es carrega, n'hi ha prou amb activar el preload de les fonts a App.vue, a useHead:",[45],220,"ca/1.desarrollo/2.nuxt/preload",{"locale":207,"path":249,"title":237,"description":250,"cat":9,"catSlug":10,"tags":251,"icon":61,"updated":14,"words":62,"read":213,"stem":252},"/ca/desarrollo/sanity/introduccion","Aprèn a configurar el deploy i la pàgina de preview",[60],"ca/1.desarrollo/3.sanity/1.introduccion",{"locale":207,"path":254,"title":255,"description":256,"cat":9,"catSlug":10,"tags":257,"icon":61,"updated":14,"words":258,"read":213,"stem":259},"/ca/desarrollo/sanity/preview-documentos","Configura la preview per document","Aprèn a configurar la preview de cada document existent al teu projecte",[60],163,"ca/1.desarrollo/3.sanity/2.preview-documentos",{"locale":207,"path":261,"title":262,"description":263,"cat":9,"catSlug":10,"tags":264,"icon":61,"updated":76,"words":265,"read":266,"stem":267},"/ca/desarrollo/sanity/ai-assistant","Assistent d'IA de Sanity i accions d'IA (edició, traduccions i SEO)","Què és l'AI Assist de Sanity, com funcionen les instruccions i les accions de traducció i contingut que afegeix el nostre starter.",[60],1513,"8 min de lectura","ca/1.desarrollo/3.sanity/3.ai-assistant",{"locale":207,"path":269,"title":82,"description":270,"cat":9,"catSlug":10,"tags":271,"icon":86,"updated":14,"words":87,"read":213,"stem":272},"/ca/desarrollo/funciones/clamp","Limita un valor dins d'un rang específic perquè no superi mai els límits.",[85],"ca/1.desarrollo/4.funciones/1.clamp",{"locale":207,"path":274,"title":91,"description":275,"cat":9,"catSlug":10,"tags":276,"icon":86,"updated":14,"words":277,"read":213,"stem":278},"/ca/desarrollo/funciones/lerp","Interpolació lineal clàssica per acostar un valor inicial a un de final amb un factor alpha.",[85],148,"ca/1.desarrollo/4.funciones/2.lerp",{"locale":207,"path":280,"title":98,"description":281,"cat":9,"catSlug":10,"tags":282,"icon":86,"updated":14,"words":283,"read":213,"stem":284},"/ca/desarrollo/funciones/map","Aquesta funció es coneix comunament com a funció de mapatge lineal o de reescalat de rangs.",[85],262,"ca/1.desarrollo/4.funciones/3.map",{"locale":207,"path":286,"title":105,"description":287,"cat":9,"catSlug":10,"tags":288,"icon":86,"updated":14,"words":289,"read":213,"stem":290},"/ca/desarrollo/funciones/mix","Interpola entre dos valors numèrics amb un factor alpha entre 0 i 1.",[85],141,"ca/1.desarrollo/4.funciones/4.mix",{"locale":207,"path":292,"title":112,"description":293,"cat":9,"catSlug":10,"tags":294,"icon":86,"updated":14,"words":295,"read":213,"stem":296},"/ca/desarrollo/funciones/smoothstep","Produeix una transició suau entre dos valors, ideal per a animacions sense salts bruscos.",[85],173,"ca/1.desarrollo/4.funciones/5.smoothstep",{"locale":207,"path":298,"title":119,"description":299,"cat":9,"catSlug":10,"tags":300,"icon":86,"updated":14,"words":301,"read":213,"stem":302},"/ca/desarrollo/funciones/step","Retorna 0 o 1 segons si un valor supera un llindar determinat.",[85],114,"ca/1.desarrollo/4.funciones/6.step",{"locale":207,"path":304,"title":126,"description":305,"cat":9,"catSlug":10,"tags":306,"icon":86,"updated":14,"words":307,"read":213,"stem":308},"/ca/desarrollo/funciones/truncatedecimals","Trunca un nombre al nombre de decimals sol·licitat sense arrodonir.",[85],123,"ca/1.desarrollo/4.funciones/7.truncateDecimals",{"locale":207,"path":310,"title":133,"description":311,"cat":9,"catSlug":10,"tags":312,"icon":86,"updated":14,"words":313,"read":314,"stem":315},"/ca/desarrollo/funciones/vec","Classe utilitària per treballar amb vectors 2D i 3D i fer operacions comunes.",[85],508,"3 min de lectura","ca/1.desarrollo/4.funciones/8.vec",{"locale":207,"path":317,"title":318,"description":319,"cat":143,"catSlug":144,"tags":320,"icon":147,"updated":148,"words":321,"read":213,"stem":322},"/ca/shopify/admin/colaboradores-externos","Col·laboradors externs","Com afegir col·laboradors externs a Shopify",[146],6,"ca/2.shopify/1.admin/1.colaboradores-externos",{"locale":207,"path":324,"title":325,"description":326,"cat":143,"catSlug":144,"tags":327,"icon":157,"updated":158,"words":328,"read":314,"stem":329},"/ca/shopify/ia/shopify-con-claude","Shopify amb Claude: instal·lació, connexió a botigues i ús","Guia ràpida per treballar amb botigues Shopify des de Claude Code (pestanya Code de Claude Desktop).",[156],688,"ca/2.shopify/2.ia/1.shopify-con-claude",{"locale":207,"path":331,"title":332,"description":333,"cat":143,"catSlug":144,"tags":334,"icon":157,"updated":166,"words":335,"read":213,"stem":336},"/ca/shopify/ia/skills-claude","Skills d'IA per a Shopify","Què són les nostres skills per a Claude, quines importacions automatitzen i per què no cal una skill per editar JSON.",[156],413,"ca/2.shopify/2.ia/2.skills-claude",{"locale":207,"path":338,"title":339,"description":340,"cat":173,"catSlug":174,"tags":341,"icon":176,"updated":177,"words":342,"read":213,"stem":343},"/ca/holded/fichaje","Fitxatge horari","Aprèn a iniciar i aturar el cronòmetre per registrar el teu temps amb precisió",[174],41,"ca/3.holded/1.fichaje",{"locale":207,"path":345,"title":346,"description":347,"cat":173,"catSlug":174,"tags":348,"icon":176,"updated":185,"words":178,"read":213,"stem":349},"/ca/holded/proyectos-tareas-horas","Hores de projectes","Crea projectes i registra tasques de manera eficient",[174],"ca/3.holded/2.proyectos-tareas-horas",{"locale":207,"path":351,"title":352,"description":353,"cat":173,"catSlug":174,"tags":354,"icon":176,"updated":14,"words":355,"read":213,"stem":356},"/ca/holded/vacaciones","Vacances","Aprèn a sol·licitar dies lliures i consultar el teu historial d'absències",[174],42,"ca/3.holded/3.vacaciones",{"locale":207,"path":358,"title":359,"description":360,"cat":199,"catSlug":200,"tags":361,"icon":202,"updated":203,"words":362,"read":213,"stem":363},"/ca/cloudflare/redirigir-www","Redirigir www a non-www","Com fer que la versió www d'un projecte de Cloudflare Pages (pages.dev) redirigeixi al domini sense www.",[200],155,"ca/4.cloudflare/1.redirigir-www",{"locale":365,"path":366,"title":367,"description":368,"cat":9,"catSlug":10,"tags":369,"icon":13,"updated":14,"words":15,"read":213,"stem":370},"es","/es/desarrollo/netlify/desplegar-proyecto","Desplegar un Proyecto","Aprende a desplegar tu proyecto en Netlify.",[12],"es/1.desarrollo/1.netlify/1.desplegar-proyecto",{"locale":365,"path":372,"title":373,"description":374,"cat":9,"catSlug":10,"tags":375,"icon":13,"updated":23,"words":376,"read":213,"stem":377},"/es/desarrollo/netlify/configurar-hook-sanity","Deploy desde Sanity","Aprende a configurar un Build Hook en Netlify para lanzar deploys directamente desde Sanity Studio.",[12],103,"es/1.desarrollo/1.netlify/2.configurar-hook-sanity",{"locale":365,"path":379,"title":380,"description":381,"cat":9,"catSlug":10,"tags":382,"icon":13,"updated":23,"words":383,"read":213,"stem":384},"/es/desarrollo/netlify/configurar-pagina-preview","Configurar Página Preview","Aprende a configurar una página de preview usando Netlify y Sanity para visualizar cambios antes de producción.",[12],151,"es/1.desarrollo/1.netlify/3.configurar-pagina-preview",{"locale":365,"path":386,"title":387,"description":388,"cat":9,"catSlug":10,"tags":389,"icon":13,"updated":14,"words":390,"read":213,"stem":391},"/es/desarrollo/netlify/configurar-formulario","Configurar Formulario","Aprende a crear y usar formularios de Netlify",[12],280,"es/1.desarrollo/1.netlify/4.configurar-formulario",{"locale":365,"path":393,"title":394,"description":395,"cat":9,"catSlug":10,"tags":396,"icon":46,"updated":14,"words":240,"read":213,"stem":397},"/es/desarrollo/nuxt/introduccion","Introducción al Starter","En desarrollo...",[45],"es/1.desarrollo/2.nuxt/1.introduccion",{"locale":365,"path":399,"title":51,"description":400,"cat":9,"catSlug":10,"tags":401,"icon":46,"updated":14,"words":246,"read":213,"stem":402},"/es/desarrollo/nuxt/preload","Para evitar el salto tipográfico mientras la fuente se carga, basta con activar el preload de las fuentes App.vue, en useHead:",[45],"es/1.desarrollo/2.nuxt/preload",{"locale":365,"path":404,"title":394,"description":405,"cat":9,"catSlug":10,"tags":406,"icon":61,"updated":14,"words":407,"read":213,"stem":408},"/es/desarrollo/sanity/introduccion","Aprende a configurar el deploy y página preview",[60],31,"es/1.desarrollo/3.sanity/1.introduccion",{"locale":365,"path":410,"title":411,"description":412,"cat":9,"catSlug":10,"tags":413,"icon":61,"updated":14,"words":414,"read":213,"stem":415},"/es/desarrollo/sanity/preview-documentos","Configura el preview por documento","Aprende a configurar el preview de cada documento existente en tu proyecto",[60],162,"es/1.desarrollo/3.sanity/2.preview-documentos",{"locale":365,"path":417,"title":418,"description":419,"cat":9,"catSlug":10,"tags":420,"icon":61,"updated":76,"words":421,"read":266,"stem":422},"/es/desarrollo/sanity/ai-assistant","Asistente de IA de Sanity y acciones de IA (edición, traducciones y SEO)","Qué es el AI Assist de Sanity, cómo funcionan las instrucciones y las acciones de traducción y contenido que añade nuestro starter.",[60],1542,"es/1.desarrollo/3.sanity/3.ai-assistant",{"locale":365,"path":424,"title":82,"description":425,"cat":9,"catSlug":10,"tags":426,"icon":86,"updated":14,"words":87,"read":213,"stem":427},"/es/desarrollo/funciones/clamp","Limita un valor dentro de un rango específico para que nunca supere los límites.",[85],"es/1.desarrollo/4.funciones/1.clamp",{"locale":365,"path":429,"title":91,"description":430,"cat":9,"catSlug":10,"tags":431,"icon":86,"updated":14,"words":432,"read":213,"stem":433},"/es/desarrollo/funciones/lerp","Interpolación lineal clásica para acercar un valor inicial a uno final usando un factor alpha.",[85],149,"es/1.desarrollo/4.funciones/2.lerp",{"locale":365,"path":435,"title":98,"description":436,"cat":9,"catSlug":10,"tags":437,"icon":86,"updated":14,"words":438,"read":213,"stem":439},"/es/desarrollo/funciones/map","Esta función se conoce comúnmente como función de mapeo lineal o remapeo de rangos.",[85],270,"es/1.desarrollo/4.funciones/3.map",{"locale":365,"path":441,"title":105,"description":442,"cat":9,"catSlug":10,"tags":443,"icon":86,"updated":14,"words":289,"read":213,"stem":444},"/es/desarrollo/funciones/mix","Interpola entre dos valores numéricos utilizando un factor alpha entre 0 y 1.",[85],"es/1.desarrollo/4.funciones/4.mix",{"locale":365,"path":446,"title":112,"description":447,"cat":9,"catSlug":10,"tags":448,"icon":86,"updated":14,"words":295,"read":213,"stem":449},"/es/desarrollo/funciones/smoothstep","Produce una transición suave entre dos valores, ideal para animaciones sin saltos bruscos.",[85],"es/1.desarrollo/4.funciones/5.smoothstep",{"locale":365,"path":451,"title":119,"description":452,"cat":9,"catSlug":10,"tags":453,"icon":86,"updated":14,"words":301,"read":213,"stem":454},"/es/desarrollo/funciones/step","Devuelve 0 o 1 dependiendo de si un valor supera un umbral determinado.",[85],"es/1.desarrollo/4.funciones/6.step",{"locale":365,"path":456,"title":126,"description":457,"cat":9,"catSlug":10,"tags":458,"icon":86,"updated":14,"words":459,"read":213,"stem":460},"/es/desarrollo/funciones/truncatedecimals","Corta un número al número de decimales solicitado sin realizar redondeos.",[85],122,"es/1.desarrollo/4.funciones/7.truncateDecimals",{"locale":365,"path":462,"title":133,"description":463,"cat":9,"catSlug":10,"tags":464,"icon":86,"updated":14,"words":465,"read":314,"stem":466},"/es/desarrollo/funciones/vec","Clase utilitaria para trabajar con vectores 2D y 3D y realizar operaciones comunes.",[85],507,"es/1.desarrollo/4.funciones/8.vec",{"locale":365,"path":468,"title":469,"description":470,"cat":143,"catSlug":144,"tags":471,"icon":147,"updated":148,"words":321,"read":213,"stem":472},"/es/shopify/admin/colaboradores-externos","Colaboradores externos","Cómo añadir colaboradores externos en Shopify",[146],"es/2.shopify/1.admin/1.colaboradores-externos",{"locale":365,"path":474,"title":475,"description":476,"cat":143,"catSlug":144,"tags":477,"icon":157,"updated":158,"words":478,"read":314,"stem":479},"/es/shopify/ia/shopify-con-claude","Shopify con Claude: instalación, conexión a tiendas y uso","Guía rápida para trabajar con tiendas Shopify desde Claude Code (pestaña Code de Claude Desktop).",[156],677,"es/2.shopify/2.ia/1.shopify-con-claude",{"locale":365,"path":481,"title":482,"description":483,"cat":143,"catSlug":144,"tags":484,"icon":157,"updated":166,"words":485,"read":213,"stem":486},"/es/shopify/ia/skills-claude","Skills de IA para Shopify","Qué son nuestras skills para Claude, qué importaciones automatizan y por qué no hace falta una skill para editar JSON.",[156],417,"es/2.shopify/2.ia/2.skills-claude",{"locale":365,"path":488,"title":489,"description":490,"cat":173,"catSlug":174,"tags":491,"icon":176,"updated":177,"words":492,"read":213,"stem":493},"/es/holded/fichaje","Fichaje horario","Aprende a iniciar y detener el cronómetro para registrar tu tiempo de manera precisa",[174],43,"es/3.holded/1.fichaje",{"locale":365,"path":495,"title":496,"description":497,"cat":173,"catSlug":174,"tags":498,"icon":176,"updated":185,"words":499,"read":213,"stem":500},"/es/holded/proyectos-tareas-horas","Horas proyectos","Crear proyectos y registrar tareas de forma eficiente",[174],34,"es/3.holded/2.proyectos-tareas-horas",{"locale":365,"path":502,"title":503,"description":504,"cat":173,"catSlug":174,"tags":505,"icon":176,"updated":14,"words":355,"read":213,"stem":506},"/es/holded/vacaciones","Vacaciones","Aprende a solicitar días libres y consultar tu historial de ausencias",[174],"es/3.holded/3.vacaciones",{"locale":365,"path":508,"title":359,"description":509,"cat":199,"catSlug":200,"tags":510,"icon":202,"updated":203,"words":511,"read":213,"stem":512},"/es/cloudflare/redirigir-www","Cómo hacer que la versión www de un proyecto de Cloudflare Pages (pages.dev) redirija al dominio sin www.",[200],158,"es/4.cloudflare/1.redirigir-www",{"id":514,"title":98,"body":515,"description":436,"extension":626,"icon":627,"meta":628,"navigation":629,"path":435,"seo":630,"stem":439,"tags":627,"updated":14,"__hash__":631},"docs/es/1.desarrollo/4.funciones/3.map.md",{"type":516,"value":517,"toc":620},"minimark",[518,523,534,538,608,612],[519,520,522],"h2",{"id":521},"código","Código",[524,525,530],"pre",{"className":526,"code":528,"language":529},[527],"language-text","function map(x, a1, a2, b1, b2){\n    return ((x - a1) * (b2 - b1)) / (a2 - a1) + b1;\n}\n","text",[531,532,528],"code",{"__ignoreMap":533},"",[519,535,537],{"id":536},"parámetros","Parámetros",[539,540,541,554],"table",{},[542,543,544],"thead",{},[545,546,547,551],"tr",{},[548,549,550],"th",{},"Parámetro",[548,552,553],{},"Descripción",[555,556,557,568,578,588,598],"tbody",{},[545,558,559,565],{},[560,561,562],"td",{},[531,563,564],{},"x",[560,566,567],{},"Valor a convertir.",[545,569,570,575],{},[560,571,572],{},[531,573,574],{},"a1",[560,576,577],{},"Límite inferior del rango original.",[545,579,580,585],{},[560,581,582],{},[531,583,584],{},"a2",[560,586,587],{},"Límite superior del rango original.",[545,589,590,595],{},[560,591,592],{},[531,593,594],{},"b1",[560,596,597],{},"Límite inferior del nuevo rango.",[545,599,600,605],{},[560,601,602],{},[531,603,604],{},"b2",[560,606,607],{},"Límite superior del nuevo rango.",[519,609,611],{"id":610},"ejemplo-en-nuxt","Ejemplo en Nuxt",[524,613,618],{"className":614,"code":616,"language":617,"meta":533},[615],"language-ts","\u003Cscript setup>\n// La función\nfunction map(x, a1, a2, b1, b2){\n    return ((x - a1) * (b2 - b1)) / (a2 - a1) + b1;\n}\n\n// Variables necesarias\nconst maxScroll = ref(500)\nconst minWidth = ref(25)\nconst maxWidth = ref(80)\nconst currentWidth = ref(25)\n\n// Flag para evitar múltiples actualizaciones dentro del mismo ciclo de animación\nlet ticking = false;\n\n// Función que actualiza el ancho basado en la posición del scroll\nconst updateWidth = () => {\n    const scroll = window.scrollY\n\n    // Limita el valor del scroll entre 0 y maxScroll.value\n    const clamped = Math.min(Math.max(scroll, 0), maxScroll.value)\n\n    // Convierte la posición del scroll en un ancho usando la función map\n    currentWidth.value = map(clamped, 0, maxScroll.value, minWidth.value, maxWidth.value)\n\n    // Permite nuevas actualizaciones en el próximo frame\n    ticking = false\n}\n\n// Función que se ejecuta cada vez que ocurre un scroll\nconst onScroll = () => {\n    // Solo actualiza si no se está ya ejecutando un ciclo de requestAnimationFrame\n    if (!ticking) {\n        requestAnimationFrame(updateWidth)\n        ticking = true\n    }\n}\n\n// Se agrega el event listener cuando el componente se monta\nonMounted(() => {\n    window.addEventListener('scroll', onScroll)\n})\n\n// Se remueve el event listener cuando el componente se desmonta\nonUnmounted(() => {\n    window.removeEventListener('scroll', onScroll)\n})\n\u003C/script>\n\u003Ctemplate>\n  \u003Cdiv :style=\"{width: currentWidth + '%'}\">\n    Contenido\n  \u003C/div>\n\u003C/template>\n","ts",[531,619,616],{"__ignoreMap":533},{"title":533,"searchDepth":621,"depth":240,"links":622},1,[623,624,625],{"id":521,"depth":240,"text":522},{"id":536,"depth":240,"text":537},{"id":610,"depth":240,"text":611},"md",null,{},true,{"title":98,"description":436},"inhVJaCyvVFqcDQIgV1jfbw2dGHg5hcUYv-IzXnP-CI",1793792685285]