repo stringlengths 7 64 | file_url stringlengths 81 338 | file_path stringlengths 5 257 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:25:31 2026-01-05 01:50:38 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/italics-large.scene.ts | tests/visual/scenes/text/italics-large.scene.ts | import { BitmapText, Text } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render large italics correctly',
options: {
width: 256,
height: 128,
},
create: async (scene: Container) =>
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/text-stroke-shadow.scene.ts | tests/visual/scenes/text/text-stroke-shadow.scene.ts | import { BitmapText, Text, TextStyle } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render text with correct drop shadow & stroke',
create: async (scene: Container, renderer) =>
{
const style =... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/text-trim-bounds.scene.ts | tests/visual/scenes/text/text-trim-bounds.scene.ts | import { Graphics, Text } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render text with the correct trimmed bounds',
pixelMatch: 258,
create: async (scene: Container) =>
{
const text = new ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/text-drop-shadow.scene.ts | tests/visual/scenes/text/text-drop-shadow.scene.ts | import { Text, TextStyle } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render text with correct drop shadow',
create: async (scene: Container, renderer) =>
{
const style = new TextStyle({
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/bitmap-text-emoji.scene.ts | tests/visual/scenes/text/bitmap-text-emoji.scene.ts | import { BitmapFont } from '../../../../src/scene/text-bitmap/BitmapFont';
import { Assets } from '~/assets';
import { BitmapText } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render both emoji in bitmap text... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/mipmap-render-texture.scene.ts | tests/visual/scenes/text/mipmap-render-texture.scene.ts | import { RenderTexture } from '~/rendering';
import { Graphics, Sprite } from '~/scene';
import type { TestScene } from '../../types';
import type { Renderer } from '~/rendering';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render renderTextures with mipmaps correctly',... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/text-stroke.scene.ts | tests/visual/scenes/text/text-stroke.scene.ts | import { Graphics, Text, TextStyle } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render text stroke if it has a width greater than one',
create: async (scene: Container) =>
{
const style = new... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/text-dynamic-update.scene.ts | tests/visual/scenes/text/text-dynamic-update.scene.ts | import { Text, TextStyle } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render two text correctly with the same style and value',
create: async (scene: Container, renderer) =>
{
const style = n... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/text-texture-style.scene.ts | tests/visual/scenes/text/text-texture-style.scene.ts | import { Text } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render text correctly with texture style',
create: async (scene: Container) =>
{
const text = new Text({
text: 'X',
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/text-trim.scene.ts | tests/visual/scenes/text/text-trim.scene.ts | import { Text } from '~/scene';
import type { TestScene } from '../../types';
import type { Renderer } from '~/rendering';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render text correctly if style changes',
create: async (scene: Container, renderer: Renderer) =>
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/text-trim-dynamic.scene.ts | tests/visual/scenes/text/text-trim-dynamic.scene.ts | import { Text, TextStyle } from '~/scene';
import type { TestScene } from '../../types';
import type { Renderer } from '~/rendering';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render text correctly if style changes',
options: {
width: 750,
height: ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/bitmap-install-fill.scene.ts | tests/visual/scenes/text/bitmap-install-fill.scene.ts | import { Assets } from '~/assets';
import { BitmapFont, BitmapText, FillGradient } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render installed bitmap text correctly with fills',
create: async (scene: Con... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/text-multiline-gradient.scene.ts | tests/visual/scenes/text/text-multiline-gradient.scene.ts | import { FillGradient } from '../../../../src/scene/graphics/shared/fill/FillGradient';
import { Text } from '../../../../src/scene/text/Text';
import type { Container } from '../../../../src/scene/container/Container';
import type { TestScene } from '../../types';
export const scene: TestScene = {
it: 'should re... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/text-pattern-gradient.scene.ts | tests/visual/scenes/text/text-pattern-gradient.scene.ts | import { loadTextures } from '~/assets';
import { FillGradient, FillPattern, Text } from '~/scene';
import type { TestScene } from '../../types';
import type { Texture } from '~/rendering';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render FillPattern and FillGradient ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/msdf-text.scene.ts | tests/visual/scenes/text/msdf-text.scene.ts | import { Assets } from '~/assets';
import { BitmapText } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render msdf-text correctly',
create: async (scene: Container) =>
{
await Assets.load('fonts... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/text-filter-style.scene.ts | tests/visual/scenes/text/text-filter-style.scene.ts | import { BlurFilter } from '~/filters/defaults/blur/BlurFilter';
import { Text } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render text with filters correctly',
create: async (scene: Container) =>
{... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/text-dynamic-destroy.scene.ts | tests/visual/scenes/text/text-dynamic-destroy.scene.ts | import { Container, Text } from '~/scene';
import type { TestScene } from '../../types';
export const scene: TestScene = {
it: 'should render two text correctly with the same style and value',
create: async (scene: Container, renderer) =>
{
let container = new Container();
let text = new ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/bitmap-text-lineheight.scene.ts | tests/visual/scenes/text/bitmap-text-lineheight.scene.ts | import { BitmapFont, BitmapText, Graphics, Text } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render bitmap text line height correctly',
create: async (scene: Container) =>
{
const refText = n... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/text-baseline.scene.ts | tests/visual/scenes/text/text-baseline.scene.ts | import { Graphics, Text, TextStyle } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render text with baseline correctly',
options: {
width: 400,
height: 30,
},
create: async (scene: C... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/html-text-loaded-font.scene.ts | tests/visual/scenes/text/html-text-loaded-font.scene.ts | import { Assets } from '~/assets';
import { HTMLTextStyle, Sprite } from '~/scene';
import type { TestScene } from '../../types';
import type { Renderer } from '~/rendering';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render html-text correctly',
create: async (sce... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/text-dynamic-res.scene.ts | tests/visual/scenes/text/text-dynamic-res.scene.ts | import { HTMLText, Text, TextStyle } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render text at new resolution',
create: async (scene: Container, renderer) =>
{
const style = new TextStyle({
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/text.scene.ts | tests/visual/scenes/text/text.scene.ts | import { Text } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render text correctly if style changes',
create: async (scene: Container) =>
{
const text = new Text({
text: 'I should b... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/bitmap-text-stroke.scene.ts | tests/visual/scenes/text/bitmap-text-stroke.scene.ts | import { Assets } from '~/assets';
import { BitmapText, Text } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render both canvas and bitmap text with a stroke',
create: async (scene: Container) =>
{
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/bitmap-text-orient-texture.scene.ts | tests/visual/scenes/text/bitmap-text-orient-texture.scene.ts | import { Assets, Cache } from '~/assets';
import { BitmapFont, BitmapText } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should orient the rotated BitmapFont texture from a spritesheet',
create: async (scene: Con... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/text-invisible-value-update.scene.ts | tests/visual/scenes/text/text-invisible-value-update.scene.ts | import { BitmapText, Text, TextStyle } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render two text correctly with the same style and value',
create: async (scene: Container, renderer) =>
{
con... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/bitmap-install-text.scene.ts | tests/visual/scenes/text/bitmap-install-text.scene.ts | import { Assets } from '~/assets';
import { BitmapFont, BitmapText } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render installed bitmap text correctly',
create: async (scene: Container) =>
{
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/load-ttf-font.scene.ts | tests/visual/scenes/text/load-ttf-font.scene.ts | import { Assets } from '~/assets';
import { Text } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should load and display ttf correctly',
create: async (scene: Container) =>
{
await Assets.load('fonts/H... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/sdf-text.scene.ts | tests/visual/scenes/text/sdf-text.scene.ts | import { Assets } from '~/assets';
import { BitmapText } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render sdf-text correctly',
create: async (scene: Container) =>
{
await Assets.load('fonts/... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/text-stroke-anchor.scene.ts | tests/visual/scenes/text/text-stroke-anchor.scene.ts | import { BitmapText, TextStyle } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render text stroke if it has a width greater than one',
create: async (scene: Container) =>
{
const style = new Tex... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/italics.scene.ts | tests/visual/scenes/text/italics.scene.ts | import { BitmapText, Text } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render italics correctly',
create: async (scene: Container) =>
{
scene.addChild(new BitmapText({
text: 'Ital... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/text-dynamic.scene.ts | tests/visual/scenes/text/text-dynamic.scene.ts | import { Text, TextStyle } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render text at new resolution',
create: async (scene: Container, renderer) =>
{
const style = new TextStyle({
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/bitmap-text-dynamic.scene.ts | tests/visual/scenes/text/bitmap-text-dynamic.scene.ts | import { Assets } from '~/assets';
import { BitmapText } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render dynamic bitmap font with same style',
create: async (scene: Container) =>
{
await As... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/html-text-family-multi.scene.ts | tests/visual/scenes/text/html-text-family-multi.scene.ts | import { Assets } from '~/assets';
import { HTMLText } from '~/scene';
import type { TestScene } from '../../types';
import type { Renderer } from '~/rendering';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render html-text correctly with tag styles for family',
crea... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/html-text.scene.ts | tests/visual/scenes/text/html-text.scene.ts | import { HTMLTextStyle, Sprite } from '~/scene';
import type { TestScene } from '../../types';
import type { Renderer } from '~/rendering';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render html-text correctly',
create: async (scene: Container, renderer: Renderer) ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/create-text.scene.ts | tests/visual/scenes/text/create-text.scene.ts | import { Sprite } from '~/scene';
import type { TestScene } from '../../types';
import type { Renderer } from '~/rendering';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should create a texture correctly createTexture',
create: async (scene: Container, renderer: Renderer) =... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/text-split.scene.ts | tests/visual/scenes/text/text-split.scene.ts | import { Assets } from '~/assets';
import { Text } from '~/scene';
import { SplitText } from '~/scene/text-split/SplitText';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render a split text correctly',
create: async (scen... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/text-bounds.scene.ts | tests/visual/scenes/text/text-bounds.scene.ts | import { Assets } from '~/assets';
import { Graphics, Text } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render text with the correct bounds',
options: {
width: 128,
height: 64,
},
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/text-fill-graident.scene.ts | tests/visual/scenes/text/text-fill-graident.scene.ts | import { Text } from '../../../../src/scene/text/Text';
import { Assets } from '~/assets';
import { type Container, FillGradient, type TextureSpace } from '~/scene';
import type { TestScene } from '../../types';
export const scene: TestScene = {
it: 'should render text fill correctly',
create: async (scene: C... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/text-fill-padding.scene.ts | tests/visual/scenes/text/text-fill-padding.scene.ts | import { FillGradient, Text } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render text stroke/fill with padding',
create: async (scene: Container) =>
{
const verticalGradient = new FillGradient... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/bitmap-text.scene.ts | tests/visual/scenes/text/bitmap-text.scene.ts | import { Assets } from '~/assets';
import { AlphaFilter } from '~/filters';
import { BitmapText, Text } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render both canvas and bitmap text of the same style',
c... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/text-trim-res.scene.ts | tests/visual/scenes/text/text-trim-res.scene.ts | import { Text } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render text trim correctly at different resolutions',
create: async (scene: Container) =>
{
const text = new Text({
text... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/bitmap-text-wrap.scene.ts | tests/visual/scenes/text/bitmap-text-wrap.scene.ts | import { Assets } from '../../../../src/assets/Assets';
import { BitmapText } from '../../../../src/scene/text-bitmap/BitmapText';
import type { Container } from '../../../../src/scene/container/Container';
import type { TestScene } from '../../types';
export const scene: TestScene = {
it: 'should break words for... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/html-text-broken.scene.ts | tests/visual/scenes/text/html-text-broken.scene.ts | import { HTMLText } from '~/scene';
import type { TestScene } from '../../types';
import type { Renderer } from '~/rendering';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render html-text correctly with incomplete tags',
create: async (scene: Container, renderer: Re... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/text-stroke-alpha.scene.ts | tests/visual/scenes/text/text-stroke-alpha.scene.ts | import { BitmapText, Text, TextStyle } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render stroke and fill alpha separately',
create: async (scene: Container) =>
{
const style = new TextStyle({... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/html-text-family.scene.ts | tests/visual/scenes/text/html-text-family.scene.ts | import { Assets } from '~/assets';
import { HTMLText } from '~/scene';
import type { TestScene } from '../../types';
import type { Renderer } from '~/rendering';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render html-text correctly with tag styles for family',
crea... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/bitmap-install-layout-text.scene.ts | tests/visual/scenes/text/bitmap-install-layout-text.scene.ts | import { Assets } from '~/assets';
import { BitmapFont, BitmapText } from '~/scene';
import type { TestScene } from '../../types';
import type { Container } from '~/scene';
export const scene: TestScene = {
it: 'should render installed bitmap layout text correctly',
create: async (scene: Container) =>
{
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/utils/getApp.ts | tests/utils/getApp.ts | import { Application } from '../../src/app/Application';
import '../../src/environment-browser/browserAll';
import type { ApplicationOptions } from '../../src/app/Application';
export async function getApp(options?: Partial<ApplicationOptions>)
{
const app = new Application();
await app.init(options);
r... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/utils/basePath.ts | tests/utils/basePath.ts | export const isCI = process.env.GITHUB_ACTIONS === 'true';
const GITHUB_SHA = (process.env.GITHUB_SHA || 'master');
export const basePath = isCI
? `https://raw.githubusercontent.com/pixijs/pixijs/${GITHUB_SHA}/tests/utils/assets/`
: 'http://127.0.0.1:8080/tests/utils/assets/';
export function getAsset(file: s... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/utils/getTexture.ts | tests/utils/getTexture.ts | import { ImageSource } from '../../src/rendering/renderers/shared/texture/sources/ImageSource';
import { Texture } from '../../src/rendering/renderers/shared/texture/Texture';
export function getTexture({ width = 20, height = 20 } = {})
{
const canvas = document.createElement('canvas');
canvas.width = width;
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/utils/getRenderer.ts | tests/utils/getRenderer.ts | import { WebGLRenderer } from '../../src/rendering/renderers/gl/WebGLRenderer';
import { WebGPURenderer } from '../../src/rendering/renderers/gpu/WebGPURenderer';
import '../../src/environment-browser/browserAll';
import type { WebGLOptions } from '../../src/rendering/renderers/gl/WebGLRenderer';
import type { WebGPUO... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/utils/getGlProgram.ts | tests/utils/getGlProgram.ts | import { GlProgram } from '../../src/rendering/renderers/gl/shader/GlProgram';
export function getGlProgram()
{
return new GlProgram({
vertex: `
in vec2 aPosition;
void main(void)
{
gl_Position = vec4(aPosition, 0.0, 1.0);
}
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/utils/localTest.ts | tests/utils/localTest.ts | export const itLocalOnly = !process.env.GITHUB_ACTIONS ? it : it.skip;
| typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/utils/index.ts | tests/utils/index.ts | export * from './async';
export * from './basePath';
export * from './blobToBase64';
export * from './getApp';
export * from './getGeometry';
export * from './getGlProgram';
export * from './getRenderer';
export * from './getTexture';
export * from './localTest';
export * from './toArrayBuffer';
| typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/utils/toArrayBuffer.ts | tests/utils/toArrayBuffer.ts | import fs from 'fs';
import path from 'path';
/**
* Return a file in ./assets as an array buffer
* @param file
*/
function toArrayBuffer(file: string): ArrayBuffer
{
const buffer = fs.readFileSync(path.resolve(__dirname, 'assets', file));
const ab = new ArrayBuffer(buffer.length);
const view = new Uint8... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/utils/blobToBase64.ts | tests/utils/blobToBase64.ts | function blobToBase64(blob: Blob)
{
return new Promise((resolve, reject) =>
{
const reader = new FileReader();
reader.onloadend = () =>
{
if (typeof reader.result === 'string')
{
resolve(reader.result);
}
else
{... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/utils/async.ts | tests/utils/async.ts | export function nextTick(): Promise<void>
{
return new Promise((resolve) => setTimeout(resolve, 0));
}
| typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/utils/getGeometry.ts | tests/utils/getGeometry.ts | import { Buffer } from '../../src/rendering/renderers/shared/buffer/Buffer';
import { Geometry } from '../../src/rendering/renderers/shared/geometry/Geometry';
export function getGeometry()
{
return new Geometry({
attributes: {
aPosition: {
buffer: new Buffer({
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/types/Temp.d.ts | types/Temp.d.ts | declare module '*.worker.js'
{
class WebWorkerInstance
{
public worker: Worker;
constructor();
public static revokeObjectURL(): void;
}
export default WebWorkerInstance;
}
declare module '*.worker.ts'
{
class WebWorkerInstance
{
public worker: Worker;
c... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/types/Shaders.d.ts | types/Shaders.d.ts | /// <reference types="@webgpu/types" />
declare module '*.wgsl'
{
const shader: 'string';
export default shader;
}
declare module '*.vert'
{
const shader: 'string';
export default shader;
}
declare module '*.frag'
{
const shader: 'string';
export default shader;
}
| typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/types/PixiMixins.d.ts | types/PixiMixins.d.ts | /// <reference path="../src/accessibility/AccessibilityMixins.d.ts" />
/// <reference path="../src/app/ApplicationMixins.d.ts" />
/// <reference path="../src/assets/AssetsMixins.d.ts" />
/// <reference path="../src/culling/CullingMixins.d.ts" />
/// <reference path="../src/events/EventsMixins.d.ts" />
/// <reference pa... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/types/Jest.d.ts | types/Jest.d.ts | /// <reference types="jest-extended" />
| typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/router.ts | src/renderer/router.ts | /* eslint-disable @typescript-eslint/no-var-requires */
// import Vue from 'vue'
import { createRouter, createWebHashHistory } from 'vue-router'
const router = createRouter({
history: createWebHashHistory(),
routes: [
{
path: '/search',
name: 'Search',
component: require('./views/Search/inde... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/main.ts | src/renderer/main.ts | import '@common/error'
import { createApp } from 'vue'
import './core/globalData'
import '@renderer/event'
// Components
import mountComponents from './components'
// Plugins
import initPlugins from './plugins'
import { i18nPlugin } from './plugins/i18n'
import App from './App.vue'
import router from './router'
//... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/worker/index.ts | src/renderer/worker/index.ts | import { createMainWorker, createDownloadWorker } from './utils'
export default () => {
return {
main: createMainWorker(),
download: createDownloadWorker(),
}
}
| typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/worker/utils/index.ts | src/renderer/worker/utils/index.ts | import * as Comlink from 'comlink'
export type MainTypes = Comlink.Remote<LX.WorkerMainTypes>
export const createMainWorker = () => {
const worker: Worker = new Worker(new URL(
/* webpackChunkName: 'renderer.main.worker' */
'../main',
import.meta.url,
))
return Comlink.wrap<LX.WorkerMainTypes>(worke... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/worker/utils/worker.ts | src/renderer/worker/utils/worker.ts | import * as Comlink from 'comlink'
export const exposeWorker = (obj: any) => {
Comlink.expose(obj)
}
| typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/worker/main/music.ts | src/renderer/worker/main/music.ts | import { getLocalMusicFileLyric, getLocalMusicFilePic } from '@renderer/utils/music'
import path from 'node:path'
import os from 'node:os'
import fs from 'node:fs/promises'
import { checkPath } from '@common/utils/nodejs'
const getTempDir = async() => {
const tempDir = path.join(os.tmpdir(), 'lxmusic_temp')
if (!a... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/worker/main/common.ts | src/renderer/worker/main/common.ts | import { tranditionalize } from '@renderer/utils/simplify-chinese-main'
export const langS2t = (textBase64: string): string => {
const text = tranditionalize(Buffer.from(textBase64, 'base64').toString())
return Buffer.from(text).toString('base64')
}
export {
saveLxConfigFile,
readLxConfigFile,
saveStrToFile... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/worker/main/index.ts | src/renderer/worker/main/index.ts | import { exposeWorker } from '../utils/worker'
import * as common from './common'
import * as list from './list'
import * as music from './music'
console.log('hello main worker')
exposeWorker(Object.assign({}, common, list, music))
export type workerMainTypes = typeof common
& typeof list
& typeof music
| typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/worker/main/list.ts | src/renderer/worker/main/list.ts | // import { throttle } from '@common/utils'
import { SPLIT_CHAR } from '@common/constants'
import { filterFileName, sortInsert, similar, arrPushByPosition, arrShuffle } from '@common/utils/common'
import { joinPath, saveStrToFile } from '@common/utils/nodejs'
import { createLocalMusicInfo } from '@renderer/utils/music... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/worker/download/download.ts | src/renderer/worker/download/download.ts | import { createDownload, type DownloaderType, type Options as DownloadOptions } from '@common/utils/download'
// import music from '@renderer/utils/musicSdk'
import { createDownloadInfo } from './utils'
// import {
// filterFileName,
// } from '@common/utils/common'
// import {
// assertApiSupport,
// getExt,
// ... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/worker/download/utils.ts | src/renderer/worker/download/utils.ts | import { DOWNLOAD_STATUS, QUALITYS } from '@common/constants'
import { filterFileName } from '@common/utils/common'
import { buildLyrics } from './lrcTool'
import fs from 'fs'
import { clipFileNameLength, clipNameLength } from '@common/utils/tools'
/**
* 保存歌词文件
*/
export const saveLrc = async(lrcData: LX.Music.Lyric... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/worker/download/common.ts | src/renderer/worker/download/common.ts | import { setMeta } from '@common/utils/musicMeta'
import { buildLyrics } from './lrcTool'
export const writeMeta = ({ filePath, isEmbedLyricLx, isEmbedLyricT, isEmbedLyricR, ...meta }: {
filePath: string
isEmbedLyricLx: boolean
isEmbedLyricT: boolean
isEmbedLyricR: boolean
title: string
artist: string
al... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/worker/download/lrcTool.ts | src/renderer/worker/download/lrcTool.ts | const timeFieldExp = /^(?:\[[\d:.]+\])+/g
const timeExp = /\d{1,3}(:\d{1,3}){0,2}(?:\.\d{1,3})/g
const t_rxp_1 = /^0+(\d+)/
const t_rxp_2 = /:0+(\d+)/g
const t_rxp_3 = /\.0+(\d+)/
const formatTimeLabel = (label: string) => {
return label.replace(t_rxp_1, '$1')
.replace(t_rxp_2, ':$1')
.replace(t_rxp_3, '.$1'... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/worker/download/index.ts | src/renderer/worker/download/index.ts | import { exposeWorker } from '../utils/worker'
import * as common from './common'
import * as download from './download'
console.log('hello download worker')
exposeWorker(Object.assign({}, common, download))
export type workerDownloadTypes = typeof common &
typeof download
| typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/store/soundEffect.ts | src/renderer/store/soundEffect.ts | import { reactive, toRaw } from '@common/utils/vueTools'
import {
getUserSoundEffectConvolutionPresetList,
getUserSoundEffectEQPresetList,
// getUserSoundEffectPitchShifterPresetList,
saveUserSoundEffectConvolutionPresetList,
saveUserSoundEffectEQPresetList,
// saveUserSoundEffectPitchShifterPresetList,
} f... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/store/utils.ts | src/renderer/store/utils.ts | // import { getListFromState } from './list'
// import { downloadList } from './download'
// export const getList = (listId: string | null): LX.Download.ListItem[] | LX.Music.MusicInfo[] => {
// return listId == 'download' ? downloadList : getListFromState(listId)
// }
import { encodePath, isUrl } from '@common/uti... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/store/setting.ts | src/renderer/store/setting.ts | import { reactive, computed } from '@common/utils/vueTools'
import defaultSetting from '@common/defaultSetting'
import { updateSetting as saveSetting } from '@renderer/utils/ipc'
export const appSetting = window.lxData.appSetting = reactive<LX.AppSetting>({ ...defaultSetting })
export const isShowAnimation = computed... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/store/hotSearch.ts | src/renderer/store/hotSearch.ts | import { reactive, markRaw } from '@common/utils/vueTools'
import music from '@renderer/utils/musicSdk'
// import { deduplicationList } from '@common/utils/renderer'
export type Source = LX.OnlineSource | 'all'
interface SourceLists extends Partial<Record<LX.OnlineSource, string[]>> {
'all': string[]
}
export con... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/store/index.ts | src/renderer/store/index.ts | import { ref, reactive, shallowRef, markRaw, computed, watch } from '@common/utils/vueTools'
import { windowSizeList as configWindowSizeList } from '@common/config'
import { appSetting } from './setting'
import pkg from '../../../package.json'
import { type ProgressInfo } from 'electron-updater'
import music from '@ren... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/store/leaderboard/action.ts | src/renderer/store/leaderboard/action.ts | // import { getLeaderboardSetting } from '@renderer/utils/data'
import { deduplicationList, toNewMusicInfo } from '@renderer/utils'
import musicSdk from '@renderer/utils/musicSdk'
import { markRaw, markRawList } from '@common/utils/vueTools'
import { boards, type Board, listDetailInfo, type ListDetailInfo } from './sta... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/store/leaderboard/state.ts | src/renderer/store/leaderboard/state.ts | import { reactive, markRaw, shallowReactive } from '@common/utils/vueTools'
import music from '@renderer/utils/musicSdk'
export type Source = LX.OnlineSource
export const sources: LX.OnlineSource[] = markRaw([])
for (const source of music.sources) {
if (!music[source.id as LX.OnlineSource]?.leaderboard?.getBoards)... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/store/list/action.ts | src/renderer/store/list/action.ts | // import { } from '@renderer/utils/ipc'
import { appSetting } from '@renderer/store/setting'
import { fetchingListStatus, listUpdateTimes, allMusicList, userLists, tempListMeta } from './state'
import {
registerListAction,
createUserList as createUserListAction,
addListMusics as addListMusicsAction,
moveList... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/store/list/state.ts | src/renderer/store/list/state.ts | import { reactive } from '@common/utils/vueTools'
export {
allMusicList,
defaultList,
loveList,
tempList,
userLists,
} from '@renderer/store/list/listManage'
// import { reactive, ref, markRaw, Ref } from '@common/utils/vueTools'
// // const TEMP_LIST = 'TEMP_LIST'
// export const isInitedList: Ref<boolean... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/store/list/syncSourceList.ts | src/renderer/store/list/syncSourceList.ts | import { setListUpdateTime } from '@renderer/utils/data'
import { setFetchingListStatus, overwriteListMusics, setUpdateTime } from './action'
import { getListDetailAll } from '@renderer/store/songList/action'
import { getListDetailAll as getBoardListAll } from '@renderer/store/leaderboard/action'
import { dateFormat } ... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/store/list/listManage/action.ts | src/renderer/store/list/listManage/action.ts | import { markRaw, markRawList, toRaw } from '@common/utils/vueTools'
import {
allMusicList,
defaultList,
loveList,
tempList,
userLists,
} from './state'
import { overwriteListPosition, overwriteListUpdateInfo, removeListPosition, removeListUpdateInfo } from '@renderer/utils/data'
import { LIST_IDS } from '@co... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/store/list/listManage/rendererListManage.ts | src/renderer/store/list/listManage/rendererListManage.ts | import { toRaw } from '@common/utils/vueTools'
import { rendererInvoke, rendererOff, rendererOn } from '@common/rendererIpc'
import { PLAYER_EVENT_NAME } from '@common/ipcNames'
import {
userListCreate,
listDataOverwrite,
userListsRemove,
userListsUpdate,
userListsUpdatePosition,
listMusicAdd,
listMusicMo... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/store/list/listManage/state.ts | src/renderer/store/list/listManage/state.ts | import { LIST_IDS } from '@common/constants'
import { markRaw, reactive } from '@common/utils/vueTools'
export const allMusicList: Map<string, LX.Music.MusicInfo[]> = markRaw(new Map())
export const defaultList = markRaw<LX.List.MyDefaultListInfo>({
id: LIST_IDS.DEFAULT,
name: 'list__name_default',
// name: '试听... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/store/list/listManage/index.ts | src/renderer/store/list/listManage/index.ts | export * from './rendererListManage'
export * from './state'
| typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/store/songList/action.ts | src/renderer/store/songList/action.ts | // import { getSongListSetting } from '@renderer/utils/data'
import { deduplicationList, toNewMusicInfo } from '@renderer/utils'
import musicSdk from '@renderer/utils/musicSdk'
import { markRaw, markRawList } from '@common/utils/vueTools'
import {
tags,
listInfo,
listDetailInfo,
selectListInfo,
isVisibleListD... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/store/songList/state.ts | src/renderer/store/songList/state.ts | import { reactive, markRaw, ref, shallowReactive } from '@common/utils/vueTools'
import music from '@renderer/utils/musicSdk'
export interface SortInfo {
name: string
id: string
}
export const sources: LX.OnlineSource[] = markRaw([])
export const sortList = markRaw<Partial<Record<LX.OnlineSource, SortInfo[]>>>({}... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/store/dislikeList/action.ts | src/renderer/store/dislikeList/action.ts | import { markRaw } from '@common/utils/vueTools'
import { dislikeInfo, dislikeRuleCount } from './state'
import { SPLIT_CHAR } from '@common/constants'
export const hasDislike = (info: LX.Music.MusicInfo | LX.Download.ListItem) => {
if ('progress' in info) info = info.metadata.musicInfo
const name = info.name?.... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/store/dislikeList/state.ts | src/renderer/store/dislikeList/state.ts | import { markRaw, ref } from '@common/utils/vueTools'
// import { deduplicationList } from '@common/utils/renderer'
export const dislikeInfo: LX.Dislike.DislikeInfo = markRaw({
names: markRaw(new Set()),
musicNames: markRaw(new Set()),
singerNames: markRaw(new Set()),
rules: '',
})
export const dislikeRuleC... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/store/dislikeList/index.ts | src/renderer/store/dislikeList/index.ts |
export * as action from './action'
export * from './state'
| typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/store/search/action.ts | src/renderer/store/search/action.ts |
import { throttle } from '@common/utils/common'
import { toRaw } from '@common/utils/vueTools'
import {
getSearchHistoryList,
saveSearchHistoryList,
} from '@renderer/utils/ipc'
import { appSetting } from '../setting'
import { searchText, historyList } from './state'
export const setSearchText = (text: string) =... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/store/search/state.ts | src/renderer/store/search/state.ts | import { ref, shallowReactive } from '@common/utils/vueTools'
export const searchText = ref('')
export type onlineSource = LX.OnlineSource
export const historyList = shallowReactive<string[]>([])
| typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/store/search/music/action.ts | src/renderer/store/search/music/action.ts | import { markRaw } from '@common/utils/vueTools'
import music from '@renderer/utils/musicSdk'
import { deduplicationList, toNewMusicInfo } from '@renderer/utils'
import { sortInsert, similar } from '@common/utils/common'
import { sources, maxPages, listInfos } from './state'
interface SearchResult {
list: LX.Music.... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/store/search/music/state.ts | src/renderer/store/search/music/state.ts | import { reactive, markRaw } from '@common/utils/vueTools'
import music from '@renderer/utils/musicSdk'
// import { deduplicationList } from '@common/utils/renderer'
export declare interface ListInfo {
list: LX.Music.MusicInfo[]
total: number
page: number
maxPage: number
limit: number
key: string | null
... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/store/search/music/index.ts | src/renderer/store/search/music/index.ts |
export * from './action'
export * from './state'
| typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
lyswhut/lx-music-desktop | https://github.com/lyswhut/lx-music-desktop/blob/8686ecfa54452562ef2ee74697f8e8a22c9788fa/src/renderer/store/search/songlist/action.ts | src/renderer/store/search/songlist/action.ts | import { markRawList } from '@common/utils/vueTools'
import music from '@renderer/utils/musicSdk'
import { sortInsert, similar } from '@common/utils/common'
import type { ListInfoItem } from './state'
import { sources, maxPages, listInfos } from './state'
interface SearchResult {
list: ListInfoItem[]
limit: numbe... | typescript | Apache-2.0 | 8686ecfa54452562ef2ee74697f8e8a22c9788fa | 2026-01-04T15:37:58.950548Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.