@lightningjs/blits 1.7.1 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/docs/essentials/displaying_text.md +53 -1
- package/docs/transitions_animations/transitions.md +21 -1
- package/index.d.ts +819 -14
- package/package.json +4 -3
- package/src/engines/L3/element.js +9 -1
- package/vite/msdfGenerator.js +89 -10
- package/src/application.d.ts +0 -174
- package/src/component.d.ts +0 -455
- package/src/launch.d.ts +0 -273
- package/src/plugin.d.ts +0 -71
package/src/plugin.d.ts
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/*
|
|
3
|
-
* Copyright 2024 Comcast Cable Communications Management, LLC
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*
|
|
16
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
declare namespace Plugin {
|
|
20
|
-
|
|
21
|
-
interface Plugin {
|
|
22
|
-
/**
|
|
23
|
-
* Name of the plugin. The plugin will be accessible on each Component's
|
|
24
|
-
* `this` scope under this name, prefixed with a `$` (i.e. myplugin => `this.$myplugin`)
|
|
25
|
-
*/
|
|
26
|
-
name: string,
|
|
27
|
-
/**
|
|
28
|
-
* Singleton function that will be used to instantiate the plugin.
|
|
29
|
-
* Should do all necessary setup and ideally return an object with
|
|
30
|
-
* properties or methods that can be used in the App
|
|
31
|
-
*/
|
|
32
|
-
plugin: () => any
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Blits.Plugin()
|
|
40
|
-
*
|
|
41
|
-
* Method to register a plugin
|
|
42
|
-
*/
|
|
43
|
-
declare function Plugin(
|
|
44
|
-
/**
|
|
45
|
-
* Plugin object or singleton function that will be used to instantiate the
|
|
46
|
-
* plugin. Should do all necessary setup and ideally return an object with
|
|
47
|
-
* properties or methods that can be used in the App
|
|
48
|
-
*/
|
|
49
|
-
plugin: Plugin.Plugin | (() => any),
|
|
50
|
-
/**
|
|
51
|
-
* Name of the plugin or options object, to be passed into the plugin instantiation.
|
|
52
|
-
*
|
|
53
|
-
* When passing a string, the value will be used as **name** of the plugin. The plugin
|
|
54
|
-
* will be accessible on each Component's `this` scope under this name, prefixed with a `$`
|
|
55
|
-
* (i.e. myplugin => `this.$myplugin`)
|
|
56
|
-
*
|
|
57
|
-
* Passing a name is **required** when `plugin` argument is a singleton function
|
|
58
|
-
*
|
|
59
|
-
* When passing an object, the value will be considered to be an `options` object.
|
|
60
|
-
* The options object will be passed into the plugin instantiation method. Can
|
|
61
|
-
* be used to set default values
|
|
62
|
-
*/
|
|
63
|
-
nameOrOptions?: string | object,
|
|
64
|
-
/**
|
|
65
|
-
* Object with options to be passed into the plugin instantiation method.
|
|
66
|
-
* Can be used to set default values
|
|
67
|
-
*/
|
|
68
|
-
options?: object
|
|
69
|
-
) : void
|
|
70
|
-
|
|
71
|
-
export default Plugin;
|