Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/packages/glyph.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: Implements portable font loading, retained Rust shaping and layout,
resource: ../../packages/glyph
workspace_package: '@pmndrs/glyph'
documentation_type: reference
source_digest: 'sha256:14200b3f0f4025d2113c4595fa39cd39755699e3a2904d0e45ccd5b6c753bc9f'
source_digest: 'sha256:331c42ecca120b8cc75979a02d38b6bbaaca69068008b80945508679815fc7a0'
tags: [package, public-api, rust, wasm, threejs, typography]
sources:
- id: manifest
Expand Down
34 changes: 30 additions & 4 deletions packages/glyph/.oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,21 @@
"$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json",
"plugins": ["react"],
"jsPlugins": ["eslint-plugin-react-you-might-not-need-an-effect"],
"categories": { "correctness": "error", "perf": "warn", "suspicious": "warn" },
"env": { "browser": true, "node": true, "es2025": true },
"settings": { "react": { "version": "19.2.8" } },
"categories": {
"correctness": "error",
"perf": "warn",
"suspicious": "warn"
},
"env": {
"browser": true,
"node": true,
"es2025": true
},
"settings": {
"react": {
"version": "19.2.8"
}
},
"rules": {
"react/react-in-jsx-scope": "off",
"react/react-compiler": "error",
Expand All @@ -28,5 +40,19 @@
"react-you-might-not-need-an-effect/no-external-store-subscription": "error",
"react-you-might-not-need-an-effect/no-initialize-state": "error"
},
"ignorePatterns": ["**/.cache/**", "dist/**", "src/generated/**", "**/target/**", "tests/fixtures/**"]
"ignorePatterns": ["**/.cache/**", "dist/**", "src/generated/**", "**/target/**", "tests/fixtures/**"],
"overrides": [
{
"files": ["src/three/**", "src/three.ts", "src/react.ts", "src/tsl/**", "src/tsl.ts"],
"rules": {
"eslint/no-restricted-imports": [
"error",
{
"paths": ["three", "@react-three/fiber"],
"patterns": ["three/src/*", "three/addons/*", "three/examples/*", "**/internal/**", "**/generated/**"]
}
]
}
}
]
}
2 changes: 1 addition & 1 deletion packages/glyph/src/three/engine-plan-target.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as TSL from 'three/tsl';
import * as THREE from 'three/webgpu';

import { textShaperAbi } from '../generated/text-shaper-abi.js';
import { textShaperAbi } from '../core.js';
import type { TextEnginePublication } from '../core/host.js';
import { FIRST_PARTY_STABLE_GLYPH_BUFFER_ID, FIRST_PARTY_TRANSFORM_BUFFER_ID } from './render-policy.js';
import { TextEngineRenderPlanView, type RenderPlanTable } from '../core/plan-view.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/glyph/src/three/plan-program-registry.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Node, NodeMaterial, StorageInstancedBufferAttribute } from 'three/webgpu';

import { textShaperAbi } from '../generated/text-shaper-abi.js';
import { textShaperAbi } from '../core.js';
import type { FontBindingDescriptor, FontBindingFieldTable } from '../core/font-binding.js';
import { compileFontBinding, emptyFontBindingTable, fontBindingResources } from '../core/font-binding.js';
import type { PolicyProgram } from '../core/render-policy.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/glyph/src/three/render-policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
type PolicyAllocationMode,
type PolicyTransformMode,
} from '../core/render-policy.js';
import { textShaperAbi } from '../generated/text-shaper-abi.js';
import { textShaperAbi } from '../core.js';

export const FIRST_PARTY_TRANSFORM_BUFFER_ID = 15;

Expand Down
2 changes: 1 addition & 1 deletion packages/glyph/src/three/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { TextEngineStatusError, type TextEnginePublication, type TextEngineSessi
import { readTextEngineLayouts, readTextEngineMeasurements } from '../core/layout-query-view.js';
import { TextEngineRenderPlanView } from '../core/plan-view.js';
import type { ParagraphLayoutInspection, ParagraphLayoutSummary } from '../layout.js';
import { textShaperAbi } from '../generated/text-shaper-abi.js';
import { textShaperAbi } from '../core.js';
import { ThreeTextRenderPlanExecutor } from './engine-plan-target.js';
import {
threeTextEngineCoordinator,
Expand Down
Loading