1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1664],{65792:(e,n,l)=>{l.r(n),l.d(n,{assets:()=>o,contentTitle:()=>r,default:()=>p,frontMatter:()=>t,metadata:()=>a,toc:()=>c});var i=l(85893),s=l(11151);const t={sidebar_position:3,description:"Recall a slide by its label.",toc_max_heading_level:2},r="touying-recall",a={id:"reference/core/touying-recall",title:"touying-recall",description:"Recall a slide by its label.",source:"@site/docs/reference/core/touying-recall.mdx",sourceDirName:"reference/core",slug:"/reference/core/touying-recall",permalink:"/docs/reference/core/touying-recall",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3,description:"Recall a slide by its label.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"appendix",permalink:"/docs/reference/core/appendix"},next:{title:"touying-fn-wrapper",permalink:"/docs/reference/core/touying-fn-wrapper"}},o={},c=[{value:"lbl : <TypeLink></TypeLink> | <TypeLink></TypeLink>",id:"lbl",level:3},{value:"subslide : <TypeLink></TypeLink> | <TypeLink></TypeLink> | <TypeLink></TypeLink> | <TypeLink></TypeLink> | <TypeLink></TypeLink> | <TypeLink></TypeLink> <Default><code>none</code></Default>",id:"subslide",level:3}];function d(e){const n={a:"a",code:"code",h1:"h1",h3:"h3",p:"p",pre:"pre",strong:"strong",...(0,s.a)(),...e.components},{Default:l,Param:t,Parameters:r,Signature:a,SignatureName:o,SignatureParam:c,SourceLink:d,TypeLink:p}=n;return l||u("Default",!0),t||u("Param",!0),r||u("Parameters",!0),a||u("Signature",!0),o||u("SignatureName",!0),c||u("SignatureParam",!0),d||u("SourceLink",!0),p||u("TypeLink",!0),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h1,{id:"touying-recall",children:"touying-recall"}),"\n",(0,i.jsx)(a,{children:(0,i.jsxs)("code",{children:[(0,i.jsx)(o,{children:"touying-recall"}),"(",(0,i.jsxs)(c,{children:[(0,i.jsx)(n.a,{href:"#lbl",children:"lbl"}),", "]}),(0,i.jsx)(c,{children:(0,i.jsx)(n.a,{href:"#subslide",children:"subslide: none"})}),")",(0,i.jsx)(d,{href:"https://github.com/touying-typ/touying/blob/main/src/core.typ#L98"})]})}),"\n",(0,i.jsx)(n.p,{children:"Recall a slide by its label."}),"\n",(0,i.jsx)(n.p,{children:"Example:"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-typ",children:'// Recall all subslides\n#touying-recall(<my-slide>)\n\n// Recall only a specific subslide\n#touying-recall(<my-slide>, subslide: 2)\n\n// Recall only the last (final) subslide\n#touying-recall(<my-slide>, subslide: auto)\n\n// Recall the last subslide of every waypoint\n#touying-recall(<my-slide>, subslide: "waypoints")\n\n// Recall the subslides covered by a waypoint\n#touying-recall(<my-slide>, subslide: <my-waypoint>)\n\n// Recall only the last subslide of a waypoint\n#touying-recall(<my-slide>, subslide: get-last(<my-waypoint>))\n'})}),"\n",(0,i.jsxs)(r,{children:[(0,i.jsxs)(n.h3,{id:"lbl",children:["lbl : ",(0,i.jsx)(p,{type:"str"})," | ",(0,i.jsx)(p,{type:"label"})]}),(0,i.jsx)(t,{children:(0,i.jsx)(n.p,{children:"The label of the slide to recall."})}),(0,i.jsxs)(n.h3,{id:"subslide",children:["subslide : ",(0,i.jsx)(p,{type:"none"})," | ",(0,i.jsx)(p,{type:"auto"})," | ",(0,i.jsx)(p,{type:"int"})," | ",(0,i.jsx)(p,{type:"str"})," | ",(0,i.jsx)(p,{type:"label"})," | ",(0,i.jsx)(p,{type:"dictionary"})," ",(0,i.jsx)(l,{children:(0,i.jsx)(n.code,{children:"none"})})]}),(0,i.jsx)(t,{children:(0,i.jsxs)(n.p,{children:["Which subslide(s) to recall. - ",(0,i.jsx)(n.code,{children:"none"})," (default): recall all subslides. - ",(0,i.jsx)(n.code,{children:"auto"}),": recall only the last subslide (the final animation state). - ",(0,i.jsx)(n.code,{children:"int"}),": recall a specific subslide by number. - ",(0,i.jsx)(n.code,{children:'"waypoints"'}),": recall one subslide per waypoint \u2014 specifically, the last subslide of each waypoint. This shows every animation phase at its final state. - ",(0,i.jsx)(n.code,{children:"label"}),": recall the subslides covered by a waypoint in the original slide. E.g. ",(0,i.jsx)(n.code,{children:"subslide: <my-waypoint>"}),". - Waypoint marker: ",(0,i.jsx)(n.code,{children:"get-first(<wp>)"}),", ",(0,i.jsx)(n.code,{children:"get-last(<wp>)"}),", ",(0,i.jsx)(n.code,{children:"prev-wp(<wp>)"}),", ",(0,i.jsx)(n.code,{children:"next-wp(<wp>)"})," \u2014 resolves to a single subslide or waypoint range using the recalled slide's waypoint map."]})})]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Returns:"})," ",(0,i.jsx)(p,{type:"content"})]})]})}function p(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(d,{...e})}):d(e)}function u(e,n){throw new Error("Expected "+(n?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}},11151:(e,n,l)=>{l.d(n,{Z:()=>a,a:()=>r});var i=l(67294);const s={},t=i.createContext(s);function r(e){const n=i.useContext(t);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:r(e.components),i.createElement(t.Provider,{value:n},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.