Skip to content

Commit f613503

Browse files
Added the tile rendering sample
1 parent 8426f92 commit f613503

19 files changed

Lines changed: 733 additions & 0 deletions

‎Tile Rendering/.editorconfig‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.ts]
12+
quote_type = single
13+
ij_typescript_use_double_quotes = false
14+
15+
[*.md]
16+
max_line_length = off
17+
trim_trailing_whitespace = false

‎Tile Rendering/.gitignore‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
2+
3+
# Compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
/bazel-out
8+
9+
# Node
10+
/node_modules
11+
npm-debug.log
12+
yarn-error.log
13+
14+
# IDEs and editors
15+
.idea/
16+
.project
17+
.classpath
18+
.c9/
19+
*.launch
20+
.settings/
21+
*.sublime-workspace
22+
23+
# Visual Studio Code
24+
.vscode/*
25+
!.vscode/settings.json
26+
!.vscode/tasks.json
27+
!.vscode/launch.json
28+
!.vscode/extensions.json
29+
!.vscode/mcp.json
30+
.history/*
31+
32+
# Miscellaneous
33+
/.angular/cache
34+
.sass-cache/
35+
/connect.lock
36+
/coverage
37+
/libpeerconnection.log
38+
testem.log
39+
/typings
40+
__screenshots__/
41+
42+
# System files
43+
.DS_Store
44+
Thumbs.db

‎Tile Rendering/.prettierrc‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"printWidth": 100,
3+
"singleQuote": true,
4+
"overrides": [
5+
{
6+
"files": "*.html",
7+
"options": {
8+
"parser": "angular"
9+
}
10+
}
11+
]
12+
}

‎Tile Rendering/README.md‎

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# PdfviewerApp
2+
3+
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 22.1.3.
4+
5+
## Development server
6+
7+
To start a local development server, run:
8+
9+
```bash
10+
ng serve
11+
```
12+
13+
Once the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files.
14+
15+
## Code scaffolding
16+
17+
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
18+
19+
```bash
20+
ng generate component component-name
21+
```
22+
23+
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
24+
25+
```bash
26+
ng generate --help
27+
```
28+
29+
## Building
30+
31+
To build the project run:
32+
33+
```bash
34+
ng build
35+
```
36+
37+
This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed.
38+
39+
## Running unit tests
40+
41+
To execute unit tests with the [Vitest](https://vitest.dev/) test runner, use the following command:
42+
43+
```bash
44+
ng test
45+
```
46+
47+
## Running end-to-end tests
48+
49+
For end-to-end (e2e) testing, run:
50+
51+
```bash
52+
ng e2e
53+
```
54+
55+
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
56+
57+
## Additional Resources
58+
59+
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.

‎Tile Rendering/angular.json‎

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"cli": {
5+
"packageManager": "npm",
6+
"analytics": "c48a8fbc-c934-42e0-a6b7-aa4f6d242293"
7+
},
8+
"newProjectRoot": "projects",
9+
"projects": {
10+
"pdfviewer-app": {
11+
"projectType": "application",
12+
"schematics": {},
13+
"root": "",
14+
"sourceRoot": "src",
15+
"prefix": "app",
16+
"architect": {
17+
"build": {
18+
"builder": "@angular/build:application",
19+
"options": {
20+
"browser": "src/main.ts",
21+
"tsConfig": "tsconfig.app.json",
22+
"assets": [
23+
{
24+
"glob": "**/*",
25+
"input": "public"
26+
}
27+
],
28+
"styles": [
29+
"src/styles.css"
30+
]
31+
},
32+
"configurations": {
33+
"production": {
34+
"budgets": [
35+
{
36+
"type": "initial",
37+
"maximumWarning": "500kB",
38+
"maximumError": "1MB"
39+
},
40+
{
41+
"type": "anyComponentStyle",
42+
"maximumWarning": "4kB",
43+
"maximumError": "8kB"
44+
}
45+
],
46+
"outputHashing": "all"
47+
},
48+
"development": {
49+
"optimization": false,
50+
"extractLicenses": false,
51+
"sourceMap": true
52+
}
53+
},
54+
"defaultConfiguration": "production"
55+
},
56+
"serve": {
57+
"builder": "@angular/build:dev-server",
58+
"configurations": {
59+
"production": {
60+
"buildTarget": "pdfviewer-app:build:production"
61+
},
62+
"development": {
63+
"buildTarget": "pdfviewer-app:build:development"
64+
}
65+
},
66+
"defaultConfiguration": "development"
67+
},
68+
"test": {
69+
"builder": "@angular/build:unit-test"
70+
}
71+
}
72+
}
73+
}
74+
}

‎Tile Rendering/package.json‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "pdfviewer-app",
3+
"version": "0.0.0",
4+
"scripts": {
5+
"ng": "ng",
6+
"start": "ng serve",
7+
"build": "ng build",
8+
"watch": "ng build --watch --configuration development",
9+
"test": "ng test"
10+
},
11+
"private": true,
12+
"packageManager": "npm@11.19.1",
13+
"dependencies": {
14+
"@angular/common": "^22.1.0",
15+
"@angular/compiler": "^22.1.0",
16+
"@angular/core": "^22.1.0",
17+
"@angular/forms": "^22.1.0",
18+
"@angular/platform-browser": "^22.1.0",
19+
"@angular/router": "^22.1.0",
20+
"@syncfusion/ej2-angular-pdfviewer": "^34.2.8",
21+
"@syncfusion/ej2-tailwind3-theme": "^34.2.8",
22+
"rxjs": "~7.8.0",
23+
"tslib": "^2.3.0"
24+
},
25+
"devDependencies": {
26+
"@angular/build": "^22.1.3",
27+
"@angular/cli": "^22.1.3",
28+
"@angular/compiler-cli": "^22.1.0",
29+
"jsdom": "^28.0.0",
30+
"prettier": "^3.8.1",
31+
"typescript": "~6.0.2",
32+
"vitest": "^4.0.8"
33+
}
34+
}

‎Tile Rendering/public/favicon.ico‎

14.7 KB
Binary file not shown.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { ApplicationConfig, provideBrowserGlobalErrorListeners } from '@angular/core';
2+
import { provideRouter } from '@angular/router';
3+
4+
import { routes } from './app.routes';
5+
6+
export const appConfig: ApplicationConfig = {
7+
providers: [
8+
provideBrowserGlobalErrorListeners(),
9+
provideRouter(routes)
10+
]
11+
};

‎Tile Rendering/src/app/app.css‎

Whitespace-only changes.

0 commit comments

Comments
 (0)