PageSourceSearch

https://touying-typ.github.io/assets/js/9a26080b.315abd03.js

js touying-typ.github.io collected 2026-10-03 10:08:46 UTC 4,279 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6855],{73400:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>o,default:()=>m,frontMatter:()=>r,metadata:()=>a,toc:()=>l});var i=n(85893),s=n(11151);const r={sidebar_position:49,description:"Display list, enum, or terms items one by one with animation and styling.",toc_max_heading_level:2},o="item-by-item-fn",a={id:"reference/utils/item-by-item-fn",title:"item-by-item-fn",description:"Display list, enum, or terms items one by one with animation and styling.",source:"@site/docs/reference/utils/item-by-item-fn.mdx",sourceDirName:"reference/utils",slug:"/reference/utils/item-by-item-fn",permalink:"/docs/reference/utils/item-by-item-fn",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:49,frontMatter:{sidebar_position:49,description:"Display list, enum, or terms items one by one with animation and styling.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"alternatives-cases",permalink:"/docs/reference/utils/alternatives-cases"},next:{title:"item-by-item",permalink:"/docs/reference/utils/item-by-item"}},c={},l=[{value:"start : <TypeLink></TypeLink> | <TypeLink></TypeLink> | <TypeLink></TypeLink> | <TypeLink></TypeLink> <Default><code>1</code></Default>",id:"start",level:3},{value:"fn : <TypeLink></TypeLink>",id:"fn",level:3},{value:"cont : <TypeLink></TypeLink>",id:"cont",level:3}];function d(e){const t={a:"a",code:"code",h1:"h1",h3:"h3",p:"p",strong:"strong",...(0,s.a)(),...e.components},{Default:n,Param:r,Parameters:o,Signature:a,SignatureName:c,SignatureParam:l,SourceLink:d,TypeLink:m}=t;return n||u("Default",!0),r||u("Param",!0),o||u("Parameters",!0),a||u("Signature",!0),c||u("SignatureName",!0),l||u("SignatureParam",!0),d||u("SourceLink",!0),m||u("TypeLink",!0),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.h1,{id:"item-by-item-fn",children:"item-by-item-fn"}),"\n",(0,i.jsx)(a,{children:(0,i.jsxs)("code",{children:[(0,i.jsx)(c,{children:"item-by-item-fn"}),"(",(0,i.jsxs)(l,{children:[(0,i.jsx)(t.a,{href:"#self",children:"self: none"}),", "]}),(0,i.jsxs)(l,{children:[(0,i.jsx)(t.a,{href:"#start",children:"start: 1"}),", "]}),(0,i.jsxs)(l,{children:[(0,i.jsx)(t.a,{href:"#fn",children:"fn"}),", "]}),(0,i.jsx)(l,{children:(0,i.jsx)(t.a,{href:"#cont",children:"cont"})}),")",(0,i.jsx)(d,{href:"https://github.com/touying-typ/touying/blob/main/src/utils.typ#L2443"})]})}),"\n",(0,i.jsxs)(t.p,{children:["Display list, enum, or terms items one by one with animation and styling.\nFor more details see ",(0,i.jsx)(t.code,{children:"utils.item-by-item"}),"."]}),"\n",(0,i.jsxs)(o,{children:[(0,i.jsxs)(t.h3,{id:"start",children:["start : ",(0,i.jsx)(m,{type:"int"})," | ",(0,i.jsx)(m,{type:"label"})," | ",(0,i.jsx)(m,{type:"str"})," | ",(0,i.jsx)(m,{type:"dictionary"})," ",(0,i.jsx)(n,{children:(0,i.jsx)(t.code,{children:"1"})})]}),(0,i.jsx)(r,{children:(0,i.jsx)(t.p,{children:"The starting subslide number or waypoint."})}),(0,i.jsxs)(t.h3,{id:"fn",children:["fn : ",(0,i.jsx)(m,{type:"function"})]}),(0,i.jsx)(r,{children:(0,i.jsxs)(t.p,{children:["A function that gets ",(0,i.jsx)(t.code,{children:"(idx, it)"})," and returns the styled item content for the item at the relative index ",(0,i.jsx)(t.code,{children:"idx"})," (may be negative if it was revealed already)"]})}),(0,i.jsxs)(t.h3,{id:"cont",children:["cont : ",(0,i.jsx)(m,{type:"content"})]}),(0,i.jsx)(r,{children:(0,i.jsx)(t.p,{children:"The content containing the items to display."})})]}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"Returns:"})," ",(0,i.jsx)(m,{type:"content"})]})]})}function m(e={}){const{wrapper:t}={...(0,s.a)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(d,{...e})}):d(e)}function u(e,t){throw new Error("Expected "+(t?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}},11151:(e,t,n)=>{n.d(t,{Z:()=>a,a:()=>o});var i=n(67294);const s={},r=i.createContext(s);function o(e){const t=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),i.createElement(r.Provider,{value:t},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.