mn-docs-mcp 0.1.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/.env.example +4 -0
- package/.vscode/extensions.json +4 -0
- package/.vscode/launch.json +11 -0
- package/README.md +99 -0
- package/astro.config.mjs +126 -0
- package/package.json +30 -0
- package/pnpm-workspace.yaml +4 -0
- package/public/favicon.svg +1 -0
- package/scripts/mcp/build-index.mjs +9 -0
- package/scripts/mcp/cli.mjs +61 -0
- package/scripts/mcp/lib.mjs +303 -0
- package/scripts/mcp/server-http.mjs +74 -0
- package/scripts/mcp/server.mjs +91 -0
- package/src/assets/houston.webp +0 -0
- package/src/client/jsb-api-footer.ts +242 -0
- package/src/components/Footer.astro +57 -0
- package/src/components/Search.astro +330 -0
- package/src/content/docs/guides/contributing.md +82 -0
- package/src/content/docs/guides/cookbook/addon-settings.md +53 -0
- package/src/content/docs/guides/cookbook/append-selection-as-comment.md +46 -0
- package/src/content/docs/guides/cookbook/batch-rename-notes.md +53 -0
- package/src/content/docs/guides/cookbook/embed-webview-panel.md +158 -0
- package/src/content/docs/guides/cookbook/export-notebook.md +48 -0
- package/src/content/docs/guides/cookbook/focus-note-in-mindmap.md +34 -0
- package/src/content/docs/guides/cookbook/network-api-call.md +135 -0
- package/src/content/docs/guides/cookbook/webview-bidirectional-js.md +112 -0
- package/src/content/docs/guides/getting-started.md +88 -0
- package/src/content/docs/guides/lifecycle-and-window.md +76 -0
- package/src/content/docs/guides/mindmap-and-selection.md +76 -0
- package/src/content/docs/guides/native-ui.md +136 -0
- package/src/content/docs/guides/network-requests.md +309 -0
- package/src/content/docs/guides/notes-and-database.md +99 -0
- package/src/content/docs/guides/shortcut-keys.md +105 -0
- package/src/content/docs/guides/storage-and-files.md +91 -0
- package/src/content/docs/guides/toolbar-and-commands.md +64 -0
- package/src/content/docs/index.mdx +44 -0
- package/src/content/docs/reference/black-box.md +19 -0
- package/src/content/docs/reference/foundation/ns-array.md +699 -0
- package/src/content/docs/reference/foundation/ns-attributed-string.md +379 -0
- package/src/content/docs/reference/foundation/ns-character-set.md +436 -0
- package/src/content/docs/reference/foundation/ns-counted-set.md +78 -0
- package/src/content/docs/reference/foundation/ns-data.md +183 -0
- package/src/content/docs/reference/foundation/ns-date-components.md +24 -0
- package/src/content/docs/reference/foundation/ns-date-formatter.md +70 -0
- package/src/content/docs/reference/foundation/ns-date.md +236 -0
- package/src/content/docs/reference/foundation/ns-decimal-number.md +437 -0
- package/src/content/docs/reference/foundation/ns-dictionary.md +376 -0
- package/src/content/docs/reference/foundation/ns-enumerator.md +36 -0
- package/src/content/docs/reference/foundation/ns-error.md +75 -0
- package/src/content/docs/reference/foundation/ns-file-handle.md +445 -0
- package/src/content/docs/reference/foundation/ns-file-manager.md +275 -0
- package/src/content/docs/reference/foundation/ns-formatter.md +131 -0
- package/src/content/docs/reference/foundation/ns-hash-table.md +304 -0
- package/src/content/docs/reference/foundation/ns-http-url-response.md +73 -0
- package/src/content/docs/reference/foundation/ns-index-path.md +185 -0
- package/src/content/docs/reference/foundation/ns-index-set.md +527 -0
- package/src/content/docs/reference/foundation/ns-json-serialization.md +24 -0
- package/src/content/docs/reference/foundation/ns-keyed-archiver.md +364 -0
- package/src/content/docs/reference/foundation/ns-keyed-unarchiver.md +324 -0
- package/src/content/docs/reference/foundation/ns-locale.md +82 -0
- package/src/content/docs/reference/foundation/ns-map-table.md +216 -0
- package/src/content/docs/reference/foundation/ns-mutable-array.md +452 -0
- package/src/content/docs/reference/foundation/ns-mutable-attributed-string.md +336 -0
- package/src/content/docs/reference/foundation/ns-mutable-character-set.md +132 -0
- package/src/content/docs/reference/foundation/ns-mutable-data.md +206 -0
- package/src/content/docs/reference/foundation/ns-mutable-dictionary.md +176 -0
- package/src/content/docs/reference/foundation/ns-mutable-index-set.md +155 -0
- package/src/content/docs/reference/foundation/ns-mutable-ordered-set.md +465 -0
- package/src/content/docs/reference/foundation/ns-mutable-set.md +189 -0
- package/src/content/docs/reference/foundation/ns-mutable-string.md +190 -0
- package/src/content/docs/reference/foundation/ns-mutable-url-request.md +26 -0
- package/src/content/docs/reference/foundation/ns-notification-center.md +30 -0
- package/src/content/docs/reference/foundation/ns-notification.md +73 -0
- package/src/content/docs/reference/foundation/ns-null.md +24 -0
- package/src/content/docs/reference/foundation/ns-number-formatter.md +147 -0
- package/src/content/docs/reference/foundation/ns-number.md +393 -0
- package/src/content/docs/reference/foundation/ns-operation-queue.md +227 -0
- package/src/content/docs/reference/foundation/ns-operation.md +248 -0
- package/src/content/docs/reference/foundation/ns-ordered-set.md +706 -0
- package/src/content/docs/reference/foundation/ns-pointer-array.md +192 -0
- package/src/content/docs/reference/foundation/ns-predicate.md +199 -0
- package/src/content/docs/reference/foundation/ns-proxy.md +178 -0
- package/src/content/docs/reference/foundation/ns-scanner.md +448 -0
- package/src/content/docs/reference/foundation/ns-set.md +586 -0
- package/src/content/docs/reference/foundation/ns-simple-c-string.md +20 -0
- package/src/content/docs/reference/foundation/ns-time-zone.md +86 -0
- package/src/content/docs/reference/foundation/ns-timer.md +24 -0
- package/src/content/docs/reference/foundation/ns-url-components.md +80 -0
- package/src/content/docs/reference/foundation/ns-url-connection.md +169 -0
- package/src/content/docs/reference/foundation/ns-url-request.md +224 -0
- package/src/content/docs/reference/foundation/ns-url-response.md +97 -0
- package/src/content/docs/reference/foundation/ns-url.md +31 -0
- package/src/content/docs/reference/foundation/ns-user-defaults.md +302 -0
- package/src/content/docs/reference/foundation/ns-uuid.md +52 -0
- package/src/content/docs/reference/foundation/ns-value.md +194 -0
- package/src/content/docs/reference/global/application.md +301 -0
- package/src/content/docs/reference/global/builtin-commands.md +294 -0
- package/src/content/docs/reference/global/database.md +395 -0
- package/src/content/docs/reference/global/global-variables.md +32 -0
- package/src/content/docs/reference/global/jsb.md +89 -0
- package/src/content/docs/reference/global/note.md +64 -0
- package/src/content/docs/reference/global/popup-menu-item.md +18 -0
- package/src/content/docs/reference/global/popup-menu.md +38 -0
- package/src/content/docs/reference/global/search-manager.md +51 -0
- package/src/content/docs/reference/global/self.md +28 -0
- package/src/content/docs/reference/js-runtime.md +28 -0
- package/src/content/docs/reference/marginnote/document-controller.md +45 -0
- package/src/content/docs/reference/marginnote/jsextension.md +119 -0
- package/src/content/docs/reference/marginnote/mb-book-note.md +192 -0
- package/src/content/docs/reference/marginnote/mb-book.md +35 -0
- package/src/content/docs/reference/marginnote/mb-model-tool.md +66 -0
- package/src/content/docs/reference/marginnote/mb-topic.md +36 -0
- package/src/content/docs/reference/marginnote/mindmap-node.md +27 -0
- package/src/content/docs/reference/marginnote/mindmap-view.md +24 -0
- package/src/content/docs/reference/marginnote/note-comment.md +29 -0
- package/src/content/docs/reference/marginnote/notebook-controller.md +36 -0
- package/src/content/docs/reference/marginnote/outline-view.md +23 -0
- package/src/content/docs/reference/marginnote/reader-controller.md +26 -0
- package/src/content/docs/reference/marginnote/study-controller.md +100 -0
- package/src/content/docs/reference/quartzcore/caanimation-group.md +44 -0
- package/src/content/docs/reference/quartzcore/caanimation.md +23 -0
- package/src/content/docs/reference/quartzcore/cabasic-animation.md +19 -0
- package/src/content/docs/reference/quartzcore/cagradient-layer.md +27 -0
- package/src/content/docs/reference/quartzcore/cakeyframe-animation.md +19 -0
- package/src/content/docs/reference/quartzcore/calayer.md +135 -0
- package/src/content/docs/reference/quartzcore/camedia-timing-function.md +25 -0
- package/src/content/docs/reference/quartzcore/caproperty-animation.md +46 -0
- package/src/content/docs/reference/quartzcore/careplicator-layer.md +27 -0
- package/src/content/docs/reference/quartzcore/cascroll-layer.md +21 -0
- package/src/content/docs/reference/quartzcore/cashape-layer.md +34 -0
- package/src/content/docs/reference/quartzcore/catext-layer.md +28 -0
- package/src/content/docs/reference/quartzcore/catiled-layer.md +26 -0
- package/src/content/docs/reference/quartzcore/catransaction.md +46 -0
- package/src/content/docs/reference/quartzcore/catransform-layer.md +18 -0
- package/src/content/docs/reference/quartzcore/catransition.md +44 -0
- package/src/content/docs/reference/quartzcore/cavalue-function.md +22 -0
- package/src/content/docs/reference/uikit/ns-mutable-paragraph-style.md +20 -0
- package/src/content/docs/reference/uikit/ns-paragraph-style.md +20 -0
- package/src/content/docs/reference/uikit/ns-text-storage.md +20 -0
- package/src/content/docs/reference/uikit/uiactivity-indicator-view.md +20 -0
- package/src/content/docs/reference/uikit/uialertview.md +25 -0
- package/src/content/docs/reference/uikit/uiapplication.md +128 -0
- package/src/content/docs/reference/uikit/uibar-button-item.md +20 -0
- package/src/content/docs/reference/uikit/uibar-item.md +20 -0
- package/src/content/docs/reference/uikit/uibezier-path.md +143 -0
- package/src/content/docs/reference/uikit/uibutton.md +27 -0
- package/src/content/docs/reference/uikit/uicollection-view-cell.md +24 -0
- package/src/content/docs/reference/uikit/uicollection-view-controller.md +32 -0
- package/src/content/docs/reference/uikit/uicollection-view-layout-attributes.md +43 -0
- package/src/content/docs/reference/uikit/uicollection-view-layout.md +60 -0
- package/src/content/docs/reference/uikit/uicollection-view.md +83 -0
- package/src/content/docs/reference/uikit/uicolor.md +23 -0
- package/src/content/docs/reference/uikit/uicontrol.md +20 -0
- package/src/content/docs/reference/uikit/uidate-picker.md +37 -0
- package/src/content/docs/reference/uikit/uidevice.md +83 -0
- package/src/content/docs/reference/uikit/uievent.md +36 -0
- package/src/content/docs/reference/uikit/uifont.md +39 -0
- package/src/content/docs/reference/uikit/uigesture-recognizer.md +152 -0
- package/src/content/docs/reference/uikit/uiimage-picker-controller.md +41 -0
- package/src/content/docs/reference/uikit/uiimage-view.md +38 -0
- package/src/content/docs/reference/uikit/uiimage.md +58 -0
- package/src/content/docs/reference/uikit/uikey-command.md +31 -0
- package/src/content/docs/reference/uikit/uilabel.md +27 -0
- package/src/content/docs/reference/uikit/uilocal-notification.md +28 -0
- package/src/content/docs/reference/uikit/uilong-press-gesture-recognizer.md +25 -0
- package/src/content/docs/reference/uikit/uinavigation-bar.md +52 -0
- package/src/content/docs/reference/uikit/uinavigation-controller.md +46 -0
- package/src/content/docs/reference/uikit/uinavigation-item.md +42 -0
- package/src/content/docs/reference/uikit/uipage-control.md +35 -0
- package/src/content/docs/reference/uikit/uipage-view-controller.md +37 -0
- package/src/content/docs/reference/uikit/uipan-gesture-recognizer.md +32 -0
- package/src/content/docs/reference/uikit/uipasteboard.md +24 -0
- package/src/content/docs/reference/uikit/uipicker-view.md +37 -0
- package/src/content/docs/reference/uikit/uipinch-gesture-recognizer.md +23 -0
- package/src/content/docs/reference/uikit/uipopover-controller.md +39 -0
- package/src/content/docs/reference/uikit/uiresponder.md +20 -0
- package/src/content/docs/reference/uikit/uirotation-gesture-recognizer.md +23 -0
- package/src/content/docs/reference/uikit/uiscreen-mode.md +17 -0
- package/src/content/docs/reference/uikit/uiscreen.md +65 -0
- package/src/content/docs/reference/uikit/uiscrollview.md +134 -0
- package/src/content/docs/reference/uikit/uisearch-bar.md +58 -0
- package/src/content/docs/reference/uikit/uisegmented-control.md +64 -0
- package/src/content/docs/reference/uikit/uislider.md +50 -0
- package/src/content/docs/reference/uikit/uiswipe-gesture-recognizer.md +23 -0
- package/src/content/docs/reference/uikit/uiswitch.md +22 -0
- package/src/content/docs/reference/uikit/uitab-bar-controller.md +39 -0
- package/src/content/docs/reference/uikit/uitab-bar-item.md +34 -0
- package/src/content/docs/reference/uikit/uitab-bar.md +44 -0
- package/src/content/docs/reference/uikit/uitable-view-cell.md +57 -0
- package/src/content/docs/reference/uikit/uitable-view-controller.md +30 -0
- package/src/content/docs/reference/uikit/uitable-view.md +100 -0
- package/src/content/docs/reference/uikit/uitap-gesture-recognizer.md +20 -0
- package/src/content/docs/reference/uikit/uitext-input-mode.md +47 -0
- package/src/content/docs/reference/uikit/uitext-position.md +44 -0
- package/src/content/docs/reference/uikit/uitext-range.md +42 -0
- package/src/content/docs/reference/uikit/uitext-view.md +46 -0
- package/src/content/docs/reference/uikit/uitextfield.md +32 -0
- package/src/content/docs/reference/uikit/uitoolbar.md +35 -0
- package/src/content/docs/reference/uikit/uitouch.md +39 -0
- package/src/content/docs/reference/uikit/uiview-controller.md +36 -0
- package/src/content/docs/reference/uikit/uiview.md +47 -0
- package/src/content/docs/reference/uikit/uiwebview.md +229 -0
- package/src/content/docs/reference/uikit/uiwindow.md +47 -0
- package/src/content/docs/reference/utility/menu-controller.md +27 -0
- package/src/content/docs/reference/utility/speech-manager.md +118 -0
- package/src/content/docs/reference/utility/sqlite-database.md +201 -0
- package/src/content/docs/reference/utility/sqlite-result-set.md +266 -0
- package/src/content/docs/reference/utility/sqlite-statement.md +44 -0
- package/src/content/docs/reference/utility/undo-manager.md +89 -0
- package/src/content/docs/reference/utility/zip-archive.md +29 -0
- package/src/content.config.ts +7 -0
- package/src/definitions/Foundation/JSBFoundation.h +9 -0
- package/src/definitions/Foundation/JSBFoundation.m +530 -0
- package/src/definitions/Foundation/JSBNSArray.h +81 -0
- package/src/definitions/Foundation/JSBNSAssertionHandler.h +23 -0
- package/src/definitions/Foundation/JSBNSAttributedString.h +42 -0
- package/src/definitions/Foundation/JSBNSBlockOperation.h +20 -0
- package/src/definitions/Foundation/JSBNSBundle.h +80 -0
- package/src/definitions/Foundation/JSBNSByteCountFormatter.h +28 -0
- package/src/definitions/Foundation/JSBNSCache.h +31 -0
- package/src/definitions/Foundation/JSBNSCachedURLResponse.h +22 -0
- package/src/definitions/Foundation/JSBNSCalendar.h +88 -0
- package/src/definitions/Foundation/JSBNSCharacterSet.h +50 -0
- package/src/definitions/Foundation/JSBNSCoder.h +88 -0
- package/src/definitions/Foundation/JSBNSComparisonPredicate.h +27 -0
- package/src/definitions/Foundation/JSBNSCompoundPredicate.h +23 -0
- package/src/definitions/Foundation/JSBNSCondition.h +22 -0
- package/src/definitions/Foundation/JSBNSConditionLock.h +26 -0
- package/src/definitions/Foundation/JSBNSConstantString.h +18 -0
- package/src/definitions/Foundation/JSBNSCountedSet.h +21 -0
- package/src/definitions/Foundation/JSBNSData.h +44 -0
- package/src/definitions/Foundation/JSBNSDataDetector.h +20 -0
- package/src/definitions/Foundation/JSBNSDate.h +37 -0
- package/src/definitions/Foundation/JSBNSDateComponents.h +56 -0
- package/src/definitions/Foundation/JSBNSDateFormatter.h +91 -0
- package/src/definitions/Foundation/JSBNSDecimalNumber.h +47 -0
- package/src/definitions/Foundation/JSBNSDecimalNumberHandler.h +23 -0
- package/src/definitions/Foundation/JSBNSDictionary.h +79 -0
- package/src/definitions/Foundation/JSBNSDirectoryEnumerator.h +25 -0
- package/src/definitions/Foundation/JSBNSEnumerator.h +18 -0
- package/src/definitions/Foundation/JSBNSError.h +28 -0
- package/src/definitions/Foundation/JSBNSException.h +30 -0
- package/src/definitions/Foundation/JSBNSExpression.h +48 -0
- package/src/definitions/Foundation/JSBNSFileCoordinator.h +29 -0
- package/src/definitions/Foundation/JSBNSFileHandle.h +51 -0
- package/src/definitions/Foundation/JSBNSFileManager.h +82 -0
- package/src/definitions/Foundation/JSBNSFileSecurity.h +32 -0
- package/src/definitions/Foundation/JSBNSFileVersion.h +35 -0
- package/src/definitions/Foundation/JSBNSFileWrapper.h +41 -0
- package/src/definitions/Foundation/JSBNSFormatter.h +23 -0
- package/src/definitions/Foundation/JSBNSHTTPCookie.h +34 -0
- package/src/definitions/Foundation/JSBNSHTTPCookieStorage.h +26 -0
- package/src/definitions/Foundation/JSBNSHTTPURLResponse.h +21 -0
- package/src/definitions/Foundation/JSBNSHashTable.h +38 -0
- package/src/definitions/Foundation/JSBNSIndexPath.h +34 -0
- package/src/definitions/Foundation/JSBNSIndexSet.h +47 -0
- package/src/definitions/Foundation/JSBNSInputStream.h +28 -0
- package/src/definitions/Foundation/JSBNSInvocation.h +32 -0
- package/src/definitions/Foundation/JSBNSInvocationOperation.h +20 -0
- package/src/definitions/Foundation/JSBNSJSONSerialization.h +19 -0
- package/src/definitions/Foundation/JSBNSKeyedArchiver.h +40 -0
- package/src/definitions/Foundation/JSBNSKeyedUnarchiver.h +38 -0
- package/src/definitions/Foundation/JSBNSLinguisticTagger.h +31 -0
- package/src/definitions/Foundation/JSBNSLocale.h +39 -0
- package/src/definitions/Foundation/JSBNSLock.h +20 -0
- package/src/definitions/Foundation/JSBNSMachPort.h +26 -0
- package/src/definitions/Foundation/JSBNSMapTable.h +34 -0
- package/src/definitions/Foundation/JSBNSMessagePort.h +15 -0
- package/src/definitions/Foundation/JSBNSMetadataItem.h +22 -0
- package/src/definitions/Foundation/JSBNSMetadataQuery.h +53 -0
- package/src/definitions/Foundation/JSBNSMetadataQueryAttributeValueTuple.h +21 -0
- package/src/definitions/Foundation/JSBNSMetadataQueryResultGroup.h +24 -0
- package/src/definitions/Foundation/JSBNSMethodSignature.h +24 -0
- package/src/definitions/Foundation/JSBNSMutableArray.h +51 -0
- package/src/definitions/Foundation/JSBNSMutableAttributedString.h +39 -0
- package/src/definitions/Foundation/JSBNSMutableCharacterSet.h +26 -0
- package/src/definitions/Foundation/JSBNSMutableData.h +29 -0
- package/src/definitions/Foundation/JSBNSMutableDictionary.h +29 -0
- package/src/definitions/Foundation/JSBNSMutableIndexSet.h +25 -0
- package/src/definitions/Foundation/JSBNSMutableOrderedSet.h +50 -0
- package/src/definitions/Foundation/JSBNSMutableSet.h +28 -0
- package/src/definitions/Foundation/JSBNSMutableString.h +31 -0
- package/src/definitions/Foundation/JSBNSMutableURLRequest.h +38 -0
- package/src/definitions/Foundation/JSBNSNetService.h +43 -0
- package/src/definitions/Foundation/JSBNSNetServiceBrowser.h +33 -0
- package/src/definitions/Foundation/JSBNSNotification.h +23 -0
- package/src/definitions/Foundation/JSBNSNotificationCenter.h +27 -0
- package/src/definitions/Foundation/JSBNSNotificationQueue.h +22 -0
- package/src/definitions/Foundation/JSBNSNull.h +17 -0
- package/src/definitions/Foundation/JSBNSNumber.h +51 -0
- package/src/definitions/Foundation/JSBNSNumberFormatter.h +136 -0
- package/src/definitions/Foundation/JSBNSOperation.h +34 -0
- package/src/definitions/Foundation/JSBNSOperationQueue.h +32 -0
- package/src/definitions/Foundation/JSBNSOrderedSet.h +70 -0
- package/src/definitions/Foundation/JSBNSOrthography.h +27 -0
- package/src/definitions/Foundation/JSBNSOutputStream.h +33 -0
- package/src/definitions/Foundation/JSBNSPipe.h +26 -0
- package/src/definitions/Foundation/JSBNSPointerArray.h +33 -0
- package/src/definitions/Foundation/JSBNSPort.h +27 -0
- package/src/definitions/Foundation/JSBNSPredicate.h +31 -0
- package/src/definitions/Foundation/JSBNSProcessInfo.h +42 -0
- package/src/definitions/Foundation/JSBNSProgress.h +45 -0
- package/src/definitions/Foundation/JSBNSPropertyListSerialization.h +24 -0
- package/src/definitions/Foundation/JSBNSProxy.h +29 -0
- package/src/definitions/Foundation/JSBNSPurgeableData.h +16 -0
- package/src/definitions/Foundation/JSBNSRecursiveLock.h +20 -0
- package/src/definitions/Foundation/JSBNSRegularExpression.h +35 -0
- package/src/definitions/Foundation/JSBNSRunLoop.h +38 -0
- package/src/definitions/Foundation/JSBNSScanner.h +44 -0
- package/src/definitions/Foundation/JSBNSSet.h +52 -0
- package/src/definitions/Foundation/JSBNSSimpleCString.h +18 -0
- package/src/definitions/Foundation/JSBNSSortDescriptor.h +32 -0
- package/src/definitions/Foundation/JSBNSStream.h +26 -0
- package/src/definitions/Foundation/JSBNSString.h +178 -0
- package/src/definitions/Foundation/JSBNSTextCheckingResult.h +52 -0
- package/src/definitions/Foundation/JSBNSThread.h +46 -0
- package/src/definitions/Foundation/JSBNSTimeZone.h +46 -0
- package/src/definitions/Foundation/JSBNSTimer.h +29 -0
- package/src/definitions/Foundation/JSBNSURL.h +110 -0
- package/src/definitions/Foundation/JSBNSURLAuthenticationChallenge.h +24 -0
- package/src/definitions/Foundation/JSBNSURLCache.h +30 -0
- package/src/definitions/Foundation/JSBNSURLComponents.h +38 -0
- package/src/definitions/Foundation/JSBNSURLConnection.h +45 -0
- package/src/definitions/Foundation/JSBNSURLCredential.h +30 -0
- package/src/definitions/Foundation/JSBNSURLCredentialStorage.h +25 -0
- package/src/definitions/Foundation/JSBNSURLProtectionSpace.h +29 -0
- package/src/definitions/Foundation/JSBNSURLProtocol.h +32 -0
- package/src/definitions/Foundation/JSBNSURLRequest.h +40 -0
- package/src/definitions/Foundation/JSBNSURLResponse.h +22 -0
- package/src/definitions/Foundation/JSBNSURLSession.h +103 -0
- package/src/definitions/Foundation/JSBNSURLSessionConfiguration.h +58 -0
- package/src/definitions/Foundation/JSBNSURLSessionDataTask.h +18 -0
- package/src/definitions/Foundation/JSBNSURLSessionDownloadTask.h +20 -0
- package/src/definitions/Foundation/JSBNSURLSessionTask.h +58 -0
- package/src/definitions/Foundation/JSBNSURLSessionUploadTask.h +18 -0
- package/src/definitions/Foundation/JSBNSUUID.h +22 -0
- package/src/definitions/Foundation/JSBNSUbiquitousKeyValueStore.h +37 -0
- package/src/definitions/Foundation/JSBNSUndoManager.h +50 -0
- package/src/definitions/Foundation/JSBNSUserDefaults.h +52 -0
- package/src/definitions/Foundation/JSBNSValue.h +53 -0
- package/src/definitions/Foundation/JSBNSValueTransformer.h +24 -0
- package/src/definitions/Foundation/JSBNSXMLParser.h +34 -0
- package/src/definitions/JSBApplication.h +59 -0
- package/src/definitions/JSBDocumentController.h +32 -0
- package/src/definitions/JSBJSExtension.h +34 -0
- package/src/definitions/JSBMNFileSystem.h +50 -0
- package/src/definitions/JSBMNFileSystem.m +267 -0
- package/src/definitions/JSBMarginNote.h +9 -0
- package/src/definitions/JSBMarginNote.m +183 -0
- package/src/definitions/JSBMbBook.h +22 -0
- package/src/definitions/JSBMbBookNote.h +78 -0
- package/src/definitions/JSBMbModelTool.h +47 -0
- package/src/definitions/JSBMbTopic.h +28 -0
- package/src/definitions/JSBMenuController.h +21 -0
- package/src/definitions/JSBMindMapNode.h +20 -0
- package/src/definitions/JSBMindMapView.h +15 -0
- package/src/definitions/JSBNotebookController.h +22 -0
- package/src/definitions/JSBOutlineView.h +14 -0
- package/src/definitions/JSBPopupMenu.h +37 -0
- package/src/definitions/JSBPopupMenuItem.h +19 -0
- package/src/definitions/JSBReaderController.h +18 -0
- package/src/definitions/JSBSQLite.h +109 -0
- package/src/definitions/JSBSearchManager.h +55 -0
- package/src/definitions/JSBSearchManager.m +4 -0
- package/src/definitions/JSBSpeechManager.h +31 -0
- package/src/definitions/JSBStudyController.h +32 -0
- package/src/definitions/JSBUndoManager.h +23 -0
- package/src/definitions/JSBZipArchive.h +28 -0
- package/src/definitions/QuartzCore/JSBCAAnimation.h +21 -0
- package/src/definitions/QuartzCore/JSBCAAnimationGroup.h +37 -0
- package/src/definitions/QuartzCore/JSBCABasicAnimation.h +16 -0
- package/src/definitions/QuartzCore/JSBCADisplayLink.h +26 -0
- package/src/definitions/QuartzCore/JSBCAEAGLLayer.h +16 -0
- package/src/definitions/QuartzCore/JSBCAEmitterBehavior.h +24 -0
- package/src/definitions/QuartzCore/JSBCAEmitterCell.h +40 -0
- package/src/definitions/QuartzCore/JSBCAEmitterLayer.h +31 -0
- package/src/definitions/QuartzCore/JSBCAGradientLayer.h +20 -0
- package/src/definitions/QuartzCore/JSBCAKeyframeAnimation.h +16 -0
- package/src/definitions/QuartzCore/JSBCALayer.h +98 -0
- package/src/definitions/QuartzCore/JSBCAMediaTimingFunction.h +22 -0
- package/src/definitions/QuartzCore/JSBCAPropertyAnimation.h +39 -0
- package/src/definitions/QuartzCore/JSBCAReplicatorLayer.h +23 -0
- package/src/definitions/QuartzCore/JSBCAScrollLayer.h +18 -0
- package/src/definitions/QuartzCore/JSBCAShapeLayer.h +27 -0
- package/src/definitions/QuartzCore/JSBCATextLayer.h +23 -0
- package/src/definitions/QuartzCore/JSBCATiledLayer.h +21 -0
- package/src/definitions/QuartzCore/JSBCATransaction.h +32 -0
- package/src/definitions/QuartzCore/JSBCATransformLayer.h +15 -0
- package/src/definitions/QuartzCore/JSBCATransition.h +37 -0
- package/src/definitions/QuartzCore/JSBCAValueFunction.h +20 -0
- package/src/definitions/QuartzCore/JSBQuartzCore.h +9 -0
- package/src/definitions/QuartzCore/JSBQuartzCore.m +106 -0
- package/src/definitions/UIKit/JSBNSLayoutConstraint.h +30 -0
- package/src/definitions/UIKit/JSBNSLayoutManager.h +94 -0
- package/src/definitions/UIKit/JSBNSMutableParagraphStyle.h +16 -0
- package/src/definitions/UIKit/JSBNSParagraphStyle.h +37 -0
- package/src/definitions/UIKit/JSBNSShadow.h +20 -0
- package/src/definitions/UIKit/JSBNSStringDrawingContext.h +22 -0
- package/src/definitions/UIKit/JSBNSTextAttachment.h +24 -0
- package/src/definitions/UIKit/JSBNSTextContainer.h +27 -0
- package/src/definitions/UIKit/JSBNSTextStorage.h +31 -0
- package/src/definitions/UIKit/JSBNSTextTab.h +38 -0
- package/src/definitions/UIKit/JSBUIAcceleration.h +24 -0
- package/src/definitions/UIKit/JSBUIAccelerometer.h +28 -0
- package/src/definitions/UIKit/JSBUIAccessibilityElement.h +24 -0
- package/src/definitions/UIKit/JSBUIActionSheet.h +37 -0
- package/src/definitions/UIKit/JSBUIActivity.h +26 -0
- package/src/definitions/UIKit/JSBUIActivityIndicatorView.h +22 -0
- package/src/definitions/UIKit/JSBUIActivityItemProvider.h +22 -0
- package/src/definitions/UIKit/JSBUIActivityViewController.h +20 -0
- package/src/definitions/UIKit/JSBUIAlertView.h +39 -0
- package/src/definitions/UIKit/JSBUIApplication.h +37 -0
- package/src/definitions/UIKit/JSBUIAttachmentBehavior.h +26 -0
- package/src/definitions/UIKit/JSBUIBarButtonItem.h +48 -0
- package/src/definitions/UIKit/JSBUIBarItem.h +26 -0
- package/src/definitions/UIKit/JSBUIBezierPath.h +55 -0
- package/src/definitions/UIKit/JSBUIButton.h +51 -0
- package/src/definitions/UIKit/JSBUICollectionReusableView.h +26 -0
- package/src/definitions/UIKit/JSBUICollectionView.h +53 -0
- package/src/definitions/UIKit/JSBUICollectionViewCell.h +14 -0
- package/src/definitions/UIKit/JSBUICollectionViewController.h +21 -0
- package/src/definitions/UIKit/JSBUICollectionViewFlowLayout.h +29 -0
- package/src/definitions/UIKit/JSBUICollectionViewFlowLayoutInvalidationContext.h +25 -0
- package/src/definitions/UIKit/JSBUICollectionViewLayout.h +58 -0
- package/src/definitions/UIKit/JSBUICollectionViewLayoutAttributes.h +40 -0
- package/src/definitions/UIKit/JSBUICollectionViewLayoutInvalidationContext.h +36 -0
- package/src/definitions/UIKit/JSBUICollectionViewTransitionLayout.h +15 -0
- package/src/definitions/UIKit/JSBUICollectionViewUpdateItem.h +36 -0
- package/src/definitions/UIKit/JSBUICollisionBehavior.h +30 -0
- package/src/definitions/UIKit/JSBUIColor.h +67 -0
- package/src/definitions/UIKit/JSBUIControl.h +39 -0
- package/src/definitions/UIKit/JSBUIDatePicker.h +26 -0
- package/src/definitions/UIKit/JSBUIDevice.h +37 -0
- package/src/definitions/UIKit/JSBUIDictationPhrase.h +38 -0
- package/src/definitions/UIKit/JSBUIDocument.h +46 -0
- package/src/definitions/UIKit/JSBUIDocumentInteractionController.h +32 -0
- package/src/definitions/UIKit/JSBUIDynamicAnimator.h +27 -0
- package/src/definitions/UIKit/JSBUIDynamicBehavior.h +27 -0
- package/src/definitions/UIKit/JSBUIDynamicItemBehavior.h +30 -0
- package/src/definitions/UIKit/JSBUIEvent.h +24 -0
- package/src/definitions/UIKit/JSBUIFont.h +30 -0
- package/src/definitions/UIKit/JSBUIFontDescriptor.h +36 -0
- package/src/definitions/UIKit/JSBUIGestureRecognizer.h +44 -0
- package/src/definitions/UIKit/JSBUIGravityBehavior.h +24 -0
- package/src/definitions/UIKit/JSBUIImage.h +59 -0
- package/src/definitions/UIKit/JSBUIImagePickerController.h +30 -0
- package/src/definitions/UIKit/JSBUIImageView.h +28 -0
- package/src/definitions/UIKit/JSBUIInputView.h +15 -0
- package/src/definitions/UIKit/JSBUIInterpolatingMotionEffect.h +18 -0
- package/src/definitions/UIKit/JSBUIKeyCommand.h +25 -0
- package/src/definitions/UIKit/JSBUIKit.h +9 -0
- package/src/definitions/UIKit/JSBUIKit.m +614 -0
- package/src/definitions/UIKit/JSBUILabel.h +38 -0
- package/src/definitions/UIKit/JSBUILocalNotification.h +20 -0
- package/src/definitions/UIKit/JSBUILocalizedIndexedCollation.h +23 -0
- package/src/definitions/UIKit/JSBUILongPressGestureRecognizer.h +22 -0
- package/src/definitions/UIKit/JSBUIManagedDocument.h +26 -0
- package/src/definitions/UIKit/JSBUIMarkupTextPrintFormatter.h +17 -0
- package/src/definitions/UIKit/JSBUIMenuController.h +28 -0
- package/src/definitions/UIKit/JSBUIMenuItem.h +25 -0
- package/src/definitions/UIKit/JSBUIMotionEffect.h +24 -0
- package/src/definitions/UIKit/JSBUIMotionEffectGroup.h +16 -0
- package/src/definitions/UIKit/JSBUINavigationBar.h +47 -0
- package/src/definitions/UIKit/JSBUINavigationController.h +34 -0
- package/src/definitions/UIKit/JSBUINavigationItem.h +45 -0
- package/src/definitions/UIKit/JSBUINib.h +19 -0
- package/src/definitions/UIKit/JSBUIPageControl.h +24 -0
- package/src/definitions/UIKit/JSBUIPageViewController.h +27 -0
- package/src/definitions/UIKit/JSBUIPanGestureRecognizer.h +23 -0
- package/src/definitions/UIKit/JSBUIPasteboard.h +46 -0
- package/src/definitions/UIKit/JSBUIPercentDrivenInteractiveTransition.h +24 -0
- package/src/definitions/UIKit/JSBUIPickerView.h +28 -0
- package/src/definitions/UIKit/JSBUIPinchGestureRecognizer.h +19 -0
- package/src/definitions/UIKit/JSBUIPopoverBackgroundView.h +22 -0
- package/src/definitions/UIKit/JSBUIPopoverController.h +31 -0
- package/src/definitions/UIKit/JSBUIPrintFormatter.h +33 -0
- package/src/definitions/UIKit/JSBUIPrintInfo.h +26 -0
- package/src/definitions/UIKit/JSBUIPrintInteractionController.h +36 -0
- package/src/definitions/UIKit/JSBUIPrintPageRenderer.h +31 -0
- package/src/definitions/UIKit/JSBUIPrintPaper.h +22 -0
- package/src/definitions/UIKit/JSBUIProgressView.h +24 -0
- package/src/definitions/UIKit/JSBUIPushBehavior.h +28 -0
- package/src/definitions/UIKit/JSBUIReferenceLibraryViewController.h +19 -0
- package/src/definitions/UIKit/JSBUIRefreshControl.h +21 -0
- package/src/definitions/UIKit/JSBUIResponder.h +57 -0
- package/src/definitions/UIKit/JSBUIRotationGestureRecognizer.h +19 -0
- package/src/definitions/UIKit/JSBUIScreen.h +36 -0
- package/src/definitions/UIKit/JSBUIScreenEdgePanGestureRecognizer.h +18 -0
- package/src/definitions/UIKit/JSBUIScreenMode.h +19 -0
- package/src/definitions/UIKit/JSBUIScrollView.h +53 -0
- package/src/definitions/UIKit/JSBUISearchBar.h +55 -0
- package/src/definitions/UIKit/JSBUISearchDisplayController.h +28 -0
- package/src/definitions/UIKit/JSBUISegmentedControl.h +46 -0
- package/src/definitions/UIKit/JSBUISimpleTextPrintFormatter.h +18 -0
- package/src/definitions/UIKit/JSBUISlider.h +41 -0
- package/src/definitions/UIKit/JSBUISnapBehavior.h +18 -0
- package/src/definitions/UIKit/JSBUISplitViewController.h +26 -0
- package/src/definitions/UIKit/JSBUIStepper.h +31 -0
- package/src/definitions/UIKit/JSBUIStoryboard.h +19 -0
- package/src/definitions/UIKit/JSBUIStoryboardPopoverSegue.h +17 -0
- package/src/definitions/UIKit/JSBUIStoryboardSegue.h +23 -0
- package/src/definitions/UIKit/JSBUISwipeGestureRecognizer.h +19 -0
- package/src/definitions/UIKit/JSBUISwitch.h +20 -0
- package/src/definitions/UIKit/JSBUITabBar.h +33 -0
- package/src/definitions/UIKit/JSBUITabBarController.h +26 -0
- package/src/definitions/UIKit/JSBUITabBarItem.h +26 -0
- package/src/definitions/UIKit/JSBUITableView.h +70 -0
- package/src/definitions/UIKit/JSBUITableViewCell.h +48 -0
- package/src/definitions/UIKit/JSBUITableViewController.h +19 -0
- package/src/definitions/UIKit/JSBUITableViewHeaderFooterView.h +22 -0
- package/src/definitions/UIKit/JSBUITapGestureRecognizer.h +20 -0
- package/src/definitions/UIKit/JSBUITextChecker.h +27 -0
- package/src/definitions/UIKit/JSBUITextField.h +44 -0
- package/src/definitions/UIKit/JSBUITextInputMode.h +41 -0
- package/src/definitions/UIKit/JSBUITextInputStringTokenizer.h +40 -0
- package/src/definitions/UIKit/JSBUITextPosition.h +38 -0
- package/src/definitions/UIKit/JSBUITextRange.h +38 -0
- package/src/definitions/UIKit/JSBUITextSelectionRect.h +36 -0
- package/src/definitions/UIKit/JSBUITextView.h +34 -0
- package/src/definitions/UIKit/JSBUIToolbar.h +22 -0
- package/src/definitions/UIKit/JSBUITouch.h +49 -0
- package/src/definitions/UIKit/JSBUIVideoEditorController.h +19 -0
- package/src/definitions/UIKit/JSBUIView.h +140 -0
- package/src/definitions/UIKit/JSBUIViewController.h +127 -0
- package/src/definitions/UIKit/JSBUIViewPrintFormatter.h +15 -0
- package/src/definitions/UIKit/JSBUIWebView.h +38 -0
- package/src/definitions/UIKit/JSBUIWindow.h +32 -0
- package/src/styles/starlight-overrides.css +23 -0
- package/tsconfig.json +5 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: OutlineView
|
|
3
|
+
description: 大纲视图(旧版接口)。继承自 UITableView,并提供从 indexPath 反查笔记的能力。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
`OutlineView` 用于展示笔记本的大纲/列表视图。在插件运行时它继承自 [UITableView](/reference/uikit/uitable-view/),并额外暴露了一个把 `indexPath` 映射回笔记对象的方法。
|
|
7
|
+
|
|
8
|
+
## 实例成员 (Instance members)
|
|
9
|
+
|
|
10
|
+
| 方法 | 参数 | 返回值 | 说明 |
|
|
11
|
+
| --- | --- | --- | --- |
|
|
12
|
+
| `noteFromIndexPath(indexPath)` | indexPath: NSIndexPath | MbBookNote \| null | 根据表格行的 `indexPath` 获取对应的笔记对象。 |
|
|
13
|
+
|
|
14
|
+
## 类成员 (Class members)
|
|
15
|
+
|
|
16
|
+
当前运行时未额外暴露 `OutlineView` 的类成员。
|
|
17
|
+
|
|
18
|
+
## 相关
|
|
19
|
+
|
|
20
|
+
- [NotebookController](/reference/marginnote/notebook-controller/)
|
|
21
|
+
- [MbBookNote](/reference/marginnote/mb-book-note/)
|
|
22
|
+
- [UITableView](/reference/uikit/uitable-view/)
|
|
23
|
+
- [NSIndexPath](/reference/foundation/ns-index-path/)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: ReaderController
|
|
3
|
+
description: 文档阅读区域控制器,管理当前显示的文档控制器。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
管理一个或多个文档阅读视图,通过 `StudyController.readerController` 获取。
|
|
7
|
+
|
|
8
|
+
## 实例成员 (Instance members)
|
|
9
|
+
|
|
10
|
+
### 属性(只读)
|
|
11
|
+
|
|
12
|
+
| 属性 | 类型 | 说明 |
|
|
13
|
+
|------|------|------|
|
|
14
|
+
| `currentDocumentController` | `DocumentController` | 当前正在显示的文档控制器(getter 为 fBookViewController)。 |
|
|
15
|
+
| `documentControllers` | `NSMutableArray` | 所有文档控制器(getter 为 bookViewControllers)。 |
|
|
16
|
+
|
|
17
|
+
说明:该对象具备 `UIViewController` 的基础能力(例如 `view`),并额外提供“当前文档控制器/全部文档控制器”等阅读区状态。
|
|
18
|
+
|
|
19
|
+
## 类成员 (Class members)
|
|
20
|
+
|
|
21
|
+
当前运行时未额外暴露 `ReaderController` 的类成员。
|
|
22
|
+
|
|
23
|
+
## 相关
|
|
24
|
+
|
|
25
|
+
- [StudyController](/reference/marginnote/study-controller/)
|
|
26
|
+
- [DocumentController](/reference/marginnote/document-controller/)
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: StudyController
|
|
3
|
+
description: 学习场景主视图控制器,访问脑图与文档的入口。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
学习场景的主视图控制器,通过 `Application.sharedInstance().studyController(window)` 获取(通常传入 `self.window`)。是访问脑图、文档、当前笔记本等的根对象。
|
|
7
|
+
|
|
8
|
+
## 实例成员 (Instance members)
|
|
9
|
+
|
|
10
|
+
### 属性(只读)
|
|
11
|
+
|
|
12
|
+
| 属性 | 类型 | 说明 |
|
|
13
|
+
| :--- | :--- | :--- |
|
|
14
|
+
| `view` | `UIView` | 控制器主视图,可在此添加插件 UI。 |
|
|
15
|
+
| `notebookController` | `NotebookController` | 脑图/大纲控制器(getter 为 `fSearchViewController`,JS 侧为 notebookController)。 |
|
|
16
|
+
| `readerController` | `ReaderController` | 文档阅读区域控制器(getter 为 `detailController`)。 |
|
|
17
|
+
| `studyMode` | `number` | 当前学习模式:0/1 文档模式,2 学习模式,3 复习模式。 |
|
|
18
|
+
| `narrowMode` | `boolean` | 是否窄屏模式(窄屏下书本分屏模式 1 不可用)。 |
|
|
19
|
+
| `docMapSplitMode` | `number` | 书本/脑图分屏模式:0 全脑图,1 半脑图半文档,2 全文档(getter/setter 为 bookSplitMode)。 |
|
|
20
|
+
| `rightMapMode` | `boolean` | 脑图是否在右侧。 |
|
|
21
|
+
| `extensionPanelController` | `UIViewController` | 扩展面板控制器(getter 为 extensionController)。 |
|
|
22
|
+
|
|
23
|
+
### 方法
|
|
24
|
+
|
|
25
|
+
### `focusNoteInMindMapById`
|
|
26
|
+
|
|
27
|
+
在脑图中聚焦并高亮指定笔记。
|
|
28
|
+
|
|
29
|
+
```javascript
|
|
30
|
+
focusNoteInMindMapById(noteId: string): void
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
**Parameters:**
|
|
34
|
+
|
|
35
|
+
| Name | Type | Description |
|
|
36
|
+
| :--- | :--- | :--- |
|
|
37
|
+
| `noteId` | `string` | 笔记 ID。 |
|
|
38
|
+
|
|
39
|
+
### `focusNoteInDocumentById`
|
|
40
|
+
|
|
41
|
+
在文档中聚焦指定笔记。
|
|
42
|
+
|
|
43
|
+
```javascript
|
|
44
|
+
focusNoteInDocumentById(noteId: string): void
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
**Parameters:**
|
|
48
|
+
|
|
49
|
+
| Name | Type | Description |
|
|
50
|
+
| :--- | :--- | :--- |
|
|
51
|
+
| `noteId` | `string` | 笔记 ID。 |
|
|
52
|
+
|
|
53
|
+
### `refreshAddonCommands`
|
|
54
|
+
|
|
55
|
+
强制刷新插件在工具栏的图标状态。
|
|
56
|
+
|
|
57
|
+
```javascript
|
|
58
|
+
refreshAddonCommands(): void
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### `focusNoteInFloatMindMapById`
|
|
62
|
+
|
|
63
|
+
在浮动脑图中聚焦指定笔记。
|
|
64
|
+
|
|
65
|
+
```javascript
|
|
66
|
+
focusNoteInFloatMindMapById(noteId: string): void
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### `isNoteInReview`
|
|
70
|
+
|
|
71
|
+
判断某笔记是否处于复习队列/复习态。
|
|
72
|
+
|
|
73
|
+
```javascript
|
|
74
|
+
isNoteInReview(noteId: string): boolean
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### `openNotebookAndDocument`
|
|
78
|
+
|
|
79
|
+
打开指定笔记本与文档。
|
|
80
|
+
|
|
81
|
+
```javascript
|
|
82
|
+
openNotebookAndDocument(notebookId: string, docMd5: string): void
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### `toggleExtensionPanel`
|
|
86
|
+
|
|
87
|
+
切换扩展面板显示/隐藏。
|
|
88
|
+
|
|
89
|
+
```javascript
|
|
90
|
+
toggleExtensionPanel(): void
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## 类成员 (Class members)
|
|
94
|
+
|
|
95
|
+
当前运行时未额外暴露 `StudyController` 的类成员。
|
|
96
|
+
|
|
97
|
+
## 相关
|
|
98
|
+
|
|
99
|
+
- [Application](/reference/global/application/) — `studyController(window)`
|
|
100
|
+
- [NotebookController](/reference/marginnote/notebook-controller/)、[ReaderController](/reference/marginnote/reader-controller/)
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: CAAnimationGroup
|
|
3
|
+
description: 动画组。可组合多段动画,并配置 timingFunction、keyPath、from/to/by 等常见字段。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
`CAAnimationGroup` 继承自 [CAAnimation](/reference/quartzcore/caanimation/),用于把多段动画组合为一个整体并一起添加到 `CALayer` 上。
|
|
7
|
+
|
|
8
|
+
## 实例成员 (Instance members)
|
|
9
|
+
|
|
10
|
+
### 属性
|
|
11
|
+
|
|
12
|
+
| 属性 | 类型 | 说明 |
|
|
13
|
+
| --- | --- | --- |
|
|
14
|
+
| `animations` | NSArray | 子动画数组。 |
|
|
15
|
+
| `keyPath` | string \| null | keyPath(若该组被用作属性动画时)。 |
|
|
16
|
+
| `fromValue` / `toValue` / `byValue` | any | 起始/结束/增量值。 |
|
|
17
|
+
| `values` | NSArray | 关键帧 values(若运行时复用字段)。 |
|
|
18
|
+
| `keyTimes` | NSArray | 关键时间点数组。 |
|
|
19
|
+
| `timingFunction` | CAMediaTimingFunction \| null | timingFunction。 |
|
|
20
|
+
| `timingFunctions` | NSArray | 多段 timingFunctions。 |
|
|
21
|
+
| `calculationMode` | string \| null | 计算模式。 |
|
|
22
|
+
| `rotationMode` | string \| null | 旋转模式。 |
|
|
23
|
+
| `type` | string \| null | 类型。 |
|
|
24
|
+
| `subtype` | string \| null | 子类型。 |
|
|
25
|
+
| `path` | any | 路径对象。 |
|
|
26
|
+
| `valueFunction` | CAValueFunction \| null | valueFunction。 |
|
|
27
|
+
| `delegate` | id | delegate 对象。 |
|
|
28
|
+
| `filter` | id | filter。 |
|
|
29
|
+
| `startProgress` / `endProgress` | number | 起止进度。 |
|
|
30
|
+
| `tensionValues` / `continuityValues` / `biasValues` | NSArray | 张力/连续性/偏置数组。 |
|
|
31
|
+
| `additive` | boolean | 是否 additive。 |
|
|
32
|
+
| `cumulative` | boolean | 是否 cumulative。 |
|
|
33
|
+
| `removedOnCompletion` | boolean | 是否在完成后移除。 |
|
|
34
|
+
|
|
35
|
+
## 类成员 (Class members)
|
|
36
|
+
|
|
37
|
+
当前运行时未额外暴露 `CAAnimationGroup` 的类成员。
|
|
38
|
+
|
|
39
|
+
## 相关
|
|
40
|
+
|
|
41
|
+
- [CAAnimation](/reference/quartzcore/caanimation/)
|
|
42
|
+
- [CALayer](/reference/quartzcore/calayer/)
|
|
43
|
+
- [CAMediaTimingFunction](/reference/quartzcore/camedia-timing-function/)
|
|
44
|
+
- [CAValueFunction](/reference/quartzcore/cavalue-function/)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: CAAnimation
|
|
3
|
+
description: Core Animation 动画基类。可创建动画并查询默认值;支持决定某 key 是否参与归档。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
`CAAnimation` 是 Core Animation 动画体系的基类,常作为 `CALayer.addAnimationForKey(anim, key)` 的参数使用。
|
|
7
|
+
|
|
8
|
+
## 实例成员 (Instance members)
|
|
9
|
+
|
|
10
|
+
| 方法 | 参数 | 返回值 | 说明 |
|
|
11
|
+
| --- | --- | --- | --- |
|
|
12
|
+
| `shouldArchiveValueForKey(key)` | key: string | boolean | 返回某个 key 的值是否需要被归档。 |
|
|
13
|
+
|
|
14
|
+
## 类成员 (Class members)
|
|
15
|
+
|
|
16
|
+
| 方法 | 参数 | 返回值 | 说明 |
|
|
17
|
+
| --- | --- | --- | --- |
|
|
18
|
+
| `animation()` | — | CAAnimation | 创建一个动画对象。 |
|
|
19
|
+
| `defaultValueForKey(key)` | key: string | any | 返回某 key 的默认值。 |
|
|
20
|
+
|
|
21
|
+
## 相关
|
|
22
|
+
|
|
23
|
+
- [CALayer](/reference/quartzcore/calayer/)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: CABasicAnimation
|
|
3
|
+
description: 基础属性动画。通常用于对 keyPath 做 from/to/by 的插值动画。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
`CABasicAnimation` 继承自 [CAPropertyAnimation](/reference/quartzcore/caproperty-animation/),用于最常见的“起始值 → 结束值”插值动画。它本身没有额外新增成员,主要使用父类暴露的 `keyPath`、`fromValue`、`toValue`、`byValue`、`timingFunction` 等字段。
|
|
7
|
+
|
|
8
|
+
## 实例成员 (Instance members)
|
|
9
|
+
|
|
10
|
+
当前运行时未额外暴露 `CABasicAnimation` 的专属实例成员。
|
|
11
|
+
|
|
12
|
+
## 类成员 (Class members)
|
|
13
|
+
|
|
14
|
+
当前运行时未额外暴露 `CABasicAnimation` 的专属类成员。
|
|
15
|
+
|
|
16
|
+
## 相关
|
|
17
|
+
|
|
18
|
+
- [CAPropertyAnimation](/reference/quartzcore/caproperty-animation/)
|
|
19
|
+
- [CALayer](/reference/quartzcore/calayer/)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: CAGradientLayer
|
|
3
|
+
description: 渐变图层。可配置 colors/locations 与 startPoint/endPoint,并以 type 决定渐变类型。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
`CAGradientLayer` 继承自 [CALayer](/reference/quartzcore/calayer/),用于渲染线性/径向等渐变效果(具体类型由 `type` 决定)。
|
|
7
|
+
|
|
8
|
+
## 实例成员 (Instance members)
|
|
9
|
+
|
|
10
|
+
### 属性
|
|
11
|
+
|
|
12
|
+
| 属性 | 类型 | 说明 |
|
|
13
|
+
| --- | --- | --- |
|
|
14
|
+
| `colors` | NSArray | 渐变颜色数组。 |
|
|
15
|
+
| `locations` | NSArray | 渐变位置数组(0~1)。 |
|
|
16
|
+
| `startPoint` | { x: number, y: number } | 起点(单位坐标)。 |
|
|
17
|
+
| `endPoint` | { x: number, y: number } | 终点(单位坐标)。 |
|
|
18
|
+
| `type` | string \| null | 渐变类型标识。 |
|
|
19
|
+
|
|
20
|
+
## 类成员 (Class members)
|
|
21
|
+
|
|
22
|
+
当前运行时未额外暴露 `CAGradientLayer` 的类成员。
|
|
23
|
+
|
|
24
|
+
## 相关
|
|
25
|
+
|
|
26
|
+
- [CALayer](/reference/quartzcore/calayer/)
|
|
27
|
+
- [NSArray](/reference/foundation/ns-array/)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: CAKeyframeAnimation
|
|
3
|
+
description: 关键帧属性动画。通常通过 values/keyTimes 等字段描述多段变化。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
`CAKeyframeAnimation` 继承自 [CAPropertyAnimation](/reference/quartzcore/caproperty-animation/),用于关键帧动画。它本身没有额外新增成员,主要使用父类暴露的 `values`、`keyTimes`、`timingFunctions`、`path`、`calculationMode` 等字段来描述关键帧序列。
|
|
7
|
+
|
|
8
|
+
## 实例成员 (Instance members)
|
|
9
|
+
|
|
10
|
+
当前运行时未额外暴露 `CAKeyframeAnimation` 的专属实例成员。
|
|
11
|
+
|
|
12
|
+
## 类成员 (Class members)
|
|
13
|
+
|
|
14
|
+
当前运行时未额外暴露 `CAKeyframeAnimation` 的专属类成员。
|
|
15
|
+
|
|
16
|
+
## 相关
|
|
17
|
+
|
|
18
|
+
- [CAPropertyAnimation](/reference/quartzcore/caproperty-animation/)
|
|
19
|
+
- [CALayer](/reference/quartzcore/calayer/)
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: CALayer
|
|
3
|
+
description: Core Animation 图层。提供几何/内容/阴影/圆角/边框等属性,并支持子图层管理、坐标转换与动画添加。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
`CALayer` 是 Core Animation 的核心图层类型。它在插件运行时中通常作为 `UIView.layer` 的类型出现,也可以独立创建并组合为图层树。
|
|
7
|
+
|
|
8
|
+
## 实例成员 (Instance members)
|
|
9
|
+
|
|
10
|
+
### 几何与层级
|
|
11
|
+
|
|
12
|
+
| 属性 | 类型 | 说明 |
|
|
13
|
+
| --- | --- | --- |
|
|
14
|
+
| `visibleRect` | { x: number, y: number, width: number, height: number } | 只读。可见区域。 |
|
|
15
|
+
| `bounds` | { x: number, y: number, width: number, height: number } | bounds。 |
|
|
16
|
+
| `frame` | { x: number, y: number, width: number, height: number } | frame。 |
|
|
17
|
+
| `position` | { x: number, y: number } | position。 |
|
|
18
|
+
| `zPosition` | number | zPosition。 |
|
|
19
|
+
| `anchorPoint` | { x: number, y: number } | anchorPoint。 |
|
|
20
|
+
| `anchorPointZ` | number | anchorPointZ。 |
|
|
21
|
+
| `hidden` | boolean | 是否隐藏。 |
|
|
22
|
+
| `doubleSided` | boolean | 是否双面渲染。 |
|
|
23
|
+
| `geometryFlipped` | boolean | 是否几何翻转。 |
|
|
24
|
+
| `superlayer` | CALayer \| null | 只读。父图层。 |
|
|
25
|
+
| `sublayers` | NSArray | 子图层数组。 |
|
|
26
|
+
| `mask` | CALayer \| null | 蒙版图层。 |
|
|
27
|
+
| `masksToBounds` | boolean | 是否裁剪子内容。 |
|
|
28
|
+
|
|
29
|
+
### 内容与渲染
|
|
30
|
+
|
|
31
|
+
| 属性 | 类型 | 说明 |
|
|
32
|
+
| --- | --- | --- |
|
|
33
|
+
| `contents` | any | 内容对象。 |
|
|
34
|
+
| `contentsRect` | { x: number, y: number, width: number, height: number } | contentsRect。 |
|
|
35
|
+
| `contentsScale` | number | contentsScale。 |
|
|
36
|
+
| `contentsCenter` | { x: number, y: number, width: number, height: number } | contentsCenter。 |
|
|
37
|
+
| `minificationFilterBias` | number | 缩小过滤偏置。 |
|
|
38
|
+
| `opaque` | boolean | 是否不透明。 |
|
|
39
|
+
| `allowsEdgeAntialiasing` | boolean | 是否允许边缘抗锯齿。 |
|
|
40
|
+
| `backgroundColor` | UIColor \| null | 背景色。 |
|
|
41
|
+
| `cornerRadius` | number | 圆角半径。 |
|
|
42
|
+
| `borderWidth` | number | 边框宽度。 |
|
|
43
|
+
| `borderColor` | UIColor \| null | 边框色。 |
|
|
44
|
+
| `opacity` | number | 不透明度(0~1)。 |
|
|
45
|
+
| `compositingFilter` | any | 合成滤镜。 |
|
|
46
|
+
| `filters` | NSArray | 滤镜数组。 |
|
|
47
|
+
| `backgroundFilters` | NSArray | 背景滤镜数组。 |
|
|
48
|
+
| `shouldRasterize` | boolean | 是否栅格化。 |
|
|
49
|
+
| `rasterizationScale` | number | 栅格化 scale。 |
|
|
50
|
+
| `shadowColor` | UIColor \| null | 阴影颜色。 |
|
|
51
|
+
| `shadowOpacity` | number | 阴影不透明度。 |
|
|
52
|
+
| `shadowOffset` | { width: number, height: number } | 阴影偏移。 |
|
|
53
|
+
| `shadowRadius` | number | 阴影模糊半径。 |
|
|
54
|
+
|
|
55
|
+
### 滚动与显示/布局
|
|
56
|
+
|
|
57
|
+
| 方法 | 参数 | 返回值 | 说明 |
|
|
58
|
+
| --- | --- | --- | --- |
|
|
59
|
+
| `scrollPoint(p)` | p: { x: number, y: number } | void | 滚动到点。 |
|
|
60
|
+
| `scrollRectToVisible(r)` | r: { x: number, y: number, width: number, height: number } | void | 滚动使矩形可见。 |
|
|
61
|
+
| `display()` | — | void | 触发显示。 |
|
|
62
|
+
| `setNeedsDisplay()` | — | void | 标记需要重绘。 |
|
|
63
|
+
| `setNeedsDisplayInRect(r)` | r: { x: number, y: number, width: number, height: number } | void | 标记某区域需要重绘。 |
|
|
64
|
+
| `needsDisplay()` | — | boolean | 是否需要重绘。 |
|
|
65
|
+
| `displayIfNeeded()` | — | void | 若需要则显示。 |
|
|
66
|
+
| `setNeedsLayout()` | — | void | 标记需要布局。 |
|
|
67
|
+
| `needsLayout()` | — | boolean | 是否需要布局。 |
|
|
68
|
+
| `layoutIfNeeded()` | — | void | 若需要则布局。 |
|
|
69
|
+
| `layoutSublayers()` | — | void | 布局子图层。 |
|
|
70
|
+
| `preferredFrameSize()` | — | { width: number, height: number } | 推荐 frame size。 |
|
|
71
|
+
| `drawInContext(ctx)` | ctx: any | void | 在上下文绘制。 |
|
|
72
|
+
| `renderInContext(ctx)` | ctx: any | void | 渲染到上下文。 |
|
|
73
|
+
|
|
74
|
+
### 图层树管理
|
|
75
|
+
|
|
76
|
+
| 方法 | 参数 | 返回值 | 说明 |
|
|
77
|
+
| --- | --- | --- | --- |
|
|
78
|
+
| `removeFromSuperlayer()` | — | void | 从父图层移除。 |
|
|
79
|
+
| `addSublayer(layer)` | layer: CALayer | void | 添加子图层。 |
|
|
80
|
+
| `insertSublayerAtIndex(layer, idx)` | layer: CALayer, idx: number | void | 插入子图层到指定索引。 |
|
|
81
|
+
| `insertSublayerBelow(layer, sibling)` | layer: CALayer, sibling: CALayer | void | 插入到某 sibling 下方。 |
|
|
82
|
+
| `insertSublayerAbove(layer, sibling)` | layer: CALayer, sibling: CALayer | void | 插入到某 sibling 上方。 |
|
|
83
|
+
| `replaceSublayerWith(layer, layer2)` | layer: CALayer, layer2: CALayer | void | 替换子图层。 |
|
|
84
|
+
|
|
85
|
+
### 坐标/时间转换与命中测试
|
|
86
|
+
|
|
87
|
+
| 方法 | 参数 | 返回值 | 说明 |
|
|
88
|
+
| --- | --- | --- | --- |
|
|
89
|
+
| `convertPointFromLayer(p, l)` | p: { x: number, y: number }, l: CALayer | { x: number, y: number } | 从某图层坐标系转换点。 |
|
|
90
|
+
| `convertPointToLayer(p, l)` | p: { x: number, y: number }, l: CALayer | { x: number, y: number } | 转换点到某图层坐标系。 |
|
|
91
|
+
| `convertRectFromLayer(r, l)` | r: { x: number, y: number, width: number, height: number }, l: CALayer | { x: number, y: number, width: number, height: number } | 从某图层坐标系转换矩形。 |
|
|
92
|
+
| `convertRectToLayer(r, l)` | r: { x: number, y: number, width: number, height: number }, l: CALayer | { x: number, y: number, width: number, height: number } | 转换矩形到某图层坐标系。 |
|
|
93
|
+
| `convertTimeFromLayer(t, l)` | t: number, l: CALayer | number | 从某图层转换时间。 |
|
|
94
|
+
| `convertTimeToLayer(t, l)` | t: number, l: CALayer | number | 转换时间到某图层。 |
|
|
95
|
+
| `hitTest(p)` | p: { x: number, y: number } | CALayer \| null | 命中测试。 |
|
|
96
|
+
| `containsPoint(p)` | p: { x: number, y: number } | boolean | 点是否在图层内。 |
|
|
97
|
+
|
|
98
|
+
### 动画
|
|
99
|
+
|
|
100
|
+
| 方法 | 参数 | 返回值 | 说明 |
|
|
101
|
+
| --- | --- | --- | --- |
|
|
102
|
+
| `addAnimationForKey(anim, key)` | anim: CAAnimation, key: string \| null | void | 添加动画。 |
|
|
103
|
+
| `removeAllAnimations()` | — | void | 移除全部动画。 |
|
|
104
|
+
| `removeAnimationForKey(key)` | key: string | void | 按 key 移除动画。 |
|
|
105
|
+
| `animationKeys()` | — | NSArray | 当前动画 key 列表。 |
|
|
106
|
+
| `animationForKey(key)` | key: string | CAAnimation \| null | 获取某 key 的动画。 |
|
|
107
|
+
| `actionForKey(event)` | event: string | any | 查询某事件的 action。 |
|
|
108
|
+
|
|
109
|
+
### 其他
|
|
110
|
+
|
|
111
|
+
| 方法 | 参数 | 返回值 | 说明 |
|
|
112
|
+
| --- | --- | --- | --- |
|
|
113
|
+
| `init()` | — | CALayer | 初始化。 |
|
|
114
|
+
| `presentationLayer()` | — | any | 返回 presentation layer(若存在)。 |
|
|
115
|
+
| `modelLayer()` | — | any | 返回 model layer(若存在)。 |
|
|
116
|
+
| `shouldArchiveValueForKey(key)` | key: string | boolean | 是否归档某 key。 |
|
|
117
|
+
| `affineTransform()` | — | object | 获取仿射变换。 |
|
|
118
|
+
| `setAffineTransform(m)` | m: object | void | 设置仿射变换。 |
|
|
119
|
+
| `contentsAreFlipped()` | — | boolean | 内容是否翻转。 |
|
|
120
|
+
|
|
121
|
+
## 类成员 (Class members)
|
|
122
|
+
|
|
123
|
+
| 方法 | 参数 | 返回值 | 说明 |
|
|
124
|
+
| --- | --- | --- | --- |
|
|
125
|
+
| `layer()` | — | CALayer | 创建图层。 |
|
|
126
|
+
| `defaultValueForKey(key)` | key: string | any | 默认值。 |
|
|
127
|
+
| `needsDisplayForKey(key)` | key: string | boolean | 某 key 变化是否需要重绘。 |
|
|
128
|
+
| `defaultActionForKey(event)` | event: string | any | 某事件的默认 action。 |
|
|
129
|
+
|
|
130
|
+
## 相关
|
|
131
|
+
|
|
132
|
+
- [CAAnimation](/reference/quartzcore/caanimation/)
|
|
133
|
+
- [CATransaction](/reference/quartzcore/catransaction/)
|
|
134
|
+
- [UIView](/reference/uikit/uiview/)(`UIView.layer`)
|
|
135
|
+
- [NSArray](/reference/foundation/ns-array/)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: CAMediaTimingFunction
|
|
3
|
+
description: 动画时间函数。支持按名称创建或用四个控制点创建,并可读取控制点。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
`CAMediaTimingFunction` 用于描述动画的时间曲线(缓入/缓出等)。它常用于 `CAPropertyAnimation.timingFunction` 或 `CATransaction.setAnimationTimingFunction(...)`。
|
|
7
|
+
|
|
8
|
+
## 实例成员 (Instance members)
|
|
9
|
+
|
|
10
|
+
| 方法 | 参数 | 返回值 | 说明 |
|
|
11
|
+
| --- | --- | --- | --- |
|
|
12
|
+
| `initWithControlPoints(c1x, c1y, c2x, c2y)` | c1x: number, c1y: number, c2x: number, c2y: number | CAMediaTimingFunction | 以四个控制点初始化。 |
|
|
13
|
+
| `getControlPointAtIndexValues(idx, ptr)` | idx: number, ptr: any | void | 读取指定索引的控制点值(运行时以指针形式暴露;通常无需直接调用)。 |
|
|
14
|
+
|
|
15
|
+
## 类成员 (Class members)
|
|
16
|
+
|
|
17
|
+
| 方法 | 参数 | 返回值 | 说明 |
|
|
18
|
+
| --- | --- | --- | --- |
|
|
19
|
+
| `functionWithName(name)` | name: string | CAMediaTimingFunction | 以名称创建(例如 `"linear"`、`"easeIn"` 等)。 |
|
|
20
|
+
| `functionWithControlPoints(c1x, c1y, c2x, c2y)` | c1x: number, c1y: number, c2x: number, c2y: number | CAMediaTimingFunction | 以四个控制点创建。 |
|
|
21
|
+
|
|
22
|
+
## 相关
|
|
23
|
+
|
|
24
|
+
- [CATransaction](/reference/quartzcore/catransaction/)
|
|
25
|
+
- [CAAnimationGroup](/reference/quartzcore/caanimation-group/)
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: CAPropertyAnimation
|
|
3
|
+
description: 属性动画基类。支持按 keyPath 创建,并暴露 timingFunction、keyPath、from/to/by 等常用字段。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
`CAPropertyAnimation` 继承自 [CAAnimation](/reference/quartzcore/caanimation/),用于对图层的某个 `keyPath` 属性做动画(例如 `"opacity"`、`"position"` 等)。
|
|
7
|
+
|
|
8
|
+
## 实例成员 (Instance members)
|
|
9
|
+
|
|
10
|
+
### 属性
|
|
11
|
+
|
|
12
|
+
| 属性 | 类型 | 说明 |
|
|
13
|
+
| --- | --- | --- |
|
|
14
|
+
| `keyPath` | string \| null | 动画的 keyPath。 |
|
|
15
|
+
| `fromValue` / `toValue` / `byValue` | any | 起始/结束/增量值。 |
|
|
16
|
+
| `timingFunction` | CAMediaTimingFunction \| null | timingFunction。 |
|
|
17
|
+
| `values` | NSArray | values(关键帧/复用字段)。 |
|
|
18
|
+
| `keyTimes` | NSArray | keyTimes。 |
|
|
19
|
+
| `timingFunctions` | NSArray | timingFunctions。 |
|
|
20
|
+
| `calculationMode` | string \| null | 计算模式。 |
|
|
21
|
+
| `rotationMode` | string \| null | 旋转模式。 |
|
|
22
|
+
| `type` | string \| null | 类型。 |
|
|
23
|
+
| `subtype` | string \| null | 子类型。 |
|
|
24
|
+
| `path` | any | 路径对象。 |
|
|
25
|
+
| `valueFunction` | CAValueFunction \| null | valueFunction。 |
|
|
26
|
+
| `delegate` | id | delegate 对象。 |
|
|
27
|
+
| `filter` | id | filter。 |
|
|
28
|
+
| `startProgress` / `endProgress` | number | 起止进度。 |
|
|
29
|
+
| `tensionValues` / `continuityValues` / `biasValues` | NSArray | 张力/连续性/偏置数组。 |
|
|
30
|
+
| `additive` | boolean | 是否 additive。 |
|
|
31
|
+
| `cumulative` | boolean | 是否 cumulative。 |
|
|
32
|
+
| `removedOnCompletion` | boolean | 是否在完成后移除。 |
|
|
33
|
+
| `animations` | NSArray | 子动画数组(在部分运行时复用字段)。 |
|
|
34
|
+
|
|
35
|
+
## 类成员 (Class members)
|
|
36
|
+
|
|
37
|
+
| 方法 | 参数 | 返回值 | 说明 |
|
|
38
|
+
| --- | --- | --- | --- |
|
|
39
|
+
| `animationWithKeyPath(path)` | path: string | CAPropertyAnimation | 按 keyPath 创建属性动画。 |
|
|
40
|
+
|
|
41
|
+
## 相关
|
|
42
|
+
|
|
43
|
+
- [CAAnimation](/reference/quartzcore/caanimation/)
|
|
44
|
+
- [CALayer](/reference/quartzcore/calayer/)
|
|
45
|
+
- [CAMediaTimingFunction](/reference/quartzcore/camedia-timing-function/)
|
|
46
|
+
- [CAValueFunction](/reference/quartzcore/cavalue-function/)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: CAReplicatorLayer
|
|
3
|
+
description: 复制图层。可设置 instanceCount、instanceTransform、instanceDelay 与颜色偏移等。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
`CAReplicatorLayer` 继承自 [CALayer](/reference/quartzcore/calayer/),用于自动复制其子图层并应用变换/延迟等效果,常用于实现重复图形、扫描线、波纹等视觉。
|
|
7
|
+
|
|
8
|
+
## 实例成员 (Instance members)
|
|
9
|
+
|
|
10
|
+
### 属性
|
|
11
|
+
|
|
12
|
+
| 属性 | 类型 | 说明 |
|
|
13
|
+
| --- | --- | --- |
|
|
14
|
+
| `instanceCount` | number | 复制数量。 |
|
|
15
|
+
| `instanceDelay` | number | 每个实例的时间延迟(秒)。 |
|
|
16
|
+
| `instanceTransform` | object | 实例变换。 |
|
|
17
|
+
| `preservesDepth` | boolean | 是否保持深度。 |
|
|
18
|
+
| `instanceColor` | any | 实例颜色(运行时类型为 id)。 |
|
|
19
|
+
| `instanceRedOffset` / `instanceGreenOffset` / `instanceBlueOffset` / `instanceAlphaOffset` | number | 颜色分量偏移。 |
|
|
20
|
+
|
|
21
|
+
## 类成员 (Class members)
|
|
22
|
+
|
|
23
|
+
当前运行时未额外暴露 `CAReplicatorLayer` 的类成员。
|
|
24
|
+
|
|
25
|
+
## 相关
|
|
26
|
+
|
|
27
|
+
- [CALayer](/reference/quartzcore/calayer/)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: CAScrollLayer
|
|
3
|
+
description: 可滚动图层。提供 scrollToPoint/scrollToRect 方法。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
`CAScrollLayer` 继承自 [CALayer](/reference/quartzcore/calayer/),用于在图层级别提供滚动到指定点/矩形的能力。
|
|
7
|
+
|
|
8
|
+
## 实例成员 (Instance members)
|
|
9
|
+
|
|
10
|
+
| 方法 | 参数 | 返回值 | 说明 |
|
|
11
|
+
| --- | --- | --- | --- |
|
|
12
|
+
| `scrollToPoint(p)` | p: { x: number, y: number } | void | 滚动到点。 |
|
|
13
|
+
| `scrollToRect(r)` | r: { x: number, y: number, width: number, height: number } | void | 滚动使矩形可见。 |
|
|
14
|
+
|
|
15
|
+
## 类成员 (Class members)
|
|
16
|
+
|
|
17
|
+
当前运行时未额外暴露 `CAScrollLayer` 的类成员。
|
|
18
|
+
|
|
19
|
+
## 相关
|
|
20
|
+
|
|
21
|
+
- [CALayer](/reference/quartzcore/calayer/)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: CAShapeLayer
|
|
3
|
+
description: 形状图层。支持 path、fill/stroke、线宽/线帽/连接样式、虚线与 strokeStart/strokeEnd。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
`CAShapeLayer` 继承自 [CALayer](/reference/quartzcore/calayer/),用于渲染矢量路径的描边与填充。插件运行时的 `path`/`fillColor`/`strokeColor` 等字段以“运行时对象”形式暴露,你可以把它们当作可传递的值来设置与读取。
|
|
7
|
+
|
|
8
|
+
## 实例成员 (Instance members)
|
|
9
|
+
|
|
10
|
+
### 属性
|
|
11
|
+
|
|
12
|
+
| 属性 | 类型 | 说明 |
|
|
13
|
+
| --- | --- | --- |
|
|
14
|
+
| `path` | any | 路径对象。 |
|
|
15
|
+
| `fillColor` | any | 填充颜色。 |
|
|
16
|
+
| `strokeColor` | any | 描边颜色。 |
|
|
17
|
+
| `fillRule` | string \| null | 填充规则。 |
|
|
18
|
+
| `lineWidth` | number | 线宽。 |
|
|
19
|
+
| `lineCap` | string \| null | 线帽样式。 |
|
|
20
|
+
| `lineJoin` | string \| null | 连接样式。 |
|
|
21
|
+
| `miterLimit` | number | 斜接限制。 |
|
|
22
|
+
| `lineDashPattern` | NSArray | 虚线样式数组。 |
|
|
23
|
+
| `lineDashPhase` | number | 虚线相位。 |
|
|
24
|
+
| `strokeStart` | number | 描边起始(0~1)。 |
|
|
25
|
+
| `strokeEnd` | number | 描边结束(0~1)。 |
|
|
26
|
+
|
|
27
|
+
## 类成员 (Class members)
|
|
28
|
+
|
|
29
|
+
当前运行时未额外暴露 `CAShapeLayer` 的类成员。
|
|
30
|
+
|
|
31
|
+
## 相关
|
|
32
|
+
|
|
33
|
+
- [CALayer](/reference/quartzcore/calayer/)
|
|
34
|
+
- [NSArray](/reference/foundation/ns-array/)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: CATextLayer
|
|
3
|
+
description: 文本图层。支持 string/font/fontSize、alignmentMode、foregroundColor 与 wrapped。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
`CATextLayer` 继承自 [CALayer](/reference/quartzcore/calayer/),用于在图层中渲染文本。插件运行时的 `string` 可为字符串或富文本等运行时对象。
|
|
7
|
+
|
|
8
|
+
## 实例成员 (Instance members)
|
|
9
|
+
|
|
10
|
+
### 属性
|
|
11
|
+
|
|
12
|
+
| 属性 | 类型 | 说明 |
|
|
13
|
+
| --- | --- | --- |
|
|
14
|
+
| `string` | any | 文本内容(可为字符串或富文本对象)。 |
|
|
15
|
+
| `font` | any | 字体对象(运行时类型为 id)。 |
|
|
16
|
+
| `fontSize` | number | 字号。 |
|
|
17
|
+
| `foregroundColor` | any | 前景色(运行时类型为 id)。 |
|
|
18
|
+
| `alignmentMode` | string \| null | 对齐方式。 |
|
|
19
|
+
| `truncationMode` | string \| null | 截断模式。 |
|
|
20
|
+
| `wrapped` | boolean | 是否自动换行。 |
|
|
21
|
+
|
|
22
|
+
## 类成员 (Class members)
|
|
23
|
+
|
|
24
|
+
当前运行时未额外暴露 `CATextLayer` 的类成员。
|
|
25
|
+
|
|
26
|
+
## 相关
|
|
27
|
+
|
|
28
|
+
- [CALayer](/reference/quartzcore/calayer/)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: CATiledLayer
|
|
3
|
+
description: 平铺渲染图层。支持 tileSize、levelsOfDetail/levelsOfDetailBias,并提供 fadeDuration。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
`CATiledLayer` 继承自 [CALayer](/reference/quartzcore/calayer/),用于以瓦片(tile)方式渲染大尺寸内容,常用于大图或需要分块绘制的场景。
|
|
7
|
+
|
|
8
|
+
## 实例成员 (Instance members)
|
|
9
|
+
|
|
10
|
+
### 属性
|
|
11
|
+
|
|
12
|
+
| 属性 | 类型 | 说明 |
|
|
13
|
+
| --- | --- | --- |
|
|
14
|
+
| `tileSize` | { width: number, height: number } | tile 大小。 |
|
|
15
|
+
| `levelsOfDetail` | number | 细节级别数。 |
|
|
16
|
+
| `levelsOfDetailBias` | number | 细节级别偏置。 |
|
|
17
|
+
|
|
18
|
+
## 类成员 (Class members)
|
|
19
|
+
|
|
20
|
+
| 方法 | 参数 | 返回值 | 说明 |
|
|
21
|
+
| --- | --- | --- | --- |
|
|
22
|
+
| `fadeDuration()` | — | number | 淡入淡出时长。 |
|
|
23
|
+
|
|
24
|
+
## 相关
|
|
25
|
+
|
|
26
|
+
- [CALayer](/reference/quartzcore/calayer/)
|