1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1215],{25857:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>o,contentTitle:()=>c,default:()=>d,frontMatter:()=>s,metadata:()=>l,toc:()=>h});var i=r(85893),n=r(11151);const s={sidebar_position:28,description:"Highlights the currently revealed item with a yellow background.",toc_max_heading_level:2},c="current-highlight",l={id:"reference/core/current-highlight",title:"current-highlight",description:"Highlights the currently revealed item with a yellow background.",source:"@site/docs/reference/core/current-highlight.mdx",sourceDirName:"reference/core",slug:"/reference/core/current-highlight",permalink:"/docs/reference/core/current-highlight",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:28,frontMatter:{sidebar_position:28,description:"Highlights the currently revealed item with a yellow background.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"current-bold",permalink:"/docs/reference/core/current-bold"},next:{title:"past-faded",permalink:"/docs/reference/core/past-faded"}},o={},h=[{value:"time : <TypeLink></TypeLink>",id:"time",level:3},{value:"it : <TypeLink></TypeLink>",id:"it",level:3},{value:"style : <TypeLink></TypeLink> <Default><code>(fill: rgb("#fffd11a1"))</code></Default>",id:"style",level:3}];function a(e){const t={a:"a",code:"code",h1:"h1",h3:"h3",p:"p",strong:"strong",...(0,n.a)(),...e.components},{Default:r,Param:s,Parameters:c,Signature:l,SignatureName:o,SignatureParam:h,SourceLink:a,TypeLink:d}=t;return r||u("Default",!0),s||u("Param",!0),c||u("Parameters",!0),l||u("Signature",!0),o||u("SignatureName",!0),h||u("SignatureParam",!0),a||u("SourceLink",!0),d||u("TypeLink",!0),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.h1,{id:"current-highlight",children:"current-highlight"}),"\n",(0,i.jsx)(l,{children:(0,i.jsxs)("code",{children:[(0,i.jsx)(o,{children:"current-highlight"}),"(",(0,i.jsxs)(h,{children:[(0,i.jsx)(t.a,{href:"#time",children:"time"}),", "]}),(0,i.jsxs)(h,{children:[(0,i.jsx)(t.a,{href:"#it",children:"it"}),", "]}),(0,i.jsx)(h,{children:(0,i.jsx)(t.a,{href:"#style",children:'style: (fill: rgb("#fffd11a1"))'})}),")",(0,i.jsx)(a,{href:"https://github.com/touying-typ/touying/blob/main/src/core.typ#L2324"})]})}),"\n",(0,i.jsxs)(t.p,{children:["Highlights the currently revealed item with a yellow background. You may give it an optional ",(0,i.jsx)(t.code,{children:"style"})," parameter (dictionary) to customize the highlight style. See ",(0,i.jsx)(t.a,{href:"https://typst.app/docs/reference/text/highlight/",children:"https://typst.app/docs/reference/text/highlight/"}),"."]}),"\n",(0,i.jsxs)(c,{children:[(0,i.jsxs)(t.h3,{id:"time",children:["time : ",(0,i.jsx)(d,{type:"int"})]}),(0,i.jsx)(s,{children:(0,i.jsx)(t.p,{children:"The relative subslide index passed by item-by-item-fn."})}),(0,i.jsxs)(t.h3,{id:"it",children:["it : ",(0,i.jsx)(d,{type:"content"})]}),(0,i.jsx)(s,{children:(0,i.jsx)(t.p,{children:"The item passed by item-by-item-fn."})}),(0,i.jsxs)(t.h3,{id:"style",children:["style : ",(0,i.jsx)(d,{type:"dictionary"})," ",(0,i.jsx)(r,{children:(0,i.jsx)(t.code,{children:'(fill: rgb("#fffd11a1"))'})})]}),(0,i.jsx)(s,{children:(0,i.jsx)(t.p,{children:"The style parameters for the highlight."})})]}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"Returns:"})," ",(0,i.jsx)(d,{type:"content"})]})]})}function d(e={}){const{wrapper:t}={...(0,n.a)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(a,{...e})}):a(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,r)=>{r.d(t,{Z:()=>l,a:()=>c});var i=r(67294);const n={},s=i.createContext(n);function c(e){const t=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:c(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.