1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5160],{8025:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>o,default:()=>m,frontMatter:()=>s,metadata:()=>a,toc:()=>l});var i=n(85893),r=n(11151);const s={sidebar_position:50,description:"Display list, enum, or terms items one by one with animation.",toc_max_heading_level:2},o="item-by-item",a={id:"reference/utils/item-by-item",title:"item-by-item",description:"Display list, enum, or terms items one by one with animation.",source:"@site/docs/reference/utils/item-by-item.mdx",sourceDirName:"reference/utils",slug:"/reference/utils/item-by-item",permalink:"/docs/reference/utils/item-by-item",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:50,frontMatter:{sidebar_position:50,description:"Display list, enum, or terms items one by one with animation.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"item-by-item-fn",permalink:"/docs/reference/utils/item-by-item-fn"},next:{title:"speaker-note",permalink:"/docs/reference/utils/speaker-note"}},c={},l=[{value:"start : <TypeLink></TypeLink> | <TypeLink></TypeLink> | <TypeLink></TypeLink> | <TypeLink></TypeLink> <Default><code>1</code></Default>",id:"start",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",pre:"pre",strong:"strong",...(0,r.a)(),...e.components},{Default:n,Param:s,Parameters:o,Signature:a,SignatureName:c,SignatureParam:l,SourceLink:d,TypeLink:m}=t;return n||p("Default",!0),s||p("Param",!0),o||p("Parameters",!0),a||p("Signature",!0),c||p("SignatureName",!0),l||p("SignatureParam",!0),d||p("SourceLink",!0),m||p("TypeLink",!0),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.h1,{id:"item-by-item",children:"item-by-item"}),"\n",(0,i.jsx)(a,{children:(0,i.jsxs)("code",{children:[(0,i.jsx)(c,{children:"item-by-item"}),"(",(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.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#L2573"})]})}),"\n",(0,i.jsx)(t.p,{children:"Display list, enum, or terms items one by one with animation."}),"\n",(0,i.jsxs)(t.p,{children:["Each item is revealed on a successive subslide. By default (",(0,i.jsx)(t.code,{children:"start: auto"}),"),\nrevealing is relative to the current pause position. ",(0,i.jsx)(t.code,{children:"start"})," also accepts\na waypoint label or marker to anchor the reveal sequence. From the anchor one additional item is revealed per subslide."]}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.strong,{children:"Example:"})}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-typst",children:'#show: simple-theme.with(aspect-ratio: "16-9")\n= Slide\n#item-by-item[\n- first\n- second\n- third\n]\n'})}),"\n",(0,i.jsxs)(o,{children:[(0,i.jsxs)(t.h3,{id:"start",children:["start : ",(0,i.jsx)(m,{type:"auto"})," | ",(0,i.jsx)(m,{type:"int"})," | ",(0,i.jsx)(m,{type:"label"})," | ",(0,i.jsx)(m,{type:"dictionary"})," ",(0,i.jsx)(n,{children:(0,i.jsx)(t.code,{children:"1"})})]}),(0,i.jsx)(s,{children:(0,i.jsx)(t.p,{children:"The subslide on which the first\\n/// item appears. Resolved from a waypoint when a label or marker is given."})}),(0,i.jsxs)(t.h3,{id:"cont",children:["cont : ",(0,i.jsx)(m,{type:"content"})]}),(0,i.jsx)(s,{children:(0,i.jsx)(t.p,{children:"The content containing a list, enum, or terms element."})})]}),"\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,r.a)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(d,{...e})}):d(e)}function p(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 r={},s=i.createContext(r);function o(e){const t=i.useContext(s);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(r):e.components||r:o(e.components),i.createElement(s.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.