You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/javascript/pdf.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ The [exportPDF](/api/javascript/drawing/methods/drawdom) method will use the fon
18
18
Since Kendo UI 2014 Q3 SP1, the Kendo UI PDF generator is able to dig [CSS `@font-face` declarations](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face) directly from the stylesheets. "Manually" calling the `pdf.defineFont()`method is no longer necessary. For more information how to embed fonts using CSS at-rules - check [this]({% slug drawingofhtmlelements_drawingapi %}#configuration-Custom) section. This will work only if the style sheet and fonts are loaded from the same domain.
19
19
20
20
> Fonts must be loaded from the same origin or [CORS-enabled](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image).
21
+
> The only format supported by the `defineFont` method is `.ttf`.
Copy file name to clipboardExpand all lines: docs/intro/installation/npm.md
+34-34Lines changed: 34 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@ As of the 2022.3.1109 version, the `package.json` file comes with three [fields
72
72
To bundle the Kendo UI scripts by using one of the [module systems](#3-choose-a-module-system-to-use), you can use a plugin such as [rollup](https://rollupjs.org/guide/en/).
73
73
74
74
> Starting from version 2023.3.718, the `kendo` instance is exported as a default export for the CommonJS and ECMAScript modules. This allows you to:
75
-
> * Use the `import kendo from '@progress/kendo-ui'` syntax to import the Kendo UI scripts in your application.
75
+
> * Use the `import kendo from "@progress/kendo-ui"` syntax to import the Kendo UI scripts in your application.
76
76
> * Use the `kendo` instance to get the jQuery in which the Kendo UI components are defined. For example, `const $ = kendo.jQuery; $("#grid").kendoGrid({...});`.
77
77
78
78
### ECMAScript
@@ -83,18 +83,18 @@ To bundle the ECMAScript files:
@@ -107,8 +107,8 @@ To bundle the ECMAScript files:
107
107
```javascript
108
108
// index.js file located in the main directory of your project (same level as rollup.config.js).
109
109
110
-
import `jquery`;
111
-
import `@progress/kendo-ui`;
110
+
import "jquery";
111
+
import "@progress/kendo-ui";
112
112
113
113
// A sample Kendo UI component in your project.
114
114
$("#grid").kendoGrid({...grid configs...});
@@ -129,19 +129,19 @@ To bundle the CommonJS files:
129
129
130
130
```javascript
131
131
// rollup.config.js
132
-
import { nodeResolve } from '@rollup/plugin-node-resolve';
133
-
import commonjs from '@rollup/plugin-commonjs';
132
+
import { nodeResolve } from "@rollup/plugin-node-resolve";
133
+
import commonjs from "@rollup/plugin-commonjs";
134
134
135
135
export default {
136
-
input: 'index.js',
136
+
input: "index.js",
137
137
output: [{
138
-
file: 'dist/bundled.js',
139
-
sourcemap: 'inline',
138
+
file: "dist/bundled.js",
139
+
sourcemap: "inline",
140
140
globals: {
141
-
jquery: '$'
141
+
jquery: "$"
142
142
}
143
143
}],
144
-
external: ['jquery'],
144
+
external: ["jquery"],
145
145
treeshake: false,
146
146
plugins: [
147
147
commonjs(), // Add the commonjs plugin.
@@ -155,8 +155,8 @@ To bundle the CommonJS files:
155
155
```javascript
156
156
// index.js file located in the main directory of your project (same level as rollup.config.js).
157
157
158
-
require(`jquery`);
159
-
require(`@progress/kendo-ui`);
158
+
require("jquery");
159
+
require("@progress/kendo-ui");
160
160
161
161
// A sample Kendo UI component in your project.
162
162
$("#grid").kendoGrid({...grid configs...});
@@ -177,18 +177,18 @@ To bundle the UMD files:
177
177
178
178
```javascript
179
179
// rollup.config.js
180
-
import { nodeResolve } from '@rollup/plugin-node-resolve';
180
+
import { nodeResolve } from "@rollup/plugin-node-resolve";
181
181
182
182
export default {
183
-
input: 'index.js',
183
+
input: "index.js",
184
184
output: [{
185
-
file: 'dist/bundled.js',
186
-
sourcemap: 'inline',
185
+
file: "dist/bundled.js",
186
+
sourcemap: "inline",
187
187
globals: {
188
-
jquery: '$'
188
+
jquery: "$"
189
189
}
190
190
}],
191
-
external: ['jquery'],
191
+
external: ["jquery"],
192
192
treeshake: false,
193
193
plugins: [
194
194
nodeResolve({
@@ -203,8 +203,8 @@ To bundle the UMD files:
203
203
```javascript
204
204
// index.js file located in the main directory of your project (same level as rollup.config.js).
205
205
206
-
import `jquery`;
207
-
import `@progress/kendo-ui`;
206
+
import "jquery";
207
+
import "@progress/kendo-ui";
208
208
209
209
// A sample Kendo UI component in your project.
210
210
$("#grid").kendoGrid({...grid configs...});
@@ -221,14 +221,14 @@ To bundle the UMD files:
221
221
As of`2024.4.1112` the `@progress/kendo-ui`NPMpackage introduce a more fine-grained exports setting to satisfy various module bundlers and easy its usage in the NPM ecosystem.
222
222
223
223
```javascript
224
-
`@progress/kendo-ui` //Imports the kendo.all.js
225
-
`@progress/kendo-ui/*.js` //Imports the files corresponding to the module system used - ESM or CJS.
226
-
`@progress/kendo-ui/esm` //Imports kendo.all.js only for ESM.
227
-
`@progress/kendo-ui/esm/*.js` //Imports the files for ESM.
228
-
`@progress/kendo-ui/cjs` //Imports kendo.all.js only for CJS.
229
-
`@progress/kendo-ui/esm/*.js` //Imports the files for CJS.
230
-
`@progress/kendo-ui/umd` //Imports kendo.all.min.js only for UMD.
231
-
`@progress/kendo-ui/umd/*.js` //Imports the files for UMD.
224
+
"@progress/kendo-ui" //Imports the kendo.all.js
225
+
"@progress/kendo-ui/*.js" //Imports the files corresponding to the module system used - ESM or CJS.
226
+
"@progress/kendo-ui/esm" //Imports kendo.all.js only for ESM.
227
+
"@progress/kendo-ui/esm/*.js" //Imports the files for ESM.
228
+
"@progress/kendo-ui/cjs" //Imports kendo.all.js only for CJS.
229
+
"@progress/kendo-ui/esm/*.js" //Imports the files for CJS.
230
+
"@progress/kendo-ui/umd" //Imports kendo.all.min.js only for UMD.
231
+
"@progress/kendo-ui/umd/*.js" //Imports the files for UMD.
0 commit comments