Skip to content

Commit 72509df

Browse files
committed
Sync with Kendo UI Professional
1 parent 5c01f53 commit 72509df

File tree

5 files changed

+68
-38
lines changed

5 files changed

+68
-38
lines changed

docs-aspnet/_config-mvc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ knowledge-base/vs-code-extension-issues.md,
7777
html-helpers/hybrid/*,
7878
html-helpers/helper-basics/fundamentals.md,
7979
html-helpers/helper-basics/declarative-initialization.md,
80-
*/razor-page.md,
80+
html-helpers/**/razor-page.md,
8181
html-helpers/data-management/filemanager/binding/razor-page.md,
8282
html-helpers/datasource/razor-page.md,
83-
html-helpers/diagrams-and-maps/diagram/binding/razor-pages
83+
html-helpers/diagrams-and-maps/diagram/binding/razor-pages,
8484
html-helpers/conversational-ui/chat/razor-page.md,
8585
html-helpers/editors/autocomplete/binding/razor-pages.md,
8686
html-helpers/editors/checkboxgroup/razor-page.md,

docs/api/javascript/dataviz/ui/diagram.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10306,6 +10306,35 @@ The point to zoom into or out of.
1030610306
});
1030710307
</script>
1030810308

10309+
#### Example - zoom Diagram dynamically to point
10310+
10311+
<button id="btn">Zoom Diagram</button>
10312+
<div id="diagram"></div>
10313+
<script>
10314+
$("#btn").on("click", function () {
10315+
var diagram = $("#diagram").getKendoDiagram();
10316+
var point = new kendo.dataviz.diagram.Point(100, 100);
10317+
diagram.zoom(2.5, { point: point });
10318+
});
10319+
10320+
$("#diagram").kendoDiagram({
10321+
shapes: [
10322+
{
10323+
id: "1",
10324+
x: 70,
10325+
y: 120,
10326+
fill: {
10327+
color: "#0000ff",
10328+
opacity: 0.5,
10329+
},
10330+
width: 140,
10331+
height: 80,
10332+
},
10333+
],
10334+
});
10335+
</script>
10336+
10337+
1030910338
## Events
1031010339

1031110340
### add

docs/api/javascript/pdf.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ The [exportPDF](/api/javascript/drawing/methods/drawdom) method will use the fon
1818
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.
1919

2020
> 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`.
2122
2223
#### Parameters
2324

docs/intro/installation/npm.md

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ As of the 2022.3.1109 version, the `package.json` file comes with three [fields
7272
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/).
7373

7474
> 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.
7676
> * Use the `kendo` instance to get the jQuery in which the Kendo UI components are defined. For example, `const $ = kendo.jQuery; $("#grid").kendoGrid({...});`.
7777
7878
### ECMAScript
@@ -83,18 +83,18 @@ To bundle the ECMAScript files:
8383

8484
```javascript
8585
// rollup.config.js
86-
import { nodeResolve } from '@rollup/plugin-node-resolve';
86+
import { nodeResolve } from "@rollup/plugin-node-resolve";
8787

8888
export default {
89-
input: 'index.js',
89+
input: "index.js",
9090
output: [{
91-
file: 'dist/bundled.js',
92-
sourcemap: 'inline',
91+
file: "dist/bundled.js",
92+
sourcemap: "inline",
9393
globals: {
94-
jquery: '$'
94+
jquery: "$"
9595
}
9696
}],
97-
external: ['jquery'],
97+
external: ["jquery"],
9898
treeshake: false,
9999
plugins: [
100100
nodeResolve()
@@ -107,8 +107,8 @@ To bundle the ECMAScript files:
107107
```javascript
108108
// index.js file located in the main directory of your project (same level as rollup.config.js).
109109
110-
import `jquery`;
111-
import `@progress/kendo-ui`;
110+
import "jquery";
111+
import "@progress/kendo-ui";
112112
113113
// A sample Kendo UI component in your project.
114114
$("#grid").kendoGrid({...grid configs...});
@@ -129,19 +129,19 @@ To bundle the CommonJS files:
129129

130130
```javascript
131131
// 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";
134134
135135
export default {
136-
input: 'index.js',
136+
input: "index.js",
137137
output: [{
138-
file: 'dist/bundled.js',
139-
sourcemap: 'inline',
138+
file: "dist/bundled.js",
139+
sourcemap: "inline",
140140
globals: {
141-
jquery: '$'
141+
jquery: "$"
142142
}
143143
}],
144-
external: ['jquery'],
144+
external: ["jquery"],
145145
treeshake: false,
146146
plugins: [
147147
commonjs(), // Add the commonjs plugin.
@@ -155,8 +155,8 @@ To bundle the CommonJS files:
155155
```javascript
156156
// index.js file located in the main directory of your project (same level as rollup.config.js).
157157
158-
require(`jquery`);
159-
require(`@progress/kendo-ui`);
158+
require("jquery");
159+
require("@progress/kendo-ui");
160160
161161
// A sample Kendo UI component in your project.
162162
$("#grid").kendoGrid({...grid configs...});
@@ -177,18 +177,18 @@ To bundle the UMD files:
177177

178178
```javascript
179179
// rollup.config.js
180-
import { nodeResolve } from '@rollup/plugin-node-resolve';
180+
import { nodeResolve } from "@rollup/plugin-node-resolve";
181181
182182
export default {
183-
input: 'index.js',
183+
input: "index.js",
184184
output: [{
185-
file: 'dist/bundled.js',
186-
sourcemap: 'inline',
185+
file: "dist/bundled.js",
186+
sourcemap: "inline",
187187
globals: {
188-
jquery: '$'
188+
jquery: "$"
189189
}
190190
}],
191-
external: ['jquery'],
191+
external: ["jquery"],
192192
treeshake: false,
193193
plugins: [
194194
nodeResolve({
@@ -203,8 +203,8 @@ To bundle the UMD files:
203203
```javascript
204204
// index.js file located in the main directory of your project (same level as rollup.config.js).
205205
206-
import `jquery`;
207-
import `@progress/kendo-ui`;
206+
import "jquery";
207+
import "@progress/kendo-ui";
208208
209209
// A sample Kendo UI component in your project.
210210
$("#grid").kendoGrid({...grid configs...});
@@ -221,14 +221,14 @@ To bundle the UMD files:
221221
As of `2024.4.1112` the `@progress/kendo-ui` NPM package introduce a more fine-grained exports setting to satisfy various module bundlers and easy its usage in the NPM ecosystem.
222222

223223
```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.
232232
```
233233

234234
#### Examples

docs/third-party/webpack.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ Create a folder named `dist` and add the `index.html` file in it.
160160

161161
In the root directory add a new `src` folder that will contain the scripts. Then, add a `index.js` file and import the needed modules:
162162
```
163-
import '@progress/kendo-ui/esm/kendo.button'
164-
import '@progress/kendo-ui/esm/kendo.dropdownlist'
163+
import '@progress/kendo-ui/esm/kendo.button.js'
164+
import '@progress/kendo-ui/esm/kendo.dropdownlist.js'
165165
166166
$(function () {
167167
$("#btn").kendoButton();

0 commit comments

Comments
 (0)